What's the best way to query for currently running Wordpress events

I have a custom post type 'events' which has two extra fields. start_date and end_date.  Start date must be set but end date is optional. I want to show events that are upcoming (after today's date) or currently running (so today's date would be past the start_date but still before the end date)  I want to order the results by the start date. I have something like:  $args = array(      'post_type'        => 'events',     'posts_per_page'   => 100,     'meta_key'       => 'start_event',     'meta_value'     => date("Y-m-d"),     'meta_compare'   => '>=',     'meta_type'     => 'DATE',     'orderby'        => 'meta_value',     'order'          => 'ASC',      'meta_query' => array(         'relation' => 'OR',                array(                'key' => 'end_event',                'value' => date("Y-m-d"),                'compare' => '>=',                'type' => 'DATE'             ),          )     );  $the_query = new WP_Query($args);   This does not seem to take into account the meta query and only shows events with a start_date >= today and does not include events with end_date >= today if the start date has passed.  What is the best way to achieve this?


Why can we assume a statement is true for $n = k$, when using induction?

I know the principle of mathematical induction. The only thing that causes my confusion is that we suppose a statement is true  for $n=k$ then we prove the statement is also true for $n=k+1$ but how can we suppose $n=k$ to be true? What if a statement is true for $n=k+1$ and is not true for $n=k$? Does $k$ mean to be starting from $1$ or $2$ if in the base case we prove the statement to be valid for $n=1$? Please help me with this confusion.


I have a simple monkey model, that is completely black but has white, emissive eyes, like that:  Then, in compositor, I have this setup:  Clearly, you can see the preview is not showing any glare effect. I think, that I'm missing something there, but for the sake of me I can't figure out what.


How do we measure the age of the universe?

How do we measure the age of the universe if time is relative to the observer? What is the reference frame we use to measure the age of the universe?


Polynomial with a root modulo every prime but not in $\mathbb{Q}$.

I recently came across the following fact from   list of counterexamples:     There are no polynomials of degree $< 5$ that have a root modulo every prime but no root in $\mathbb{Q}$.    Furthermore, one such example is given: $(x^2+31)(x^3+x+1)$ but I have not been able to prove that this does has that property above. How can such polynomials be generated and can we identify a family of them?


I know this seems like a silly question, but someone was trying to debate with me about how $2+2=4$ should be called an identity and not an equation. I mentioned how it has no variables and isn't true for all numbers, but they claimed you could plug in any value for its variables(which don't exist) and it would be true and so is an identity. Which is kind of true in a round about way, but I still don't think anyone would call it an identity in a casual situation.


Novel set in a dystopian future where everyone was color-blind by mandated ingestion of medicine

From what I remember, in the spring of 2007, I was reading a novel in class (5th grade) about a future where everyone was color-blind by mandated ingestion of medicine. And that no one was allowed to engage in sexual reproduction only certain classes of genetically acceptable males were allowed to mate with other women. No emotions were allowed. No fun. No nothing but academics and community service. Not even religion.   At the end of the novel, two siblings escaped from the oppressive gray world they lived in and went into the forest for months and evaded capture from authorities. At long last, they found themselves seeing colors as the medicine begins wearing off. They see another city down the street full of beauty and freedom. It seemed that the city was a parody of New York.   I don't know if it was a localized area that was part of some cult or some kind of interdimensional traversing. But this novel seems interesting.


Why do floating water drops form spheres?

Consider a drop of water floating in an inertial frame in STP air (e.g., the ISS). Intuitively, the equilibrium shape of the drop is a sphere.  How would one prove that? Is it equivalent to showing that the minimal surface area for a simply connected volume in $\mathbb{R}^3$ with a sufficiently smooth boundary is that of a sphere, i.e., the result of the isoperimetric inequality?


Bash overwrites the first line, PS1 bash prompt

I have played around with PS1 and PROMPT_COMMAND in bash to create a zsh-style right side prompt. I have a solution who almost works.  The problem is that if I write a long line of input, the second line overwrites the first one. The third line will appear nicely on a new line.  Maybe some line counter are of-by-one because my cursor movement, or is this a limitation/bug?  A simple example:  export PS1="prompt>\[\033[s\033[10C\]test\[\033[u\]"   Print prompt>, save position, move 10 characters to the left, print test, restore position.  The prompts looks nice and works perfectly, until i write more then one line of text.  Example 1, expected behaviour:  ------------------------------------ prompt>          test prompt>ls        test files... prompt>1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28   Example 2, current behaviour:  ------------------------------------ prompt>          test prompt>ls        test files... 14 15 16 17 18 19 20 21 22 23 24 253 26 27 28


I have some queries which clip rasters from polygon.  So how I can see my result query in postgis or How I can check my query true or false ?


NullPointerException error and Stack Overflow error on assigning values to JTextFields

This is the current version of the problem I have tried but there was no solution to the problem, please let me know how I can initialize JtextFields in this situation  public class Teacher_Profile extends JFrame {  private JTextField textField_5; private JTextField textField_6; private JTextField textField_7; private JTextField textField_8;  private JTextArea textArea;  private JComboBox comboBox; private JComboBox comboBox_1;  private LoginDAO a; private Teacher_Profile g = new Teacher_Profile(this); private Teacher hi = new Teacher();      public Teacher_Profile() {     super(); }  public Teacher_Profile(Teacher_Profile aq) {     super();     this.g = aq; }  public Teacher_Profile(Teacher v) {      a = new LoginDAO();     textField_5 = new JTextField();     textField_6 = new JTextField();     textField_7 = new JTextField(); textField_8 = new JTextField();      JButton btnClear = new JButton("Get");     btnClear.addActionListener(new ActionListener() {         public void actionPerformed(ActionEvent e) {             if(e.getActionCommand().equals("Get"))             {                 Marks_Details ss = a.fetchMarksData(comboBox_1.getSelectedItem().toString(),textField_7.getText());                  //JOptionPane.showMessageDialog(null, "Type: " + ss.getType() + "\nMax_Marks: " + Integer.toString(ss.getMax_Marks()) + "\nWeightage: " + Float.toString(ss.getWeightage()) + "\n Course_Code: " + ss.getCourse_Code());                  g.textField_5.setText(ss.getType().toString());                 g.textField_6.setText(Integer.toString(ss.getMax_Marks()));                 g.textField_7.setText(Float.toString(ss.getWeightage()));                 g.comboBox.setSelectedItem(ss.getCourse_Code());             }         }     });     btnClear.setBounds(236, 269, 89, 23);     panel_1.add(btnClear);   This is what I have tried but getting stack overflowerror      Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError     at private Teacher_Profile g = new Teacher_Profile(this);


"When do I?" vs. "At what time should I?"

When do I have to come to the office tomorrow?   or      At what time should I come to the office tomorrow?    Are both of them correct? If so, do both of them mean the same? Which one can be used in a formal conversation?


How to sort a UNIQUE()-generated list based upon values from an independent column?

Can and how do I get the UNIQUE()-generated list in column B to automatically sort (in A->Z order) based upon the numbers in column C, as shown in the image below?   I want this "unique sort" to update dynamically upon any changes to column A and column C entries -- ie, humans enter updates to columns A and C. The sheet example shown in the image below contains no additional cell formulas other than the B1 formula that's already shown. I would like to keep the header row text as shown, or similar, even if it means moving the location of any formula/function (say to row 2). All of the =SORT(UNIQUE()) answers I see thus far on  address less-complex scenarios.


Second law of Thermodynamics: Why is it only "almost" always true that entropy is non-decreasing?

:     ...the entropy of any closed system not in thermal equilibrium   almost always increases.   I understand that the second law of thermodynamics is based on the statistical unlikelihood of fast-moving molecules to aggregate.  However, if it is only "almost always" then why is the phenomenon stated as a law?  Is it because we have not yet observed the unlikely aggregation?


I have been studying for my Unix exam and I often saw exclamation mark variable - $! If I write echo $! on my Mac shell tells me something like "You have mail in…"  Is purpose of this to store whether I do or do not have any mails or is there something else?  EDIT: Funny coincidence happened. Exactly when I wrote echo $! my Shell also notified me that I have some mail. So that's why I wrote that mail part.


Need to pass Field api name and its value in API call using field set

Need to make the requested body for Rest POST call in which key(API name) and value both go dynamically in JSON format. API name comes from field set and its value come from the database using query.  How i create requested body for Rest call using fieldSet. Below is my JSON format(ID, Trigger_DEMLTNR__c,Order_number_DEORDNR__c,Country_code__c,Invoice_number_DEFAKNR__c... all comes from fieldSet)  "SubscriberAttributes": {             "Id":"Id",             "Trigger_DEMLTNR__c":"",             "Order_number_DEORDNR__c":"",             "Country_code__c":"",             "Invoice_number_DEFAKNR__c":"",             "MiddleName_DEKLVNM__c":"",             "FirstName_DEKLAVN__c":"",             "LastName_DEKLANM__c":"",             "Email_encrypted__c":"Email_encrypted__c"         }


I have read several places that the difference between c_str() and data() (in STL and other implementations) is that c_str() is always null terminated while data() is not. As far as I have seen in actual implementations, they either do the same or data() calls c_str().  What am I missing here? Which one is more correct to use in which scenarios?


Seams in Pattern - Adobe Illustrator CS6

I have read on a number of blogs that the seams that you see in Illustrator from applying a pattern to an object is due to anti-aliasing and that if you print from Illustrator that it will print fine.  My concern is that when I save my work to PDF the seam shows up there as well. I don't want a client to see the seam and think there is something wrong. I also don't want to tell them not to worry about it.  I want it to look correct from the get go.  I am creating invitations for weddings and just started using the pattern tool/feature of Illustrator.  Any ideas or process I should follow?  Update  I am building a simple pattern diagonal line pattern like the one in this tutorial,


The three dimensional torus  (the periodic domain in Navier-Stokes equations $\mathbb{T}^3=(\mathbb{R}/\mathbb{Z})^3$) is compact.  Can anyone here give us a detailed proof.


How were there two Martys in 1955 in Back to the Future 2?

In BTTF 2, in the second timeline where Biff went back to 1955 to give the sports almanac to younger Biff, it doesn't make sense that there would be an original Marty running around.  This is my reasoning: Since in the original timeline, Doc Brown was just a local inventor in 1985, Marty was able to go back in time because Doc Brown showed him the time machine at night, which led to the terrorists killing the Doc and forcing Marty to go to 1955. In the altered timeline, however, the Doc was committed before 1985, which means that it's possible that he never managed to build a time machine at all, or even if he did, Marty wouldn't have gotten it. In this case, alternate-Marty wouldn't have been able to go back in time in the second timeline.  This is also a fact that Doc fails to reference when he's explaining the timelines. He forgets to talk about the original timeline - The 'lame parents' timeline which started the thing. Instead, everything should be fine exactly until November 5th, where the two timelines diverged. And so from November 5th-12th, there is the 'cool parents' timeline happening where Marty is back.  But the existence of the rich-Biff timeline negates the 'cool parents' timeline from existing at all.  This would imply that when normal-Marty went back to 1955 for the second time, he wouldn't have seen his own self because alternate-Marty never time travelled at all. Instead, the events would have played out exactly as they did in 1955 before Marty ever intervened, that is, George got hit by the van and the normal timeline would have been conserved. The only difference that should have been was that Old-Biff was giving Young-Biff the almanac.   Marty shouldn't have been able to see himself. Instead, he would have seen events play out exactly as they did in the 'lame-parents' timeline - George never learnt to be brave, there would be no drama about the enchantment under the sea dance.  Is this a plot hole, or is there some in-universe/retcon explanation for this?


Remove folders in ~/Library/Mobile Documents

There are some folders in ~/Library/Mobile Documents/ (like XXXXXX~com~companyname~appname) which seems to be left by apps I already removed from all my devices. However, if I delete those folders, they restored back almost immediately. They are not visible in Finder or in iCloud management in System Preferences. How to get rid of them?


I have a 2018 se big flyer and it has regular v brakes i was wondering if I could upgrade to disc brakes in front and back. I have look other places but no has anything to convert it.


Noticing that Newtonian gravity and electrostatics are equivalent, is there also a relationship between the general relativity and electrodynamics?

In classical mechanics, we had Newton's law of gravity $F \propto \frac{Mm}{r^2}$.  Because of this, all laws of classical electrostatics applied to classical gravity if we assumed that all charges attracted each other due to Coulomb's law being analogous.  We can "tweak" classical electrostatics to fit gravity.  In modern physics, does the reverse work?  Can we "tweak" General Relativity to accurately describe electrostatics or even electromagnetism?


Can I enable hiding the dock on my MacBook monitor only?

When at home I use my 13" MacBook Pro hooked up to an 27" external monitor. When working on my 27" screen I prefer to have a visible dock at all times. I have enough screen real estate to afford this luxury.  When I'm on the road working on my 13" screen I prefer to automatically hide the dock as it really gets in the way when screen real estate is limited.  I now manually switch between enabling and disabling hiding (using ⌥⌘D) but I would prefer this to happen automatically. Can I enable hiding the dock on my MacBook monitor and disable hiding the dock on my external monitor?


How can solve fogs,lights problem with Cycles?

I'm learning some tutorials that is industrial background. I know this tutorial is focused on Eevee system. but I want to get a better quality of scene. that's why I want to use Cycles, but there are some problems such as lights, fogs those pictures are including lights,fogs that I learned from the tutorials. yes it's very worked in Eevee, the lights has blur, the fog is staying at the background obviously, but the Cycles version doesn't work, How can I solve this problems? I want to have blur lights, fogs in my scene


If $f=g$ a.e. and $f$ and $g$ are continuous, then $f=g$ every where.

Let $f,g:\mathbb R\longrightarrow \mathbb R$ two continuous functions. Is it true that if $f=g$ a.e. then $f=g$ every where ?  I would say yes. My argument would be the following one : Let $$\Omega =\{x\mid f(x)\neq g(x)\}.$$  So let $x\in \Omega $. Is it true that there is a sequence in $\mathbb R\backslash \Omega $ that converge to $x$ ? If yes, the claim is proved. But if yes, How can I prove this claim ? If no, how can I do ?   Does this result can be adapted to an abstracted measurable space $(X,\mu)$ ?


I'm looking to fill a 3x3 matrix in the most pythonic way from a 1D list.  So transform from the first to the second  [1,2,3,4,5,6,7,8,9]  [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]   so far I can fill the first as such:  l = [1,2,3,4,5,6,7,8,9] m = [[l[y] for y in range(3)] for x in range(3)]   but this gives  [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]


The issue identified is specific to this number. Also tried ParseInt and ParseFloat and result are same.     convertedNumber:number=0;      this.convertedNumber=Number('17841402576033717');      Output:17841402576033716


Securing shared memory in Ubuntu (Linode VPS) renders it useless. Doesn't boot up

Everytime I setup a new VPS, I secure shared memory by adding the following to /etc/fstab:  tmpfs     /dev/shm     tmpfs     defaults,noexec,nosuid     0     0  Which works as expected on every host, EXCEPT for Linode.  Here is the bootup error I get in Lish:  init: plymouth-upstart-bridge main process (1335) terminated with status 1                               init: plymouth-upstart-bridge main process ended, respawning                                             init: ureadahead main process (1338) terminated with status 5                                            init: plymouth-upstart-bridge main process (1343) terminated with status 1                               init: plymouth-upstart-bridge main process ended, respawning                                             init: plymouth-upstart-bridge main process (1350) terminated with status 1                               init: plymouth-upstart-bridge main process ended, respawning                                             random: nonblocking pool is initialized   The VPS is never able to boot after this and thus has to be deleted completely.  Any idea why that might be the case?


The idle task (a.k.a. swapper task) is chosen to run when no more runnable tasks in the run queue at the point of task scheduling. But what is the usage for this so special task? Another question is why i can't find this thread/process in the "ps aux" output (PID=0) from the userland?


tikz stroke opacity of line intersections

Consider the following simple example:  \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[x=.2cm,y=.2cm]   \draw[ultra thick,opacity=0.5] (0,-1) -- (0,1);   \draw[ultra thick,opacity=0.5] (-1,0) -- (1,0); \end{tikzpicture} \begin{tikzpicture}[x=.2cm,y=.2cm]   \draw[ultra thick,opacity=0.5] (0,-1) -- (0,1) -- (-1,0) -- (1,0); \end{tikzpicture} \end{document}   The output looks like this:    What is interesting about this is of course the intersection of the lines at (0,0). It looks more dark in the left picture, which is presumably caused by the fact that TikZ actually draws the paths one-after-the-other, which yields a higher total opacity (combining both lines). In the second, right picture, the lines are all drawn in one go, which meas that the crossing will only be drawn once, after which the opacity will be applied.  This is all good, but my question is: Is there any way I can make sure that TikZ draws intersections of paths "correctly" (as in, double-layers them) also when drawing a single path in one go (that is, make the intersection in the right picture look like the one in the left picture), or is this a futile exercise?


Sample Size and No. of Events in Logistics Regression Model

I want to develop a logistic regression model. There are 1000 cases in the dataset and there are only 180 'Yes'. Therefore, the proportion is 18%.  I was told that I should have at least 500 Yes in the dataset in order to build a good logistic regression model. How can I handle this problem? Do I need to have at least 500 Yes??


A case of optional “that”: “check the” vs. “check that the”

Consider the following use case:   Please check the username and password are correct. Please check that the username and password are correct.   In this case, I would say that that is required because it feels more natural to me and so the flow is better. However, is the lack of that wrong in this case?  The question boils down to: when is that optional? See . A quick summary:   That is optional if the pronoun is the object. That is required if the pronoun is the subject.   I think that we fall into the second case: that is required because the relative pronoun is the subject. But I'm not sure if I'm interpreting these rules correctly. Can someone please advise?


I got a question to show that :      If $p$ is prime number, then   $$x^p - x \equiv x(x-1)(x-2)(x-3)\cdots (x -(p-1))\,\,\text{(mod }\,p\text{)}$$    Now I got 2 steps to show that the two polynomials are congruent:   Show they have same roots. Show the leading term's coefficients on both sides are the same.    For step 2, I know it is obvious $x^p$ has coefficient 1 on both sides.  For step 1, but I am not sure how to find all the solutions for $x^p -x$ modulo $p$.


Cooking more than one dish that require different temperatures

I'm cooking two different dishes in the oven at the same time that each require different temperatures. One is a roasted vegetable dish that says to cook at 475 for 35-40 minutes and the other is parmesan crusted pork chops at 350 for 40-45 minutes. What do you suggest I do?


Mystery radio station playing through headphones. How to find all sources of sound?

There is a radio station that intermittently plays through my headphones when they are plugged in. It does not play through the stereo speakers of my laptop.   When I open the volume mixer, it does not show any sound being played, even though there is sound coming through my headphones.   The sound does not get louder or quieter when I change the volume.   I have closed all browsers, and the sound still comes through.   How can I find a list of all programs that are outputting sound?


Question 1 How can we change the name of the generated pdf file, automatically on the main.tex file? Question 2 Is it possible not to change the generated files each time I change this name?


HDD. How sector, block, cluster related to each other?

I want to buy HDD and External Hard Drive Enclosure. I will connect it to computer via USB. I will write on this HDD system backups, current sound work files backups, sound work files archive. I run Windows 10 Home 64-bit. How sector, block, cluster related to each other?


Do laser blasters shoot plasma rays like lightsabers?

I know that lightsabers consist of a plasma blade, powered by a kyber crystal, but do the Blasters in Star Wars work by shooting out plasma rays, too?


Is it possible to remove the gap between the menu and an app's title bar?

Similar to , there is a gap between the title bar of a maxmized window and the menu bar.  I have a full-screen iTerm window in the background, with "use Lion-style Fullscreen windows" disabled.  When content in the iterm window changes, it's visible in this gap and also the also it makes the title bar of the foreground window flash.  Is it possible to remove the gap between title bar and menu bar?


'Nirmala questions rich nations' - what does questions mean in this context?

Please look at the following  Source:       Nirmala questions rich nations.   This is a headline of an article from a newspaper, the link to the article I have quoted.  After reading the article, I didn't understand how "questions" is used. I want to know in what sense question is being used. Does it mean she expressed doubts?


Area51 proposals are being advertised now all over the network?

While happily browsing  I suddenly noticed this:        Curious, I clicked and landed . Appears to be ordinary Area51 proposal, one out of hundreds.  Do all proposals get such ad at some point? What is the criteria? Any way to ask for such ad?


How to assign environment variables in parallel in bash

I'm trying to set several environment variables with the results from command substitution. I want to run the commands in parallel with & and wait. What I've got currently looks something like  export foo=`somecommand bar` & export fizz=`somecommand baz` & export rick=`somecommand morty` & wait   But apparently when using & variable assignments don't stick. So after the wait, all those variables are unassigned.  How can I assign these variables in parallel?  UPDATE: Here's what I ended up using based off the accepted answer  declare -a data declare -a output declare -a processes  var_names=(     foo     fizz     rick )  for name in "${var_names[@]}" do     processes+=("./get_me_a_value_for $name") done  index=0 for process in "${processes[@]}"; do     output+=("$(mktemp)")     ${process} > ${output[$index]} &     index=$((index+1)) done wait  index=0 for out in "${output[@]}"; do     val="$(<"${out}")"     rm -f "${out}"      export ${var_names[index]}="$val"      index=$((index+1)) done  unset data unset output unset processes


I have a problem when run the code below in Window OS using Python 3.6 32bit.  subprocess.call(["mkdir", "-p", path_results + "it" + str(actual_iteration)])  The error is   Trackback : ......\Python36-32\lib\subprocess.py", line 997, in _execute_child startupinfo) FileNotFoundError: [WinError 2] The system cannot find the file specified.  Anyone please tell me what's wrong and help me fix it. Thank you.


Is there a way to format a UTC time into any arbitrary string format I want in java?  Basically I was thinking of having some class take the timestamp and I pass it is string telling it how I want it formated, and it returns the formatted string for me.  Is there a way to do this?


The dimension of the Hilbert space is determined by the number of independent basis vectors. There is a infinite discrete energy eigenbasis $\{|n\rangle\}$ in the problem of particle in a box which can be used to expand a general state $|\psi\rangle$ as: $$|\psi\rangle=\sum\limits_{n=0}^{\infty} C_n |n\rangle$$ Here, the basis implies that the Hilbert space has countably infinite number of basis vectors. But one could well expand $|\psi\rangle$ in any other basis as well, say the continuous position basis. Then that superposition, $$|\psi\rangle=\int dx \psi(x)|x\rangle$$ is also possible. But this basis $\{|x\rangle\}$ is continuous and uncountably infinite. Such sets cannot be equal because they have different cardinality. Then my questions is how many independent basis vectors are really there in this Hilbert space?


C# 3.0 generic type inference - passing a delegate as a function parameter

I am wondering why the C# 3.0 compiler is unable to infer the type of a method when it is passed as a parameter to a generic function when it can implicitly create a delegate for the same method.  Here is an example:  class Test {     static void foo(int x) { }     static void bar<T>(Action<T> f) { }      static void test()     {         Action<int> f = foo; // I can do this         bar(f); // and then do this         bar(foo); // but this does not work     }    }   I would have thought that I would be able to pass foo to bar and have the compiler infer the type of Action<T> from the signature of the function being passed but this does not work.  However I can create an Action<int> from foo without casting so is there a legitimate reason that the compiler could not also do the same thing via type inference?


Schengen Visa 90/180 rule with intermittent work-permit from Sweden

I am a Indian passport holder with a Schengen Visa (type C, valid from May'18 to May'19, 90 days stay). I'm in Sweden since May'18 (till Nov'18) with a Schengen visa and I also have a Swedish work-permit (valid from July'18 to Jan'19).    Now I am traveling back to India (in Nov'18), but what about the validity of my Schengen Visa with regard to the 90/180 rule?    Can I travel in other Schengen countries until visa is valid ?


Let $k$ be a natural number, such that $k>1$.  Show that $1 + \frac{1}{2} + \frac{1}{3} + ... + \frac{1}{k}$ is not a natural number.  How I can prove this?


Teleport player on horse on minecraft vanilla

I've created a big circuit in my vanilla server to teleport all players to an arena each 3 days.  It's all working like a charm, but a few days ago a player wasn't teleported. Chatting with him, he told me that he was on a horse.  Players on horses are not teleported?


How do I use/change Animation Extrapolation? (Can't find F-Curves / Animation Modifiers in 2.8(1))

I want to loop keyframes in Blenders Curve Editor. But I can't find a way to do this.  If I select the curve / keys I want to loop and right click and select the animated channel and select "extrapolation method" - they are greyed out and I can't change anything.  It seems like it tries to tell me to use "F-Modifiers" - but I can't find them in the interface ("shift-E" doesn't work as I am using industry standard keys).  A short search in the Blender documentation only reveals screenshots of an older interface version and I can't find the "F-Mod" / "Modifiers" Buttons in the 2.8(1) Version. ()   Do you know where I have to click or a tutorial that explains it?


How to find mean coordinates of a cluster of points from a point layer in QGIS?

I have a set of coordinate points. The points are distributed in such a way that some points are clustered around a specific area. There is an option to find out mean coordinates(s) of the whole point layer. I would like to know if there is any way in QGIS to find out the mean coordinates of the points from a specific area from a point layer.


macOS 10.13.4 - `renice` seems to have no effect

I am trying to test out the renice command on my Mac, it seems to be having no effect. This is how I'm testing it: I have a dual core CPU with hyper threading, so I run 6 instances of node -e 'while(1){}' which, combined, max out my CPU. (Alternatively, run while true; do echo running > /dev/null ; done if you don't have node.) I then get a PID of one of the node processes, either by the activity monitor application or pgrep, and then run sudo renice -n 19 -p $PID. By looking at the activity monitor application or htop, the CPU usage of all of the node processes are still equivalent:  My understanding was that the process that I reniced would have a low priority, and so would not use a significant amount of CPU time when there are other processes using it. Am I misunderstanding something about renice? Or is this a bug in macOS?


Updates for Ubuntu LTS Desktop versus LTS Server

I still have Ubuntu 10.04 LTS Desktop on my systems.  10.04 Desktop has reached end of life.  I understand that means there will be no more security updates for this product.  Is that correct?  Ubuntu 10.04 LTS Server is still supported for another year.  Will the security updates for the Server work for the Desktop?   If I do an update from the 10.04 LTS Desktop, what gets updated?  Any kernel updates?


Can anyone explain to me explain to me what Robert Pirsig is trying to convey through the book ZAMM as a whole?

I feel that trying to go about analyzing his whole theory is pointless since his whole theory builds upon one point which is that analytical thinking shouldn't have taken the front seat in modern culture (as he goes on ranting about Aristotle and so forth), but is anything to be gained by applying the analytical "knife" on his theory of Quality ?  I read this above question before posting here. I'm trying to understand what is he really trying to get at in the book as a whole.


Polynomial Irreducible in $\mathbb{F}_{2^i}$ for $i\leq{}6$

Let $p(x)=x^4+x^3+1$ .  Is $p$ irreducible in:  1) $\mathbb{F}_2$ ?  2) $\mathbb{F}_4$ ?  3) $\mathbb{F}_8$ ?  4) $\mathbb{F}_{16}$ ?  5) $\mathbb{F}_{32}$ ?  6) $\mathbb{F}_{64}$ ?  I can prove that $p$ is irreducible in $\mathbb{F}_2$ and $\mathbb{F}_4$ by showing it has no roots and no quadratic factors.  How can I complete questions 3-8?


I write a presentation in Hungarian. It often occurs that section title contains special Hungarian letters \H{o} or \H{u}. It is OK within the frame, but in the sidebar they appears as simple letters u and o. In my experience it is independent from the used styles. Is there some solution?  A minimal working example:  \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[magyar]{babel} \def\magyarOptions{hyphenation=huhyphn}  \begin{document} \section{\scshape Tartalomjegyzék} \begin{frame} \transblindshorizontal \title{Some Title}  \titlepage \end{frame} \section{Árvíztűrő tükörfúrógép} \begin{frame}{Árvíztűrő tükörfúrógép}  \end{frame} \end{document}


what value of K does the system have a unique solution

$\begin{cases}x_1 + kx_2 - x_3 = 2\\2x_1 - x_2 + kx_3 = 5\\x_1 + 10x_2 -6x_3= 1\\ \end{cases}$ I've been trying echelon form where i took $R_2 = R_2 - 2R_1$ and $R_3 = R_3-R_1$ So I have $\left[\begin{array}{ccc|c}1&K&-1&2\\2&-2&K&5\\1&10&-6&1\end{array}\right]$ I've been trying echelon form where i took $R_2 = R_2 - 2R_1$ and $R_3 = R_3-R_1$ and reduced it So I have $\left[\begin{array}{ccc|c}1&K&-1&2\\0&-1-2K&K+2&1\\0&10-K&-5&-1\end{array}\right]$ But now I am not sure how i could remove $10-K$ with $-1-2K$ any help would be appreciated


A week ago I  people on this site what mathematical background was needed for understanding Quantum Physics, and most of you mentioned Linear Algebra, so I decided to conduct a self-study of Linear Algebra. Of course, I'm just 1 week in, but I have some questions.    How is this going to be applicable to quantum physics? I have learned about matrices (addition, subtraction, multiplication and inversion) and about how to solve multiple equations with 3 unknowns using matrices, and now I am starting to learn about vectors. I am just 1 week in, so this is probably not even the tip of the iceberg, but I want to know how this is going to help me.  Also, say I master Linear Algebra in general in half a year (I'm in high school but I'm extremely fast with maths), what other 'types' of math would I need to self-study before being able to understand rudimentary quantum physics mathematically?


Looking for a book about a group of people hibernating while traveling between the stars

The book I'm looking for was about a ship launched from a dying earth to colonize another planet. The story is told in flashbacks and the main character has dreams about past lives while hibernating.


I installed Oracle Java JDK 8 but java command line is still reporting it is version 7

I installed jdk 1.8.0 u5, but the command line java is reporting 1.7:  $ java -fullversion java full version "1.7.0_51-b13"  $ which java /usr/bin/java  $ ls -l /usr/bin/java lrwxr-xr-x  1 root  wheel  74 Oct 23  2013 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java   Here is what is installed  $ ls -l /System/Library/Frameworks/JavaVM.framework/Versions/ total 64 lrwxr-xr-x  1 root  wheel   10 Oct 23  2013 1.4 -> CurrentJDK lrwxr-xr-x  1 root  wheel   10 Oct 23  2013 1.4.2 -> CurrentJDK lrwxr-xr-x  1 root  wheel   10 Oct 23  2013 1.5 -> CurrentJDK lrwxr-xr-x  1 root  wheel   10 Oct 23  2013 1.5.0 -> CurrentJDK lrwxr-xr-x  1 root  wheel   10 Oct 23  2013 1.6 -> CurrentJDK lrwxr-xr-x  1 root  wheel   10 Oct 23  2013 1.6.0 -> CurrentJDK drwxr-xr-x  8 root  wheel  272 May 13 10:21 A lrwxr-xr-x  1 root  wheel    1 Oct 23  2013 Current -> A lrwxr-xr-x  1 root  wheel   59 Oct 23  2013 CurrentJDK -> /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents   also:  $ /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java -fullversion java full version "1.7.0_51-b13"   The java control panel applet reports 1.8, but in /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/  Any idea where it went?


How to know if windows is installed in EFI mode or not?

I've just got new laptop with Intel Atom N2800 on the board (wiki says that it is 64 bit) from shop with preinstalled Windows 7 starter 32 bit, and I want to install ubuntu 12.04 32 bit (exactly 32 becouse it will couse much less amount of troubles in usage, AFAIK) in dual boot, so from  I know that  if the other systems (Windows Vista/7/8, GNU/Linux...) of your computer  are installed in EFI mode, then you must install Ubuntu in EFI mode too.   and from the same man page:  To install Ubuntu in EFI mode:     Use a 64bit disk of Ubuntu (32bit installer does not detect EFI)   So, after all of that:   How to know in which mode windows is installed? If it is in EFI - could I install ubuntu 32 bit with just BIOS? If it is yes again - how can I do that?    I have already spent the whole day trying to do that, until I noticed that my laptop has that UEFI and started to google what is that and how to deal with it.  Update:  Ok, now I know that windows is installed in BIOS/Legacy mode, thanks to user @magicandre1981, next question is how to finally install 32 bit ubuntu in dual boot?  What I have tried already:  At first - I'm not sure about UEFI - BIOS screen is in blue and white oldschool colors, there are some rows that says BIOS information, BIOS vendor etc, but at the same time there are row that says Compliancy: UEFI 2.3, PI 1.2.  So, my problem:   All the distros that I have tried - ubuntu 12.04, 12.04.2, 13.04, latest mint - when they are loading their LIVE  environment - nothing happens until I press any key - literally, even HDD activity led does no light up, I press space - a bit of loading process passes normally - changes picture on screen, lights HDD led, and then everythings hags and waits for the next press!   then... 12.04.x and mint does not installs at all - hangs at random step, 13.04 installs when I keep space button pressed, but dies on next reboot (I will try again if there will be no success with other distros).   One wild Russian translation of the whole mint distro finally succesfully installed, but I still have to do not free for example the alt during installation, work that concerned with HDD operations, reboot and etc. But at least it works after reboot:)  As still the same ubuntu man says:  In your BIOS, disable QuickBoot/FastBoot and Intel Smart Response Technology (SRT).   But I do not see this options in my BIOS!  Update 2:  I write ubuntu and other iso images to the flash stick using UltraISO, may be I have to try unetbootin for example?


How to choose your first set of golf clubs as a beginner?

I have been looking everywhere for used sets and beginner kits, particularly for splashing on a sport I don't know really how to play yet!   I will probably be chastised for being so cheap but I am looking at . I've assembled a set of clubs that's approaching my budget:   3 Hybrid 5 Hybrid 7 Iron 9 Iron Pitching Wedge Putter   Would a rookie benefit from anything else? I am imagining on a par 3-4 with my slow swings the hybrid to tee off, iron to approach, wedge um not sure sure but it's on all the guides but they also say the hybrids are good for bunkers/rough and the putter of course.  What are the absolute minimum clubs for a beginner to use on driving range, putting greens, pitch & putt par 3? ...hopefully something that will see me through beginning to start on full courses as well, slowly!


I know that a set G with a binary operation $*$ is a group, if:   $a*b\in G$, for all $a, b \in G$. $*$ is associative:   $$(a*b)*c=a*(b*c) \\ \text{for all }a, b, c\in G.$$   An identity element $e \in G$ exists, such that   $$a*e = e*a = a\\ \text{for all }a\in G.$$   For all elements $a \in G$, there exists an $a^{-1} \in G$, such that:   $$a*a^{-1} = a^{-1}*a=e.$$  Can I use that to show that the empty set is a group?


Proof verification for proving $\forall n \ge 2, 1 + \frac1{2^2} + \frac1{3^2} + \cdots + \frac1{n^2} < 2 − \frac1n$ by induction

Prove by mathematical induction: $\forall n \ge 2, 1 + \frac1{2^2} + \frac1{3^2} + \cdots + \frac1{n^2} < 2 − \frac1n$   Basis Step: (We want to show, $P(2)$, which is 1 + $\frac1{2^2}<2-\frac12$).  $\frac1{2^2}=\frac14$, and $2-\frac12=\frac32$  So, $\frac1{2^2}<2-\frac12$.  Inductive step: (We want to show, $\forall n\ge2,\mathrm P(n)\to\mathrm P(n+1)$.  Let $k\ge2$ be an integer, arbitrary & fixed.  (We want to show, $\mathrm P(k)\to\mathrm P(k+1)$).  (I.H.) Assume $1+\frac1{2^2}+\frac1{3^2}+\cdots+\frac1{k^2}<2-\frac1k$ ("$\mathrm P(k)$")  (We want to show $\mathrm P(k+1)$, which is $1+\frac1{2^2}+\frac1{3^2}+\cdots+\frac1{(k+1)^2}<2−\frac1{k+1}$)  $$\begin{align} 1+\frac1{2^2}+\frac1{3^2}+\cdots+\frac1{(k+1)^2}&<2−\frac1{k+1}+\frac1{(k+1)^2}\tag{by I.H.}\\ &=2-\frac1k+\frac1{k^2+2k+1} \end{align}$$  (Thus, $\mathrm P(k)\to\mathrm P(k+1)$ for all $\mathrm k\ge2$  Also, $\mathrm P(2)$, so by mathematical induction, $\forall k\ge2,\mathrm P(k)$)  Can someone look at my solution and see if it is correct? I'm not 100% confident with it.


Tables and Figures are appearing at the end of Chapter

My Table and Figures in Chapter 4 of my thesis are appearing at the end of chapter instead of within the text where I want them to appear. Before these table and figure everything is fine in this chapter and also in the previous chapters. The rest of the tables and figures (only from this chapter) are also appearing at the end of Chapter 4. Tables and figures in Chapter 5 and rest of the thesis are fine and they are appearing where I want them to be. Given below is the code for my table and figure which are causing trouble.   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %Table 4.3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{table}[!t] \centering % used for centering table \caption{Abc..} % title of Table {\normalsize}\setlength{\tabcolsep}{4pt} \begin{tabular}{| c || p{5.25cm} | c || p{5.25cm} |}  \hline %inserts double horizontal lines abc & abc & abc & abc \\ \hline \hline  $a$ & b & c & d \\ $a$ & b & c & d \\ $a$ & b & c & d \\ [1ex] % [1ex] adds vertical space \hline %inserts single line \end{tabular} \label{table:nonlin} % is used to refer this table in the text \end{table}  \begin{sidewaysfigure}[!t]%[htbp] \centering \makebox[\textwidth][c]{\includegraphics[width=0.85\textwidth, height=0.50\textwidth]{./Figures/Chapter4/4point7.pdf}} \caption{xyz..} \label{fig:awesome_image} \end{sidewaysfigure}   Any help would be appreciated. Thank you.


I am getting this error message when trying to access a php page:  PDOException: SQLSTATE[HY000]: General error: 23 Out of resources when opening file xxxx.MYD' (Errcode: 24)   How can I solve this issue? How can I determine the lacking resource? Memory, processor or file space?  PS: Meanwhile I noticed the log has these warnings  160111 13:15:26 [Warning] Could not increase number of max_open_files to more than 1024  160111 13:12:25 [ERROR] mysqld: Can't open file: './xxxxx/cache_path.frm' (errno: 24)


Regular expression fo parsing JSON arrays in Java

I am writing a Java application where I have to extract information from a JSON file. I want to get every element of a JSON array using Regex. I found this expression \[([^]]+)\] which works only with non-nested arrays, but not for the example below.    list[  0{     somedata{...},     sublist0[         somedata(...),         somedata(...)         ],     key: value, },  1{     somedata{...},     sublist1[         somedata(...),         somedata(...)         ],     key: value, }, .... , N{     somedata{...},     sublistN[         somedata(...),         somedata(...)         ],     key: value, } ], somedata{...}   For this example, the expression matches element 0, sublist1, sublist2 ... sublistN and ignores the other elements from the elements. I am looking for the appropriate regular expression because I can't use any external libraries for this project. The elements' names may also vary.


Trouble with reading a string from a keyboard scanner in java

The point is to get the users input but only by the string values like CA so I can print out california, but the problem is   if (name == "AL") when the program runs and I input "AL" the console does not print "The state is Alabama" but instead terminates the program. So how do I resolve converting this? Thanks


I was given to prove that $\frac{Z[i]}{<a+ib>}$ $\cong$ $\frac{Z}{<a^2+b^2>}$ , when gcd(a,b) = 1.  I am using the mapping f: Z $\to$ $\frac{Z[i]}{<a+ib>}$ given by f(x)=x+< a+ib >. I have proved that the homomorphism is onto. But I am not being able to show that ker f = < $a^2+b^2$ >. If x $\in$ ker f , then a+ib |x . hence a-ib | x. thus $ a^2+b^2$ | $x^2$. From here how can I conclude that $a^2+b^2$ |x ? Please give some hint. Thank you.


why present perfect tense used in below sentence and why there is no subject for word found

Scientists and researchers from the University of Delhi and the Zoological Survey of India have discovered a genus of tree frog found in the Andaman islands and the northeast.


I would like to know whether there is any formula that would help me compute the number of possible delta waves from (0,0) to (N,0).  eg. for N = 4, we have number of waves possible = 9 as explained


(This question is not a duplicate of   I am asking specifically about when PID-4 is locking it (besides the fact that i'm saying without using guesswork. And that question doesn't even mention PID-4))  When System PID 4 is locking a file or folder, How can I determine what program/process/service is locking it without guesswork?  For example , see this result from process explorer showing a file that may be locked.    Now, without any guesswork, how can I determine what is locking it? (When the only info I see from process explorer is that it's SYSTEM/PID-4)  Added  Somebody asked if it is a duplicate of   The questoin is similar.. but there's no answer there that answered my case.. Also, the question there iis very simplistic and says "How could I find out which application "System, PID: 4" really is?"    I know that PID 4 isn't an application. It is something system related.. and may be a service.  So my question is not the same as that one.  That one has misunderstandings about what PID 4 is and somebody could partly answer that question by just saying what it is and is not.


PHP exec(), fire and forget, load page content, but ajax request don't start until that process end

on my site i try to fire and forget with php:  this line starts a process about 20 seconds:  exec('wget -qO- url-to-process' > /dev/null &');   All script is loaded , without attending this line. Now my page is fully loaded. But I have a DataTable, populated with an ajax request. The question is  why ajax request doesn't start until that 20 seconds?  What could be the problem?


How can I make a desktop wallpaper slideshow with my own images?

So I know Ubuntu has a slideshow option in the wallpaper settings, containing all default wallpapers for that release. This means that the functionality is already there and actually working! But I can't seem to find a way to create my own slideshow with my own collection of wallpapers. Does someone know how I can do this?  Thanks for the help!


I have a SQL query which return the below data;  I need to write Values to one row depend ID and Code column like below;


Acer notebook Windows 8.1 and Ubuntu 16.04 EFI dual boot fails

I've tried almost everything to make proper dualboot in my notebook. Will be happy with any help you can provide.   Notebook Acer Aspire E5-553G-15CK 2 OS installed - Windows 8.1 x64 (was installed first) and Ubuntu 16.04 desktop x64. Disk is in the GPT partition.  Both OS were installed under UEFI with secureboot disabled. UEFI bios version is InsydeH20 v5.0.   There is no option in boot menu in bios to choose "Ubuntu", only "windows boot manager". Also, I didn't saw even once grub2 loader window while rebooting. Notebook just boots into windows directly. Fast boot is disabled in windows/power management. Also, I've tried bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi - didn't helped. Tried boot-repair - didn't helped.  Additional info is in full report .  Is there any other way to get grub2 loader boot first instead of windows boot manager?


Passing an "in" list via stored procedure

How can I construct a stored procedure that will allow me to pass (for example) an @IDList so that I can write:  Select * from Foo Where ID in @IDList   Is this doable?


I have a longtabu looking like this:    As you can see text on multiple lines breaks the bottom line of the cell. How can this be avoided in general for all the cells in the longtabu?  My longtabu code:  \noindent \begin{longtabu}{| p{4.2cm} | >{\centering\arraybackslash} p{1cm} | >{\centering\arraybackslash} p{1.3cm} *3{|X[c]} | >{\centering\arraybackslash} p{1cm} |}      \hline \multicolumn{7}{|c|}{\large{Arkitekturvægtning af \textit{use case} 3, 4 og 5}}\\      \hline \textbf{Kvalitetsattribut}          &   \textbf{Vægt}   & \textbf{BP\textsubscript{ED}} & \textbf{BP\textsubscript{DDG}} & \textbf{BP\textsubscript{AED}}  & \textbf{BP\textsubscript{LDS}}  & \textbf{BP\textsubscript{S}}      \\      \hline Intern netværkskommunikation        & 4                  & 5 (20)                             & 3 (12) & 4 (16)                             & 2 (8) & 3 (12)\\      \hline Tid for backup                      & 4                  & 5 (20)                             & 3 (12) & 5 (20)                             & 2 (8) & 5 (20)\\      \hline Nedetid                             & 5                  & 5 (25)                             & 4 (20) & 3 (15)                             & 3 (15) & 1 (5)\\      \hline Kodens kompleksitet                 & 3                  & 5 (15)                             & 3 (15) & 3 (15)                             & 2 (6) & 4 (13)\\      \hline Forståelsen kompleksitet            & 2                  & 5 (10)                             & 5 (10) & 5 (10)                             & 4 (8) & 4 (8)\\      \hline Hukommelsesforbrug                  & 5                  & 1 (5)                              & 3 (15) & 5 (25)                             & 4 (20) & 5 (25)\\      \hline CPU forbrug                         & 4                  & 5 (20)                             & 2 (8) & 3 (12)                             & 2 (8) & 4 (16)\\      \hline Overførselsfejlrate                 & 2                  & 5 (10)                             & 5 (10) & 5 (10)                             & 4 (8) & 2 (4)\\      \noalign{\arrayrulewidth1pt}      \hline      \noalign{\arrayrulewidth0.4pt}      \hline Vægtet sum     &                     &         125          &                96               &              117 &               81                &                     102 \\      \hline\caption[Kvalitetsattributter angående backup i \textit{use case} 3-5]{Vægtning at kvalitetsatributter i forhold til \textit{use case} 3-5.\label{tab:KvalitetBackup}} \end{longtabu}


What is the proper way to extend the Fibonacci numbers to negative numbers?

I have a feeling this question is a duplicate, but it's not coming up in "Questions that may already have your answer."  We all know very well that $F(0) = 0$, $F(1) = 1$ and $F(n) = F(n - 2) + F(n - 1)$ for all $n > 1$.  I'm wondering about $n < 0$. My first thought was $F(-n) = -F(n)$, which is appealing from a multiplicative point of view, as it seems to preserve certain identities, like $F(n)^2 = F(n - 1) F(n + 1) - (-1)^n$.  But it doesn't quite make sense from an additive point of view, it doesn't seem to work both "forwards" and "backwards." For example, it would give us $F(-1) + F(0) = -1 \neq F(1)$.  How do we extend $F(n)$ to negative $n$ so as to maintain both the related identities and the basic defining identity?


cpp multiple inheritance unexpected ctor called

Why does Downnot invoke the Base ctor  through Left & Right twice?  class Base { public:     Base() { cout << "base-ctor" << endl; }     Base(string a) { cout << a << endl; } };  class Left : virtual public Base { public:     Left(string a) : Base(a) {} };  class Right : virtual public Base { public:     Right(string a) : Base(a) {} };  class Down : public Left, public Right { public:     Down(string a) : Left(a), Right(a) {} };  int main() {     Down x("down");     // -> base-ctor }


How to lock a file then clear its contents?

How can i lock a file then clear its contents and write to it? Clearing a file can be as simple as:  FileOutputStream fos = new FileOutputStream(someFileObject);   And acquiring the lock would be by:  FileLock lock = fos.getChannel().lock();   But what i need is to lock the file before i clear it because i don't want any edits to happen before the program gets the lock for the file.  I tried using 2 FileOutputStream objects one that is set to append and is just used for locking and the other one with append set to false for clearing the file like so:      File log = new File("test.txt");     try (FileOutputStream forLocking = new FileOutputStream(log, true)) {         FileChannel fileChannel = forLocking.getChannel();         FileLock lock = fileChannel.lock();         try (FileOutputStream fos = new FileOutputStream(log); PrintWriter out = new PrintWriter(fos);) {             out.println("Test this stuff");         }     } catch (IOException e) {         e.printStackTrace();     }   but apparently only the Channel that has the lock can make any changes to it in the same jvm at least.  Is there anyway i can go about with this without having to delete the file and recreate it?  I appreciate the help.  @Roman Puchkovskiy I know how to lock. and i know how to clear a file. My question is how can i acquire a lock then clear the file in the respective order. The link you sent is not helpful at all thanks for trying though.


How do I determine when my Macbook pro was manufactured?

I have an early 2011 17" Macbook Pro which is giving me issues related to SATA 6.0gbps; these issues were apparently consistent with the first machines off the line but some of the later machines have been better. I bought my first in March but fed up with the issue I went this week and bought another - alas - same issue.   How can I determine the manufacturing date of the machine?


Bash while loop odd behaviour when running podman build command in the loop

I am trying to use a simple bash while loop to build some podman images. The while loop reads lines from a file to get the image names and uses them to create image tag names and build context paths. File containing container image names one per line in cwd of script ./containers e.g: cont1 cont2 cont3  The loop works fine if I just read the file and echo out the created path names in my loop: #!/bin/bash  containers_basedir=/path/to/container_dirs/ while read container; do     echo "${containers_basedir}${container}/context" done < containers  output: /path/to/container_dirs/cont1/context /path/to/container_dirs/cont2/context /path/to/container_dirs/cont3/context  As soon as I add the actual podman build command into my loop things get strange. When I run the script, it will build the first container and exit. I run it again, it will run the build command on the first container (quick since its already built) then do the second container and exit. Run script again and it will do first, second, third. Run it again and it will do first, second, third, fourth etc. Here is my script with the podman build line added #!/bin/bash  containers_basedir=/path/to/container_dirs/ while read container; do     echo "${containers_basedir}${container}/context"     podman build -q -t ${container} ${containers_basedir}${container}/context done < containers  What is going on here? EDIT: Here is what the output looks like when I add set -x just above the while loop as suggested by comment from @berndbausch No podman comannd, just echo: + read container + echo /path/to/container_dirs/cont1/context /path/to/container_images/cont1/context + read container + echo /path/to/container_dirs/cont2/context /path/to/container_images/cont2/context + read container + echo /path/to/container_dirs/cont3/context /path/to/container_images/cont3/context + read container  Podman added, first run: + read container + echo /path/to/container_dirs/cont1/context /path/to/container_dirs/cont1/context + podman build -q -t cont1 /path/to/container_dirs/cont1/context <---build output omitted---> + read container  And here is the second run output with podman added..... + read container + echo /path/to/container_dirs/cont1/context /path/to/container_dirs/cont1/context + podman build -q -t cont1 /path/to/container_dirs/cont1/context <---build output omitted---> + read container + echo /path/to/container_dirs/cont2/context /path/to/container_dirs/cont2/context + podman build -q -t cont2 /path/to/container_dirs/cont2/context <---build output omitted---> + read container


I'm sorry but this is my first project i'm watching a tutorial and this is what it looks like in viewport shading


Finding Bias$(s^2)$ in incorrect linear model

I am unable to find the bias of the sample variance estimator in this problem. Unfortunately I keep coming up with   Question: Suppose that the true linear model is   $y = X_1\beta_1 + X_2\beta_2 + e$,   where $e \sim MVN(0,\sigma^2 I)$, $X_1: N \times p_1, \beta_1: p_1 \times 1, X_2: N \times p_2, \beta_2: p_2 \times 1$. But we wrongly fit the model  $y = X_1\beta_1+e$ and calculate the estimators of $\beta_1$ and $\sigma^2$ as:  $\hat{\beta}_1 = (X_1'X_1)^{-1}X_1'y$,  $s^2 = \large \frac{y'[I-X_1(X_1'X_1)^{-1}X_1']y}{N-p_1}$.  (a) Show that, in general, $\hat{\beta}_1$ is a biased estimator with  Bias$(\hat{\beta}_1) = (X_1'X_1)^{-1}X_1'X_2\hat{\beta}_2$  Under what condition on $X_1$ and $X_2$ is $\hat{\beta}_1$ unbiased?  (b) Show that, in general, $s^2$ is a biased estimator with   Bias$(s^2) = \frac{1}{N-p_1}\beta_2'X_2'[I-X_1(X_1'X_1)^{-1}X_1']X_2\beta_2$  Is the bias positive or negative? Under what condition on $\beta_2$ is $s^2$ unbiased?  Attempt:  For part (a):  Bias$(\hat{\beta}_1) = E((X_1'X_1)^{-1}X_1'y - \beta_1)$  $\hspace{15mm}= (X_1'X_1)^{-1}X_1'E(y) - \beta_1$  $\hspace{15mm}= (X_1'X_1)^{-1}X_1'(X_1\beta_1 + X_2\beta_2) - \beta_1$  $\hspace{15mm}= (X_1'X_1)^{-1}X_1'X_1\beta_1 + (X_1'X_1)^{-1}X_1'X_2\beta_2) - \beta_1$  $\hspace{15mm}= I\beta_1 + (X_1'X_1)^{-1}X_1'X_2\beta_2 - \beta_1$  $\hspace{15mm}= \beta_1 + (X_1'X_1)^{-1}X_1'X_2\beta_2 - \beta_1$  $\hspace{15mm}= (X_1'X_1)^{-1}X_1'X_2\beta_2$  If $X_1$ and $X_2$ are orthogonal, then $\hat{\beta}_1$ is unbiased.  For part (b), I am unable to figure out how to derive:  Bias$(s^2) = \frac{1}{N-p_1}\beta_2'X_2'[I-X_1(X_1'X_1)^{-1}X_1']X_2\beta_2$  I can get   $\frac{1}{N-p_1}\beta_1'X_1'+\beta_2'X_2'[I-X_1(X_1'X_1)^{-1}X_1']X_1\beta_1+X_2\beta_2$  after taking the expectation of y on both sides.   Any help would be much appreciated.


How to unistall 13.10 on a dual boot XP machine

I am new to Linux in general. As I am sure is the case with many of the new converts, I have an old XP machine that is getting slow and about to be unsupported so I decided to test the waters. I installed 13.10 along side XP only to find that my graphics chip doesn't support the Unity interface upgrade in 13.10 (no launcher, icons, etc). I did download 12.04 after the fact and confirmed that its interface does work (ran it from a flash drive). As I see it, I have 2 options: try to downgrade (which is officially unsupported) or remove 13.10 and install 12.04 fresh.  I looked up the process on removing 13.10, which is pretty simple (wipe out the partitions containing Ubunutu), but it also takes GRUB with it. I downloaded and tried to run EasyBCD to restore the master boot record, but it does not support XP Home. I don't have the original XP disc to repair it via that avenue either. Do I have any other options here that I don't know about? Thanks!


How to display table data inside apex:repeat horizontally?

<apex:form id="SectionTrack">
            <apex:repeat value="{!listT}" var="tp" id="Track_Table">
Track Name	Status	Task Updates

<apex:inputField value="{!tp.name}"/> 	<apex:inputField value="{!tp.Status__c}" />	<apex:inputField value="{!tp.Task_Detail__c}"/>

<apex:inputField value="{!tp.Risk_Detail__c}"/>

Risk/Issues	Some Data

Comments:<apex:inputTextArea rows="3" cols="50" value="{!tp.Comments__c}"/>
             </apex:repeat>
      </apex:form>   This gives a table showing the repeat data vertically, i.e. one below another. I want it to be displayed horizontally i.e. next to each other. How can the apex:repeat be modified or what changes need to be implemented to achieve this?


What is the appropriate site for asking questions related to electronic parts and manufacturers?

I've a DIP I scavenged from a old receiver but I cannot find a datasheet that's why I've to ask a question about its manufacturer but I don't know on which site I should ask the question. I've tried to look for a appropriate site  but cannot find any.


Why is this two initialization of 2d list different in python

I am new to python, and I am trying to create a 2d list of list array. Below is two approach that I think should work, but one of them is actually not correct. board = [["."] * n for _ in range(n)] sth = [["." for _ in range(n)]] * n    when I perform assigned on [0][0] to replace '.' with 'Q' , sth initialize every row, while board only initialize first row. If list * n is a soft copy, and every list in each row of sth in the same, why would ["."] * n not a soft copy ? Here's the result before & after assignment. board[0][0] = 'Q', sth[0][0] = 'Q' board initialize: [['.', '.', '.', '.'], ['.', '.', '.', '.'], ['.', '.', '.', '.'], ['.', '.', '.', '.']] board assigned  : [['Q', '.', '.', '.'], ['.', '.', '.', '.'], ['.', '.', '.', '.'], ['.', '.', '.', '.']] sth initialize  : [['.', '.', '.', '.'], ['.', '.', '.', '.'], ['.', '.', '.', '.'], ['.', '.', '.', '.']] sth assigned    : [['Q', '.', '.', '.'], ['Q', '.', '.', '.'], ['Q', '.', '.', '.'], ['Q', '.', '.', '.']]


Delete files with filename date older than 7 days

so all my files on my backup server are named archive-2021-03-18.zip, archive-2021-03-19.zip, etc. I want to set up a cronjob to delete files where the name is older than 7 days. Would someone be able to assist me please?


Syncing a Blender camera tracking scene to an Fspy camera match

I've been having issues orientating a tracking scene-- For a recent project, I started by doing a camera match on the first frame in Fspy, which produced an amazing result, as evidence by the sample geometry I added as a test:    However, after taking the rest of the footage through blender's camera tracking process, I'm finding it impossible to line up with the above Fspy import.  The Fspy import gave the scene a Field of View of 48.16, while the camera tracking seems to be spitting out a Field of View of around 13.5 . Is there someway I can alter the camera track to generate the 48.16 Field of view? Is there a better way to orient the scene without needing to go through Fspy? Happy to provide the Blend file/Fspy export if needed. .


Is $\sin(p \pi/q)$ necessarily an algebraic number?

Here $p$ and $q$ are co-prime integers. Is it necessarily an algebraic number?


Let $P_n=\frac{2^3-1}{2^3+1} \cdot \frac{3^3-1}{3^3+1} \cdot\frac{4^3-1}{4^3+1}...\frac{n^3-1}{n^3+1}$  Then $\lim_{n\to\infty} P_n=\frac{2}{3}$.  I could understand that as $n \to \infty$, the last term in the series approaches $1$. But I couldn't understand how the product evaluates to $\frac{2}{3}$.


If $[G:H]$ and $[G:K]$ are relatively prime, then $G=HK$

I'm struggling to proof that if $H$ and $K$ are subgroups of  finite index of a group $G$ such that $[G:H]$ and $[G:K]$ are relatively prime, then $G=HK$. I don't know why I can't answer it, because this question seems easy. I'm stuck maybe because I've studied so far just Lagrange's theorem and some of its consequences. But I think we don't need much more, because this is the material covered so far by the Hungerford's book.  I need help.  Thanks.


For any arbitrary integer $a$, prove that $2 \mid a \left( a+1 \right)$    and $3 \mid a \left( a+1 \right) \left( a+2 \right)$   I know that if $2 \mid a \left( a+1 \right)$ then $a \left( a+1 \right)=2q$; $q \in \mathbb{Z}$.   And if $3 \mid a \left( a+1 \right) \left( a+2 \right)$, then $a \left( a+1 \right) \left( a+2 \right) = 3r$; $r \in \mathbb{Z}$.   But how do I prove that both are true?


In a comment to  Kortuk asks what the ARM advantage is. I first added some arguments in my answer, but I think the question is interesting enough to be a question in itself, so that more answers are possible.


Seedable JavaScript random number generator

The JavaScript  function returns a random value between 0 and 1, automatically seeded based on the current time (similar to Java I believe).  However, I don't think there's any way to set you own seed for it.  How can I make a random number generator that I can provide my own seed value for, so that I can have it produce a repeatable sequence of (pseudo)random numbers?


how come for any given f(x) a y could have multiple values of x, while x has only a single y value

I guess i might be answering my own question here, but is it because of how we chose to represent our functions? That is, for the lack of better term, strech it along the x axis? Has it it been f(y) would it be the other way around?


Changing the spacing inside equation with underbrace

I am aware of questions/answers that address the question of space around the equal-sign (e.g.  or ). However, my question is related to a situation where I make use of \underbrace:      The text in \underbrace causes a shift to the right of everything outside of the braces. I do not want to introduce a linebreak in the text, nor do I want to extend the underbrace - I just do not like the large gap in the equation. I have tried  without significant effect. How do I move the portion to the right of the braces so that it is partially above the text? (Have I missed something in the ?)    This portion of code reproduces the equation above:    \begin{equation}   \underbrace{\left(\frac{\vec{\omega}\cdot\vec{v}}{\vec{v}\cdot\vec{v}}\right)}_%   {\text{projection of }\vec{\omega}\text{ on }\vec{v}}\vec{v}=%   \frac{\xi_{\text{s}}}{v_{\text{s}}}\vec{v} \end{equation}


How to prove the inequality $a_1^{a_1}a_2^{a_2}\cdots a_n^{a_n} > \left(\frac{a_1+\dots+a_n}{n}\right)^{a_1+\dots+a_n}$?

If $a_1,\dots,a_n$ are all unequal positive quantities, then prove that: $$\prod_{i=1}^n a_i^{a_i} > \left(\frac{\sum_{i=1}^n a_i}{n}\right)^{\sum_{i=1}^n a_i}$$ No other conditions are given. I tried to solve it using logarithms, but I could not understand how can I prove $${a_1\log a_1}+{a_2 \log a_2}+\dots+{a_n\log a_n} > {(a_1+\dots +a_n)}  \left(\log(a+\dots+a_n)-\log(n)\right)$$ And please tell me, is there any standard method to solve this kind of problems?


Geography ST_Intersects causes "Boom! Could not generate outside point!"

I'm trying to find where a user is based on their point and a table of multi polygons.  I currently have:  SELECT u.name l.name FROM users u INNER JOIN locations AS l ON ST_Intersects(u.location, l.geog)   Where both u.location and l.geog are of type geography.  And I get the Error     Boom! Could not generate outside point   I've created a new table with just one user in and one multi polygon in and it's still triggering the above error.  If I go back to the original location set and add ::geometry, the point seems to land in 23 out of the 28 possible multi polygons which is also incorrect.  Could you direct me in what I'm doing wrong?     I first moved to geom and the issue persisted (not the boom, but the random returning of polygons).  I discovered the issue.  The data I was using was in the format 27700 but it didn't have a set SRID of 27700.  So to make this work, I had to explicitly set it to the correct SRID before changing:  SELECT u.name l.name FROM users u INNER JOIN locations AS l ON ST_Intersects(u.location, ST_Transform(ST_SetSRID(l.geom,27700),4326))


Pokemong GO Stuck at loading screen with spinning white pokeball

THIS IS NOT A DUPLICATE!  When I login with Google account the screen goes white with spinning white pokeball under the Pokemon GO logo. Seriously, I dont know what to do. I made other account with Pokemon trainer and it works fine. But I will be grateful for any solution to get back to my previous account because I had there many pokemons.


Why is ATP the preferred choice for energy carriers?

Why is ATP the most prevalent form of chemical energy storage and utilization in most cells?


PDF text becomes blurry when \includegraphics is used, why?

I'm compiling this code with XeLaTeX:  \documentclass[11pt]{article} \usepackage{graphicx} \begin{document}     This text is blurry if there is an image.     \includegraphics{Test.png} \end{document}   where the image I'm including is:   If I comment out the \includesgraphics, I get:    If I don't, I get:    Why does the text look different (in my eyes, blurrier) when there is an image on the screen? How can I prevent this from happening in XeLaTeX?


I have studied calculus and a bit of linear algebra. And now, I'm finding a book about analysis, which I can self-study. Can anyone recommend me a good analysis book which has many examples, and is compact?


We are trying to move all our websites we host to CNAMES as we are planning on moving servers in the new year and would like the ability to move some clients to one server and other clients somewhere else. We were planning on giving clients a unique CNAME which we can then change at a later date. (We have other reasons for doing this now but that is the main one)  We have been testing out this theory with a few of our own domains and it seemed to be fine. However when checking the MX records on a domain I got the CNAME value back rather than the MX record.  Sadly all of these domains are done via control panels, but I am guessing they are just writing zone files for me.  I want to create 2 CNAMEs for the company.com  company.com. IN CNAME client.dns.ourserver.com www          IN CNAME client.dns.ourserver.com   The MX record is something like the following:  company.com  IN MX 10 mail.company.com   We have an A record for mail.company.com  Doing:  host -t mx company.com   Returns the CNAME value rather than the mx record.  Is this expected behaviour?  I have managed to get the above configuration working with the 123-reg.co.uk control panel, but not sure if that is more luck than anything.


I reviewed a post and I made a mistake I clicked the No action need button instead of the Skip button.  Is it possibke to revoke my review?


High CPU core usage from System Interrupts

The CPU usage on my  hasn't gone below 25% in days, and I realized that it’s because my 4th core is constantly at 100% load.  I have spent quite a while trying to figure out why, and the only suggestion I could find that I hadn’t tried already is to turn off sound effects, and this caused my CPU usage to go right down and then spike back up. Now it just spikes up and down, and it’s still System Interrupts that’s causing it.  What could be happening here, and is there anything I could do to stop it? This wasn’t happening before the last time I did a full wipe.


Short story about humans on a hostile planet, genetically engineering their offspring gradually over generations, to be able to survive on it

This was a short story I read sometime before 2000, most likely sometime between 1981 and 1995. It was collected in a paperback with other stories, which I believe (but am not sure) were by separate authors. I also believe (but am not sure) that the cover of the paperback was pink. I may have checked out the book from the public library, which means the book itself could have been arbitrarily old.  On a planet with a hostile atmosphere, there are humans living within a dome or some other artificial environment. Each generation genetically engineers the next generation to be closer to being able to live outside the dome. At the end of the story (and perhaps also the beginning of the story—I'm not sure how much time elapses during the narrative) the final generation is almost ready to be released into the wild, but they are strong (with a low, dense, non-humanoid body shape) and out of control, and they risk damaging (or actually do damage) the dome and therefore the lives of the older generations. The young ones will survive and thrive on the planet, the older ones think to themselves with pride, even if the rest of us must parish.  The subtext of the story is that while the youngsters may technically be human (in the sense of DNA), they are no longer human from any meaningful point of view. The reader is left questioning the wisdom of their plan.  Maybe the first generation engineers all the subsequent generations, instead of each engineering the next. That's not how I remember it, but if each generation engineered the next, then the penultimate generation would be not human enough to convey the subtext. Also, the final generation is wild, presumably lacking any kind of education or technical know-how, so presumably the penultimate generation would be close enough to wild that they wouldn't be able to genetically engineer anything. This IMHO would make it hard for the author to pull off each-generation-engineers-the-next, but maybe she or he was able to.


What is the intuition behind 'Infinitesimal generator matrix?What why we need it?Why it is called generator matrix?what it generates?


HTTP Callout from Salesforce to Google Analytics

I want to get some of the data from Google Analytics into Salesforce. I have looked through a series of articles but I couldn't find any step by step guide how to do so, hence I am unsure what approach should I take.  This is one of the articles I tried to follow:   I would need to get the data on a daily basis so I was thinking in creating a batch class which performs GA callouts everyday. I don't have much experience in doing so, especially how to work with the GA api.   If anybody has any knowledge how to achieve this in terms of what design approach would be the easiest to implement and could lead me into the right direction or is able to provide some sample code, reference some useful articles I would be grateful.


I'm trying to use the \citep command in Latex and my document class is elsarticle. The problem is that it displays numbers not authoryear citations in the text which is what I'm looking for. Here are related parts of my code:      \documentclass[preprint,11pt]{elsarticle}      \usepackage{natbib}   ...      \bibliographystyle{plainnat}      \bibliography{ML}   And I'm obviously using the \citep command like this:      I once read \citep{edelman1993magnetic}   And my .bib file looks like this:  @article{wolf2009regional, title={Regional brain activation changes and abnormal functional connectivity of the         ventrolateral prefrontal cortex during working memory processing in adults with attention-deficit/hyperactivity disorder}, author={Wolf, Robert C and Plichta, Michael M and Sambataro, Fabio and Fallgatter,     Andreas J and Jacob, Christian and Lesch, Klaus-Peter and Herrmann, Martin J and     Sch{\"o}nfeldt-Lecuona, Carlos and Connemann, Bernhard J and Gr{\"o}n, Georg and others}, journal={Human brain mapping}, volume={30}, number={7}, pages={2252--2266}, year={2009}, publisher={Wiley Online Library} }   The result looks like:  I once read[1]   I'm looking for a result like this:  I once read(wolf., 2009)   Elsevier is actually looking for:  Text: All citations in the text should refer to:    Single author: the author's name (without initials, unless there is ambiguity) and the year of publication;  Two authors: both authors' names and the year of publication;  Three or more authors: first author's name followed by 'et al.' and the year of publication.    Thanks in advance


Is there any way to use OFFSET without LIMIT in mysql?  I tried many ways and many times.  I also searched a lot.


Solution Attempt  As $A \subseteq A \cup B$ we have $Int(A) \subseteq A \subseteq A \cup B$  Similarly, $Int(B) \subseteq A \cup B$  $\implies Int(A) \cup int(B) \subseteq A \cup B$  Now $Int(A) \cup Int(B)$ is an open subset of $A \cup B$. As $Int(A \cup B)$ is the union of all open subsets of $A \cup B$ we have that $Int(A) \cup Int(B) \subseteq Int(A \cup B)$


A star is being printed for an empty directory after running a script to list the subfolder

I was trying to write a shell script that will take a directory path d as an argument and recursively print a depth indented list of all files and directories in d. However, the argument d is optional and if no argument is given, a depth indented list of all files and directories in the current  directory will be printed. Here is my code: # the method for tree  myspace="" spaceCount=0 tree(){        cd "$1"   for i in *; do     if [ -d "$i" ]; then       echo -n "|"          for (( j=0;j<spaceCount;j++ ))        do          echo -n "$myspace"         done       echo "--$i"       spaceCount=$((spaceCount+1))        myspace="  |"       tree "$i"     else       echo -n "|"       for (( j=0;j<spaceCount;j++ ))        do          echo -n "$myspace"         done       echo "--$i"     fi   done   cd ../   spaceCount=$((spaceCount-1)) }   if [ "$1" != "" ]; then   file="$1" fi echo ".$file" tree "$file"  But when a folder is empty, it's printing a star like this: How can I solve the problem?


How should I choose a power supply for a stepper motor, if the motor requires 7V and 1A? Should I buy a power supply of exactly 7V and current of minimum 1A?


Do you ever need to specify 'javascript:' in an onclick?

AFAIK, you never need to specify the protocol in an onclick:  onclick="javascript:myFunction()" Bad  onclick="myFunction()" Good  Today I noticed in  on Google Anallytics that they are using it:  <a href="http://www.example.com" onClick="javascript: pageTracker._trackPageview('/outgoing/example.com');">   Is this example just plain wrong, or is there ever a reason to specify javascript: in anything other than a href?


Why $\lim_{z\to 0}\frac{(\bar{z})^2}{z^2}$ doesn't exist?

Why this limit does not exist?  $$\lim_{z\to 0}\frac{(\bar{z})^2}{z^2}$$  I know that the limit exists and equals to $1$ is $z$ is real. When $z$ is complex, I tried  $$\frac{(\bar{z})^2}{z^2}=\frac{e^{-2i\theta}}{e^{2i\theta}}=e^{-4i\theta}$$  Then put the limit back,  $$\lim_{z\to 0} \frac{(\bar{z})^2}{z^2}=\lim_{z\to0} e^{-4i\theta}$$  Then I got a little bit confused because I wasn't sure if $\lim_{z\to 0}$ is equivalent to $\lim_{r\to 0}$? I was thinking something like "$z$ gets small iif $\|z\|$ gets small iif $r$ gets small".


Show $\sum_{k=1}^n \frac{1}{k^2} \le 2$ and $\ln(n!) \ge 1 -n+n\ln(n)$ for all positive integers n

I have been trying to show these two inequalities hold for all positive integers n, but I don't know how to proceed at all... I have tried playing around with them but I didn't find anything helpful. I have also tried induction but I couldn't make it work.


Pass the output of previous command to next as an argument

I've a command that outputs data to stdout (command1 -p=aaa -v=bbb -i=4). The output line can have the following value:  rate (10%) - name: value - 10Kbps   I want to grep that output in order to store that 'rate' (I guess pipe will be useful here). And finally, I would like that rate to be a value of a parameter on a second command (let's say command2 -t=${rate})  It looks to be tricky on my side; I would like to know better how to use pipes, grep, sed and so on.  I've tried lots of combinations like that one but I'm getting confused of these:  $ command1 -p=aaa -v=bbb -i=4 | grep "rate" 2>&1 command2 -t="rate was "${rate}


I'm trying to send mail from my Java class but continuously getting MessangingException. I think its something related to authentication issue but i'm unable to figure out the problem.  Following is the stack trace  of the exception.  Sep 19, 2012 7:27:30 PM me.uni.sushilkumar.geodine.util.Mailer send SEVERE: null javax.mail.SendFailedException: Sending failed;   nested exception is:      javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first.     ko8sm1883776pbc.40      at javax.mail.Transport.send0(Transport.java:219) at javax.mail.Transport.send(Transport.java:81) at me.uni.sushilkumar.geodine.util.Mailer.send(Mailer.java:61) at me.uni.sushilkumar.geodine.util.Mailer.main(Mailer.java:73)   I am sending the message using following code  public class Mailer { private Session session; private final String username; private final String password; public Mailer(String username,String password) {     this.username=username;     this.password=password;     init(username,password); }  public final void init(String username,String password) {     Properties props=new Properties();     props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.port", "587");     session=Session.getInstance(props, new Authenticator()     {         @Override         protected PasswordAuthentication getPasswordAuthentication() {             return new PasswordAuthentication(Mailer.this.username,Mailer.this. password);         }     });  }  public boolean send(String recipient,String subject,String body)  {     boolean status=false;     try {          Message message=new MimeMessage(session);         message.setFrom(new InternetAddress(username));         message.setRecipients(Message.RecipientType.TO, InternetAddress.parse(recipient));         message.setSubject(subject);         message.setText(body);         Transport.send(message);         status=true;      } catch (MessagingException ex) {         Logger.getLogger(Mailer.class.getName()).log(Level.SEVERE, null, ex);     }     return status; }  public static void main(String[] args) {     Mailer mailer=new Mailer("example@example.com","password");     boolean status=mailer.send("0120sushil@gmail.com", "Demo Mail", "This is a demo message"); }  }   can anybody suggest me what's wrong with this code?


Can't add github URL that I don't own, but contribute majority of code to, to list of projects on CV?

I'm trying to add a github project to my CV, but I can't add it because it's not actually owned by my "earlz" username, but rather is branched off into its own "team". Although, right now, I am the creator of the repo and only contributor. How can I add this project to my CV?   And just for reference, my github name is Earlz, and the project I'm trying to add is this:


Running a Java process in Windows even after the user is logged out

I have a batch file that starts a Java process in a Windows 2003 server. As per the security policy, the users of that machine are logged off forcefully, if the user is inactive for a certain period of time. The problem is that when the user is logged out, the process also dies.  I scheduled a new task (Control Panel -> Scheduled Tasks) and selected the option of 'When my computer starts' and gave the user account details there. But it doesn't seem to have any effect, the user is still logged out and the process dies. Is a reboot necessary to make this change effective? And after the reboot, will I achieve what I'm expecting (keeping the process alive)?  Alternatively, will running this process as a Windows Service solve the problem? If so, can you please let me know how I can make a Java program or a batch file to run as a Windows Service? I would prefer not to use any other third party tools or libraries.  Thanks


how to balance mixed tungsten and daylight in a showroom?

Location: interior showroom (mixed tungsten and day light from show window) How do you balance the light? please explain  I am an engineering student taking a non technical elective course about cinema.   I am struggling with this lighting assignment since i have no background in lighting at all.   the question is exactly like i typed it above, i wish there was more information to help solving this question   the answer does not have to be very detailed  thank you in advance


Starting services in batch file on windows 7

I have a fairly simple batch file which does just one thing - "net start myservice". This batch file gets shortcut-ed in a program group by installer so that users can simply click on the icon and get things started (or stopped). All works well in XP for the users with admin rights. But things get hairy on Win7 as the batch need to be run "as administrator" explicitly and often users don't know this. So my question is how to make this friendly? Telling users to right click and run as admin on Win7 and simply click on XP is kind of weird twist. I need a smart automatic simple thingy.  I could probably use "runas/user:administrator" in the batch itself, but this "administrator" account might not be available on some machines. I'm looking for a universal solution for installing things like this on any Windows box.   Ideas? How would you do this?


I need to draw 20 distributions in a single graph in R, and it doesn't look good (cluttered) to me with regular boxplot (20 boxes) even with boxwex=0.3. Could you suggest me how can I plot a kind of boxplot in R for the 20 distributions, with dots for median and just a line instead of box, like the one below. Please also suggest me if there is any R method that produces nice boxplots, specifically if you want to show several distributions in a single graph.   -----0----


Gash where valve meets tire tube; How could this happen, and can I fix it?

I'm fairly new to bicycling; apologies if this is a standard question but I couldn't figure out how to phrase it to search for it elsewhere.  I ride a KHS Urban-X with Kenda Kwest tires (just what it came with). I've gotten barely any use out of it since owning it, and it's been resting comfortably in the living room through the winter, so I decided today was a great day to get back on.   So I unscrewed the back tire cap, and began to hand-pump air into the tire. All seemed to go well, and the tire held pressure fine, but when I removed the tire pump, the pin appeared to remain pushed down slightly, and air flowed back out of the tire. I looked, and this is what I saw:    Several narrow gashes that appear as if the rubbed was ripped, cut, or separated somehow.  Questions   Is this a common occurrence? Again, I've ridden on this bike very little and thus filled up the tires even less. We have no animals and no bugs around that I know of that would gnaw or chew on such material. Is this fixable, or is my tube completely shot? It would seem to me that the latter is the case. Is there anything I can do to prevent this in the future? I use a hand pump but am gentle; would a stand-up pump be a better choice?  Do bike tires come with a standard warranty for cases like this, or do you know of any brands that do? If I have to purchase new tires, I'm going to purchase Is there any kind of "off-season" maintenance that I should be performing on my bike that could prevent things like this?   Thanks in advance for any help you can give!


NullPointer Exception Iterating JSONArray for loop

really struggling connecting my Android app to an API that has the JSON I need. My log shows the JSON comes in (i.e. I can see the full JSON array in Android Studio's log) but I'm getting a nullpointer error in my for loop line. I know I'm supposed to initialize it first but my JSONArray is really a placeholder until the getApartmentList method is called in another class. And directly trying to reach the API to give the JSONArray a real value here obviously results in a networkonmainthread error. I'm probably overcomplicating this but what am I missing?   public List<Apartment> getApartmentList(JSONArray jsonArray) { //added the parameter, placeholder for "apartments" array which contains all apts in our database          List<Apartment> apartmentList = new ArrayList<>();           for(int i=0; i<jsonArray.length();i++){ //nullpointer exception here              JSONObject json = null;               try {                  json = jsonArray.getJSONObject(i);                    Apartment apartment = new Apartment(UUID.fromString(json.getString("id") ) ); //UUID from String already converts our JSON string result into a UUID                 apartment.setApartmentText(json.getInt("price") + " " + json.getInt("bedrooms") + " " + json.getInt("bathrooms") );                 apartment.setApartmentLatitude(json.getJSONObject("building").getDouble("latitude"));                 apartment.setApartmentLongitude(json.getJSONObject("building").getDouble("longitude"));                   apartmentList.add(apartment);              } catch (JSONException e) {                 e.printStackTrace();             }            }//end of for loop            return apartmentList;               }//end of getApartmentList method    This is where this method is called in a separate class and gets a real value:  public class GetAllCustomerTask extends AsyncTask<ApiConnector,Long,JSONArray>         {         @Override         protected JSONArray doInBackground(ApiConnector... params) {                  return params[0].GetAllCustomers();          }           //the ApiConnector class is where I connect to the URL of the API, i.e. where i connect to the JSON       @Override             protected void onPostExecute(JSONArray jsonArray) {      ApartmentInventory apartmentInventory = new ApartmentInventory(getActivity() ); apartmentInventory.getApartmentList(jsonArray);                     }          } // end of GetAllCustomerTask method   EDIT - pasting log  11-19 22:00:22.787  24528-24528/AndroidRuntime﹕ FATAL EXCEPTION: main     Process: com.example, PID: 24528     java.lang.NullPointerException             at ApartmentInventory.getApartmentList(ApartmentInventory.java:118)             at ListingsFragment$GetAllCustomerTask.onPostExecute(ListingsFragment.java:79)             at ListingsFragment$GetAllCustomerTask.onPostExecute(ListingsFragment.java:54)             at android.os.AsyncTask.finish(AsyncTask.java:632)             at android.os.AsyncTask.access$600(AsyncTask.java:177)             at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:146)             at android.app.ActivityThread.main(ActivityThread.java:5487)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:515)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)             at dalvik.system.NativeStart.main(Native Method)


How to resize partition that is inside "Linux LVM" partition in 13.10 Ubuntu? I transferred Ubuntu installation from 160GB to 500GB disk. I have successfully resized sda3 partition using Ubuntu LiveCd and GParted and now have no idea how to resize this "155 GB Block Device".  Here is how it looks like.     Thanks, Igor


Reclassifying raster analysis (like the one in ArcGIS Spatial Analyst) in QGIS

I am trying to reclassify raster (DEM) in QGIS. I know how it is done in ArcGIS (Spatial Analyst, reclassify option), but I would like to know how it is done in QGIS?.   The point of my exercise is to set all the values of elevation in DEM in the range from 1200-1600 meters as 1.


Let's say I have a spreadsheet with ten rows (numbered 1 to 10) and ten columns  (represented alphabetically A through J). Here's what I'm trying to do:  Firstly, I want a given row to be painted green entirely whenever the following conditions are met within the cells of that row:   Cell E has the value "ALPHA"   AND    Cell F has the value "BETA"   AND   Cell G has the values "GAMMA" OR "DELTA"   Furthermore, I want blank cells to remain white, meaning that the coloring should be applied exclusively to cells that have any values (whatsoever) in them.  Finally, I want that this conditional formatting would be applied to my ENTIRE spreadsheet, and will continue to be applied automatically as I go and expand my spreadsheet with new columns and rows.  The question is: how do I achieve this?  EDIT: I believe my question is different than the one it was marked a duplicate of. While the other question revolves around the coloring of a CELL based on the value of ANOTHER cell, what I'm trying to do is to color whole rows based on the presence of certain values in different cells, with some added complexities such as varying values within a cell that match the same rule; different coloring for different rules; and leaving blank cells white even if they belong to a painted row.  And also, there's no mention in that question of how to apply the rules automatically to an expanding sheet as new rows and columns are added.       Thanks in advance.


detailed means having many details  brief means short  So how come are they antonyms?  what if something is detailed and still short even after providing all the details? (it totally depends on the topic)


I have an ASUS Q500A 64bit notebook with oem installed Windows 8. I am preparing to install Ubuntu 13.04 to dual boot.  Any basic install advice would be nice, will Win8 secure boot, uefi, interfere and how can I get around it.


Why can an electric field escape from a black hole?

I know this is a duplicate question but the other answers didn't explain clearly my problem. The talks about no hair theory for explaining the communication and information problem of matter inside the black hole. But I just want to know how it is possible that a field can escape from a black hole. It is not clear where an electric field is made of and perhaps that is the lack of information which can answer why it can escape a black hole.


I read this up on this website and it doesn't make sense.       When UNIX was first written, /bin and   /usr/bin physically resided on two   different disks: /bin being on a   smaller faster (more expensive) disk,   and /usr/bin on a bigger slower disk.   Now, /bin is a symbolic link to   /usr/bin: they are essentially the   same directory.   But when you ls the /bin folder, it has far less content than the /usr/bin folder (at least on my running system).  So can someone please explain the difference?


I am having trouble displaying an image on a JLabel. I have another class called ControlPanel which saves the image in the project folder. I had the methods which save the image in this class but for some reason, I was getting a NullPointerException. When I moved them in the other class everything started working properly.  The actual image is a bufferedImage on which the user draws.  import java.awt.Color; import java.awt.Dimension; import java.awt.GridLayout; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException;  import javax.imageio.ImageIO; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPanel;  public class GalleryPanel extends JPanel  {      private static final long serialVersionUID = 1L;     private JLabel[] images;     private static final int MAX_IMAGES = 12;     private int currentImage;       public void init()     {            images = new JLabel[MAX_IMAGES];         setLayout(new GridLayout(3,4));         setBackground(Color.GRAY);     }       public void addImageToGallery(String fileName, String fileExtension)     {         if ( currentImage < images.length - 1)         {                ImageIcon icon = new ImageIcon(fileName + fileExtension);              images[currentImage] = new JLabel(icon, JLabel.CENTER);              add(images[currentImage]);              displayImage(currentImage);              currentImage++;         }         else         {             throw new ArrayIndexOutOfBoundsException("The gallery is full");         }     }       // display the doily image in the gallery     public void displayImage(int index)     {         images[index].setSize(300, 300);         add(images[index]);     }       public final int getMaxImages()     {         return MAX_IMAGES;     }       public Dimension getPreferredSize()      {           return new Dimension(380, 700);     }  }   those are the two methods in my other class which are responsible for saving the actual image  // Shows a dialog box which asks the user to choose a name for the file that he wants to save public void saveImage(BufferedImage bufImage) {     String fileName = JOptionPane.showInputDialog("Choose image name");      if (fileName != null)     {            if(fileName.equals(""))         {             fileName = "Untitled";         }          chooseImageFormat(bufImage, fileName);     }     }       //shows a dialog box which asks the user to select the file format of the image he would like to save public void chooseImageFormat(BufferedImage bufImage, String fileName) {     Object[] imageFormats = {"PNG", "JPEG"};      String userInput = (String) JOptionPane.showInputDialog(null, "Choose file format", "File Format Settings", JOptionPane.PLAIN_MESSAGE, null, imageFormats, "PNG");       String imageFormat = (userInput.equals("PNG")) ? "PNG" : "JPEG";     String fileExtension = (imageFormat.equals("PNG")) ? ".png" : ".jpg";      File file = new File(fileName + fileExtension );      try      {         ImageIO.write(bufImage, imageFormat, file);     }      catch (IOException e)      {         e.printStackTrace();     }      gallery.addImageToGallery(fileName, fileExtension); }


Proving $(\mathbb{C},\mathbb{C})$ Is Not A Field

Let's $(\mathbb{C},\mathbb{C})$ be a ordered paired of elements form $\mathbb{C}$ when $\mathbb{C}$ is defined as (a,b).  addition and multiplication is defined as in $\mathbb{C}$.  How do I prove it is not a field if $\mathbb{C}$ is a field


Voting to Close after Accidentally Voting to Leave Open

When reviewing on SO, I accidentally pushed the "Leave Open" button on a post that clearly should've been closed. I pushed the back button and saw that in the review panel my vote to keep open had been locked and it said:     PhpMyCoder voted to leave open 1 minute ago   So I clicked on the question heading to go to its page and I clicked the close link on the question page and voted to close for the relevant reason. However, when I returned to the review page (and did a hard refresh) it still said:     PhpMyCoder voted to leave open 2 minutes ago   Is it possible to vote to leave open and vote to close at the same time? I assume not. In which case, I'd say this is a bug because it should've updated to say:     OtherUser and PhpMyCoder voted to close 2 minutes ago