UK Visa Refused - can I reapply immediately?

I applied for the UK tourism visa.  I mentioned that I was going to travel only for 2 weeks. However I got rejected because I didn't mention in the application, that I was working, nor mentioned that my dad has a job also.  Although I gave them my dad's bank statement, they were worried that I might go to the UK and not come back, because I might not have enough funds to return to Egypt which is not true.  My mum wrote my application and she didn't know that she was supposed to put my dad's job or mine as well, or whether I stayed with my family or alone. I suspect that's the reason why the visa application got rejected.  I want to apply again for the visa because I want to visit my cousin - she lives there, plus I need to go on a vacation. I want to know whether it's possible for me to apply again for the visa now, or do I have to wait for another six months to reapply?


How do taking vector product of two vectors gives us another vector which is PERPENDICULAR TO BOTH THE VECTORS?

I know that to get a vector perpendicular to another two vectors, we need to take the cross product of that two vectors. But I don't know why it is like that. Anybody pls explain why it is so intuitively or just give me the proof or something........., Thank you!


How to write a small tokenizer in Python?

Normally, Python calls functions by  func(arg0, arg1)   But I would like to change to  func arg0 arg1   For example,  #Something... cmd = input() interpret(cmd) #Something...   If I input 'func arg0 arg1', then I expect Python to execute func(arg0, arg1).  Args will contain string, so that we can't simply split words.  Actually, I would like to write some scripts to use on my mobile. So it would be a little annoying to type parentheses.


Find the expected value of $\frac{1}{X+1}$ where $X$ is binomial

The problem:  X is a binomial random variable, find $E[\frac{1}{X+1}]$ n and p are not given  PDF for a binomial distribution is $\binom{n}{k}p^k(1-p)^{n-k}$  Expected value is $\sum{x_ip(x_i)}$  But this is where I get stuck, I'm really rusty on my statistics and I'm not sure exactly how to structure it in the next step? I think I want to get the form of the following out of the summation  $\sum _{k=0}^{n} \binom{n}{k}p^k(1-p)^{n-k} = (p + 1 - p)^n = 1$  But I'm not sure if it should look like  $\sum \frac{1}{xp(x)+1} $  and if it should where to go from here?


Loopback to forwarded Public IP address from local network - Hairpin NAT

This is a  about Hairpin NAT (Loopback NAT).   The generic form of this question is:  We have a network with clients, a server, and a NAT Router. There is port forwarding on the router to the server so some of it's services are available externally. We have DNS pointing to the external IP. Local network clients fail to connect, but external work.   Why does this fail? How can I create a unified naming scheme (DNS names which work both locally and externally)?   This question has answeres merged from multiple other questions. They originally referenced FreeBSD, D-Link, Microtik, and other equipment. They're all trying to solve the same problem however.


Recover files after installing ubuntu on a PC that previously had Windows 7

I have my HP all-in-one PC which previously had Windows 7 and just installed Ubuntu 20. To do this, I chose to format my drive and install Linux. The thing is that I forgot to backup some files.   I know there are file-recovery software solutions around but all seems to recover files after reinstalling the same OS and in my case I changed from Windows to Linux.  Any ideas?


ctrl-d didn't stop the while(getchar()!=EOF) loop

Here is my code. I run it in ubuntu with terminal. when I type (a CtrlD) in terminal, the program didn't stop but continued to wait for my input.  Isn't CtrlD equal to EOF in unix?  Thank you.     #include<stdio.h>  main() {     int d;     while(d=getchar()!=EOF) {         printf("\"getchar()!=EOF\" result is %d\n", d);         printf("EOF:%d\n", EOF);     }         printf("\"getchar()!=EOF\" result is %d\n", d); }


If $\liminf\, |a_n|=0.$ Does there exists a subsequence of $\{a_n\}$  which has finite sum?  I tried to prove as follows: Since $\liminf\, |a_n|=0,$ then we can find $n_1<n_2<n_3\ldots$ such that $|a_{n_{1}}|<\frac{1}{2},$  $|a_{n_{2}}|<\frac{1}{2^2},\ldots.$ Therefore, \begin{align} \sum_{j=1}^N|a_{n_j}|<\sum_{j=1}^{N}\frac{1}{2^j}<1 \end{align} This implies $\left\{\sum_{j=1}^Na_{n_j}\right\}$ is absolutely convergent, hence convergent. Is there another way to prove?


How do you determine if a date is between two other dates with Java 8's java.time API?


I don't know how to call this but how to make a monochrome like the one on bottom. The exclusion (white), but originally it doesn't overlap.


Clicking any Careers (or Jobs) ad in the Android app feed results in an instant crash for the Android App version 1.0.89.


What is the point of LTS releases if they contain outdated packages?

As the title says. What's the point of the LTS if I have to update anyway at least every 2 years because the packages aren't updated to new versions and hence quickly contain non-supported versions?


What am I doing wrong regarding flipping omlettes or pancakes?

It seems that whenever I need to flip an omelette, either the top is way too liquid (thus, I can't flip it effectively, as it just runs off the top); or by the time the top solidifies, the bottom is over-cooked if not charred.  I suspect I'm doing something wrong but not sure what (aside from using way less so the omelette is much thinner and cooks through faster - mine are ~1.5cm thick).   (the question is primarily about omelettes but I had similar issues with large pancakes with more liquidy batter).


What is the min and max character length for a non-US postal code

I am trying to develop an application that accepts a postal code from a form. The form is accessible worldwide. I know that for US zip codes the standard character length is 5, but what is the min and max for non-US postal codes? I need to know because I am using a validation constraint:  /**      * The zip code used to retrieve a US based customer's state.      */     @Nullable     @Size(min=5, max=5)     private final String zip;   This question was marked as a duplicate because of this post: . Which doesn't specify the minimum for all non-US postal codes.


Gerund needs to be modified by a possessive?

Is this true?  Not sure if  Signup up is a gerund  And if so does it need to modified by a possessive?   It doesn’t sound right to me with “your”


I don't understand why a switch-case statement requires you to explicitly insert a break after each case. Isn't the whole point of it to stop once a case is made?  Can someone give me a circumstance where a case is found true but for some reason [you insert reason here] you still need the code block to execute through.  This is a vaild PHP switch-case statement     switch ($error) {     case 'empty':         $msg = 'Field cannot be empty.';         break;      case 'invalid':         $msg = "Field may only contain number.";         break;     }    This is a invaild PHP switch-case statement     switch ($error) {     case 'empty':         $msg = 'Field cannot be empty.';     case 'invalid':         $msg = "Field may only contain number.";     }    So is this break useless or does it serve a purpose in some situations?


Why can you not name He-Who-Must-Not-Be-Named?

I know that there is some magic cast on his name later in the series, but has it always been like this? What's the origin of this title?


When should N-Gons be used, and when shouldn't they?

Support for N-Gons (polygons consisting of more than 4 vertices) has been in Blender for a while now, but many of us still may not know when to use them, and how to do so effectively.  In what situations do N-Gons really come in handy? When should they be just plain left out? Do they have any place in finished models?


What is a good alternative to Remastersys/UB/UCK?

I'm eager to use my respin of Ubuntu 14.04 on my other machines. The problem is that since Remastersys and Ubuntu Builder are discontinued, it's hard to find a good alternative. For some reason UCK won't work on my computer (even with various tweaks people post to make it work). It doesn't have to be a GUI program, but at least a bit usable. I also want to customize Ubiquity and install it with a USB. The system will be used within my company.  Thanks in advance!


This question suddenly came to my mind (May be very silly question...)     Suppose $f$ is a continuous function over $\mathbb{R}$ and twice differentiable. Can $f$ ever has uncountable number of Local maxima or minima? (Twice differentiablity can be ignored for finitely many points).   I was thinking of counter-example (obviously), but could not find one.(I am really really bad at finding counter-example actually!)  I thought about the example $x^2\sin\Big(\dfrac{1}{x}\Big)$ when $x\neq 0$, and $0$, when $x=0$, but this function is not twice differentiable everywhere.  Added:  Note: Twice differentiablity can be ignored for finitely many points (Because I think if I impose this condition the problem will be interesting...)


How do I host my website with another web hosting provider which is not the provider I registered domain name with?

Recently I registered for a domain name and bought it. I had failed to check their hosting plans first :(. They charge a lot for hosting a website. I am thinking of hosting it under some free web hosting provider. How do I host my website with another web hosting provider which is not the provider I registered the domain with?


I am having a problem with the following:  Alias:  alias gks='gitk --all &; clear; git status'       When I try it I see -  Console Resp:  $ gks bash: syntax error near unexpected token `;'   It appears to be the job control ('&') for the gitk command, is it possible to integrate this job control into an alias?


Best resolution for a 2x2m design in Photoshop ?

Possible Duplicate:          I am required to create a 2x2m design that will be printed. I'm using Adobe Photoshop CS5.  What is the best width, height and resolution? I think it is odd to create a 2x2m document! Do you?


Proving that the completion is a Hilbert space.

I want to prove the following theorem:  Let $X$ be a separable inner product space and $\bar X$ its completeness. Then $\bar X$ is a separable Hilbert space.  But I am a little bit confused and stuck,I think more hypothesis on $X$ to get the result, because well, we know that $\bar X$ by definition, but how do you ensure that it has a inner product? and even more, how do you construct a countable dense set from elements that are abstract?, since we have to recall that all the points that live in the completion are equivalency classes of sequences, so it is hard for me to deal with them.  I know that the completion is the quotient space of the Cauchy sequences of $X$ and the ones that converge to $0$ and $\bar X$ is complete with respect to the metric defined as   $$\lim_{n \to \infty} d(x_n,y_n)$$  but I don't know how to get the result with that.  This is another question because here I am explaining more that the duplicate it, and in fact there I haven't get an answer yet, so that is why I decided to open a new question.  Thanks a lot in advance.


The texture does not show in UV editing mode, default mode or render. I have mapped the UVs and the viewport shading is set to textured mode as shown.  I tried adding a material (it was green) and the the render shows up as green.  In a different file the texture was showing and I didn't even add a material.  How can I get the texture to show?  This is the UV editing screen  And the Default screen (I removed the material from all objects)


I've tried joining, using the arrows and none of it's working.  I only want the window in green open and the ones in yellow closed and I don't know what to do.


How to get the information of users connected to a Wi-Fi hotspot?

How can I get the IP address, MAC address, etc. of a user connected to a Wi-Fi hotspot? ( Using Karbonn A21 Phone running Android 4.0.4 with minor changes to the skin)


Fourier transform of function composition

Given two functions $f$ and $g$, is there a formula for the Fourier transform of $f \circ g$ in terms of the Fourier transforms of $f$ and $g$ individually?  I know you can do this for the sum, the product and the convolution of two functions. But I haven't seen a formula for the composition of two functions.


I just mistyped ls as la. Without noticing, I ran it:  tim@Hairy:~$ la detection.sh   output-2.jpg  output-4.jpg  output-6.jpg  output-8.jpg Test1.pdf output-1.jpg   output-3.jpg  output-5.jpg  output-7.jpg  output-9.jpg          tim@Hairy:~$ ls detection.sh   output-2.jpg  output-4.jpg  output-6.jpg  output-8.jpg Test1.pdf output-1.jpg   output-3.jpg  output-5.jpg  output-7.jpg  output-9.jpg    What's the difference between ls and la?


Attempt to invoke interface method on a null object reference in Adapter AndroidStudio

I am trying to make a Fragment which is going to show me the News from RSS channel. I am using a RecyclerView with CardView. My program shows the list of news correct, but when i click on one of this news i recieve this error:  java.lang.NullPointerException: Attempt to invoke interface method 'void com.example.myapplication.Model.ItemClickListener.onClick(android.view.View, int, boolean)' on a null object reference at com.example.myapplication.Model.FeedViewHolder.onClick(FeedAdapter.java:38)  My code (FeedAdapter.java): package com.example.myapplication.Model;  import android.content.Context; import android.content.Intent; import android.net.Uri; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView;  import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView;  import com.example.myapplication.R;  class FeedViewHolder extends RecyclerView.ViewHolder implements View.OnClickListener, View.OnLongClickListener{       public TextView txtTitle, txtPubDate, txtContent;     private ItemClickListener itemClickListener;      public FeedViewHolder(View itemView) {         super(itemView);         txtTitle = (TextView)itemView.findViewById(R.id.txtTitle);         txtPubDate = (TextView)itemView.findViewById(R.id.txtPubDate);         txtContent = (TextView)itemView.findViewById(R.id.txtContent);          itemView.setOnClickListener(this);         itemView.setOnLongClickListener(this);     }      public void setItemClickListener(ItemClickListener itemClickListener) {         this.itemClickListener = itemClickListener;     }      @Override     public void onClick(View v) {         itemClickListener.onClick(v, getBindingAdapterPosition(), false);     }      @Override     public boolean onLongClick(View v) {         itemClickListener.onClick(v, getBindingAdapterPosition(), true);         return true;     } }  public class FeedAdapter extends RecyclerView.Adapter<FeedViewHolder>{      private RSSObject rssObject;     private Context mContext;     private LayoutInflater inflater;      public FeedAdapter(RSSObject rssObject, Context mContext) {         this.rssObject = rssObject;         this.mContext = mContext;         inflater = LayoutInflater.from(mContext);      }      @NonNull     @Override     public FeedViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {         View itemView = inflater.inflate(R.layout.row, parent, false);         return new FeedViewHolder(itemView);     }      @Override     public void onBindViewHolder(@NonNull FeedViewHolder holder, int position) {         holder.txtTitle.setText(rssObject.getItems().get(position).getTitle());         holder.txtPubDate.setText(rssObject.getItems().get(position).getPubDate());         holder.txtContent.setText(rssObject.getItems().get(position).getContent());          Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(rssObject.getItems().get(position).getLink()));         browserIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);         mContext.startActivity(browserIntent);     }      @Override     public int getItemCount() {         return rssObject.items.size();     } }  In my dreams, after clicking on a Row object, browser should open the current news page. But i don't know what to do. Thanks!


What does it mean to extend a function? Can someone please give an example?  Thanks in advance!


How to ask for further clarification when I can’t comment

How to ask further clarification, or to point out that the answer shown, even if once correct, is not correct anymore? I can’t comment as I don’t have 50 reputation.


QGIS Function editor calculate area after transform

In the QGIS function editor, it is possible to transform geometry using transform(geometry,'EPSG:xxx','EPSG:yyy') - however there isn't an area() function to recalculate the area of this.   The reason I am looking to do this is to have area calculated when a map is produced (labelled and as a virtual field in the attribute table); rather than store the area within the database as it is likely to change frequently as users modify the polygons?


Difference between staticmethod and classmethod

What is the difference between a function decorated with  and one decorated with ?


Does darker skin color make it easier to live under sun?

I have always thought darker colors absorb more heat from the sun, so if you are wearing a white T-shirt you will be cooler under sun than wearing a darker T-shirt, or a black piece of steel will be hotter under the sun than a shiny silvery one.  If this is true, then why is the same not applicable to skin color? It seems to me like the more sun in an area the darker the people's skin has become, isn't that the case?


I'm launching a Weblogic application inside Eclipse via the BEA Weblogic Server v9.2 runtime environment. If this were running straight from the command-line, I'd do a ctrl-BREAK to force a thread dump. Is there a way to do it in Eclipse?


Can you make weapons inflict status effects?

Is it possible to make a weapon in Minecraft that applies status effects when it hits an entity, for example a Sword that poisons and slows whoever's hit by it.  Also can you give a weapon a custom durability that would make it break after it's first hit?


Faced with a problem that jquery doesn't allow to select appended element.  I've seen a lot of advices how to solve it.  For example:   var $li = $('
' + html + '
'); $('.top').append($li);   But it can't help me in my way. I get from server list of records from database in json format and in my view and I loop by this list and generate some html structure.  For example:  $.getJSON( "/searchbytype", data, function( data ) {     $.each( data, function( key, val ) {         $('items').append('
'+ val.name + '
');     }); });   And what I want to do next is click on some li item and to do some manipulation. Ul list may contain 100-200 li tags. Any ideas would be appreciated!


Can we create soft links that concatenate multiple files?

Let's say that I have files f1, ..., f9. I want to create a  single view -- or a soft link -- say f, that displays a concatenated view over the 9 files.   For example, if I execute wc -l f the answer should be the sum of all individual wc -l fi for i in 1 to 9. If I edit any single file fi then the view f should automatically update, such as its modification time. So basically f is a soft link that tracks a sequence of files.   Is there any filesystem that supports something like this?


Issues with the scaling of the chat logo on the beta chatrooms

This is a somewhat minor design issue: Currently, across all SE site chatrooms there is an inline style max-width on the footer logo (bottom right-hand side of each chatroom) that scales the logo if it's width is greater than 150px (there's also a max-height attribute set in the css for limiting the height). This is very noticeable on beta sites with very long names such as "." Certain graduated sites with longer logos, like "," are affected as well.   (actual size) I'd also like to make note that the font color of the main site name portion on the chatroom footer logos don't contrast very well against the dark-blue colored background (with the diagonal scanlines), when compared to the lighter font color of the "beta" text in the logo.  (actual size) Would it be possible to use a better contrasting color for the site name on the beta chatroom footer logo? Would it be possible to change the max-width to something like 250px to improve readability of the logo?


Ubuntu installation on external hard disk drive

My internal harddisk in my laptop got corrupted so I have removed. I loaded desktop ubuntu for testing from pendrive. Now i want to install to my external hard disk. It already has 650gb of data in ntfs format.  Remaining space i splitted to ext4 and installed. When restarting, am not getting ubuntu loaded from HDD.  Please explain how to make my ubuntu load from external hard disk.


help finding a book concerning cigarettes addicting alien civilization

Decades ago I read a book in which the plot revolved around a horribly addictive drug in an alien civilization. I think the drug was used by a ruling conglomerate to control citizens. Once they were hooked it was a lifetime addiction, and the conglomerate was the only place the drug could be obtained. The plot twist showed the drug the aliens were hooked on were Earth cigarettes smuggled off planet by alien drug smugglers.  Does anyone know the book and author?


Cardinality of the Cartesian Product of Two Equinumerous Infinite Sets

Is the cardinality of the Cartesian product of two equinumerous infinite sets the same as the cardinality of any one of the sets? I couldn't find this explicitly stated in any handout or text. This certainly seems to be true from the examples I have seen:  The Cartesian product of two infinitely countable sets is again infinitely countable. The Cartesian product of two sets with cardinality of continuum again has cardinality of continuum.


Quick question on a naive-probability/counting exercise.

This is exercise 1.23 from Casella and Berger Statistical inference.  Two people each toss a fair coin $n$ times.  Find the probability that they will toss the same number of heads.  My reasoning is that the probability of the two sequences of tosses being exactly the same is $(1/4)^n$ now we need to see in how many ways can we permute these two sequences. But I am a bit stuck on how to proceed. How should I do?


How to disable anonymous read on OpenLDAP using cn=config

I am a newbie with openldap 2.4 and I need to restrict read access to anonymous. Actually, if someone write ldapsearch -x -H ldap://myipaddrr he can see all entries of my HDB database.  How can I solve this using cn=config (dynamic configuration). By default there is a lot of olcAccess setup...  thank you


Science fiction short story where accidentally introduced poop makes a complex lifeform extinct

I can remember one short story where the explorer finds life - I think on the Venus surface, so an early story before we knew how hostile the surface is. and he leaves a poop bag there, not realizing that it would make the lifeform extinct, a unique lifeform, only known life on Venus. The lifeform penetrates it and eats the rich material, and that kills it. I don't think it is intelligent, just multicellular. But it is destroyed because it is the only remaining example of its species on the planet, and not destroyed by the microbes. As the explorer leaves the planet, he doesn't know that he has made this lifeform he just discovered extinct.   Does anyone know this story? (Answered, thanks!)


Cant use while loop because it is taking time is there any way faster way to get the final file..in linux

cat file_1.txt  100 200 name  100 200  100 200  150 300  150 300  150 250  150 250  150 300 name   final file should be   150 300  150 300  150 250  150 250   i am using this command   cat file_1.txt | grep -v "name">file_2.txt; cat file_2.txt| while read line;do cat file_1.txt| grep "$line"| head -1|grep -v "name" ;done   but data is too much cant use while loop it is taking to much time cat use while loop . is there any other way to do it fast  like using "grep -vf file_1 file_2" something like that By passing like that  . please let me know.  here i am using the logic of getting the top most line of pattern found pattern is  every line of "file_1.txt"


Example of Galois extension whose Galois group is $A_4$

Can anyone give me an example of a finite Galois extension whose Galois group  is $A_4$?


What is the cleverest way to calculate $[\hat{a}^{M},\hat{a}^{\dagger N}]$ when $[\hat{a},\hat{a}^{\dagger}]=1$?

What are some elegant ways to calculate  $$[\hat{a}^{M},\hat{a}^{\dagger N}]\qquad\text{with} \qquad[\hat{a},\hat{a}^{\dagger}]=1,$$  other than brute force calculation?    (EDIT) I got the same result as Qmechanic. I think Prathyush's suggestion should be equivalent to mine of the correspondence up to a canonical transformation. Here is my calculation:  $\begin{array}{c} \mbox{representation of }\left(\hat{a},\hat{a}^{\dagger}\right)\mbox{ on polynomial space }span\left\{ \frac{x^{n}}{\sqrt{n!}}\right\} _{n\ge0}\\ \hat{a}\left[f\left(x\right)\right]=\frac{d}{dx}f\left(x\right)\;;\;\hat{a}^{\dagger}\left[f\left(x\right)\right]=xf\left(x\right)\;;\;\left[\hat{a},\hat{a}^{\dagger}\right]\left[f\left(x\right)\right]=id\left[f\left(x\right)\right]\\ \left|0\right\rangle \sim 1\;;\;\left|n\right\rangle \sim x^{n}/\sqrt{n!} \end{array}$  $\begin{array}{c} \mbox{calculate the normal ordering }\left[\hat{a}^{M},\hat{a}^{\dagger}{}^{N}\right]\mbox{:}\\ \sim\left[\frac{d^{M}}{dx^{M}},x^{N}\right]=\frac{d^{M}}{dx^{M}}\left(x^{N}\star\right)-x^{N}\frac{d^{M}}{dx^{M}}\left(\star\right)\\ \sim\left\{ \overset{min\left\{ M,N\right\} }{\underset{k=0}{\sum}}\frac{N!}{\left(N-k\right)!}C_{M}^{k}\left(\hat{a}^{\dagger}\right)^{N-k}\left(\hat{a}\right)^{M-k}\right\} -\left(\hat{a}^{\dagger}\right)^{N}\left(\hat{a}\right)^{M}\\ \end{array}$    One comment on 02-12-2012: The representation I was using is actually related to Bergmann representation with the inner product for Hilbert space (polynomials) being:  $$\left\langle f\left(x\right),g\left(x\right)\right\rangle :=\int dxe^{-x^{2}}\overline{f\left(x\right)}g\left(x\right)\,,x\in\mathbb{R}\,,\, f,g\in\mathbb{C}\left[x\right]$$


I found the following behavior at least weird:  def errors():     try:         ErrorErrorError     finally:         return 10  print errors() # prints: 10 # It should raise: NameError: name 'ErrorErrorError' is not defined   The exception disappears when you use return inside a finally clause. Is that a bug? Is that documented anywhere?  But the real question (and the answer I will mark as correct) is: What is the python developers' reason to allow that odd behavior?


I have created an azimuth orthographic projection map (basically a globe, I've used this custom CRS: +proj=ortho +lat_0=51.470129 +lon_0=-0.452751 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +no_defs with QGIS 3.4.4. The labels are flat, as you would expect for readability purpose. Does anybody know if it's possible to have the labels following the earth surface curvature instead, like if it was an actual picture of a physical globe?  If it's not possible with QGIS, how about other software programs?


Importing CSV numbers formatted as string into ArcMap?

I'm importing a .csv that contains data that I am joining to a shapefile. The value that I am joining is shown in the first column of the image below. When I import the data into ArcMap the data in the second column is converted to type 'string' instead of 'integer'.   How do I import the data so that numeric values are of type integer 'instead' of 'string'?


remove_action not working, even after changing priority

So one of the functions in my theme is:  public function job_manager_job_filters_distance() {    //Show some HTML }   And somewhere else in the document lies:  add_action( 'job_manager_job_filters_search_jobs_end', array( $this, 'job_manager_job_filters_distance' ), 0 );   I want to disable this function.  So naturally I went to my child theme's functions.php and added remove_action:  remove_action( 'job_manager_job_filters_search_jobs_end', 'job_manager_job_filters_distance' );   It didn't work. Then I tried different priorities for the removal:  remove_action( 'job_manager_job_filters_search_jobs_end', 'job_manager_job_filters_distance', 20 );   Still no go. Then I tried to wrap it in a function that triggers after theme load:  function remove_listify_junk() {     remove_action( 'job_manager_job_filters_search_jobs_end', 'job_manager_job_filters_distance' ); } add_action( 'after_setup_theme', 'remove_listify_junk', 999 );   And the function is still doing it's thing =[...  What am I missing here?


What is the difference between "information on", "information of", "information about"

"Information on something", "information of something", "information about something" — these three usages all sound having the same meaning for me. Are there any differences?


Windows doesn't have driver for Generic USB Keyboard

For some reason, the Generic USB Keyboard driver was removed, literally, over night, from Windows.  Can someone that has Windows 7 and uses a USB Keyboard without any fancy drivers (i.e. uses Generic Windows USB Keyboard driver) go to  Device Manager>Keyboards>USB Keyboard>Properties>Driver>Driver Details   and post the name of the driver system files (for example  "C:\Windows\system32\DRIVER\i8042prt.sys")?


What does the minus sign in Maxwell's third equation imply?

If we write out Maxwell's equations with magnetic charges, we get $$ \begin{align} \nabla \cdot \mathbf{E} &= 4 \pi \rho_e \tag{1}\\ \nabla \cdot \mathbf{B} &= 4 \pi \rho_m \tag{2}\\ -\nabla \times \mathbf{E} &= \frac{\partial \mathbf{B}}{\partial t} + 4 \pi \mathbf{J}_m \tag{3}\label{Eq:Faraday}\\ \nabla \times \mathbf{B} &= \frac{\partial \mathbf{E}}{\partial t} + 4 \pi \mathbf{J}_e \tag{4}\label{Eq:Ampere} \end{align} $$ In particular, Faraday's law \eqref{Eq:Faraday} contains a minus sign that Ampere's law \eqref{Eq:Ampere} does not. This always struck me as odd because it's often said the fields are dual to each other (i.e. you can replace E with B and "get the same result"), but that requires a bit of mental recalibration to accommodate that minus. So I'm curious what the origin of that negative is and what it means. Are there any intuitive explanations for how to think about it?


On PCIe 1.0, does a 64 bits graphic card could be compatible with 32 bits OS (Windows 7 32bits)

On PCIe 1.0, does 64 bits graphic card could be compatible with 32 bits OS (Windows 7 32 bits) ?  Is there any restriction?  Edit:     Few peoples told in comments that bitness should not be an issue. If I   understand well, it is only a question of is there any supported   drivers for the specific OS (here Win 7 32 bits) ???   Edit2: I finally bought a 64bits graphic card with PCIe 1.0 interface and it work nicely on my Windows 7 32 bits... Thanks to all !!!


Show that if $1> x>0$, then $x-1 ≥ \ln(x) ≥ 1−\frac{1}{x}$

Show that if $0 < x < 1$, then $$x-1 ≥ \ln(x) ≥ 1−\frac{1}{x}.$$   I know how to prove it using the MVT and I can prove it for $x> 1$ but I don't understand how to prove it for $x > 0$ .


Command \ifmmode misjudged in math environment of package amsmath. An mwe is like \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather}   \ifmmode123\else456\fi \end{gather} \end{document}  In math eqvironment, it should have produced 123 in gather environment. But the outcome is just the opposite. Similar cases appear in align, eqarray and so on. But in equation, it produces the right outcome. Is this a bug? Or how to fix it? Thansks for help!


Newton's First Law of Motion; Empirical Aspects

Newton's first law states that in an inertial frame, a body at rest continues to be at rest, and a body in constant rectilinear motion continues its motion, unless an external force is applied upon the bodies. My question is how far have these assertions been tested experimentally? More precisely, is there any need to test this statement, or is it taken as a "definition" of sorts?  I assume the body at rest is a trivial case. On the other hand the case of the body in constant motion would be considerably harder to test, since no external force on a body is an idealization. But I am still curious whether there have been any attempts to test the case of the moving body.


I'm currently interested in following  tutorial which explains how to create a  (ESP8266) controlled 12v RGB strip which is exactly what I've been looking for. However, whilst I do believe this project will work perfectly for an RGB strip up to about 5m, I am aware that lengths larger than 5m require additional consideration when it comes to powering them.  For my project, I wish to make a 30m RGB LED strip to be placed around the perimeter of the ceiling in my living room. My question is; what is the best way of powering a 12v RGB LED strip for 30m whilst keeping just 1 controller as linked above (ESP8266)?  Whilst researching this question online, I was unable to find any definitive answers for exactly what I needed. For example, in this image:    Whilst the idea presented in the second figure down makes sense (injecting 12v periodically) makes sense; it raised a few questions for me.   Do I only need to inject just the voltage at these intervals, or do I also need to include the R, G and B lines in the 'blue' wire pictured in the diagram? Do the amps matter in this case? Correct me if I am wrong, but a 5m RGB strip will usually run fine off 2A. So, do I only need a 2A supply if I am 'injecting' at 5m intervals? Or would I need a 12A supply (30/5 *2)? Is this even the correct approach for what I am trying to achieve? I.e. would this process of 'injecting' at 5m intervals work for a full 30m trip? If so, could I stretch the intervals to 10m for example in order to reduce the amount of wiring round my ceiling? If it's not the right solution, would using an  at 5/10m intervals be a better solution? Or, would something like this work:     Would the diagram shown above help in any way, or is it completely the wrong approach for what I'm trying to achieve? If it is kind of the right approach, could I ignore the method of 'injecting' 12v at intervals by supplying a higher voltage 24v at this first 'junction' so that 12v would be supplied to either side, or is that not how it works?  P.S.  are the RGB LED strips I am looking to use (RGB, no waterproof).


Use of log_bin_trust_function_creators in MySQL

What is the use of log_bin_trust_function_creators?  Also, Is the value of the parameter dynamic?  Will it change if I restart my MySQL service?


I am trying to use gedit to see a file inside a mini-pc I connected through ssh but it get:     (gedit:3864): Gtk-WARNING **: Locale not supported by C library.     Using the fallback 'C' locale. Failed to connect to Mir: Failed to   connect to server socket: No such file or directory Unable to init   server: Could not connect: Connection refused      (gedit:3864): Gtk-WARNING **: cannot open display:   Is there a way to see the file contents inside gedit in host computer?


Integral domain without unity has prime characteristic?

By an integral domain, we mean here, a ring (not necessarily with unity) in which $ab=0$ implies $a=0$ or $b=0$.   Question: If an integral domain without unity has positive characteristic, is it necessarily prime?    An integral domain $D$ is said to be of finite characteristic if there exists a positive integer $m$ such that $ma=0$ for all $a\in D$. [cf. Topics in Algebra- I. N. Herstein, 2nd Ed., p. 129]  My question is a slight modification of Problem 6 in [Topics in Algebra- I. N. Herstein, 2nd Ed., p. 130]


I've seen videos of some folks having several armor sets (4 is the most I've seen so far) standing about on their settlement. I'm wondering if having too many would cause some sets to disappear. They're not like guns/items that you can safely store in settlement crates, the suits kind of just... stand around. (I know there's the extra step of taking out the fusion cores, so that NPC's don't use them.)  Is there a limit to the number of Power Armor sets you can keep?


Which airlines ban the use of Knee Defenders during flight?

I read that some airlines such as  ban the use of  during flight. Is there any comprehensive list of airlines that ban the use of Knee Defenders during flight (or conversely a list of airlines that do not ban them)?


How do i find the position of an element that might be repeated in a list?

I'm looking for a way to find the index of an element that might be repeated in a list. For example: list = ['a', 'a', 'b', 'c'] My current code is: valueIWant = 'a' positions = [] for letter in list:    if letter = valueIWant:       positions.append(list.index(letter))       list.remove(letter)  The problem with this code is that the list method index() only returns the first occurrence of the desired value, so I clear the first occurrence of the value after I've saved its index. However, the index of the subsequent 'a' will be 0 since the first 'a' has been removed. What can I do to preserve the initial indexes of elements (whether they are repeated or not) in the original list?


paging is not working properly on news archives page

I need paging on news archives page. Data is coming correctly if display all records on same page. But if i add paging code, then pagination values (such as 1,2,3,...16) coming correctly, but if i click on page 2 then it displays the same post title as on page 1.
News

     <?php     $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $all_posts = get_posts(array(     'post_type' => 'news',  'posts_per_page' => 20,   'orderby' => 'date',     'order' => 'DESC',     'paged='. $paged, ));      // this variable will contain all the posts in a associative array     // with three levels, for every year, month and posts.      $ordered_posts = array();      foreach ($all_posts as $single) {        $year  = mysql2date('Y', $single->post_date);       $month = mysql2date('F', $single->post_date);        // specifies the position of the current post       $ordered_posts[$year][$month][] = $single;      }      // iterates the years     foreach ($ordered_posts as $year => $months) { ?>

<?php echo $year ?>

         <?php foreach ($months as $month => $posts ) { // iterates the moths ?>

<?php printf("%s (%d)", $month, count($months[$month])) ?>

               <?php foreach ($posts as $single ) { // iterates the posts ?>
                   <?php echo mysql2date('F j', $single->post_date) ?> <a href="<?php echo get_permalink($single->ID); ?>"><?php echo get_the_title($single->ID); ?>  (<?php echo $single->comment_count ?>)

                <?php } // ends foreach $posts ?>

         <?php } // ends foreach for $months ?>
          <?php if(function_exists('wp_paginate')) {         wp_paginate();     }  ?>
 <?php     } // ends foreach for $ordered_posts     ?>
   here is the screen shot:-


What makes some laser beams visible and other laser beams invisible?

What makes the beam of some lasers:    visible?  such as the ones used in clubs or such as the laser pointers sold at amazon which if pointed to the sky look like a solid visible beam of light crossing the sky (it reminds me of the lightsaber in Star Wars). invisible?  such as the ones used in pointers for presentations.


merging 2 polygon adjacent to each other using R

I have several shp files which are the components (or tiles) of a map, I have joint all these tiles together to have a large shp file. Then I realized some of the polygon is now split into 2 halves, as the upper part belongs to a tile, while the lower part belongs to another tile.  This output disturbs me a lot as I need to fill some polygon, but not part of the "split polygon", so I need to find a way to merge these split polygon back to one (preferably mechanical way, as I have 10000+ polygons, not knowing which are split, which are not).  I need to know if the two or more polygons originate from the larger polygon. And I think I can somehow use union and spRbind to create an algorithm for this task. But I doubt if I am really the first one who encounters this problem, so I wonder if there is any existing tool in R that can solve this.  Thanks.


How do I get a platform-dependent new line character?

How do I get a platform-dependent newline in Java? I can’t use "\n" everywhere.


Registering Class methods as hook callbacks

I'm not sure if I have done this correctly.  As I understand it:  if I have a class foo and a static method bar I can register that as the callback by passing the array array("foo","bar") as the function name.  If I have an instance of a class in $foo and want to call the method bar I pass the array array($foo,'bar').  If I need to register an action inside the class itself would it work with array($this,'bar')?


How do I color only the vector symbol in \vec f? I'm using beamer, so xcolor is already loaded.  Extra "points" to an answer that also explains  how to fish..and not only gives me the fish.  Thanks!


Pythonic way to increment value when building dictionary

A snippet of code from a working script; I'm just curious if there's a "prettier" way to achieve the same result.      if ctry in countries:         countries[ ctry ] += 1     else:         countries[ ctry ] = 1   In awk I could have just used countries[ ctry ] += 1, but python threw a key error (understandably).


I had 16.04LTS version installed on by laptop along side the windows 10. I upgraded to 17.04 version but it did not install properly and now I cannot open Ubuntu on the computer but can access windows...  How can I revert back to previous version that is 16.04 LTS version


Prove $f(z)$ is identically zero if it has a power series expansion at $0$ which converges in all of C.

Suppose $ f $  has a power series expansion at $0$ which converges in all of C. Suppose also that $ \int_C \mid{f(x+iy)\mid} dxdy <\infty $. Prove $ f $ is identically $0$. Now I have proved that $f(0) =0$. Can I then claim that by continuity and since C is an open and connected region $f$ will also be zero or is this logic flawed?


Folder upload over the network with Absolute path

In JAVA using Struts 1.3 ,Im uploading a single file from File browser from Form,End user will access my application URL and browse file from his local machine,and on my application server Database is here.Values get inserted into my DB while uploading single File.  But I dont know how to upload complete Folder from Local machine.  I think this is done by something called AbsolutePath.  Kindly help me soon. Thanks in advance to all.


Got a B1/B2 but never went for the trip. Can I use it to go later?

When working for my previous company, I got a B1/B2 US visa to go for an event in the US. But the trip got postponed and I moved to a different company soon after so I never ended up going. I now want to visit the US for tourism. I got the visa in 2016 and it's valid. I'm from India.


I have been following a cave tutorial from Blender Guru and I am stuck with my mushrooms after the weight paint. The mushrooms are located in the right area but the steams are sticking through the cave floor and not standing on the cave floor. I have been changing the origin of the cave but it doesn't make a difference.


How can I improve my tracking of light and light sources?

At the moment, I largely forget about light and light sources in my games. I assume that my players can see everything around them without stopping to think about whether it should actually be pitch black in this dungeon.  What techniques can I use to improve my tracking of light and light sources?


Not getting enough attention on other SE sites

I have a  related to PHP and Ubuntu OS. Mostly related to Ubuntu. So I asked that question in Ask Ubuntu. But the question is not getting enough attention. Only 5 views after posting it for a long time, an hour.   Even to mark as bounty I have to wait 2 more days. I neither have the reputation nor the time.   Suppose if I had asked in Stack Overflow I may have got more attention and response for that question.   But, posting the same question on two different SE sites is not recommended. So what would be the correct next step now? Delete the question from Ask Ubuntu and post it on Stack Overflow with [php] tag as it is related to PHP too?


How to get sitelinks to appear on Google Search?

How do get my sitelinks to appear on Google search results?


Let $f: [0,\infty)\to\mathbb{R}$ be a function such that $f(x)$ is bounded if $x$ is bounded.     If  $\lim_{x\to\infty}  f(x+1)-f(x)=0$ , prove that:   $$\lim_{x\to\infty} \frac{f(x)}{x}=0.$$     If $f$ is bounded the proof is trivial. Then I assume that $f$ is not bounded; by the first condition, $f(x_n)\to \infty$   only if  $x_n \to \infty$; I need to show $\lim_{n\to\infty} \frac{f(x_n)}{x_n}=0$, but I can't. Any suggestion?


Prove $R \times R$ is NOT an integral domain

I have a question, and this is it in entirety:     Let R be a non-zero ring(that is, R contains at least one element other than the zero element). Prove that $R \times R$ is NOT an integral domain.   Now I haven't done a problem like this before, and it seems to be(from the Wikipedia definition) that this ring $R$ needs to be commutative to be an integral domain. Which it isn't stated to be here. What exactly am I meant to do? I haven't been given anything else than the area in grey.


Person who applied for a visitor visa, were banned under 212(a)(6)(C)(i)

My mom was in the USA twice for 5.5 months, she had 1 year visa. She had been assisting me with my child, so l could work. I believe that she was refused by mistake due to a communications misunderstanding. The visa officer accused her of working as a barber during her stay in the USA, actually I’m working as a barber, she didn’t work anywhere here except to take care of my infant child. She had B1/B2 visa.  Can I apply for any of the waiver? Ds160 form was correct.


I cannot install sysstat on Ubuntu Server 16.04

When I try sudo apt-get update && sudo apt-get install sysstat I get the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  sysstat : Depends: libsensors4 (>= 1:3.0.0) but it is not installable E: Unable to correct problems, you have held broken packages.   As far as I can tell, there are no held broken packages.  I've tried a bunch of other things, like:  sudo apt-get autoclean sudo apt-get clean sudo apt-get autoremove sudo dpkg --configure -a sudo apt-get install -f sudo apt-get update       Any help would be great!


I have created a WCF service and exposed a function which accept List as a parameter.  public bool Execute(string databaseServer, string database, string ClientName, string ERAPayerID, string PlanPriority, List<string> AdjCode, List<string> RemarkCode, List<string> CPT, string Modifier, string renderingProviderNPI)   when I call this function it ask me to provide string[] instead of  List  WriteOffServiceClient client = new WriteOffServiceClient(); bool resutl = client.Execute("server", "database", practiseIdentifier, "", ERAPayerId, pPriority, new List<string>, new List<string>, new List<string>, "", "");   it gives me this error of invalid arguments.When I call it with string it accept it.  WriteOffServiceClient client = new WriteOffServiceClient(); bool resutl = client.Execute("server", "database", practiseIdentifier, "", ERAPayerId, pPriority, new string[5], new string[5], new string[5], "", "");   What do I do If I want to accept only List?


kworker is using almost 50% of processor

From time to time I see kworker (specifically kworker/7:0+eve) process is taking almost 50% of my processor. As a result my laptop almost hanging up. I have already done upgrade and update just today. Still the problem is there. I am using Ubuntu 18.04. Here is the distribution detail: acer 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux.  Is anyone having same problem? Or can anyone help me how to fix it?


Projected coordinate in TikZ is not properly placed

I'm trying to draw an airplane.  When I was drawing the window for the cockpit, I was using projected points to get right angles.  But things aren't working out as expected.  Could anyone give me a pointer about what I'm doing incorrectly?  \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \pagestyle{empty} \begin{document}  \def\aeBodyRadius{0.25cm} \def\aeBodyNoseDistance{0.21cm} \begin{tikzpicture}[x=5cm,y=5cm,scale=3,every node={transform shape}]    \coordinate (TAIL) at (0,0);   \coordinate (NOSE) at ($(TAIL)+(30:1)$);    \coordinate (MID)     at ($(TAIL)!0.75!(NOSE)$);    \coordinate (MID/TOP) at ($(MID)!\aeBodyRadius!90:(NOSE)$);   \coordinate (MID/BOT) at ($(MID)!\aeBodyRadius!-90:(NOSE)$);    \coordinate (NOSE/TIP) at ($(NOSE)!\aeBodyNoseDistance!90:(MID)$);    \coordinate (HIND/TOP) at ($(TAIL)!\aeBodyRadius!90:(NOSE)$);   \coordinate (HIND/BOT) at ($(TAIL)!\aeBodyRadius!-90:(NOSE)$);    \node[fill,circle,inner sep=1pt] at (MID/TOP) {};   \node[fill,circle,inner sep=1pt] at (MID/BOT) {};   \node[fill,circle,inner sep=1pt] at (HIND/TOP) {};   \node[fill,circle,inner sep=1pt] at (HIND/BOT) {};    \draw[rounded corners=10pt]                               (HIND/TOP) --                              (MID/TOP)  --                              node [pos=0.25] (WINDOW/TOP/N) {}                              node [pos=0.50] (WINDOW/BOT/N) {}                              (NOSE/TIP) --                               (MID/BOT)  --                              (HIND/BOT);     \coordinate (WINDOW/TOP) at (WINDOW/TOP/N.center);     \coordinate (WINDOW/BOT) at (WINDOW/BOT/N.center);      \coordinate (WINDOW/RIG/T) at ($(TAIL)!(WINDOW/TOP)!(NOSE)$);     \coordinate (WINDOW/RIG)   at ($(WINDOW/TOP)!(WINDOW/BOT)!(WINDOW/RIG/T)$);      \draw (WINDOW/TOP) -- (WINDOW/RIG) -- (WINDOW/BOT);      \draw[red] (TAIL) -- (NOSE);  \end{tikzpicture}  \end{document}     The "red" line runs down the center of the plane clearly shows how my perpendicular is not what it should be.  UPDATE  What seems not to be working is the following snippet of code:      \coordinate (WINDOW/RIG/T) at ($(TAIL)!(WINDOW/TOP)!(NOSE)$);     \coordinate (WINDOW/RIG)   at ($(WINDOW/TOP)!(WINDOW/BOT)!(WINDOW/RIG/T)$);   The projected points do not seem to lie on the appropriate perpendicular.  In particular, (WINDOW/RIG) should lie above the red line since the line through (WINDOW/TOP) and (WINDOW/RIG/T) should be perpendicular to the red line through (TAIL) and (NOSE).


Trim a returned value from a Kafka topic using python

I have a simple python module as follows: from kafka import KafkaConsumer  consumer = KafkaConsumer(     'myTestTopic',     bootstrap_servers=['localhost:9092'],     auto_offset_reset='earliest',     enable_auto_commit=True)  for message in consumer:     message = message.value     print(message)  This will return something like follows:  b'&name=bob&gender=M&type=student&sId=1204&note=temp&' b'&name=bob&gender=M&type=student&sId=1204&'  My question is: Is there a neat way to remove/trim the first two characters e.g: (b') and the last character (') from each line that will be returned? So essentially it will appear like:  &name=bob&gender=M&type=student&sId=1204&note=temp& &name=bob&gender=M&type=student&sId=1204&


How do we know that any two points of an ideal wire must be equipotential?

How do we know that any two points of an ideal wire must be equipotential whether or not there is a current flowing through it? I fully understand that how the electric field in a conductor in electrostatic condition will be zero. My question is primarily for a conductor which is not an electrostatic condition. In any circuit in which circuit elements like batteries, resistors etc. are connected by "ideal wires" we assume that any two points on the ideal wires are at the same potential. What is the justification behind this assumption? The popular explanation is as follows: Since from Microscopic form of Ohm's Law, we know that "E = ρ J", and for an ideal wire, the ρ (resistivity) tends to zero, so E (electric field) must tend to zero and if electric field inside the ideal wire is zero, so potential drop across idea wire must be zero. The question which then comes is, why and how exactly the electric field inside an ideal wire becomes zero? Mathematically I agree that it turns out to be zero, but how do we understand this idea "Intuitively"?  I read the above post on why electric field inside a wire becomes zero. It explains the following reason:  In the steady state condition, there is no electric field inside a perfect conductor because the electrons have moved to cancel out any electric field. That is because electrons will move whenever there is an electric field.  Does it and will it always happen that electrons rearrange themselves in such a way that electric field inside the ideal wire will always become zero? Is there a fundamental law which governs this idea that electric field inside an ideal wire should be zero? If yes, then what that is? Is it just an inductive/recurring fact that it always becomes zero (like Sun rises from the east) that we assume this fact to be true? Or there is some fundamental reality which is governing this fact? Kindly help.


Calculate the radius of a circle given the chord length and height of a segment

I have a (circular) segment of known height and known chord length. Is is possible to determine the radius of the circle?  Any help much appreciated.


How to change a variables value using a method? Can someone give me some tips to improve my coding knowledge?

I'm trying to get used to Java. Been programming with C++ for about a year. I know the basic parts of programming Right now, I'm making a simple game, you select a number, two random numbers are being generated, if selected number is equal to one of the random numbers, you win and you receive some money. Casual game. Sadly, I'm not sure how to change variables value using a method. Could someone maybe improve my Java code and tell why my value is being recovered every time I keep playing the game? Sometimes, it doesn't even reduces my score value. It is hard to move to different programming language. Sorry for my language mistakes..  public static void main(String[] args) { int array[] = {1,2,3,4,5,6,7,8,9,10};         int money = 100;         int moneyBet;          int selectedNumber;         int keepPlaying;         boolean game = true;           while(game) {         System.out.println("Choose a number between 1 and 10:");         Scanner input = new Scanner(System.in);         selectedNumber = input.nextInt();          System.out.println("Make a bet:");         moneyBet = input.nextInt();          foo(money, moneyBet, selectedNumber, array);             System.out.println("Keep playing? YES - 1, NO - 2");             keepPlaying = input.nextInt();                 if(keepPlaying == 1) {                     game = true;                 } else {                     game = false;                     System.out.println("Game over");                 }          }       }   public static void foo(int money, int moneyBet, int selectedNumber, int array[]) {                  Random random = new Random();                 int randArray[];                 int randomNumber;                 randArray = new int[2];                  Scanner input = new Scanner(System.in);                  if(money < moneyBet) {                     System.out.print("Not enough money. Try again:");                     moneyBet = input.nextInt();                 }else {                     money -= moneyBet;                 }                  boolean checkWin = false;                      for(int i = 0; i < randArray.length; i++) {                         randomNumber = random.nextInt(array.length);                         randArray[i] = randomNumber;                     }                      for(int i = 0; i < randArray.length; i++) {                         System.out.print(randArray[i] + " ");                     }                      for(int i = 0; i < randArray.length; i++) {                         if(randArray[i] == selectedNumber) {                             checkWin = true;                         } else {                             checkWin = false;                         }                     }                     System.out.println();                      if(checkWin) {                         System.out.println("You won. You receive " + moneyBet * 2 + " money!");                         System.out.println("Your money:" + money);                         System.out.println("Keep playing? Y/N");                     } else {                         System.out.println("Try your luck next time..");                         System.out.println("Your money:" + money);                     }         }


Obtain marginal CDF from joint CDF by simulation

How can I evaluate the marginal cumulative distribution function of a set of random variables for which I do not have the CDF in closed form. I can, however, simulate from a joint distribution involving this set of variables.  To be more specific, assume I want to evaluate the CDF of $(X_1,X_2)$ but I only have a way to simulate from $(X_1,X_2,X_3)$.  Obviously I can approximate the CDF of $(X_1,X_2,X_3)$ by obtaining a large number of simulations and checking how many observations fall below the desired threshold. But how to get the CDF of $(X_1,X_2)$?. Can I just simply throw $X_3$ away and use the same procedure as for the joint PDF?  Obviously I cant get $F_X(x) = P(X \leq x) = \lim_{y \to \infty} P(X \leq x, Y \leq y) = \lim_{y \to \infty} F_{XY} (x, y)$ because no closed form CDF is available. I also do not want to involve the pdf.


How to find all the available commands in a package before installing it?

question clearly explains about how to find all the commands which are provided by a particular installed package.  My question is, how to find(or lists) all the available commands which are provided by a particular package before installing that package via terminal ?


Dependency error while installing cinnamon

I get the following error while installing Cinnamon using sudo apt-get install cinnamon:      Reading package lists... Done  Building dependency tree        Reading state information... Done  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:   cinnamon : Depends: gir1.2-muffin-3.0 but it is not going to be installed              Depends: libgjs0-libmozjs185-1.0 but it is not installable              Depends: libgjs0c (>= 1.34.0) but 1.32.0-1ubuntu1 is to be installed              Depends: libgnome-desktop-3-4 (>= 3.2.0) but it is not installable              Depends: libmuffin0 (>= 1.1.1) but it is not going to be installed              Recommends: gnome-themes-standard but it is not going to be installed              Recommends: gnome-session-fallback but it is not going to be installed              Recommends: nemo but it is not going to be installed  E: Unable to correct problems, you have held broken packages.   I tried everything on this:    but I am still unable to install it. Please help.


Interface text is tiny on high resolution screen

Blender fills the screen but the text is all tiny. Too small to read with any ease at all.  Any thoughts or suggestions?


Try finding languages such that L1⊆L2⊆L3 where L1,L3∉ RE and L2∈ R

"RE" means "recursively enumerable" and "R" means "recursive.  i am looking for the simplest solution- using a known languages such that do not demand another formal proof.


Is it possible to be truly selfless or altruistic?

Is it possible for people to actually be selfless? It seems that in many cases where someone is being kind, they are actually performing in a manner that will benefit them. Either the recipient of the kindness will reciprocate, or the act of kindness itself is deemed commendable. Therefore, the one who offered the kindness still benefits personally from their action.  A child shares a toy in the same way. Even with the heroic act of martyrdom, the possibility of knowing one could become a martyr may be uplifting. It seems that every "selfless" act, in some way, may benefit the one being "selfless".  In light of those observations, is selflessness truly possible? What does philosophy have to say about this question?


A novel where rank number 1 means you rule the world?

reminded me of a novel I read in my youth. It was about a future earth with a very organized power structure where people are ranked (I believe it was 1-100) by their power/wealth.  The protagonist is a nobody (rank 100?) who by sheer will and desire never to be controlled by anyone rises through the ranks, eventually making some kind of deal with aliens to take control of everything.


Give an example of a function $f: \mathbb{R} \to \mathbb{R}$ which is continuous only at $0$.

I do not know an example. Will ask question if in doubt of the proofs provided thank you!!


If union of two theories is not consistent one of them implies a sentence which the other implies opposite of it

If the union of two theories is not consistent there exists a sentence $P$ for which one of them implies $P$ and the other one implies $\lnot P$.  Can someone please check if this is true or not?  I used to prove this by contradiction. I assumed for every sentence $P$, if $T_1$ implies $P$, then $T_2$ satisfies $P$ or $T_2$ doesn't imply $P$ but never $T_2$ implies $\lnot P$. So i think there exists a model of $T_2$ as a substructure of a model of $T_1$( i'm not sure if this is true... I just say it intuitively ), so I take that model of $T_1$ as a model of  $T_1 \cup T_2$. Since the union doesn't have a model so there exists a sentence $P$ such that $T_1$ implies $P$ and $T_2$ implies the $\lnot P$.


I updated to Ubuntu 20.04. When I use the default terminal, everything is fine. But if try to use terminator, I cannot use sudo. I get permission denied. Again, only when using terminator.  How can I sudo from the terminator? I really would like to continue to use a terminator.  Edit: I just also noted that it cannot find make either. I guess it's all messed up. I'll try to uninstall it and install again I guess.


Object pink in render (no textures are in use)

I'm using cycles, with very basic Principled BSDF materials without any texture images. In the Material tab, the materials are shown just fine, but in when I render my object, all materials show up as pink (as though an image was missing).  What am I missing?


Powershell systemroot in $env:path different when AC elevated

I have a strange behavior with the environment variables at my Windows XP SP3.  When I logon as Administrator, the %SystemRoot% strings in PATH are substituted to C:\WINDOWS, the value of the variable 'SystemRoot' is C:\WINDOWS.  But when I logon as any non-administrative user, the %SystemRoot% literally remains in the PATH, although the variable 'SystemRoot' has the same value as with Administrator's account.  Running PowerShell as a normal user:     PS C:\Users\vic> $env:path (Enter)      %SystemRoot%\system32\WindowsPowerShell\v1.0\;C:\Program Files\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static   Running PowerShell elevated (I right click, run as admin):     PS C:\Windows\system32> $env:path      C:\Windows\system32\WindowsPowerShell\v1.0\;C:\Program Files\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\   System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static   Env path in Windows:     C:\Program Files\AMD APP\bin\x86;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SystemRoot%\System32\WindowsPowerShell\v1.0;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static   Why?


Why is it impossible to find the private key from the public key?

From what I understand, based on the article , the public key is generated by performing $n$ tangent plus mirroring operations from the point $G$ over the elliptic curve, where $G$ is defined in  and $n$ is a natural number that directly relates to the private key.   As I know the public key and the seed value $G$, I could start a process computing $$G + G, G + G + G, \dots$$ and comparing those results with the public key value until it matches.   If your answer would be that this process is very slow: if this process is slow, the same applies to computing the public key from the private key (because the operations are the same except for the check operation). So, how it is possible to compute the public key in a very fast way?


Why do quantum effects of particles dominate when the thermal de Broglie wavelength becomes comparable to the inter-particle spacing?


How to negotiate for clinical vs protected research time in academic job offer?

I am a doctor, with specialty in psychiatry and a subspecialty in mood disorders.   I have been offered an academic position at a larger university, but the letter of offer does not specify any research time - only clinical time. I want to negotiate clinical time (number of patients to see per week), which will be my main source of income, vs protected research time (for which the Hospital/University will provide compensation). I want to be able to do research but need the department to commit to paying me for it.  It is my understanding that this will be the only time I will be in a position of power to negotiate something, but I don't know where to start. I have other 2 offers in place as well.   The clinical aspect may make this negotiation different from other junior faculty members, e.g. as in .


How can the xenomorph from the aliens franchise see, hear, and smell?

Has been on my mind for some time now, how can the xenomorph see, hear, and smell? When looking at this xenomorph you cannot see any indication of eyes, ears, or nostrils, yet it can still find its prey even when a decent distance away. If it did have such orifices to indicate sight, sound, and smell. Then wherever would it be located on the creature? If it does not have traditional organs such as those then what does it use to find it's prey? Would it be some type of organ that would cause it to sense any nearby life forms that were not of its own kind? or maybe does it have something to do with the telepathy between xenomorphs that let it distinct a human for example apart from its own kind? Or could it be that it's skin is special in which it can sense the body temperatures of other creatures like how the eggs do when they sense a life form near it that is not one of their own? Perhaps the xenomorph has a specific body temperature that no other life form could possibly have and maybe they have the genetic ability to sense body temperatures and if it isn't the specific body temperature of its own kind then it is concluded that it is a different life form that they must attack. Maybe perhaps that is why they react so violently to rapid change in temperature around them like fire from a flamethrower or liquid nitrogen? Any insight would be much appreciated from all of you. So please let me know if there is any official documentation of how the xenomorph has such ability to locate prey items and or hosts for the Young.


What are the applications of different cost functions and which one to choose?

I have just read about different cost functions for training neural networks. How to determine which cost function is applicable in any given situation?


Code::Blocks output window Position in Ubuntu

When I write my program and then compile & run it, my output window appears at the bottom right corner so I have to drag & drop it to the center so I can enter my data.  Is there any way to make the default output window position the center of the screen?  I am running with Ubuntu 16.04 LTS and code blocks version 13.12 that I installed from Ubuntu Software Center


Using \equiv causes my font to become italicized and doesn't allow spacing

I am trying to write a logic equation with symbols and when I use \equiv everything afterwards is italics and does not allow spacing, even if I go to a new line.   Example:  p \to q \equiv \lnot q \to \lnot p  Output:   p → q ≡ ¬q→¬p  I have attempted to put the \equiv between $ but that also didn't work.  Also if I try to type on the next line it doesn't go to the next line, the only way I can go to the next line is by using \\ and even when I do that the next line is still italicized and there are no spaces.  I am new to LaTeX and stackexchange but can someone please help me out?  Thanks


What if--the universe is closed and very small?

Closed--you can come back to where you started by going all the way in one direction. Very small--the expansion of the universe, if inevitable, will not be able to prohibit this kind of round-about travel  Is that even possible?  if yes, what will the twin paradox look like?  if no, why not?


''According to a Gnostic legend, a war broke out in heaven among the angels, in which Michael’s legions defeated those of the Dragon. The nonpartisan angels who had been content to look on were consigned to earth, in order to make there a choice they had not been able to determine on high, one all the more arduous in that they brought with them no memory of the combat or, indeed, of their equivocal attitude.''  E. M. Cioran, Drawn and Quartered   I've got this text from above, and, given the fact that, obviously, I'm not a native, I have quite a hard time comprehending it. I don't understand, precisely, the words in bold, I mean, individually I do understand them all, but in this context I just can't come up with a correlation between them. Could someone explain it to me?


Set persistent permissions for /var/log/boot.log

Every time I reboot my CentOS 6.5 computer, it writes the boot log to /var/log/boot.log. The permissions on this file are always 644 after a reboot. I want the permissions to be 600. When I change the file permissions manually using chmod 600 /var/log/boot.log it reverts to 644 after the reboot. How can I make this change permanent?  I would prefer the permissions are set when the file is created, instead of having the permissions applied sometime after the boot process is complete (or nearly complete).


How to remove applications installed using snapcraft

I have installed eclipce using  // command sudo snap install eclipse --classic  Now, i want remove eclipse. What i tried rahul@rahul:~/Desktop/projects/temp$ sudo apt-get purge Eclipse Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package Eclipse   rahul@rahul:~/Desktop/projects/temp$ sudo apt-get purge eclipse Reading package lists... Done Building dependency tree        Reading state information... Done Package 'eclipse' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


Possible Duplicate:          This is a simple bug: You can't make individual letters in a word bold.  Example:  **SVG** stands for **S**calable **V**ector **G**raphics      SVG stands for Scalable Vector Graphics   Dirty(?) Workaround:  I found a workaround that uses the Unicode character "Zero-Width Joiner" to separate the letters from the rest of the word code-wise, but not visually.  **SVG** stands for **S**&zwj;calable **V**&zwj;ector **G**&zwj;raphics      SVG stands for Scalable Vector Graphics


Why do Ubuntu releases use names and not just numbers?

As the title says - why also use names and not just version numbers?


Determine Which of the following Sets is a Vector Space

Determine which of the following sets is a vector space.  $V$ is the line $y=x$, in the $xy$-plane: $V =\{[x,y]: \; y=x\}$  $W$ is the union of the first and second quadrants in the $xy$-plane: $W=\{[x,y]: \; y\geq0\}$  $U$ is the line $y = x+1$ in the $xy$-plane: $U=\{[x,y]: \; y=x+1\}$    I know that the answer is that "$V$" is the only vector space. However how do I come up with a quick proof to show that $V $is a vector space and that the other $2$ aren't?


I have read Galois theory by Joseph Rotman and it's very well written. Now I want to read field theory and galois theory more formally. A guy recommended me the book 'Field extensions and Galois theory' by Julio R. Bastida. Is it a book to start with? I can't find it online. Any more suggestions will be appreciated and please tell me if there's any free online source for this book.


Does having an autofocus motor in body vs lens affect image stabilization or image quality?

In terms of image quality and image stabilization, what difference does it make to have an autofocus motor in-body vs.in-lenses ?   The question  discusses only focusing  itself, but I'm interested in other possible side-effects.


How to call the correct functions for inherited nested classes

I am trying to write a base class Problem with a nested class State. My idea is that any class I derive from Problem will also derive its own version of the nested class. Two of the functions (the constructor and printInit()) both pass to methods of State; however if I try calling these in a derived class the function that gets called is the one belonging to the base class rather than the version of the same function in the derived nested class. If I recreate the same functions in the derived class it works properly but I'd like to avoid the duplication if possible. Is there a way to set this up so that the functions that get inherited refer to the derived versions of State instead? class Problem { public:      Problem(std::ifstream& in) { init = State(in); }     void printInit() { init.print(); }      class State {     public:         State() {             f = h();             g = 0;         }         State(std::ifstream& in) {}         bool goal() { return false; }         void print() {}     protected:         int f, g;         int h() { return 0; }         std::priority_queue<State> kids;     };  protected:     State init; };   #include "Problem.h" #include <stack> #include <iostream>  class Solitaire : public Problem { public:      Solitaire(std::ifstream& in) : Problem(in) {         init = State(in);     }     void printInit() { init.print(); }      class State : public Problem::State {     public:         State() : Problem::State() {             Pos = 0;             Draws = 0;         }          State(std::ifstream& in) : Problem::State(in) { }          bool goal() {             return (Deck.size() + Pile.size() == 0);         }          void print() {             std::cout << Deck.size() << " " << Pile.size() << std::endl;         }      private:         int h() {             int total = 0;             total +=  7 * ceil(Deck.size() / 3.0);             total += 20 * (Deck.size() + Pile.size());             return total;         }          int Pos, Draws;         std::stack<int> Deck;         std::stack<int> Pile;     };  private:     State init;  };


When is better to swap top and bot lanes?

I've seen a lot of games in the LCS and All-Star, and they sometimes changed bot and top lanes.   When is this a good practice? What do you gain from doing this? Should I do this to avoid counters or if my solo laner has more sustain than theirs?


Eigenvectors and Eigenvalues of $a^\dagger a$

A common question I have seen on problems sets and on exam papers is as follows (own words):     Show that $a^\dagger$ and $a$ satisfy the canonical commutation relations. Hence show write down the eigenvalues and eigenvectors of $a^\dagger a$.    The expected answer is as follows :     The eigenvalues are $n=0,1,\ldots$ and the eigenvectors are - spare a normalization: $$(a^\dagger)^n \left|0\right>$$   where $a \left|0\right>=0$.   It is clear from the commutation relations that if we have an eigenvalue $\lambda$ then we have a string of eigenvalues: $$\ldots, \lambda -2,\lambda -1, \lambda, \lambda+1,\lambda+2,\ldots$$ if $\lambda$ is a natural number then this string is bounded by below by $0$ and it is always bounded above by $\infty$. The expected answer I have given above has made two (in my opinion, fairly large) assumptions:   There is only one string present. I.e. there is no eigenvalue $\lambda_2$ such that $\lambda_2 \ne \lambda+k$ for some $k \in \Bbb{Z}$. The string that is present has $\lambda \in \Bbb{N}$.   These assumptions hold for the case of the Harmonic oscillator - this can be shown by explicitly solving the Hamiltonian. But often there are no harmonic oscillators in sight - for example in the Fock space representation$^\star$.   Thus my question is: under what circumstances do we expect the above assumptions to be valid and why?   $\star$ Only an example - not the focus of my question.


I am studying English and I want to know the main difference between “Have you got?” and “Do you have?” questions. Are they the same? Is one more formal than the other?


Why Outlook, Hotmail and Live return 250 Mail queued for delivery, but they never deliver it?

Ok, i've been seeing this the last week, tought it could be gone in a few days by itself, since i wasn't blacklisted and my DNS entries are all ok, but when i try to send e-mails to some user at Outlook, Live or Hotmail, i get this:  2015-02-11 14:54:58 1YLaYz-0000IT-I1 H=localhost.localdomain (higipel.com.br) [127.0.0.1]:41242 Warning: "SpamAssassin as cpaneleximscanner detected OUTGOING smtp message as NOT spam (-1.0)" 2015-02-11 14:54:59 1YLaYz-0000IT-I1 <= teste@higipel.com.br H=localhost.localdomain (higipel.com.br) [127.0.0.1]:41242 P=esmtpa A=dovecot_login:teste@higipel.com.br S=3532 id=5f640648ff1df4f59148f5c9cbbbd67b@higipel.com.br T="Lorem Ipsum" for [privarypreserved]@outlook.com 2015-02-11 14:54:59 cwd=/var/spool/exim 3 args: /usr/sbin/exim -Mc 1YLaYz-0000IT-I1 2015-02-11 14:54:59 1YLaYz-0000IT-I1 SMTP connection outbound 1423673699 1YLaYz-0000IT-I1 higipel.com.br [privarypreserved]@outlook.com 2015-02-11 14:54:59 SMTP connection from localhost.localdomain (higipel.com.br) [127.0.0.1]:41242 closed by QUIT 2015-02-11 14:55:01 1YLaYz-0000IT-I1 => [privarypreserved]@outlook.com R=dkim_lookuphost T=dkim_remote_smtp H=mx1.hotmail.com [65.55.37.72] X=TLSv1:AES256-SHA:256 C="250  <5f640648ff1df4f59148f5c9cbbbd67b@higipel.com.br> Queued mail for delivery" 2015-02-11 14:55:01 1YLaYz-0000IT-I1 Completed   And the weird thing is, i have a few hundred domains under 3-4 IP's at most, but just 4-5 domains are presenting this 'problem'  Anyone found a solution for this yet?


Javascript bitwise operators - explanation required

I'm using some code in JS and I bumped into these (unrelated) expressions:   1) var r = (d + Math.random() * 16) % 16 | 0;  2) return c === 'x' ? r : (r & 0x3 | 0x8);   I read some about bitwise operators but it does not help in this context. Can somebody explain (preferably step-by-step) how do they work ? How this two expressions are logically evaluated and run ?   Thanks in advance.


Installing boot-repair 64 bit on my computer

I recently installed ubuntu in my computer, once it installed it was unable to boot windows saying that it was crashing due to the modifications the computer recently went through, then i heard about boot-repair which i also installed on my computer but now its telling me that I need the 64 bit version which I already downloaded and wrote it on a CD, but when i try to run the program both through the cd and just the downloaded file it never opens or starts running, any comments?  Thank you for your time.


What is the best place to store resource files like css, images & Javascript files.   At the moment i am storing them in layouts folder, but we can store the same in Style Library as well...  So is there any difference in terms of overall performance of the site?


javascript events being applied to wrong elements

I'm looping through a counter, finding elements based on the counter value, and binding events to that set that matches the counter.  psuedo code:  for index in counter     find elements of data attribute matching counter     attach click event to that matched query set   js:  var groups = [];  $('.match-me').each(function(){     var group_id = $(this).data('instance');     if(groups.indexOf(group_id) < 0){         groups.push(group_id);     } });  for(var i of groups ){     window['test'+i] = $('*[data-instance=' + i + ']');     window['test'+i].each(function(){         $(this).on('click',function(){               //CONSOLE.LOG OF window['test'+i] OUTPUTS THE LAST MATCHED SET               window['test'+i].css('color','red');         });     }); }   The issue is inside where I am binding the event listening, the variable for the matched set of elements is always the last matched set of elements. I thought that by creating dynamic global variables in window I would escape this problem, but I'm not sure what I'm doing wrong.


So I got this question:  Let $A$ be uncountable infinite set, and let $B$ be a countable subset of $A$.  Prove that $A\setminus B$ is uncountable.  So I figured that $A\setminus B\subset A$ and hence $|A\setminus B|\leq|A|$, and all that left to prove is that $|A|\leq|A\setminus B|$  but now I need to find an injective function from $A$ into $A\setminus B$ and I'm having trouble thinking about it.


So is importing .obj in 2.78 via script broken, or am I not doing it right? It's crashing on import in my script when I try and reference the object at all.  import bpy file_loc = 'C:\\Users\\MyComp\\Documents\\3Dobjects\\obj\\humans\\human_figure_JOINED.obj' imported_object = bpy.ops.import_scene.obj(filepath=file_loc) obj_object = bpy.context.object #print('Imported name', imported_object.name) print('Imported name: ', obj_object.name)   Running this with the first print statement yields this:  AttributeError: 'set' object has no attribute 'name'   If I let it run as shown, the second print gives me an object "Point.001" which is I think the last created object, so the active one?  I have tried to link the imported object to the scene by adding the following code, but this doesn't seem to work:  scn = bpy.context.scene scn.objects.link(imported_object)   This gives me an error:  TypeError: SceneObjects.link(): error with argument 1, "object" -  Function.object expected a Object type, not set   Appears to me to be something wrong with the import.  If I import via the UI (File..Import...Wavefront(.obj) everything seems ok, as in it imports and can be manipulated.  Any ideas?  I would select it referencing the name but I can't even get the name because the reference getting it from "imported object" fails.


Is "West did not say Thursday whether he agreed with Trump’s political ideas" grammatically correct?

I'd like to ask a question regarding omission of prepositions on sentences. I know it could be quite common to do so in journalism but upon reading the sentence below, I'd like to ask if this one is still acceptable as it could be a bit confusing...  "West did not say Thursday whether he agreed with Trump’s political ideas."  compared to   "West did not say on Thursday whether he agreed with Trump's political ideas."  It's part of an article,


How do I add 3rd party CkEditor plugins to the editor?

I have found a third-party CKEditor plugin I want to add to the editor provided by Drupal core in Drupal 8. What do I need to do to be able to make it possible to add this new option to the editor?  The plugin I would like to add is the image2 plugin (called enhanced images) found on the CKEDITOR site. Based on my research, it appears I'd need to add a YAML and a module file to what CKEDITOR provides.


I was copying around 750GB of files into my external hard drive, estimated time was 10 hours. It significantly slowed down my laptop. I wanted to check what is inside rubbish bin so I opened it, but it was taking a long time to open. I had hundreds files in that bin, so it could take some time. I clicked the bin icon again, which probably caused another window to load. After an hour it still didn't open any rubbish bin window and my computer was frozen. I decided to restart the computer, so I held the power button to turn it off and then turn it on again.   Since then, from the moment it goes through boot process it ends at black screen. It doesn't load the desktop. I left the laptop overnight to see if it will respond after that long time, but it didn't. I tried restarting it couple of times, without result.   What are my options in this situation? I cannot reinstall the system since I have a disk full of data that I need to keep.   UPDATE:  I was doing recovery files using photorec and I selected wrong partitions. I noticed it after it had filled the whole space. I did that with all the partitions. And I guess no space on root partitions could cause this kind of problem.  I deleted all the folders with files that I recovered trough photorec. It freed 10 GB of space. Now there is a space, but still the problem occurs - black screen, it doesn't display desktop.  I updated the system, but it didn't help either. I'm thinking about boot files, maybe they are corrupted and hence it doesn't load the desktop.  UPDATE:  I tried:  sudo apt-get install --reinstall unity   and now Instead of just black screen I can see the Ubuntu logo with loading bar. But it still doesn't go to the desktop.


How can I create a default dock for all users (Mavericks)?

I am new to managing Macs. We currently have a lab, and probably plan to create more labs in an enterprise style solution. In the lab, we would like to have a "default profile" created for users who log in.  The users are AD users, and the Macs are bound (binded?) to AD; users can log in fine.  I would now like to modify the dock to display specific installed applications. I then want this dock to be the default dock for any users that log in.  Ideally, I would also like to use this default dock on other machines in the lab, so if there are some files I can transfer to the other machines and a command to run to apply the settings, that would be perfect. Ideally I will be Apple or Bash scripting the entire process (currently Bash scripting the AD bind, default background, apple ID sign-in removal, etc).  We have no management servers. We will be using Deep Freeze for the time being, so there is no problem with users modifying their dock; users will have permissions to mess around.  I have found answers for pre-Mavericks, where it seems to be a case of copying a couple of files which would have been perfect, but it seems Mavericks does it a little differently and I can't find a straightforward answer.


GRUB rescue returns no such partition after deleting Ubuntu partition

I have dual booted Windows 10 and ubuntu. I accidently deleted the ubuntu partition from Disk Management from my Windows. After restarting my laptop, I get the following error: error: no such partition. Entering rescue mode... grub rescue>  ls returns: (hd0) (hd0,msdos1)  When I entered ls (hd0,msdos1) I get error: (hd0,msdos1): Filesystem is unknown set command returns: cmdpath = (hd0) prefix = (hd0,msdos5)/boot/grub root = hd0,msdos5  When ls command returns only (hd0,msdos1) , why set is showing as (hd0,msdos5)/boot/grub


my input is:    blah blah blah 1 blah blah blah 2  and I want my regex to match this  xxxx pattern  and the desired output is 1.somenumber 2.xxxx  I wrote a naive solution which could cover   blah blah blah 1   blah blah blah 2 notice: they are on different lines  the output is : 18, blah blah blah 1 and 19,blah blah blah 2   but when the input is  blah blah blah 1 blah blah blah 2 which is on the same line  my output is 18,  blah blah blah 1 blah blah blah 2  how could I bypass this problem?  Update:  regex: /\(.*)<\/span>/ig  testinput:  case1 -> two lines of code  often graces doorways tied into ropes called  often graces doorways tied into ropes called ristras.            case2 -> one line of code  often graces doorways tied into ropes calledoften graces doorways tied into ropes called ristras.  Update2:  This is not a dom , it is just a plain text that I want to process.  Update3: so my problem about Regex is solved, now I have a question about comparing the proessing speed between regex or dom operation ? how could implement such a test ?


Is there a "catch" on my "increased credit limit"?

Today I received a letter from the bank that issued my credit card. Basically it says that, since I'm "one of their best customers" my credit (card) limit has been increased.  This is the second time that they have done this. The first time I didn't give it much thought. I'm a legal resident in the United States, so I knew that I would need to build a "credit history" for myself here and I though that it was a good sign that they would increase my credit limit after a couple years.   After this happened the second time, I wonder if there could be a "catch" on this. I mean, what is my bank's real motivation for allowing me to spend more money. Are the any pitfalls (besides the obvious "don't get into too much debt. Don't buy things that you cannot really afford") I should avoid?  Additional info:   I'm a legal resident in the US.  I have had this credit card for around 4 years now. I make a sensible use of my card. I never had an issue paying my balance.


I found a conflict between bm an etoolbox because later one redefines \@@end. It happens when it patches \enddocument command.  Code from etoolbox:  \patchcmd\enddocument   {\deadcycles}   {\let\AfterEndDocument\@firstofone    \@afterenddocumenthook    \deadcycles}   {}   {\let\etb@@end\@@end    \def\@@end{%      \let\AfterEndDocument\@firstofone      \@afterenddocumenthook      \etb@@end}}   bm package expects that \@@end will be from latex.ltx Shouldn't etoolbox redefine \@@end only on \enddocument (if \patch\enddocument failed)?  Example with the problem:  \documentclass{article} \makeatletter \let\saved@enddocument\enddocument \def\enddocument{\saved@enddocument} \makeatother  \usepackage{bm} \usepackage{etoolbox} \begin{document} $\boldsymbol{\sigma}$ \end{document}   Can it be fixed in TL1015?


If the Nazgul had access to the fell beasts - why did they ride on horseback to hunt the ring bearer?


I'm trying to upload a long article with many macro files to arXiv, and I'm ending up with the following error:  ! Package keyval Error: family_i undefined.  It seems that something is wrong with my *.bbl-file (which is required to be uploaded with the article by arXiv), or with arXiv's biblatex installation? But both arXiv and me are using TeXLive 2016, and it does compile on all of my machines, so the matter must be with arXiv? What is the real problem here?


I need to comment on Bill Gates's blog. In my comments I would frequently want to refer to him (I don't want to address him) with respect

What should I add before or after his name to show respect? In India we do that adding sir after the name but I don't think it's done in standard English.


“COVID-19 changed / has changed / has been changing the everyday life of people”

This is for the translation of a bachelor thesis and we have different opinions on the use of the word "change". Which is correct?  COVID-19 changed / has changed / has been changing the everyday life of people.  1st person says: changed  means life changed in March and is changed since then. 2nd person thinks: has changed is stronger I personally think: has been changing means that the changes have not come to an end and we are still dealing with it and new changes are communicated on a daily basis. Thanks for your help!


Can we get a graph not containing $K_n$ with $\chi(G)\geq n$

It is known that the chromatic number of a complete graph is equal to the number of its vertices,  that is $\chi(K_n)=n$. My question is can we get a graph $G$ not containing $K_n$ but with $\chi(G)\geq n$, for $n\geq 3$?


subject verb agreement in "whether.... or" constructions

Normally, we make the verb agree with the second subject in constructions of "either..... or" and "neither....nor". However, I am confused about the following sentence:  the court has to decide whether the supervisor or the workers is to be summoned.  Should we use "is" or "are" to make the sentence correct? And, more importantly, which one is the real subject in this example; "supervisor" or "workers"?


Use internet in non-browser application in Ubuntu under proxy

I tried a lot of ways like changing /etc/profile and /etc/apt/apt.conf file to use Internet for non browser applications.   I want to use the command sudo apt-get update but due to proxy I can't. How can I fix it?


{ get; set; } in the declaration of the variables

I found in one book this way to declare variables:  class JerseyNumber {     public string Player { get; private set; }     public int YearRetired { get; private set; }      string JerseyNumber(string player, int numberRetired)     {         Player = player;         YearRetired = numberRetired;     } }   What will change if I'll remove the code:  { get; private set; }


Does Ubuntu Desktop 32Bit Support more than 4GB Memory with default installation?

Does Ubuntu Desktop 32 Bit support more than 4GB memory WITHOUT changing anything (Without having to activate PAE via compiling kernel or anything similar). Will installing the 32 Bit Ubuntu on the machine be enough to detect the additional memory automatically. If yes, will this work if I add more than 4GB with a 32Bit Ubuntu already with 4GB Ram. One example would be to have 8GB Ram with Ubuntu 32 Desktop.  My Motherboard supports up to 8GB RAM and it has 32 Bit and 64 Bit support (It is the intel DP35DP)


I ran this command:  sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 sni-qt:i386   But now I want to remove what I've just installed.  What's the command?


Significant predictors become non-significant in multiple logistic regression

When I analyze my variables in two separate (univariate) logistic regression models, I get the following:  Predictor 1:    B= 1.049,    SE=.352,    Exp(B)=2.85,    95% CI=(1.43, 5.69),    p=.003    Constant:    B=-0.434,    SE=.217,    Exp(B)=0.65,                            p=.046  Predictor 2:    B= 1.379,    SE=.386,    Exp(B)=3.97,    95% CI=(1.86, 8.47),    p<.001    Constant:    B=-0.447,    SE=.205,    Exp(B)=0.64,                            p=.029   but when I enter them into a single multiple logistic regression model, I get:  Predictor 1:    B= 0.556,    SE=.406,    Exp(B)=1.74,    95% CI=(0.79, 3.86),    p=.171 Predictor 2:    B= 1.094,    SE=.436,    Exp(B)=2.99,    95% CI=(1.27, 7.02),    p=.012    Constant:    B=-0.574,    SE=.227,    Exp(B)=0.56,                            p=.012   Both predictors are dichotomous (categorical). I have checked for multicollinearity.  I am not sure if I have given enough info, but I cannot understand why predictor 1 has gone from being significant to non-significant and why the odds ratios are so different in the multiple regression model. Can anyone provide a basic explanation of what is going on?


How is the Schroedinger equation a wave equation?

Wave equations take the form:  $$\frac{ \partial^2 f}  {\partial t^2} = c^2 \nabla ^2f$$  But the Schroedinger equation takes the form:  $$i \hbar \frac{ \partial f}  {\partial t} = - \frac{\hbar ^2}{2m}\nabla ^2f + U(x) f$$  The partials with respect to time are not the same order. How can Schroedinger's equation be regarded as a wave equation?  And why are interference patterns (e.g in the double-slit experiment) so similar for water waves and quantum wavefunctions?


Can Ubuntu defragment NTFS or FAT drives?

Can I use Ubuntu to defrag a Windows NTFS/FAT drive or partition?


Does anyone know where to get the newest version of cowpatty? I've typed the following:   wget http://wirelessdefence.org/Contents/Files/cowpatty-4.6.tgz   but it comes back with 'error 404 file not found'.


Several ways to prove that $\sum\limits^\infty_{n=1}\left(1-\frac1{\sqrt{n}}\right)^n$ converges

I believe there are several ways to prove that $\sum\limits^{\infty}_{n=1}\left(1-\frac{1}{\sqrt{n}}\right)^n$ converges. Can you, please, post yours so that we can learn from you?  HERE IS ONE   Let $n\in\Bbb{N}$ be fixed such that $a_n=\left(1-\frac{1}{\sqrt{n}}\right)^n.$ Then, \begin{align} a_n&=\left(1-\frac{1}{\sqrt{n}}\right)^n \\&=\exp\ln\left(1-\frac{1}{\sqrt{n}}\right)^n\\&=\exp \left[n\ln\left(1-\frac{1}{\sqrt{n}}\right)\right] \\&=\exp\left[ -n\sum^{\infty}_{k=1}\frac{1}{k}\left(\frac{1}{\sqrt{n}}\right)^k\right]\\&=\exp\left[ -n\left(\frac{1}{\sqrt{n}}+\frac{1}{2n}+\sum^{\infty}_{k=3}\frac{1}{k}\left(\frac{1}{\sqrt{n}}\right)^k\right)\right]\\&=\exp \left[-\sqrt{n}-\frac{1}{2}-\sum^{\infty}_{k=3}\frac{n}{k}\left(\frac{1}{\sqrt{n}}\right)^k\right]\\&\equiv\exp \left(-\sqrt{n}\right)\exp \left(-\frac{1}{2}\right)\end{align} Choose $b_n=\exp \left(-\sqrt{n}\right)$, so that  \begin{align} \dfrac{a_n}{b_n}\to\exp \left(-\frac{1}{2}\right).\end{align} Since $b_n \to 0$, there exists $N$ such that for all $n\geq N,$ \begin{align} \exp \left(-\sqrt{n}\right)<\dfrac{1}{n^2}.\end{align} Hence, \begin{align}\sum^{\infty}_{n=N}b_n= \sum^{\infty}_{n=N}\exp \left(-\sqrt{n}\right)\leq \sum^{\infty}_{n=N}\dfrac{1}{n^2}<\infty,\end{align} and so, $\sum^{\infty}_{n=1}b_n<\infty\implies \sum^{\infty}_{n=1}a_n<\infty$ by Limit comparison test.