Java new list instantiation convention
What does it mean to "program to an interface"?
What's so special about standard deviation? Resetting crontab file to default If I have a shapefile or geodatabase featureclass that has fields that I want to permanently reorder, is there a tool, script, or utility that will help me quickly accomplish this task? Generally I know you have to create a new field, then populate it with the old values, then delete the old field.  I am hoping there is something already created out there that will help with this. Assuming you don't have FME or another ETL tool available, what is the next best suggestion? This is NOT a view level change (ie- drag/drop the fields in order), but rather write out to a new shapefile or featureclass. How to connect portable monitor USB Type-C to graphic card with display port or hdmi Fast Pixel Search in Java Drawing different tikz shapes parameterized by data from a file I have a file with three columns of data, x, y, r.  # x y r 1 1 0.1 2 2 0.5 3 3 1.2   and so on. I'd like to loop over the rows, and draw a circle at x,y with radius r for each row.  I first thought I'd use pgfplots with customized marks, but I couldn't figure out how to pass the radius parameter into the pgfplot mark handler. Then I thought I'd use tikz and pgf directly, but I couldn't figure out how to reference the values for r inside a draw command sequence.   Any thoughts ? I'd be very grateful for some help. Why does my DIY "solar panel circuit" show battery voltage and not solar panel voltage? Is there an advantage to use a Synchronized Method instead of a Synchronized Block? Can I just fit a cassette with more gears with the same derailleur? I've got a Boardman Road Sport which I use for commuting and doing reasonable length rides during the week etc. I have Shimano Claris as my rear derailleur and so is some of my groupset. I would like to upgrade my cassette to an either 9 or 10 speed to give me a greater variety of gears. To do this do I need to change my rear derailleur from 8 speed to Shimano 105 or something similar? Or can I just change my cassette? Do I also need to change my shifters as well? Cookie path and its accessibility to subfolder pages Should Emergency Funds be Used for Infrequent, but Likely, Expenses? Say we break down non-monthly costs into the following three categories.   High level of predictability: This would include oil changes that may be needed every 2 to 4 months depending on usage, car insurance (if paid every 6 month), car registration, etc. Medium level of predictability: There are some expense which one can reasonable assume will occur on an infrequent basis.  For example, car repairs, house repairs, or even doctor visits during flu season. Low level of predictability: For example, losing a job, significant medical expense, etc.   Which of these categories are emergency funds meant to cover?  I think it is pretty clear that a high level of predictability costs should not use emergency funds while a low level of predictability should.  But medium level of predictability costs seem different, and it left me wondering what is generally defined as an "emergency".  While you do not know when these costs will occur or how much they will be, you could devise some pretty good rules of thumb on frequency and cost. Say you know your 2007 Volvo should have a repair cost averaging out to $100 per month.  Conceptually you could save $100 each month and when your car breaks, not have to spend any emergency funds on the repair.  Is doing this "double-saving" and not suggested if you already have the 6 month emergency fund saved up?  Note: this is a question on how to save money for expenses.  It is not a question about if you should spend emergency fund money to fix a car when you have no other money set aside. If I run a randomForest model, I can then make predictions based on the model.  Is there a way to get a prediction interval of each of the predictions such that I know how "sure" the model is of its answer.  If this is possible is it simply based on the variability of the dependent variable for the whole model or will it have wider and narrower intervals depending on the particular decision tree that was followed for a particular prediction? What if my State / Country doesn't have a Ubuntu LoCo Team? How can I start one? I know what an Ubuntu Team is and , but what can users do if their area doesn't have a LoCo team? Converse of mean value theorem I am wondering if the following converse (or modification) of the mean value theorem holds. Suppose $f(\cdot)$ is continuously differentiable on $[a,b]$. Then for all $c \in (a,b)$ there exists $x$ and $y$ such that $$ f'(c)=\frac{f(y)-f(x)}{y-x} $$ Is Cursed Child canon to the original story? From what I am hearing the stage-play called The Cursed Child is based on the characters from the Harry Potter series. It is set 19 years from the end of Deathly Hallows (i.e. When Harry's children are starting their time at Hogwarts).   I have also seen the J.K. Rowling has had at least some involvement and been on the set and a part of rehearsals, etc.   My question is has there been a statement given relating to the canon of the stage play to original series? If so, would any conflicting information be considered a retcon?  Related:  - but not dupe because this asking about in-universe information. Pseudoinverse and norm Suppose the m * n matrix A =$ \begin{bmatrix}     A_1 \\A_2 \end{bmatrix}$ where A1 is a nonsingular square matrix (n*n) and A2 is an arbitrary matrix. Why is $||A^{+}||_2 \leq ||A_1^{-1}||_2$  ?   ($A^{+}$ denotes the psuedoinverse) \num{100000} prints 100 000  I want to have 1 00 000.  Question: How to set siunitx package to do the above?  Some more  \num{1000} => 1 000  \num{10000} => 10 000  \num{100000} => 1 00 000  \num{1000000} => 10 00 000  \documentclass[12pt]{article} \usepackage{siunitx} \sisetup{group-separator = {,}}  \begin{document}  \num{1000}  \num{10000}  \num{100000}  \num{1000000}  \num{10000000}  \num{100000000}  \num{1000000000}  \SI{1000000000}{m}  \end{document}   The exact rules are described on the :     The Indian Numbering System uses separators differently from the Arabic system; besides the three least significant digits of the integer part, a comma divides every two rather than every three digits. nginx open reverse proxy? Somehow, and I'm not sure how, we have configured an nginx reverse proxy that is acting as an open proxy.  The log files tells us the matching requests are going against the following conf file:  map $http_upgrade $connection_upgrade {         default upgrade;         ''      close; }  access_log      /var/log/nginx/access.p.log; error_log       /var/log/nginx/error.p.log;  proxy_next_upstream     error timeout invalid_header http_500 http_502 http_503 http_504; proxy_buffers           8 32k; proxy_buffer_size       64k; proxy_http_version      1.1; proxy_set_header        Host            $host; proxy_set_header        X-Real-IP       $remote_addr; proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect          off; proxy_set_header        Upgrade         $http_upgrade; proxy_set_header        Connection      $connection_upgrade;  server {         listen          80;         server_name     ~first.*\.second\.com;          location / {                 resolver                172.16.1.1 172.16.1.2;                 proxy_pass              http://$host;                 proxy_read_timeout      7200s;         } }  server {         listen          443;         server_name     ~first.*\.second\.com;         ssl             on;          location / {                 resolver                172.16.1.1 172.16.1.2;                 proxy_pass              https://$host;                 proxy_read_timeout      7200s;         } }   The top-level conf file looks like this:  user nginx; worker_processes 8; pid /var/run/nginx.pid;  events {         worker_connections 4096;         # multi_accept on; }  http {      ##     # Basic Settings     ##      sendfile on;     tcp_nopush on;     tcp_nodelay on;     keepalive_timeout 65;     types_hash_max_size 2048;     # server_tokens off;      # server_names_hash_bucket_size 64;     # server_name_in_redirect off;      include /etc/nginx/mime.types;     default_type application/octet-stream;      ##     # Logging Settings     ##      access_log /var/log/nginx/access.log;     error_log /var/log/nginx/error.log;      ##     # Gzip Settings     ##      gzip on;     gzip_disable "msie6";      # gzip_vary on;     # gzip_proxied any;     # gzip_comp_level 6;     # gzip_buffers 16 8k;     # gzip_http_version 1.1;     # gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;      ##     # nginx-naxsi config     ##     # Uncomment it if you installed nginx-naxsi     ##      #include /etc/nginx/naxsi_core.rules;      ##     # nginx-passenger config     ##     # Uncomment it if you installed nginx-passenger     ##      #passenger_root /usr;     #passenger_ruby /usr/bin/ruby;      ##      include /etc/nginx/conf.d/*.conf;     #include /etc/nginx/sites-enabled/*;   }  what here is causing this? Java GUI repaint() problem? I have a JFrame. This JFrame contains a JButton. I click the JButton and 10 JTextFields are created.  the problem: I cannot see them until "I force a repaint()" by resizing the window. Only then do I see the JTextFields created.  CODE:  JPanel points = new JPanel();  //Creating the JTextFields: for (int i=0; i&lt;10; i++) {     JTextField textField = new JTextField();     points.add(textField); }  repaint(); this.repaint(); super.repaint(); points.repaint();     THANK YOU - after the for loop, I just called points.validate() and it worked... Object-oriented shell for *nix