I'm trying to set up nginx. When serving a file I get the following error:  [crit] 64347#0: *4 stat() "/home/zmbq/web/static/index.html" failed (13: Permission denied)  I've set the proper permissions to the file and all its parent directories, restart nginx and the error persists.  Running sudo -u nginx cat /home/zmbq/web/static/index.html displays the file's content. stating the same file also works.  Permissions down the path:  [zmbq@csm-web var]$ ll / drwxr-xr-x.   3 root root   18 Aug 30 09:25 home  [zmbq@csm-web var]$ ll /home drwxr-xr-x. 13 zmbq zmbq 4096 Aug 30 12:17 zmbq  [zmbq@csm-web var]$ ll /home/zmbq drwxrwxr-x.  8 zmbq zmbq       77 Aug 30 11:53 web  [zmbq@csm-web var]$ ll /home/zmbq/web drwxrwxr-x. 4 zmbq nginx 4096 Aug 30 11:46 static  [zmbq@csm-web var]$ ll /home/zmbq/web/static -rw-rw-r--. 1 zmbq nginx     683 Aug 30 11:46 index.html

I have a brand new VM with CenotOS 7 Minimal Installation.  What I want to happen is to configure Nginx to serve static files from a directory on localhost:80.  My directory is /home/kenny/projects/kcrypt/dist/.  Here are the contents of my /etc/nginx/nginx.conf:  # this is set to root in order to rule out # any permission related issues. user root;      worker_processes auto; error_log /var/log/nginx/error.log; pid /run/nginx.pid;  include /usr/share/nginx/modules/*.conf;  events {     worker_connections 1024; }  http {     log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '                       '$status $body_bytes_sent "$http_referer" '                       '"$http_user_agent" "$http_x_forwarded_for"';      access_log  /var/log/nginx/access.log  main;      sendfile            on;     tcp_nopush          on;     tcp_nodelay         on;     keepalive_timeout   65;     types_hash_max_size 2048;      include             /etc/nginx/mime.types;     default_type        application/octet-stream;      server {         listen       80 default_server;         listen       [::]:80 default_server;         root         /home/kenny/projects/kcrypt/dist/;         index index.html;          location / {         }     } }   when I run curl http://localhost I get this response:   <title>403 Forbidden</title>
403 Forbidden

nginx/1.12.2     I have tried giving all kinds of permissions to any directories that I can think of.   In the end I configured Nginx to run as root.   I have reinstalled the OS multiple times already and can't get it to work.   P.S.   This is what I found in /var/log/nginx/error.log  2018/02/27 21:33:19 [error] 15689#0: *1 open() "/home/kenny/projects/kcrypt/dist/index.html" failed (13: Permission denied), client: ::1, server: , request: "GET / HTTP/1.1", host: "localhost" 2018/02/27 21:33:35 [error] 15690#0: *2 open() "/home/kenny/projects/kcrypt/dist/index.html" failed (13: Permission denied), client: 127.0.0.1, server: , request: "GET / HTTP/1.1", host: "127.0.0.1" 2018/02/27 21:33:38 [error] 15690#0: *3 open() "/home/kenny/projects/kcrypt/dist/index.html" failed (13: Permission denied), client: ::1, server: , request: "GET / HTTP/1.1", host: "localhost"   I don't get what it wants... I have given it all the permissions that I can.   This is what I have in the root directory:  [root@vm3 dist]# ll total 368K drwxrwxrwx. 2 root root   98 Feb 26 23:16 . drwxrwxrwx. 6 root root  234 Feb 27 21:26 .. -rwxrwxrwx. 1 root root 1.2K Feb 26 23:16 favicon.ico -rwxrwxrwx. 1 root root 1.7K Feb 26 23:16 index.html -rwxrwxrwx. 1 root root 175K Feb 26 22:53 index.js -rwxrwxrwx. 1 root root  297 Feb 26 23:16 manifest.json -rwxrwxrwx. 1 root root 179K Feb 26 22:53 styles.css   P.S. 2  I have tried putting my static files in /var/www/kcrypt/dist/, but with no result.  I still get the same error messages:   2018/02/27 23:18:11 [error] 16157#0: *1 open() "/var/www/kcrypt/dist/index.html" failed (13: Permission denied), client: ::1, server: , request: "GET / HTTP/1.1", host: "localhost" 2018/02/27 23:20:58 [error] 16535#0: *1 open() "/var/www/kcrypt/dist/index.html" failed (13: Permission denied), client: ::1, server: , request: "GET / HTTP/1.1", host: "localhost" 2018/02/27 23:21:30 [error] 16564#0: *1 open() "/var/www/kcrypt/dist/index.html" failed (13: Permission denied), client: ::1, server: , request: "GET / HTTP/1.1", host: "localhost"


I have an OpenVPN connection open at all times which results in certain services like Pandora to not work since the OpenVPN connection goes to Europe. How can I exempt a domain, in this case pandora.com, from the OpenVPN connection?

When I connect to a VPN, all my network traffic is automatically routed through it. Is there a way to add exemptions to that? I don't know if adding exceptions has anything to do with the VPN protocol, but the VPN I'm using is of the OpenVPN protocol.  Speaking of OpenVPN, why is it not installed by default on Ubuntu installs, unlike PPTP?  I could not get the list of IRCHighWay's servers, and this is the result I get trying to connect on XChat with running the bash script running:  * Looking up irc.irchighway.net * Connecting to irc.irchighway.net (65.23.153.98) port 6667... * Connected. Now logging in... * You have been K-Lined. * *** You are not welcome on this network. * *** K-Lined for Open proxies are not allowed. (2011/02/26 01.21) * *** Your IP is 173.0.14.9 * *** For assistance, please email banned@irchighway.net and include everything shown here. * Closing Link: 0.0.0.0 (Open proxies are not allowed. (2011/02/26 01.21)) * Disconnected (Remote host closed socket).   The IP 173.0.14.9 is the one due to my VPN. I had forgotten to check ip route list before running the script, and this is the one after running it:  ~$ ip route list 99.192.193.241 dev ppp0  proto kernel  scope link  src 173.0.14.9  173.0.14.2 via 192.168.1.1 dev eth1  proto static  173.0.14.2 via 192.168.1.1 dev eth1  src 192.168.1.3  192.168.1.0/24 dev eth1  proto kernel  scope link  src 192.168.1.3  metric 2  169.254.0.0/16 dev eth1  scope link  metric 1000  default dev ppp0  proto static   Oh and running the script returned this output:  ~$ sudo bash irc_route.sh Usage: inet_route [-vF] del {-host|-net} Target[/prefix] [gw Gw] [metric M] [[dev] If]        inet_route [-vF] add {-host|-net} Target[/prefix] [gw Gw] [metric M]                               [netmask N] [mss Mss] [window W] [irtt I]                               [mod] [dyn] [reinstate] [[dev] If]        inet_route [-vF] add {-host|-net} Target[/prefix] [metric M] reject        inet_route [-FC] flush      NOT supported   I ran the script after connecting to the VPN.


The 's 15th-level  feature (Eberron: Rising from the Last War, p. 60) states:     You can now have two cannons at the same time. You can create two with the same action (but not the same spell slot)   How would this same action creation work? Could you, for example, create one cannon then use your bonus action to cast misty step to a different location and then place the second cannon, with both summonings being considered 1 action?

You can do it to move:     If you take an action that includes more than one weapon attack, you can break up your movement even further by moving between those attacks. For example, a fighter who can make two attacks with the Extra Attack feature and who has a speed of 25 feet could move 10 feet, make an attack, move 15 feet, and then attack again. (PHB 190)   It would be necessary for the Great Weapon Master feat:     On your turn, when you score a critical hit with a melee weapon or reduce a creature to 0 hit points with one, you can make one melee weapon attack as a bonus action   As a level 17 Fighter, if I can not place a bonus action between attacks, there are two possibilities:   I have to wait until I finished all 4 attacks of the action, to make another attack as a bonus action the bonus action attack is wasted unless the kill or crit happens on the 4th attack   So can I take a bonus action in the middle of the attacks of an action?


I'm still newbie to java programming. And can anybody tell me what's wrong with the source code? When I run the code, the conditional assignment always outputs "login failed".  import java.util.Scanner; public class ProgramBiodataMahasiswa {     public static void main(String[] args) {         Scanner input = new Scanner(System.in);         String username, password, output;         System.out.print("Enter username     : ");         username = input.nextLine();         System.out.print("Enter password     : ");         password = input.nextLine();         output = (username=="kesit" && password=="ps123") ? "login successfully" : "login failed" ;         System.out.println(output);     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I try to bring to tables together in a join-like way. Consider the column id_ as "on clause" key. In the tables below, there are more id_s in table 1 than 2. I would like to have all ids and values of both tables. If there is not a respective id_, the value is 0 or null. CREATE TABLE IF NOT EXISTS t1 (    id_ INTEGER  NOT NULL,    value1 INT NOT NULL )  CREATE TABLE IF NOT EXISTS t2 (    id_ INTEGER  NOT NULL,    value2 INT NOT NULL )  INSERT INTO t1 (id_, value1) VALUES (1, 10), (2, 20), (3, 30)  INSERT INTO t2 (id_, value2) VALUES (2, 40), (3, 60) (4, 80)  I use the platform Metabase, a BI tool.

I have all kinds of views in mysql with employee data.  I have tried to use methods like this - but they simply don't work for views.    I end up getting more of a LEFT JOIN as a result.  Is there a way to merge two views without including duplicates in mysql - I am currently using a 4 view process to duplicate this.


I recently was interested in modding, and I needed to install unity. I did that, and I run the .deb file, it comes up to the 'install software' application, then it says 'can't install Unity. Not supported'. Don't know why. I was able to run this VERY same .deb file on my old OS (MX Linux) but can't now... Please help, Thanks, Ring Games

How do I install a .deb file via the command line?


Please help us below code that right side of arrow not spanned based on height and and help us how to set auto width:   \documentclass{book} \usepackage{tikz} \usepackage{tcolorbox}  \makeatletter  \def\@chapter[#1]#2#3{\ifnum \c@secnumdepth >\m@ne                        \if@mainmatter                          \refstepcounter{chapter}%                          \typeout{\@chapapp\space\thechapter.}%                          \addcontentsline{toc}{chapter}%                                    {\protect\numberline{\thechapter}#1}%\thechapter                        \else                          \addcontentsline{toc}{chapter}{#1}%                        \fi                     \else                       \addcontentsline{toc}{chapter}{#1}%                     \fi                     \chaptermark{#1}%                     \addtocontents{lof}{\protect\addvspace{10\p@}}%                     \addtocontents{lot}{\protect\addvspace{10\p@}}%                     \if@twocolumn                       \@topnewpage[\@makechapterhead{#2}{#3}]%                     \else                       \@makechapterhead{#2}{#3}%                       \@afterheading                     \fi}     \def\@makechapterhead#1#2{% \vspace*{8pt}% \hspace*{-3.4pt}\begin{strangebox}{#1}{-1cm} {\parindent\z@\raggedright\normalfont% \ifnum \c@secnumdepth >\m@ne% \interlinepenalty\@M%% {\Large#2\par}\nobreak}% \end{strangebox} \fi \vskip9pt% \@afterindentfalse% \@afterheading}%  \definecolor{ctframecolor}{cmyk}{0.07,0.03,0.12,0.10} \tcbuselibrary{skins} \usetikzlibrary{calc} \usetikzlibrary{shadows,shadows.blur} \pgfdeclarelayer{background} \pgfdeclarelayer{foreground} \pgfsetlayers{background,main,foreground}  \definecolor{BaseColor}{HTML}{8533FF}  \newlength{\boxCornerOfset} \setlength{\boxCornerOfset}{12pt} \newlength{\boxShadowOfset} \setlength{\boxShadowOfset}{2mm}  \definecolor{blackone}{cmyk}{0,0,0,0.19} \definecolor{blacktwo}{cmyk}{0,0,0,0}  % change color of shadow \tikzset{ render blur shadow/.code= {\pgfbs@savebb \pgfsyssoftpath@getcurrentpath{\pgfbs@input@path}% \pgfbs@compute@shadow@bbox \pgfbs@process@rounding{\pgfbs@input@path}{\pgfbs@fadepath}% \pgfbs@apply@canvas@transform \colorlet{pstb@shadow@color}{white!\pgfbs@opacity!blackone}% \pgfdeclarefading{shadowfading}{\pgfbs@paint@fading}% \pgfsetfillcolor{blackone}% \pgfsetfading{shadowfading}% {\pgftransformshift{\pgfpoint{\pgfbs@midx}{\pgfbs@midy}}}% \pgfbs@usebbox{fill}% \pgfbs@restorebb },}   \def\framepath{\path[draw=ctframecolor, blur shadow={shadow xshift=3pt, shadow yshift=-2pt,shadow blur steps=9,fill=white,shadow opacity=40}, ] (frame.north east)  -- ($(frame.north east)!.5!([xshift=-50pt,]frame.south east)$) -- (frame.south east) -- (frame.south west) -- (frame.north west) -- cycle;}   \newtcolorbox{strangebox}[3][]{%   enhanced,   nobeforeafter,   sharp corners,   colupper=green,colframe=ctframecolor,boxsep=7.7pt,       frame code={%         \begin{pgfonlayer}{main}             \framepath          \end{pgfonlayer}                 }, interior code={%             \framepath[fill=red]                   },  fonttitle=\Large,  attach boxed title to top left={xshift=1.5mm,yshift=-2.21mm},  boxed title style={colframe=cyan,colback=cyan,coltitle=white,arc=2mm, auto outer arc,boxsep=2.75mm,},  title={\MakeUppercase{#2}},  width=0.8\textwidth,  #1% }  \makeatother \begin{document}  \chapter{CHECKLIST}{Chapter 1}  \clearpage  \chapter{ACTIVITY SHEET}{Chapter 1 Showcase: Analysing a science media article}  \end{document}

Please help us how to draw attached images as with TiKZ, PSTricks or  tcolorbox.


I need to add logging to a batch file to know what parameters were passed to it. So if the batch file is run.bat, I have tried adding the line  ECHO %1 %2 %3 %4 %5 %6 %7 %8 %9 >> run.log   Which just echoes the parameters and the string >> run.log.

I have a batch script that executes a task and sends the output to a text file.  Is there a way to have the output show on the console window as well?  For Example:  c:\Windows>dir > windows-dir.txt   Is there a way to have the output of dir display in the console window as well as put it into the text file?


I want to be able do something like this  void SampleFunction(Type type) {     type varA = default(type);     OtherGenericFunction<type>(); }   Tried using typeof(type) but it didn't gave any result.  I tried searching it, but did not understand solutions or how to apply them, these I looked:      Can someone explain how to deal with situation in my case?  Just to give some context: I trying to mock some generic functions. As straightforward mock of generic doesn't working - my current theoretical solution is to gather List<Type> of used types in function Im testing, then just iterate through it and setup my mock object.

What's the best way to call a generic method when the type parameter isn't known at compile time, but instead is obtained dynamically at runtime?  Consider the following sample code - inside the Example() method, what's the most concise way to invoke GenericMethod<T>() using the Type stored in the myType variable?  public class Sample {     public void Example(string typeName)     {         Type myType = FindType(typeName);          // What goes here to call GenericMethod<T>()?         GenericMethod<myType>(); // This doesn't work          // What changes to call StaticMethod<T>()?         Sample.StaticMethod<myType>(); // This also doesn't work     }      public void GenericMethod<T>()     {         // ...     }      public static void StaticMethod<T>()     {         //...     } }


I need to find the departure and arrival times for a flight that was delayed last December, is there any way I can do this without having to pay a subscription?  The flight was from Edinburgh to Paris CDG

Where can I find historical data on flights, specifically Delta international flights?  I need to find out about cancellations, diversions and any other flight data pertaining on particular route at a given time.  This source has to be official and stand up to legal scrutiny.


I have been reading grammar instructions on this .  When I came across the bottom of the page, there was a quiz. In the quiz it was noted that the word oak in the following sentence is an adjective.     In the spring, red roses blossom in my cute small garden. The beautiful birds also sing in the big oak tree.   Why is oak an adjective in the sentence?

I read a new collocation cough trouble which I could not found in any dictionary.  How can I form a noun + noun collocation?


I've recently run into someone who managed to make an answer harder to read by adding too many "the/a" articles, which can sometimes be omitted in English under certain circumstances.  The and a pretty much are shorthand for this or any. And when a generic statement that applies to a wide category of objects is sprinkled with too many unnecessary occurrences of the or a, it simply makes it harder to read because it adds noise.  This is not the first occurrence of useless grammar beautification.  I propose that we:   Forbid adding extra words to someone else's text unless it is marked as Community Wiki. Or at least make it so only the original author alone can accept suggested edits. Forbid useless reformatting (inserting of whitespaces, retabbing, moving brackets around, and such).   Exceptions:   When a word is clearly misspelled. So replacing somethings with something’s does not qualify. However, use th iz complir to fixit would qualify for editing. When the author failed to start a code formatting block properly (because she forgot four spaces, etc)   Reasoning:   The answer belongs to whoever wrote it, so you should not change it unless granted permission or unless there’s an “emergency” (like missing code formatting space or a major case of misspelling).  By that logic, marking an answer as Community Wiki grants permission to everyone to modify that answer. Grammatical beautification is a waste of time that gives only the illusion of doing something useful. Time spent there should be spent on answering/voting on questions instead. Whoever can benefit from the answer will benefit from it even if an article is missing here and there. Overzealous proofreading text takes time and generally has a  negligible effect on an answer’s usability. You pretty much waste ten minutes to save someone one second. Not worth it.   Alternative approach: Instead of site-wide rules, it would be reasonable to have a profile checkbox that forbids any changes to your posts unless you personally approve them or unless those posts were marked as community wiki. By default the checkbox would be disabled.   The main reason why this change is suggested is that, with the current behavior I have to babysit every single answer I ever made when someone suggests an edit and check if their suggestion properly reflects the answer's original meaning.   Such behavior wastes a lot of time, and makes posting answers undesirable.   Therefore it would be reasonable to get rid of this "friendly samaritan" editing and restrict the available tools to "upvote", "downvote", "flag for deletion", and "write comment".  When information is frozen in place and you have a warranty that nobody is going to change the intended meaning to something you didn't have in mind, you can concentrate on problem at hand.  SO works the best as an information database, not when it tries to be Wikipedia or a newspaper.

edited my question,  where I specifically said that our software sending back stacktrace to one of our servers was a user-known public feature.  He then modified the title of my post, along with the entire content, making it sound like I snuck in the feature and that our application was phoning home without our users knowing.    I specifically wrote in the original post that the feature was not sneaky. He completely changed the meaning of my post. I find this to be rather unacceptable.  A few questions:   Is it possible to prevent editing of my posts? How can I retaliate? Can I file a complaint?   Can people with  do anything they want on Stack Overflow?


When ever I add an object to this ArrayList, my resize method, gives me a NullPointerException. The list is initialized with a size of 1, and the first element is added to possition 0 in the array.   Here is my arrayList AKA DynamicArray  //Implementation of a dynamic array // Add remove methods   public class DynamicArray {     private Object[] data;     private int size;  public void DynamicArray(){     data = new Object[1];     size = 0; }  public int size(){return size;}  public Object get(int index){return data[index];};  private void resizeIfFull() {     if (size < data.length){         return;         } else {             Object[] bigger = new Object[2 * data.length];             for (int i = 0; i < data.length; i++){                 bigger[i] = data[i];                 data = bigger;         }     } }  public void add(Object obj){     resizeIfFull();     data[size] = obj;     size++; }  public void add(int index, Object obj){     resizeIfFull();      for(int i = size - 1; i >= index; i--){         data[i+1] = data[i];     }     data[index] = obj;     size++; }  public void remove(int index){     for(int i = index; i < size; i++){         data[i] = data[i+1];     }     size--; }  }   Here is my testing class.  public class AlgorTest {  public static void main(String[] args) {     // TODO Auto-generated method stub     DynamicArray dynam = new DynamicArray();     System.out.println(dynam.size());     dynam.add("first");  }  }   Here is my output from the testing class.  0 Exception in thread "main" java.lang.NullPointerException at DynamicArray.resizeIfFull(DynamicArray.java:20) at DynamicArray.add(DynamicArray.java:38) at AlgorTest.main(AlgorTest.java:8)

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


I'm currently working in US, with VISA valid uptil end of Sept. I've applied for extension, and the petition is under review atm.  There is a requirement that may need me to go out of US and come back for a week in mid-Sept.  Would that be a problem while returning?

I've heard that i can travel to the US any time before my tourist visa expiry.  Is that true?  (please advise)


The common usage I have been exposed to is that punctuation should only be in a quotation if it’s contained in the original source. So what if your quotation ends in a period and your quotation is also the end of your sentence. Do you need two periods?   I asked my son to visit his grandma; however, he said, “No, I won’t go.”.    Is the above correct?

As in the following:     A common proverb is: “A rolling stone gathers no moss.”        A common proverb is: “A rolling stone gathers no moss”.        A common proverb is: “A rolling stone gathers no moss.”.   If the proverb weren't a full sentence, I would immediately put a single period after the quote, at the very end.  But if it is a sentence, which period should be removed so that there is only one period? Two periods look absolutely dorky.


I have an issue with IntelliJ IDEA and Android Studio when I pin the icons to my taskbar. If I click on the icon, the actual window opens in a smaller duplicate icon on the taskbar rather than opening the window in the pinned icon.  I have tried uninstalling with Revo Uninstaller Pro and reinstalling, but to no avail. Copying the .exe file directly to the AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar folder doesn't work – the icon does not appear.  This is not a duplicate of this question:   I have tried all the suggested solutions from the earlier question, to check, but there is still a duplicate icon, so maybe it is a problem with Windows 10 specifically. I do not have any problems with any other programs.

For some applications that I pin to the taskbar, the icon gets duplicated when an instance of the application is running.    For example, in the screen shot below you see there are two icons for VMWare Player (icons all the way to the right).  The first (left) icon for VMWare Player is the one I pinned to the task bar. The second one (right) is linked to the running instance of VMWare Player.    If I start another instance, then gets grouped with the second icon. For most other programs (like Google Chrome in the screen shot below) the running instances just get grouped with the original pinned icon.    Can I make VMWare Player behave the same way? Why does it behave differently anyway?


So, I'm trying to make a model for a Minecraft mod. When I try to move the legs, they both move at the same time. It has something to do with the mirror. How do I fix this? I tried looking it up, but all the times I've tried none seem to work.

For some reason, when I moved the left leg's bone, the right leg has also moved and the bone of the right leg doesn't control anything at all.  I think this is because I used Mirror to make the model, but I'm not sure I'm a complete beginner.


The instructions I'm looking at (on how to roll over a 401(k) to an IRA) say that I should open a new traditional IRA account.  I have one that I've used for a rollover in the past (it was created to accommodate the rollover).  Is there any reason I can't use this same one for this rollover, or do I really need to open a new traditional IRA for this?

My friend wants to consolidate his various retirement account accumulated over the past 20-30 years to make it easier to manage/track his retirement savings. He doesn't recall immediately all the accounts he currently has (one of the reasons to rollover), but we've determined he has at least the following types of accounts: 401(a), 401(k), 403(b), 457(b), and "something from the city". He's trying to track down all the relevant paperwork for all of the accounts, but we'd like to know what kind of limits he might have to watch out for.   Are there any restrictions on the types of the accounts that can be rolled over? Is there a limit to the number of accounts that can be rolled into a single IRA (whether all at once or over the lifetime of the IRA)? Is there a limit to the number of times accounts can be rolled over (can/should he do 1 or 2 at a time as he gets the paperwork in order, or wait until he has everything sorted out)? Is this a yearly limit or lifetime? Is there a dollar limit on the amount that can be rolled over? Is there a limit to the age of accounts that can be rolled over?   As far as we know, all of the accounts are pre-tax/non-Roth accounts, and that Roth vs. traditional accounts should be rolled over to separate (Roth vs. traditional) IRAs.


so basically i want to put the class "GradeBook", which contains 2 arraylists, inside another class "course". I create a setCourse method to link both class together but when I tried to put in the GradeBook inside a list "gradebooks" inside "course" class, there's a NullPointerException. Why can't I put this class i the list.  public class GradeBook {   private List<Double> assignmentScores;  private List<Double> quizScores;  private Course course;   public GradeBook() {     assignmentScores = new ArrayList<>();     quizScores = new ArrayList<>();  }  public void setCourse(Course course) {     this.course = course;  }  public class Course {  private List<GradeBook> gradeBooks;  public void addGradebook(GradeBook gradebook) {     gradebook.setCourse(this);     gradeBooks.add(gradebook); }


I think a high negative score in a question shows an interest. It could deserve a badge!

Or maybe some other variation of that, like "20 downvotes anywhere within 1 day". Probably it should be bronze regardless.  It seems like there's a  against this badge, but that'd be fine. It's just for fun anyway. :D  Well, maybe it will be an incentive for most not getting that. I don't know.  edit: What about this other perspective - out of over 40 badges, all for "good behavior" none is actually "awarded" for "bad behavior". So, having at least 1 could give us a better idea of how people are behaving in the "bad manner". As for how people would actually react to that, I say that guessing here is pure speculation.


What are the possible ways to send salesforce records to SFTP if we want to send the data in a text file? What tools can we use to connect to SFTP. Any help would be much appreciated.

I have requirement wherein a csv file should generate with some users data and need to place the same file in a SFTP path without using any external tool. Can I have an alternative approach to proceed with the same. A sample code would be much appreciated.


I'm trying to make an extension method like this:  public static T Optional<T>(this T obj) {     return obj != null ? obj : Activator.CreateInstance<T>(); }   However, it fails if there isn't a parameterless constructor for the type.  Is there a way I can get an instance of an object without a parameterless constructor?  NOTE: I don't want to put where T : new() and limit the method to only classes with parameterless constructors.

Take the following class as an example:  class Sometype {     int someValue;      public Sometype(int someValue)     {         this.someValue = someValue;     } }   I then want to create an instance of this type using reflection:  Type t = typeof(Sometype); object o = Activator.CreateInstance(t);   Normally this will work, however because SomeType has not defined a parameterless constructor, the call to Activator.CreateInstance will throw an exception of type MissingMethodException with the message "No parameterless constructor defined for this object." Is there an alternative way to still create an instance of this type? It'd be kinda sucky to add parameterless constructors to all my classes.


Here is my MWE:  \documentclass{scrartcl} \usepackage{beramono} \usepackage[T1]{fontenc} \begin{document} \begin{verbatim} ' only a test \end{verbatim} \end{document}   If I copy the text from the PDF viewer, the following characters are in the clipboard:  ’ only a test   The apostrophe is different. What can I do, that in the PDF I can grab the original input character?

Basically I want  \mint{python}|'banana'|   to produce straight single quotes, rather than the curly ones it normally produces (in pdflatex).


I have a late 2016 MacBook Pro with Touch Bar, and when taking a screenshot, I get the option to choose the location on the Touch Bar.   However since I'm using my computer in clamshell mode, I can't see the Touch Bar, and always want to save my screenshots in a specific folder.  The Touch Bar behaviour seems to override the screenshot location that I have set in com.apple.screencapture:  ~$ defaults read com.apple.screencapture {     location = "/Users/[my_username]/Pictures/screenshots/"; }   Even if the above is set, it always saves to Documents, which I chose on the Touchbar once.  Also if I choose Desktop as the location on the Touch Bar, it's ignored, and it saves in Documents. So it seems to malfunction even when using the Touch Bar.  So is there a "defaults key" (?) that stores the location since the above is ignored, or is there a conflict between the Touch Bar and the default setting that can be fixed?

As a developer, I take a lot of screen captures. I often take screen shots to share with Stack Exchange members in chat.  The problem is my Desktop is so cluttered with screen captures that they're now overlapping! I'd like to save all screenshots in a dedicated folder or directory.  In macOS, how do I change the default location where screen captures are saved?  These are the screen shots taken with CommandShift3 or CommandShift4 keyboard shortcuts.  I would prefer a solution which doesn't require installing any software.


By mistake, I gave a wrong email address to my employer, who is very strict about any changes. My email address was prescottjkn91s23@gmail.com. Instead I wrote prescottjkn91@gmail.com. I will be receiving multiple work related emails from my employer and my job involves a lot of travelling with the consequence that I won't meet my employer for another six weeks.  Is there any way to edit the username or at least a way by which I can send / receive emails only for my employer?

I have a stupidly long email address on Gmail and would like to get it changed, or even just get a new one, but I can't see how. As soon as I log in on Google it knows who I am and signing up for a new email doesn't work.  Is there a way to get my email address changed or get a new one that I can then switch to?  Edit 2 July 2010:  I need to clarify the question because I haven't had an answer to what I want to achieve. I want to change the primary address on my Google account (). When I click the link to edit "Email addresses", the primary email is shown without an option to switch/change it. When I try add a new Gmail email address, it says     "You cannot associate a Gmail address with your Google Account."   I want the primary email address on my Google account to be a shorter Gmail email address so that I can eventually retire the existing email address.


Recently in Windows Explorer, a "Local Disk (F:)" Drive appeared and shows 34.2MB free of 449MB, but when I double click on it, Explorer shows no files on this drive. I don't have any idea what this is and I haven't plugged in any USB drives lately, and I don't have any plugged in now. I scanned it for viruses and it was okay. Windows also keeps notifying me that this drive is low on disk space.  Does anyone have any idea what this drive is?  EDIT: Looks like this issue is since the April 30, 2018 update to Windows 10, as detailed .

How do I hide the System Reserved partition from the Windows Explorer?    On the above screenshot, I want to get rid of System Reserved (D:). How do I do that?  I will never need to access it from there, why would I need the entry then?  PS: I want to hide it, not delete it.


The same question has been asked before, but the answers that I found did not work for me, so I'm asking a new question.  I'm the main user and only sudoer on this computer, and everything works for me.  The second user account on this machine for no reason that I can think of, no longer displays the launcher sidebar or top bar, neither does CTRL + ALT + T work. Icons are normally displayed on the desktop (in most other related questions like this the desktop is blank).  So I've found and tried so far:   rebooting sudo service lightdm restart unity --replace unity --reset-icons apt-get install --reinstall ubuntu-desktop apt-get install --reinstall lightdm remove files under /home/USER/.config/compiz-1/compizconfig starting ccsm from tty to enable unity plugin   unity reset commands return "no display variable set" and "compiz core couldn't open display 0".  When I try to launch unity from tty with DISPLAY=:0 unity I get the following:  Invalid MIT-MAGIC-COOKIE-1 keycompiz (core) - Fatal: couldn't open display :0   Which sounds like it could be relevant?  How to restore desktop panels?

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


Can someone help prove this theorem? Many thanks!  If $p\to0$ and $n\to\infty$ in such a way that $\lim np = \lambda > 0$, then for  $k=0, 1,\dots$: $$\lim_{n\to\infty}\binom nkp^k (1-p)^{n-k}=\frac{\lambda^k}{k!} e^{-\lambda}$$

In "Data Analysis" by D. S. Sivia, there is a derivation of the Poisson distribution, from the binomial distribution.   They argue that the Poisson distribution is the limiting case of the binomial distribution when $M\rightarrow\infty$, where $M$ is the number of trials.  Question 1: How can that argument intuitively be understood?  Question 2: Why is the large-$M$ limit of $\frac{M!}{N!(M-N)!}$ equal to $\frac{M^{N}}{N!}$, where $N$ is the number of successes in $M$ trials? (This step is used in the derivation.)


Having recently discovered templates, I've been trying to get a good grasp on them and came across a usage for them that I'd really like to implement; but having tried multiple things, I keep getting errors.  I'm trying to create a function that can take multiple types of parameters at once in any order.  (I'm using VS 2013.)  What I have right now is an "already defined" error (only when including tem.h in more than one file):  the exact first error (the rest are basically the same just for each test.. overload?):  Error  1   error LNK2005: "void __cdecl test<struct A>(struct A *)" (??$test@UA@@$$$V@@YAXPAUA@@@Z) already defined in main.obj    c:\Users\User\documents\visual studio 2013\Projects\TemplateTest\TemplateTest\foo.obj   TemplateTest   foo is just a .cpp file containing only: #include "tem.h"  tem.h:  #ifndef TEM_H #define TEM_H  struct A {};  struct B {};  #include <iostream>  template<typename First, typename... Rest> void test(First *t, Rest&&... args){     test(t);     test(std::forward<Rest>(args)...); }  template<> void test<A>(A *val){     std::cout << "Handled A" << std::endl; } template<> void test<B>(B *val){     std::cout << "Handled B" << std::endl; }  #endif   main.cpp:  #include <iostream> #include "tem.h"  int main(int argc, char *argv[]){     std::cout << "running test..." << std::endl;     A a;     B b;     test(&a, &b);     return 0; }   What am I missing that is causing this error?  Edit: Making each instance of test inline prevents the error, but I don't think that's really the best solution

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


I proved this problem before by the following theorem. Over PID  Flat iff torsion free. Then, from this fact, we know that M isn't flat as it has torsion element. In the problem we were given hint that to consider the following sequence $0 \rightarrow (t) \rightarrow R$. I am guessing, we then proceed to show that $M \otimes_R (t)$ doesn't inject into $M \otimes_R R$. I couldn't show that this doesn't inject. If someone could help that would be nice.

Let $R = \mathbb{C}[t]$ be a ring of polynomials in variable $t$ with coefficients in the field of complex numbers $\mathbb{C}$ and let $$N = R[x]/(tx-t).$$  I claim that $N$ is not a flat $R$- module. If we consider the exact sequence $$0 \rightarrow(t) \rightarrow R$$ such that the ideal $(t)$ is viewed as an $R$-module.   We know that the above sequence exact iff the map $(t) \rightarrow R$ is injective. Let us assume that N is flat then this means that $N \otimes  (t) \rightarrow N \otimes R$ has to be injective. How do I go from here?   Thanks.


Please help me with appropriate resources to learn about Salesforce Service cloud Sales cloud...Are there any work books ?PLease share the link

Where should I start learning? There are various topics to learn like Objects, Classes, Apex, Visualforce, SOSL, SOQL, Triggers, etc. There are so many options out there to start learning. I couldn't decide what topic to learn first, and then step by step get proficiency in all aspects of Saleforce.


Server: Debian   I am user1, with directory /home/user1/website/logs I want to give a new user, called user2, read access to files located in /home/user1/website/logs without giving user2 access to anything else within user1's home directory and without setting up a shared directory.   How could this be accomplished if possible, or is it impossible?  EDIT: In addition, I need to keep permissions of all files contained in /home/user1/website/logs constrained such that world never has any permissions to it. It needs to just be accessible to the users on the server.

I would like to give read-only access to a user but I want him/her to see only the exact folders I give access. for example he/she shouldn't travel around all the server and browse to all users folders etc. even if he/she only goes up, up, up I want him/her to go to only these specific folders I allow. So firstly how can I let a specific user have access to a specific folder and then would putting symbolic links to his/her home folder would help? So they can go directly to necessary folders but not up or down?


My website was referred and accessed through an unwanted website. Example:  My referrals: Facebook, Twitter, Particular etc.  Receiving referrals from social media sites such as Facebook and Twitter is intended but not from Particular. How can I block unwanted referrals?

We're seeing Google Analytics report a huge amount of hits and large drop rate on some of our pages, but investigating this further reveals more questions than answers.  For instance, one page is reported to have over 1000 hits this month, but in our database (Magento) we only see 6 hits.  When I look into the Apache access log, I do see many GETs for this URL, but they all have a referrer like this:  http://dp.g.doubleclick.net/apps/domainpark/domainpark.cgi?client=dp-oversee17_3ph_xml&channel=001071&hl=en&adtest=off&max_radlink_len=20&r=m&fexp=21404&domain_name=hcartoon.com&optimize_terms=off&terms=Cartoon%2C%20Flash%20Animation%2C%20Caricature%2C%20Cartoon%20Picture%2C%20Free%20Animated%20Ecards%2C%20Cartoon%20Animation%2C%20Funny%20Posters%2C%20Cartoon%20Clip%20Art%2C%20Cartoonist%2C%20Toons%2C%20Cartoonist%2C%20Toons%2C%20Funny%20Picture%2C%20Cartoon%20Posters%2C%20Caricatures%2C%20Cartoonists%2C%20Toon%2C%20Business%20Cartoons&drid=as-drid-  And it goes on...  I'm assuming it is a feeble attempt to DDoS, but that's not the question, I'll save that for a different SE.  Could this be skewing our Google Analytics numbers?  If so, how can we sanitize Google Analytics so that these types of GETs aren't counted?  EDIT: We do not use AdWords.  We do have an AdWords account set up but have never utilized it.  I traced the logged IP addresses to various places outside the U.S. like  Sri Lanka, Taiwan, ...ad nauseam.  EDIT 2: All of the GET requests seem to have a ?gclid= in the URL.  I'm beginning to wonder if there's some black-hat SEO aimed at making us think our metrics are bad so we'll hire one of them.  We do get SEO spam all the time...  Regardless, still looking for a way to filter past Google Analytics data.


I'm having a really unique issue with a local development environment. I currently have a WAMP Stack Running on ZendServer. On my computer, by default, port 80 is occupied, so I am using port 8080, and I'm having no issues with this whatsoever.  This issue first came to my attention when I started with a local WordPress install, and I can view the homepage and access the backend of WordPress with no issues. I can add/edit posts with no issues. I originally set up a vhost to have zr‑www.mywebsite.com:8080 to map into my htdocs folder and that works with no issues.  What then happens is that I go on the home page, then try to go to any page other than the home page (on the front end), and I get a 404 Not Found error. It is an exact clone of the live site, and when I test it on a linux-based LAMP Stack (Ubuntu) it works with no issues.  Any clarification on this would be greatly appreciated.

This is a  about  the use of a *AMPP's stack.    I recently had a talk with some experienced people and they suggested to me not to use a WAMP stack, and instead install apache, mysql and php separately.  I don't understand why they have suggested this, though, so can anyone tell me?  Is there a particular disadvantage of WAMP, or a particular advantage to installing all of them separately?  Since a WAMP stack itself is composed of apache, mysql and php, then what's the difference between using the WAMP stack and installing them all separately?


Currently im facing the problem I need to create an instance of Dictionary with any type of its cases. The types are delivered by the arguments of the method.  I do not simply want to create a dynamic or object type Dictionary, because this faces the user alot of convertion problems by using my library.  I also cannot use a simple constructor, because my method fills the Dictionary with data (that is stored in a file) in real. It's important to create the specific dictionary by Type variables. This is what im thinking of:  public static Dictionary<dynamic, dynamic> createDict(Type type1, Type type2) {     // how to create the dictionary?     // im filling my dictionary with any data ...     return dict; }   Here the user calls my method:  Dictionary<string, int> dict = MyLib.createDict(typeof(string), typeof(int)); // or MyOwnType myInstance = new MyOwnType(); Dictionary<string, MyOwnType> dict = MyLib.createDict(typeof(string), myInstance.GetType());

The title is kind of obscure. What I want to know is if this is possible:  string typeName = <read type name from somwhere>; Type myType = Type.GetType(typeName);  MyGenericClass<myType> myGenericClass = new MyGenericClass<myType>();   Obviously, MyGenericClass is described as:  public class MyGenericClass<T>   Right now, the compiler complains that 'The type or namespace 'myType' could not be found." There has got to be a way to do this.


I am using Windows 7 and a Paste image got stuck on my windows screen which is not going away as shown in the image below. Does anyone know how should I remove it? I don't want to restart my computer every time to get rid of it which I have done many times in the recent past. Please let me know any other solution.

Periodically when I select a menu command, the label or selected option gets "stuck" on screen and won't go away. I can close all open applications, including whichever one I was using when it got stuck, but it still won't go away.   In the screenshot below, I opened an new instance of IE just to show how the label stays on top. The label was not created by this instance of IE.    (I added the circle in MS Paint. That part isn't stuck.)  The label that gets stuck is the first menu command I select in IE. If a label is already stuck, a new one does not get stuck (regardless of which instance(s) of IE are involved). Based on this knowledge, I now just open IE on my secondary monitor, carefully open the context menu so the Properties command is in the bottom corner, and click it. This is not a solution.  The floating label never moves and is transparent to mouse input (if I click it, it's as if I clicked the item behind it).  The label does not go away if I close all running applications. I haven't tried stopping services or closing system tray items like Live Mesh.  The label does go away if I change the screen resolution and then change it back.  Any ideas how I can stop this from happening? It's happened a half dozen times and it's becoming quite disrupting to my work.


If gravity is in reality spacetime geometry why when I drop an object on the surface of the Earth does it fall to the ground? Does spacetime push it?

It is fine to say that for an object flying past a massive object, the spacetime is curved by the massive object, and so the object flying past follows the curved path of the geodesic, so it "appears" to be experiencing gravitational acceleration. Do we also say along with it, that the object flying past in reality exeriences NO attraction force towards the massive object? Is it just following the spacetime geodesic curve while experiencing NO attractive force?  Now come to the other issue: Supposing two objects are at rest relative to each other, ie they are not following any spacetime geodesic. Then why will they experience gravitational attraction towards each other? E.g. why will an apple fall to earth? Why won't it sit there in its original position high above the earth? How does the curvature of spacetime cause it to experience an attraction force towards the earth, and why would we need to exert a force in reverse direction to prevent it from falling? How does the curvature of spacetime cause this?  When the apple was detatched from the branch of the tree, it was stationary, so it did not have to follow any geodesic curve. So we cannot just say that it fell to earth because its geodesic curve passed through the earth. Why did the spacetime curvature cause it to start moving in the first place?


If a pork shoulder is sold from a butcher on Wednesday will it still be good to eat on Sunday? the butcher selling it says it will be but I've heard pork should be consumed with 1-2 days of purchase  Any food safety / quality experts have thoughts on this?

I usually freeze all of my meat unless I plan to use it within one day, but I was just wondering whether I could keep some raw chicken in the fridge until Thursday (three days from now). I wanted to make sure it wouldn't go bad, so I did some searching and it seems that most sites recommend discarding raw poultry .  But the sell-by date on the package is August 6th, which is six days from today. The implication is that if I had boughten this chicken six days later, then it would somehow last in my fridge all the way until August 8th (6+2 days).   Why does the usual food safety advice seem to be suggesting that raw poultry/meat will degrade much more slowly while on grocery store shelves? Are they kept colder there than in conventional refrigerators? Or will my chicken actually be safe to eat for another week?


I installed Ubuntu on my desktop years ago, and decided to add the BunsenLabs repository and install Bunsen desktop there. However there is one little thing: the package also replace the /etc/os-release. My question is how do I restore my os-release and also the lsb-release(which was also modified) back to it's original?  Original OS info: Ubuntu 16.04 64-bit Xenial Xerus  New OS info: BunsenLabs GNU/Linux 8.6 (Hydrogen)  My current os-release  ANSI_COLOR="0;34" BUG_REPORT_URL="https://github.com/BunsenLabs" HOME_URL="https://bunsenlabs.org" ID=bunsenlabs ID_LIKE="debian" NAME="BunsenLabs GNU/Linux" PRETTY_NAME="BunsenLabs GNU/Linux 8.6 (Hydrogen)" SUPPORT_URL="https://forums.bunsenlabs.org" VERSION="8.6 (Hydrogen)" VERSION_ID="8.6"   My current lsb-release  DISTRIB_ID="BunsenLabs" DISTRIB_DESCRIPTION="BunsenLabs GNU/Linux 8.6 (Hydrogen)" DISTRIB_RELEASE="8.6" DISTRIB_CODENAME="bunsen-hydrogen"   Output of apt-cache policy base-files  base-files:   Installed: 9.4ubuntu4.3   Candidate: 9.4ubuntu4.3   Version table:  *** 9.4ubuntu4.3 500         500 http://opensource.xtdv.net/ubuntu xenial-updates/main amd64 Packages         100 /var/lib/dpkg/status      9.4ubuntu4 500         500 http://opensource.xtdv.net/ubuntu xenial/main amd64 Packages

I would like to restore LightDM to its default state, because for some reason /etc/lightdm/unity-greeter.conf is now an empty file.  Deleting /etc/lightdm/unity-greeter.conf and then running sudo apt-get install --reinstall unity-greeter doesn't create a new config file as you might expect.   How can I restore a missing config file?


I have windows 10 + Ubuntu 18.04.4 LTS Dual boot setup I want to upgrade to Ubuntu 20.04.1 LTS from Ubuntu 18.04.4 LTS. I am not sure how to upgrade it. Using a dual-boot, do I need to do any different steps for a successful release-upgrade ? Thankyou

What are the different ways I can use to upgrade Ubuntu from one release to another?


I have installed Ubuntu 16.10 and I tried to start a session with the both options (default and unity8) and after I enter my password and hit enter the screen turns black and then it returns to the login screen again. I can't access the desktop, the system does not leave the login screen.  This same Ubuntu works perfectly when we running it live(directly from the usb drive).  the result of sudo lshw -c video:    *-display                       descrição: VGA compatible controller        produto: C61 [GeForce 6150SE nForce 430]        fabricante: NVIDIA Corporation        ID físico: d        informações do barramento: pci@0000:00:0d.0        versão: a2        largura: 64 bits        clock: 66MHz        capacidades: pm msi vga_controller bus_master cap_list rom        configuração: driver=nouveau latency=0        recursos: irq:22 memória:fc000000-fcffffff memória:d0000000-dfffffff memória:fb000000-fbffffff memória:c0000-dffff

My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M


I have used this site for many years and personally have had my Stack Overflow account deleted twice. During the times I did/do not have an account, I'm more of a lurker. However one of the things that has irked me is just how easy it is to rack up accounts on the Stack Exchange network. While I understand that ease of registration and network integration is one of the goals of the website, the amount of time it takes to create an account (maybe a few clicks) is disproportionately less than the amount of time it takes to delete an account.  The question  seems to suggest the only way to delete all of the accounts is to go to each site, fill out the request form, and follow the procedure. This is (IMO) simply ridiculous as I don't want to follow the steps (which IIRC waiting for support to contact you, doing an activity to confirm your identity, and e-mailing them back) for every account.  The fact that I may continue to "use" the site (visit, lurk whatever) does not imply I want an account or want it to be easy to make an account, because then I'm back to square one. I'm not going to lie when I say this site is addicting and I find it depressing how high the barrier is to kick the addiction.  I am not criticizing the individual deletion procedure, but merely asking why there's a lack of a network-wide procedure. It smells like [citation needed] to me. Is there an official explanation for this or a compelling argument for why this is a good idea?

The current process for self-deletion of a user account has several problematic aspects, both in the process itself and in the end result. Some of these issues are:   The process requires manual intervention of a mod or SE employee, leading to delays and sometimes mistakes. It is more complicated than it has to be, which can lead to the impression that SE is imposing some rather arbitrary-looking restrictions and steps one has to take. This can give the impression that the user isn't really in control of his private data at SE. It is irreversible once the account is deleted, although an account can be partially reconstructed with a lot of manual effort from an SE developer. There is no real protection against mod/SE employee errors, if an account is deleted in error, there is no easy way to undo the damage. Because it is manual, it consumes the time of SE employees that have to deal with it  (unless  is used), removing useful voting information and annoying users that lose reputation that way.   I'm proposing an alternative way of handling self-deletion that would be automated, and also reversible to some extent, while still being pretty much a hard-delete (and not a soft-delete that would be problematic with respect to user privacy). The process would work roughly like this:   The user clicks a "delete profile" button in his profile. There should be a way to indicate if you want to delete all profiles on all SE sites, only on this site and a way to select multiple sites from a list where the profile should be deleted. It is verified that the user has true access to the account in some way (confirmation mail?) and not just someone that found the unlocked computer of the user. A countdown until deletion is started (I'd go with 48h, but that could be different). The timer shouldn't be too long, but long enough to correct mistakes and leave users a bit of time to reconsider. Alternative options would be to enable users to override the countdown if they really want to nuke their account immediately. Another option would be to soft-delete the account immediately, and make the countdown only for hard-deletion of the user data. Upon deletion, the posts of the user and his votes are transferred to a newly created blank account, the original account itself is hard-deleted with all the remaining data it contains. The dummy account that holds the user's data should be flagged in some way as deleted, so that the profile links will be disabled, the profile won't be accessible and it won't appear in any user lists.  The user receives a private code that can be used to claim ownership of the account. Other ways are not possible as all private information is removed about the account. This allows for an automatic way of reclaiming most of the important parts of a deleted account. The ability to restore a deleted account might have to be somewhat restricted to avoid misusing it to get rid of the account history. It is more meant as an additional safeguard so that account reconstruction is more easily possible in rare cases. Such additional safeguards might be necessary as the deletion itself would be automatic and without oversight from SE or moderators.   I personally think that the information which posts and votes were connected to a (now anonymized) account is not sensitive enough that it would have to be removed on account deletion. My idea is that this would be close enough to a hard-delete that it satisfies any privacy concerns, but still allow reassociation of posts with a recovered account. The partial reversibility would alleviate concerns about removing the manual oversight by mods and SE employees over the account deletion process.


In Quantum Mechanics - Concepts and Applications by Zettili, he states that an ideal blackbody can emit light across the entire spectrum. Why is this? In other words, what is the physical process that could cause this phenomena?

The  (unlike the quantized emission seen from atomic spectra), is continuous over all frequencies.  Many objects approximate ideal blackbodies and have radiation curves very similar in shape and continuity to that of an ideal black-body (often minus some emission and absorption lines from the atoms in an object, such as radiation curves seen from stars).  I am wondering what exactly gives rise to a basically continuous black-body radiation curve in real objects? Since atomic energy states are quantized, it seems real life black-body curves would have some degree of measurable quantization to them (or perhaps the degree of quantization is so small the radiation curves look continuous).


I can't save anything, I've desoldered the CMOS battery and it won't reset, I can't reset to defaults, nothing saves. USB booting doesn't work, presumably because Secure Boot is on and the option to clear it is grayed out (and the BIOS won't save anyways)  What happened? When I go in the boot menu, there's always Ubuntu as 1st choice and it's pretty annoying. I removed the HDD but the entry still stays there, and I've never encountered something like this before.  The laptop is an Acer Aspire E1-510, and the BIOS worked fine before I tried Ubuntu on it.

I'm considering to upgrade my PC to Ubuntu v17.10, but I'm afraid because there's a BIOS issue has been confirmed for several different lines of Lenovo laptops also the reports of it affecting a few Acer, Toshiba and Dell laptops.  Should I upgrade or not? Also I can't download the Latest Ubuntu 17.10 ISO, the official website download link is currently discouraged.


I have seen some classes in my University labeled as an "Inference class" and others as "Machine learning" classes, but I was not sure if appreciated the core difference between these two labelings?   I normally think of machine learning as the study of systems/algorithms that are able tp extract information from data. It uses techiniques from a broad list subjects, like statistics, computer science, optimization, etc. However, I was not sure how statistical inference differed from Machine Learning.  Thanks for the help in advance! :)

Last year, I read a blog post from  entitled  that discussed some of the differences between the two fields.  :  Simon Blomberg:      From R's fortunes   package: To paraphrase provocatively,   'machine learning is statistics minus   any checking of models and   assumptions'.   -- Brian D. Ripley (about the difference between machine learning   and statistics) useR! 2004, Vienna   (May 2004) :-) Season's Greetings!   Andrew Gelman:     In that case, maybe we should get rid   of checking of models and assumptions   more often. Then maybe we'd be able to   solve some of the problems that the   machine learning people can solve but   we can't!   There was also the  by Leo Breiman in 2001 which argued that statisticians rely too heavily on data modeling, and that machine learning techniques are making progress by instead relying on the predictive accuracy of models.  Has the statistics field changed over the last decade in response to these critiques?  Do the two cultures still exist or has statistics grown to embrace machine learning techniques such as neural networks and support vector machines?


I need help with the proof of this number theory question. $a|b$ means that $a$ divides $ b$, for example $2|10$. At first, I tried to use algebraic identities and converted $a^3 + 1$ to $(a+1)(a^2 - a + 1)$ and same for the other one, after that I tried to combine the two equations, but I got no where.

Prove that there are no integers $a,b \gt 2$ such that  $a^2{\mid}(b^3 + 1)$ and $b^2{\mid}(a^3 + 1)$.


Currently, I am using the following code to make objects stick to other gameObjects.  rb = GetComponent<Rigidbody>(); rb.isKinematic = true; gameObject.transform.SetParent (col.gameObject.transform);   It works perfectly, but it causes many other problems... For example, after colliding, it can no longer detect collisions... Is there an alternative to this code (which makes a gameObject stick to another one after collision)?

How can I make a gameObject "stick" to another gameObject after it has collided with it? Right now the gameObject just passes through! [C#]


I already have an html page that includes a number of Javascript files. Let's assume that these JS files send HTTP requests using AJAX. I want to add a new Javascript file (without changing any existing JS files). This file will have to act as some kind of Event Listener. It will have to "listen" for an HTTP request (let's say GET, but it doesn't really matter) that will be sent by the web page, and once it "monitors" such a request, it will print the query of the request to console.   For example,   function listen_to_get_request(params, function callback(req) {      console.log(req.query); }   I also read this post:   and unfortunately it doesn't provide me any code that takes care of this issue.

Is it possible to detect the HTTP request method (e.g. GET or POST) of a page from JavaScript?  If so, how?


I was wondering if there was a way to set a table name in SQL to be a variable.  I have a list of queries that hit the same table and didn't want to have to update them all so was hoping to declare the table name as a value.     Below is an example:  what I wanted to do is declare the table name once and use the @tablename in the queries shown below.    /*at the field level */ SELECT ( SELECT COUNT(DISTINCT PROVIDER_TIN) AS PROVIDER_TIN from [Coloma].[dbo].Aetna_Medicare_2019  a WHERE PROVIDER_TIN = '' OR PROVIDER_TIN IS NULL ) AS NULL_TINS,  ( SELECT COUNT(DISTINCT PROVIDER_ID) AS PROVIDER_ID from [Coloma].[dbo].Aetna_Medicare_2019  a WHERE PROVIDER_ID = '' OR PROVIDER_ID IS NULL ) AS NULL_IDS

My scenario is I have a thick client side app using a SQL DB. The use of the app is divided into 10 "sites" mostly by Geography but some by Usage. I've written an SP to archive selected data out of the DB and put it elsewhere as the DBs are growing to nearly 500GB in size at this point. Further whilst most servers host one application DB there is one server (and instance) that hosts 3 DBs.  My dilemma is I want to write code that is the same everytime. Ideally I would write something like  declare @dbname varchar(20) set @dbname = 'Archive' + DB_NAME(DB_ID())  INSERT INTO @dbname.dbo.ArchiveTable (ID, DATA) SELECT (ID, DATA) from TheData WHERE Archive = 1   That way I can have the same SP installed on each server, any bug/feature fixes doesn't need me to manually type up 10 different SPs to install.  In the real world I'm also limited by SQL2000 however I'd be interested to hear in ideas using SQL2000 and/or SQL2008R2. The servers are a mixture of both.  As I understand it Synonyms wouldn't help as on the instance with 3 DBs I'd still end up with each DB having it's own copy of the SP with it's own hard coded definition of which named synonym to use.  I also don't feel dynamic SQL statements would be a good fit. There's more to it than the example snippet above and I use table variables to marshal all the work to be done- so that would be out of scope for all the other statements I need to work with.


I've come to find a love for UI design, and I really do enjoy it more than most other aspects of the Graphic Design field. But an issue I have encountered is designing for responsiveness.   I know the old standard used to be to use the 960 grid system, but I feel as if this is not nearly as applicable today due to the requirements that go into responsive design.  Is there a standard when it comes to responsive and adaptive design, or do you simply design for separate sizes individually, without any standard adaptation?

How do you exactly create a very responsive web design? Do you create application for your website to be responsive when using mobile and/or tablets?


I'm trying to solve the following analysis problem and I've developed a proof, I'm just not entirely sure if it's valid or not.   Let $\{a_n\}_n$ be a sequence such that $|a_n -a_{n+1}|\to 0$. Must $\{a_n\}_n$ converge? If so prove it, and if not, find a counterexample.  Proof:   Let $\epsilon > 0$. Since $|a_n -a_{n+1}| \to 0$, there exists $N\in \Bbb R$ such that$|a_n-a_{n+1}| \lt \frac {\epsilon}{m+n}$for all $n > N$. Then, for all $m,n > N$, we have      $$|a_m - a_n|= |a_m - a_{m-1} + a_{m-1} - a_{m-2} + ... + a_{n+1} - a_{n}| $$ $$\le |a_m - a_{m-1}| + |a_{m-1} - a_{m-2}|  + ... + |a_{n+1} - a_n|$$ $$ = \sum_{n}^{m - 1}{|a_{i+1}-a_{i}|} = \sum_{n}^{m - 1}{|a_{i}-a_{i+1}|}$$ $$ \lt \sum_n^{m-1} {\frac {\epsilon}{m+n}} = \frac{\epsilon\;(m+n)}{m+n}=\epsilon.$$ Therefore, the sequence is Cauchy and converges. $\Box$  Any help with checking/improving my proof would be greatly appreciated. Thank you!

I am looking for an example of a sequence which shows that, $a_{n+1} - a_n \to 0$ as $n \to \infty$ does not imply that sequence $a_n$ converges. I have a feeling that the sequence should be an oscillatory one but I am unable to think of an example.


I have installed an app called myTv+ () for Samsung A7 and it worked fine. I tried to install it on the Android TV box (MX9 Pro 4K) but it's simply not working, just getting "Error Code: [100]". I contacted the developer he said this app is designed only for the smartphone and "Error Code: [100]" means that your Android is rooted. I noticed SuperSU on my Android TV box, I went for a full unrooting, yet the app still shows "Error Code: [100]". Is there any way I can force the app to work with the Android TV box?

I have installed an IP TV app, myTv+ () on my Huawei smartphone and it worked fine. I tried to install it on the Android TV box (MXQ Pro 4K), but it's simply not working, just getting error code 101. It appears when running the app. The install just goes smoothly, but the code appears on the splash screen. I contacted the developer and he said this app is designed only for the smartphone. Is there any way I can force the app to work with the Android TV box?


Let $(E,\leq)$ a partially ordered set. Zorn lemma says that if all chain of $E$ has a supremum, then $E$ has a maximal element.   So if I consider, $\Big((0,1),\leq \Big)$, it has no maximal element but all chain is upper bounded by $1$, so it doesn't work here, no ?

Consider the real interval $[0,1)$, this is partially ordered set (totally ordered actually). This set has a upper bound like $1$, and according to Zorn's Lemma each partially ordered set with a upper bound should have at least one maximal element. However, in this set there is no maximal element, i.e., element that is greater than every element of the set because you can be as close as to $1$. I am should I don't understand Zorn's Lemma. Please Help!!


I am an international student who started my PhD program in chemistry at an R1 university in the US, at the beginning of Fall 2019. As I credited graduate level courses in Physics like Mathematical Physics, Quantum Mechanics, Quantum Optics etc., I realized that I would rather see myself getting a PhD in Physics than in Chemistry. But, COVID-19 made it impossible for me to transition into the physics program at my university. Therefore, I ended up taking summer research credits enough to graduate with an MS in Chemistry. What are the chances of getting into the graduate program in Physics again if I apply this Fall for starting next Fall?

When applying to a PhD program in the US, how does the admissions process work? If an applicant is weak in a particular area, is it possible to offset that by being strong in a different area?  Note that this question originated from this . Please feel free to edit the question to improve it.


I have a series (in reality I have several series) of 1s and 0s (success and failures) and an "estimated" success-probability as well as the actual success-rate (I can count the 1s in my set).  I want to see if there is any correlation between if the previous outcome was a success and the success of the next outcome (also if the outcome have any affect on the outcome of the lets say next 3 outcomes).  I've tried asking multiple times here but it seems I am asking the wrong question because no one is answering me but instead tells me to "look at research" or that "I am just stupid".  Please, anyone have any ideas how I would go about finding any dependence between the outcomes?  Any ideas are welcome but no "This is a well studied subject please read this" as I have most likely all ready read it and still cant understand how to go about it.  Ive looked into auto-correlation but honestly cant grasp how to apply it to my problem.  Thank you in advance

I have a large dataset of tennis-points (who served and if they won etc).  Now I would like to check if the points have any correlation with each other (does winning/losing the previous point affect the current or the one after this?).  I also have an "estimate" of each players serve-winning probability as well as his "actual" serve-winning probability in the game (calculated from the dataset).  Ive tried looking into autocorrelation but I honestly dont know where to start. Does anyone have any idea how to test if Point X have any effect on the outcome of Point X+1?  Any help is greatly appreciated  PS. I tried asking a similar question describing how I thought and the only answer I get was "You are lacking fundamental understanding about probability-theory", hence this time I havent included any of my own thought-process, but feel free to ask for more info if I have excluded something important DS.


How do I prove that this set is convex? $S_2 = \{(x_1, x_2 ) : x_1x_2 ≥ 4, x_1 > 0, x_2 > 0\}$ I failed to prove that with {tx1 + (1 − t)x2 : 0 ≤ t ≤ 1}

Trying to show that the set $S = \{(x_1,x_2):x_1x_2\geq4,x_1>0,x_2>0\}$ is convex. I tried proving by definition, let $x=(x_1,x_2)$ and $y=(y_1,y_2)$ and $\lambda\in[0,1]$ We want to show that $\lambda x + (1-\lambda)y \in S$ for $\lambda=1$ and $\lambda=0$ the answer is trivial. for $\lambda \in (0,1)$ I got a bit stuck What I tried was $\lambda x + (1-\lambda)y = \lambda(x_1,x_2) + (1 - \lambda)(y_1,y_2) = \lambda(x_1,x_2) - \lambda(y_1,y_2) + (y_1,y_2) = (\lambda x_1 - \lambda y_1 + y_1, \lambda x_2 - \lambda y_2 + y_2)$ So now if we can prove that $(\lambda x_1 - \lambda y_1 + y_1)\times(\lambda x_2 - \lambda y_2 + \lambda y_2) \geq 4$ we are done. I got stuck here, I tried looking for a way with the mean inequality but with no success. I think I am way off base, perhaps Jensen's inequality or something in that domain might be what I am looking for.


I made a non-refundable booking on booking.com earlier today and was told that I would be paying on the day in the hotel. However I just received an email telling me that my credit card was invalid and if I did not update my credit card in 24 hours I would lose my booking.   I have no way to get money onto this card within 24 hours as I was not anticipating having to pay anything until the day, can they still charge me the full amount if THEY cancel my booking if I don't update my details? This has quite frankly annoyed me and I am considering booking elsewhere now so I wouldn't be upset about losing the booking if I knew I wouldn't be charged.

I've booked 2 hotel rooms in Hong Kong just today and linked it to an empty debit card as I was expecting to pay only when I reach the hotel. However, I received an email saying that my credit card (I used a debit card) is invalid and I have to solve this problem within 24 hours.  There is no way that I can get some money into the card within that 24 hours limit. The rooms I booked were 'no cancellations' meaning I have to cover the full cost if I cancel the booking. Will they charge me any money if I can't solve the issues with my debit card?  Also I would like to ask, is the booking already confirmed or is it still waiting for the valid card? Can I just not do anything to it and wait for them to cancel the booking? Are they able to charge me if I do that?


I am planning to create a new user in Disco Dingo, How do you create a new user in Disco Dingo?                                                                  Any risks involved? How to delete the account?                                                                                What are the differences from the admin account-no power on sudo.

What is the different between an Normal user account and the Admin account in Ubuntu?  You must always enter your password if you want do something. Can you give a Normal account  "limitations" to do not install or remove anything or to not open any program? Can you also "hide/deactive" the terminal and console for a normal user?


I had a serious problem during my Ubuntu 14.04 installation. I had a Windows 7 partition and a separate partition to install Ubuntu, where I already had Ubuntu 12.04 installed.   During the Ubuntu installation, I was asked if I wanted to either "Upgrade Ubuntu" or install it fresh new. When I chose to install it (which would delete the existing Linux installation along with all its files), I thought it would delete files only on the existing linux partition. However, for my surprise, it deleted all the existing partitions and created a single one for the new Linux install.  I had some backup of my data, but some very important documents were lost due to this repartitioning and formatting of my hard drive.  I know that there was a way to avoid this during installation, but it did not seem very intuitive to me. In previous versions it was easier to install Ubuntu alongside with Windows without risking all my data.  So, what I want to know is... Is there a way to recover my data, even if the partition has been deleted and reformatted? The partition I want to recover data from was NTFS.  I am aware that I may not be able to recover everything, but I want to try to recover as much data as I can. I read testdisk might be useful... but I don't know how it could be used in recovering files from a partition that has already been formatted.

I have a Toshiba satellite A-200 laptop with a Vista OS on it with 4 NTFS partitions  (C:) Vista  (D:) Entertainment  (E:) Work  (F:) Sources   and I wanted to start using Ubuntu instead. So I tried it first from the live CD and everything was OK and all the partitions were shown and working and so I decided to install Ubuntu to replace Vista on the (C:) drive. After I did that I can no longer find my folders and files on the (D:), (E:), (F:) partitions and the only file system that is shown is one 198 GB although my HDD is 320 GB.  I can't access the lost data on the remaining 120 GB which I hope is still there and not totally lost  I am now working from the live CD but I am unable to install testdisk. Can I recover the Vista partitions by the product recovery CD to get my laptop back to the factory settings? Can I recover the NTFS partitions using a recovery program for Windows or will that make the problem worse?   I need these data badly as I don't have a backup for them.


I have a 6/7 year old Dell Inspiron 1501 laptop which came with: 1GB DDR RAM, 120GB HDD, (Dual core?) AMD Turion Processor, Windows Vista Home Premium which now boots extremely slowly.  I'd prefer to replace it with a light/full version of Ubuntu which runs fairly well. Any suggestions on which version of Ubuntu to install on it, and any GUI options (Kubuntu/Lubuntu) which would make it perform faster.  I would like to mention that I do use Scientific Linux and Ubuntu 12.04 and 13.10 on a daily basis, but I have no knowledge of past versions and how well they would run on slower laptops.  Thank you in advance for any help and suggestions.

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I am somewhat confused as to how to approach  the following issue.  In my thesis is have a lot of text and want to group this is using line breaks and paragraphs.  Up to now I have been using \\ to end a line and forcibly start a new line as such:  some text that is the end of the line want.\\ End than the next line starts at the line below. etc   Nothing to worry about.  However if i would like to have some white space ending a paragraph is use the \\ followed by a white line in my 'code'.  This produces the desired result, however i have lot of underfull vboxes when compiling. A. is this related to my use of the \\? B. What is the proper way to end/start a paragraph?  I have read about the \par command but i am not certain how to apply this...  I use the report documentclass and are going towards a 200 page document so i would like to get this right.  I tried to find the answer in existing posts but was not successful.

What is the difference between \par, \newline, \\ and blank lines? When should I use which one?


First, if this is the wrong place then I have to say that someone needs to fix the links in the footer of Careers site (this is how I ended here).  Anyway, I was looking for "C" jobs, and found lots of unrelated jobs instead, and lots I mean LOTS. Thus the site is impossible to use.  I want a C job, not C++, Obj-C, or even things that are not even related at all (I got returns for perl, python, mysql, and lots of other random stuff).  So, Careers site should have a way to search only what you want, maybe use SO search system, where if you type [c] it will search ONLY, and ONLY REALLY ONLY the tag C (instead of random words in the description that contains the character C).

I am attempting to search jobs by tag on StackOverflow Careers. On SO, this is done using square brackets, but that is simply doing a keyword search, and I still get results that don't have the tag I am looking for.  For example, when I search for the keyword "android", I get this:        which is the same as when I search for the keyword "[android]":        Is there a format I can use to search jobs by tag? If not, I believe this would be a nice feature (seems intuitive for the Stack Exchange invite-only job site).


I came across this question in Stephen Abbott's "Understanding Analysis" 2nd edition.  Let $f: [0,1] \rightarrow \mathbb{R}$ be continuous with $f(0) = f(1)$.  a) Show that there must exist $x,y \in [0,1]$ satisfying $|x-y| = 1/2$ and $f(x)=f(y)$.  b) Show that for each $n \in \mathbb{N}$ there exist $x_n , y_n \in [0,1]$ with $|x_n-y_n|=1/n$ and $f(x_n)=f(y_n)$.  For part a), I thought that I would start by splitting the interval $[0,1]$ into two halves and asserting that if $f(1/2)=c\neq 0$ then there must be some $x \in [0, 1/2]$ and $y \in [1/2,1]$ such that $f(x)=f(y)$ (by the Intermediate Value Theorem) but that did not lead me anywhere.

Let $f \in C[0,1]$ and $f(0)=f(1)$.   How do we prove $\exists a \in [0,1/2]$ such that $f(a)=f(a+1/2)$?  In fact, for every positive integer $n$, there is some $a$, such that $f(a) = f(a+\frac{1}{n})$.  For any other non-zero real $r$ (i.e not of the form $\frac{1}{n}$), there is a continuous function $f \in C[0,1]$, such that $f(0) = f(1)$ and $f(a) \neq f(a+r)$ for any $a$.  This is called the Universal Chord Theorem and is due to Paul Levy.  Note: the accepted answer answers only the first question, so please read the other answers too, and also this answer by Arturo to a different question:     This is being repurposed in an effort to cut down on duplicates, see here: .  and here: .


I created the hair using a curve. I can attach the hairstyle to the hair without weights, but the hair in the ears does not work even when combined with the body. When I try to connect them, I write from above that no solution has been found for one or more bones. I select hair and bones, press ctrl p and select automatic weights. Then I get the error Bone Heat Weighing: Could not find a solution for one or more bones. "The same thing happens even if I combine my hair and body.

Here is the .  Picture:   It's nothing special but I cant figure out why I get problems rigging this mesh. It would be important and a great Help! Thanks for reading and I know there are a lot of guides answering this question but I tried all and it doesn't seem to work.


When I send a text with letters (in English) and Emoji's to a friend from my Galaxy S5,  she receives text that looks all Chinese. She has a Galaxy S7 and we are both on AT&T

My wife is getting some weird text messages as replies in middle of conversations with her friends. The messages are blocks of Chinese characters. She gets these in the stock messaging app from friends that use Samsung phones and iPhones. She is using a Nexus 5X on AT&T. (N.B. Other users have asked the same question about the Samsung Galaxy S7, so it's not a phone-specific issue.)  Here is a screencap from today from an iPhone user, and translating the text does not make sense (though I did image translation): :      (Click to see the image in full size)    Here is one from a Samsung phone and from their end:       (Click to see the image in full size)  Does anyone know why this is happening? Is it some weird thing when someone with a weird texting app replies with some emoji/GIF/image?


Given that $ x, y, z \in \mathbb{R}^{+}$, prove or disprove the   inequality      $$ \dfrac{xy}{z} + \dfrac{yz}{x} + \dfrac{zx}{y} \ge x + y + z $$   I have rearranged the above to:  $$ x^2y(y - z) + y^2z(z - x) + z^2x(x - y) \ge 0 \\ \text{and, } \dfrac{1}{x^2} + \dfrac{1}{y^2} + \dfrac{1}{z^2} \ge \dfrac{1}{xy} + \dfrac{1}{xz} + \dfrac{1}{yz} $$ What now? I thought of making use of the arithmetic and geometric mean properties:  $$ \dfrac{x^2 + y^2 + z^2}{3} \ge \sqrt[3]{(xyz)^2} \\ \text{and, } \dfrac{x + y + z}{3} \ge \sqrt[3]{xyz} $$ but I am not sure how, or whether that'd help me at all.

Well, I'm preparing for an undergrad competition that is held in April and because of that I've been trying to solve the inequalities I find on the internet. I found this problem: $$\displaystyle  \frac{xy}{z} + \frac{xz}{y} + \frac{yz}{x} \geq x+y+z \text{ for all }  x,y,z \in \mathbb{R^+}$$  It's easy to show that this inequality holds by applying the AM-GM inequality three times like the following:  $$ \frac{xy}{z} + \frac{xz}{y} \geq 2 \sqrt{\frac{xy}{z} \cdot\frac{xz}{y}} = 2x$$ $$ \frac{xy}{z} + \frac{yz}{x} \geq 2 \sqrt{\frac{xy}{z} \cdot\frac{yz}{x}} = 2y$$ $$ \frac{zy}{x} + \frac{xz}{y} \geq 2 \sqrt{\frac{zy}{x} \cdot\frac{xz}{y}} = 2z$$  Then summing these inequalities and canceling a factor of $2$ at the end will give us the desired inequality.  But if you look at the problem from another point of view, if we substitute $x'=\lambda x$, $y'=\lambda y$ and $z' = \lambda z$ the inequality stays the same. So, I was wondering if there could be another way of solving this inequality and the inequalities that are homogenous like this one in a more systematic way that could be applied to a broader range of problems.  I decided to add a constraint $x^2+y^2+z^2=1$ to the problem because the inequality in the problem could be thought of as a function in the three variables $x,y,z$ in $\mathbb{R}^3$. So, it's sufficient to study this function on the unit sphere because homogeneity allows us to define it for other points of $\mathbb{R}^3$, but I have no idea how this could lead me anywhere.


I have the following Json structure on my project:  "disputas": [     {       id: "",       tipo_negociacao: "",       historico:[{          fl_usuario: "",          created_at: "",          updated_at: "",          created_by: null,          updated_by: null,          texto: "",       }]     } ]   I want to add a new index of historico when I click on a button but don't know how to do it, I want it to look like this:   "disputas": [         {           id: "",           tipo_negociacao: "",           historico:[{              fl_usuario: "",              created_at: "",              updated_at: "",              created_by: null,              updated_by: null,              texto: "",           },            {              fl_usuario: "",              created_at: "",              updated_at: "",              created_by: null,              updated_by: null,              texto: "",           }         ]     } ]   So far, I've done something like this (function that the button calls):       recusaProposta() {         this.disputa.historico[this.i].texto = "something";            this.i++; }   now, since i starts on 0 this works on the first time I click on the button, but if I click on it again I'll get this error:     Cannot set property 'texto' of undefined   Can someone help me? thanks

How do I append an object (such as a string or number) to an array in JavaScript?


How can I create a graph of acceleration and speed like the one in the picture. Knowing that they are each other's consequence?    \documentclass{article} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}               \end{tikzpicture} \end{document}

How can I make these three graphs that are each other's consequence ?   For the first and seconde I wrote:  \begin{tikzpicture}[baseline=(current bounding box.north)] \begin{axis}[hide axis,width=0.4\textwidth,clip=false] \addplot[samples=201,domain=-3.75:-3.25,blue] {-4*(x + 3.5)^(2) + 1.5}; \draw[draw=gray!30,latex-latex] (axis cs: -3.5, 1.55) node[below right] {$y$} -- (axis cs: -3.5, 1.25); \draw[draw=gray!30,latex-latex] (axis cs: -3.85, 1.35) -- (axis cs: -3.15, 1.35) node[below right] {$x$}; \end{axis} \end{tikzpicture}   For the third I wrote this code:  \begin{tikzpicture} \begin{loglogaxis}[clickable coords code={%     \pgfmathprintnumberto[verbatim,precision=1]%         {\thisrow{error}}%         \error%     \pgfmathprintnumberto[verbatim,frac]%         {\thisrow{frac}}%         \fraccomp%     \edef\pgfplotsretval{error \error, R=\fraccomp}% }]% \addplot table[x=dof,y=error] { level  dof     error           frac       1      4       2.50000000e-01  0.5         2      16      6.25000000e-02  0.75       3      64      1.56250000e-02  0.1         4      256     3.90625000e-03  0.2          5      1024    9.76562500e-04  0.5         6      4096    2.44140625e-04  0.8         7      16384   6.10351562e-05  0.125         8      65536   1.52587891e-05  0.725 9      262144  3.81469727e-06  0.625 10     1048576 9.53674316e-07  1 };  \end{loglogaxis} \end{tikzpicture}


I'm facing a really stupid and infuriating problem, I was following a video on how to make a roguelike, I decided to stop after knowing how to print a level to the screen and actually start coding, then I got multiple errors on seamingly perfect code, I blammed the constructors so I decided to make a new project on visual studio to test the most stupid case, one main fuction, one clase with one constructor that does nothing, and I leaved all the work of making the class and the constructor to visual studio, I still got the goddammned issue, here's the error on that simplified version of the code, I would show the rogue like code but I would have to translate to english al the errors myself, and most of them have nothing to do with the actual error, because mostly they're complaining about missing ; in places where either there shouldn't be a ; or there alredy is one.  here's the code     main.cpp:     #include "stdafx.h"      int main()     {     return 0;     }     test.h     #include "stdafx.h"      class test     {     public:     test();     };     test.cpp     #include "test.h"     #include "stdafx.h"      test::test(){     }   yet with that simple auto-generated code, visual studio still complaints and gives me this error messages  c4430 missing type specifier - int assumed. Note: C++ does not support default-int  c2653 'test' : is not a class or namespace name  'test' : function should return a value; 'void' return type assumed  what should I do?

As usual, when my brain's messing with something I can't figure out myself, I come to you guys for help :)  This time I've been wondering why stdafx.h works the way it does? To my understanding it does 2 things:   Includes standard headers which we might (?) use and which are rarely changed Work as a compiler-bookmark for when code is no longer precompiled.   Now, these 2 things seems like two very different tasks to me, and I wonder why they didn't do two seperate steps to take care of them? To me it seems reasonable to have a #pragma-command do the bookmarking stuff and to optionally have a header-file a long the lines of windows.h to do the including of often-used headers... Which brings me to my next point: Why are we forced to include often-used headers through stdafx.h? Personally, I'm not aware of any often used headers I use that I'm not already doing my own includes for - but maybe these headers are necessary for .dll generation?  Thx in advance


See  where I replaced the link with a footnote, referring to how to find the link on a different SE (where I found it).  The name of the page, being a Wiki, is taken from the page’s title. The first character in the name triggered an error accusing me of posting spam.  I don’t appreciate the allegation.  What’s wrong with that character?  I would suggest that you be more intelligent than disallowing all use of a specific letter!

This issue occurs when I attempt to post the Chinese characters for the novel "Water Margin" 《水浒传》 as a quote on Mythology SE. The error occurs even if a single character 水 is posted. The question referred to is .   However, this bug does not seem to occur on Meta SE, so it doesn't appear to be a SE-wide bug, but one that is confined to Mythology SE (and possibly other sites).   An image is attached of the error:


"I don't think anybody saw it coming."   I assume that this sentence means that the speaker thinks nobody saw it coming, but can't this pattern "I don't think anybody X" be took as "I think that not everybody X (but I think some X,)" in some context?   In other words, do you always take the example sentence I quoted from  as "I think nobody saw it coming," not as "I think not everybody saw it coming, but I believe some did at least?"

I don't think you understood me. / I think you misunderstood me.    Do these senteces mean the same thing? If not, what's the difference?  Edit: I just realized that I asked something different from what I originally wanted. So I am also interested in the following comparison:     I don't think you understand me. / I think you don't understand me.


I am trying to prove that $\forall n \in N, \exists p \in N$, $p>n$ $\wedge$ $(prime(p) \wedge p = 2mod3)$ using the definitions below:    I genuinely have no idea where to start and how to go about this proof.  I would really appreciate it if someone could explain to how prove the statement.

There should be infinitely many primes of the form $5+6n$. How do you prove it? The same should be true for $7+6n$.


I have a button with attributes data-url and data-parameter and need to post that to controller. Thing is, that controller will return a redirect, so $.post not really helpful here, I'm thinking about creating form on the fly and submitting it. I think that is quite common task, but I couldn't find any shortcut on jQuery to do this, what would be the shortest/best way to do it?

I'm trying to direct a browser to a different page. If I wanted a GET request, I might say  document.location.href = 'http://example.com/q=a';   But the resource I'm trying to access won't respond properly unless I use a POST request. If this were not dynamically generated, I might use the HTML  <form action="http://example.com/" method="POST">   <input type="hidden" name="q" value="a"> </form>   Then I would just submit the form from the DOM.  But really I would like JavaScript code that allows me to say  post_to_url('http://example.com/', {'q':'a'});   What's the best cross browser implementation?  Edit   I'm sorry I was not clear. I need a solution that changes the location of the browser, just like submitting a form. If this is possible with , it is not obvious. And this should not be asynchronous, nor use XML, so Ajax is not the answer.


Which sentence is correct and why?         Could you help the carnivore cut his meat?   Could you help the carnivore to cut his meat?

I wrote:      I will help you to acquire Russian.    A native English speaker corrected me saying that 'to' is unnecessary here. Is it correct to say      "I will help you acquire Russian"


I'm writing a help document for an application and I'm unsure of the correct grammar for the following statement:     A confirmation dialog will then appear showing the number of items that will be modified by the operation.         A confirmation dialog will then appear showing the number of items which will be modified by the operation.   I've been reading & re-reading these statements over and over in my head and both seem to sound fine.  Is there a rule to determine when one should use that will and when one should use which will?  Many thanks in advance for your time.

What is the difference between the words which and that?  For example I have the following sentences:   “I have a car which is blue.” “I have a car that is blue.”   Are there any rules specifying usage of which and that?


Is it physically possible for an object to achieve the speed of light if it is in a gravitational field strong enough and the mass does not collide before it attains a velocity of $c$? It is true that the mass of the object approaches infinity as its speed approaches $c$, but maybe there could be an (almost) infinitely powerful gravitational field (increasing in strength as the mass speeds up) originating from a very long distance away, which could accelerate the mass to this impossible speed? I ask this because it appears that you would not need an infinite amount of fuel for taking the object to the speed of light.

Most of you if not everybody will agree that the stronger the gravitational pull, the faster an object will fall. For example, on a planet with 50 times the gravity of Earth, any object will hit the ground on that planet much quicker than it would on Earth. So taking all of these into the equation, does it mean that at a blackhole, an object will fall at an infinite speed because of the infinitely strong gravitational pull of the blackhole?


Is there a publicly available list of known malicious clones of Stack Exchange sites that proxy logins?  It would be a very useful feature to have a community-maintained list of all known proxy sites that pose a significant security vulnerability/phishing risk to any users.  As pointed out by  in the comments below, a similar .    Note: I have just found a site which proxies your login and reported it as :

of Stack Overflow, all content posted on Stack Exchange sites by their users (i.e. you wonderful people) has been provided to the whole universe under . For my fellow non-lawyers, that license basically means:   Anyone can use any Stack Exchange posts at any time without having to ask for permission Making money off of the copied content is permitted You don't even have to copy stuff from here verbatim; you can just use it as a starting point and make whatever edits you want There are just two rules you have to follow:   You have to provide . Simple links to the original post and author info are just fine. You have to  and allow other people to use your content, as long as they follow these very same rules. How meta!    (If you ever forget any of that, and want to refresh your memory, the license info is linked to in the footer of every page.)  There are, in fact, a lot of people who republish varying amounts of our content for assorted reasons. Unfortunately, there are some Stack Content Republishers Attributing Poorly and/or Excelling at Ranking (SCRAPERs, for short).  In this context, "attributing poorly" means any use that doesn't follow our attribution rules or make any other reasonable attempt at give credit. This can get pretty egregious; I've seen SCRAPERs that not only don't link back to SE originals, but also use fake author info and post dates to make it harder to find originals. By "excelling at ranking," I'm referring to copycat sites that end up higher in Google results than the original SE sites do for the same content. That's not necessarily wrong, but in some cases, it indicates inappropriate SEO hackery.  So, the question is: what can you do if you spot a SCRAPER?