I was debugging a bug when I came across a piece of code which can be simplified as below  $value = '9611080820001471'; $value = sprintf('%.0f', (float)$value); echo $value . "\n";  This produces following Output:  9611080820001472  Can somebody explains why/how the $value got incremented

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Show that for $\{a,b,c\}\subset\Bbb Z$ if $a+b+c=0$ then $2(a^4 + b^4+ c^4)$ is a perfect square.    This question is from a math olympiad contest.   I started developing the expression $(a^2+b^2+c^2)^2=a^4+b^4+c^4+2a^2b^2+2a^2c^2+2b^2c^2$ but was not able to find any useful direction after that.  Note: After getting 6 answers here, another user pointed out other question in the site with similar but not identical content (see above), but the 7 answers presented include more comprehensive approaches to similar problems (e.g. newton identities and other methods) that I found more useful, as compared with the 3 answers provided to the other question.

There are given integers $a, b, c$ satysfaying $a+b+c=0$. Show that $32(a^4+b^4+c^4)$ is a perfect square.  EDIT: I found solution by symmetric polynomials, which is posted below.


This a question about how he knows how to use each of them and one in particular, the Time Stone.  I say the Time Stone, because this is the only Stone we are really given any information on how hard a Stone it is to use. So it is not just "pick it up and you can bend time". You actually have to train and study to use it and I am guessing if it is not close by, trial and error (as with most training won't cut it).  In Doctor Strange we see a conversation with Mordo on how hard it is to actually use the Time Stone.  The only hint we get that Thanos may already have the knowledge is in this scene:                                     Stark, you're not the only one cursed with knowledge   So, we know Thanos may have a great knowledge base, but is there anything on how he knows how to use the Infinity Stones?  Is there an in- or out-of-universe explanation on how Thanos was able to use the Stones he only just acquired, considering how hard they were to control?

In Guardians of the Galaxy, Ronan the Accuser possesses the Infinity Stone of Power and smooshes installs it into a large hammer he uses as a weapon.    Once it's in the hammer, he doesn't have physical contact with the stone, so how does he harness its power and use it as a weapon?


I just want to remove everything after a new line in a JAVA string. For Example:- If String = "Class              Name              Address"  I want my output to be = "Class"  It is not a String Array it is one String with 3 lines  Help would be highly appreciated.

I'm trying to split text in a JTextArea using a regex to split the String by \n However, this does not work and I also tried by \r\n|\r|n and many other combination of regexes. Code:  public void insertUpdate(DocumentEvent e) {     String split[], docStr = null;     Document textAreaDoc = (Document)e.getDocument();      try {         docStr = textAreaDoc.getText(textAreaDoc.getStartPosition().getOffset(), textAreaDoc.getEndPosition().getOffset());     } catch (BadLocationException e1) {         // TODO Auto-generated catch block         e1.printStackTrace();     }      split = docStr.split("\\n"); }


I am trying to perform a windows scheduler job  which will create back up of my database daily once. So for this reason I have created batch file SYSTEM_BACKUP.bat which contains data:  @echo off setlocal EnableDelayedExpansion expdp SYSTEM/SYSTEM@XE PARFILE=export_dump.par   The export_dump.par file contains information:  DIRECTORY=cron_jobs DUMPFILE=SYSTEM_!date:~10,4!!date:~6,2!.!date:~4,2!.dmp LOGFILE=SYSTEM.log SCHEMAS=B1,B2 CONTENT=ALL   When i trying to run the SYSTEM_BACKUP.bat I am getting error as     ORA-39001:invalid argument value,   ORA-39000 bad dump file specification,   ORA-39087:directory name ratormonitor_!date is invalid.    I am trying to create dump file with current datetimestamp attached to the file so the dump file name should look like this SYSTEM_2015.02.03.37.029062831 but getting an error.

Update: Now that it's 2016 I'd use PowerShell for this unless there's a really compelling backwards-compatible reason for it, particularly because of the regional settings issue with using date. See @npocmaka's     What's a Windows command line statement(s) I can use to get the current datetime in a format that I can put into a filename?  I want to have a .bat file that zips up a directory into an archive with the current date and time as part of the name, for example, Code_2008-10-14_2257.zip. Is there any easy way I can do this, independent of the regional settings of the machine?  I don't really mind about the date format, ideally it'd be yyyy-mm-dd, but anything simple is fine.  So far I've got this, which on my machine gives me Tue_10_14_2008_230050_91:  rem Get the datetime in a format that can go in a filename. set _my_datetime=%date%_%time% set _my_datetime=%_my_datetime: =_% set _my_datetime=%_my_datetime::=% set _my_datetime=%_my_datetime:/=_% set _my_datetime=%_my_datetime:.=_%  rem Now use the timestamp by in a new ZIP file name. "d:\Program Files\7-Zip\7z.exe" a -r Code_%_my_datetime%.zip Code   I can live with this, but it seems a bit clunky. Ideally it'd be briefer and have the format mentioned earlier.  I'm using Windows Server 2003 and Windows XP Professional. I don't want to install additional utilities to achieve this (although I realise there are some that will do nice date formatting).


Prove that $$\tan \left(\frac{3\pi}{11}\right)+4\sin \left(\frac{2\pi}{11}\right)=\sqrt {11}$$  Hints please !

How can we prove the following trigonometric identity?  $$\displaystyle \tan(3\pi/11) + 4\sin(2\pi/11) =\sqrt{11}$$


I need to customize the output of the shortcode of plugin A by using a function of plugin B. So I alter the shortcode function of plugin A by inserting a condition to check the value of the function of plugin B but I need to include the php file that supports this function. I tried all require_once, require and include but I get the following errors:  When using  require_once('../../pluginname/pluginfunctions.php');  Error Warning: require_once(): open_basedir restriction in effect. File(../../magicmembers/core/libs/functions/mgm_misc_functions.php) is not within the allowed path(s)  When using  include(WP_PLUGIN_URL . '/pluginname/pluginfunctions.php');  Error Warning: include(): URL file-access is disabled in the server configuration  What is the correct way?

I am trying to write a WordPress plug-in. In my project I have three PHP files.   My plug-in file Widget for the plug-in Data installation   I need to install data table on plug-in activation. For that sake I wrote code to create table for my plug-in in data installation file. But I am not able to create data table using this file.  My code for include data installation file and widget file in my plug-in file is  define ( 'OTHER_FILES_PATH', plugin_dir_path( __FILE__ ) ); require_once( OTHER_FILES_PATH . '/data_installation.php' ); require_once( OTHER_FILES_PATH . '/plugin_widget.php' );   My problem is when I put my data installation code in my plug-in file it's working fine but when I put it in separate file (data installation) I am unable to create tables for my plug-in.  Please let me know if I am making any mistake.


I read about volatile keyword, but I don't know in what situations I should use it.  When the memory (variable) is getting updated and process is not aware of that?  In what cases should drivers use volatile variables?

Why is volatile needed in C? What is it used for? What will it do?


I have a panorama of mountains and photo, I want to place photo on panorama but I need to see (only) edges of mountains from panorama in my photo on top. So everything has to be invisible besides edges in photo. Should I make photo on top partly transparent or can I do it by changing A value if images are RGBA? Or if there is some tutorial for some photo editor (Gimp, etc.) but I hasn't found anything.  My En is bad so there are links to images and you will see what I want to do.   Thank you in advice, appreciate that.

What is it nessesary to do if I want to see just black edges from background image in image placed on top?  Here are links to source images      This is what I want to create:    You can see there are edges from background panorama mountains in picture on top. Any ideas, please?


In the past day, I've found at least 4 binaries that say "bin-name: No such file or directory" when I try to run them. Even if I type part of the name and tab complete it, I get the same error. I'm on an x86_64 architecture.  Output of file:  fez-09152013-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x78612e4aac547367548dcc7cc3067c3cfcf2f177, stripped   Output of strace:  execve("./fez-09152013-bin", ["./fez-09152013-bin"], [/* 23 vars */]) = -1 ENOENT (No such file or directory) dup(2)                                  = 3 fcntl(3, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3fda17a000 lseek(3, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek) write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory ) = 40 close(3)                                = 0 munmap(0x7f3fda17a000, 4096)            = 0 exit_group(1)                           = ?   Output of ldd:  Not a dynamic executable   Output of strings is way too long to indent, so here's a link:   apt-get error:  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:  ia32-libs : Depends: ia32-libs-i386 but it is not installable E: Unable to correct problems, you have held broken packages.

I have currently a strange problem on debian (wheezy/amd64).  I have created a chroot to install a server (i can't give any more detail about it, sorry). Let's call its path /chr_path/. To make things easy, I have initialized this chroot with a debootstrap (also wheezy/amd64).  All seemed to work well inside the chroot but when I started the installer script of my server I got : zsh: Not found /some_path/perl (the installer includes a perl binary for some reasons)  Naturally, I checked the /some_path/ location and I found the "perl" binary. file in chroot environment returns :  /some_path/perl ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, not stripped   The file exists, seems ok, has correct rights. I can use file, ls, vim on it but as soon as I try to execute it - ./perl for example - I get : zsh: Not found ./perl.  This situation is quite understandable for me. Moreover :   I can execute other basic binaries (/bin/ls,...) in the chroot without getting errors I have the same problems for other binaries that came with the project When I try to execute the binary from the main root (/chr_path/some_path/perl), it works. I have tried to put one of the binaries with a copy of my ls. I checked that the access rights were the same but this didn't change anything (one was working, and the other wasn't)


I am trying to implement a recyclerview using a fragment. But I am always getting this error I=and I cant figure it out. Any Help is appreciated.  Here is My code for data I am trying to put in a list:  public class ItemData { public int BatImageUrl; public String BatTitle;   public int getBatImageUrl() {     return BatImageUrl; }  public void setBatImageUrl(int batImageUrl) {     BatImageUrl = batImageUrl; }  public String getBatTitle() {     return BatTitle; }  public void setBatTitle(String batTitle) {     BatTitle = batTitle; }  public ItemData(int BatImageUrl,String BatTitle){     this.BatImageUrl=BatImageUrl;     this.BatTitle=BatTitle; } public List<ItemData> itemsData; public void initializeData(){     itemsData = new ArrayList<>();     itemsData.add(new ItemData(R.drawable.batman2,"batman-1"));     itemsData.add(new ItemData(R.drawable.batman,"batman-2"));     itemsData.add(new ItemData(R.drawable.batman3,"batman-3"));  }   }  Here is My Adapter Code:     public class MyAdapter extends RecyclerView.Adapter<MyAdapter.ViewHolder> {         private List<ItemData> itemsData;      public MyAdapter(List<ItemData> itemData) {         this.itemsData = itemData;     }     @Override     public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {          View BatmanView = LayoutInflater.from(parent.getContext()).inflate(R.layout.batman_cards,parent,false);          ViewHolder viewHolder = new ViewHolder(BatmanView);         return viewHolder;     }      @Override     public void onBindViewHolder(ViewHolder viewHolder, int position) {         ItemData id = itemsData.get(position);         viewHolder.BatImage.setImageResource(id.getBatImageUrl());         viewHolder.BatTitle.setText(id.getBatTitle());      }        public class ViewHolder extends RecyclerView.ViewHolder {          ImageView BatImage;         TextView BatTitle;         CardView cv;         public ViewHolder(View itemView) {             super(itemView);             cv = (CardView) itemView.findViewById(R.id.bat_card);              BatImage = (ImageView) itemView.findViewById(R.id.bat_image);             BatTitle = (TextView) itemView.findViewById(R.id.bat_title);            }     }     @Override     public int getItemCount() {         return itemsData.size();     } }   Here is My fragment code:    public class BatmanFragment extends Fragment {       List<ItemData> itemsData;     @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {         View BatmanView = inflater.inflate(R.layout.batman_fragment,container,false);          return BatmanView;     }      @Override     public void onActivityCreated(Bundle savedInstanceState) {         super.onActivityCreated(savedInstanceState);         RecyclerView batmanRecyclerview = (RecyclerView) getView().findViewById(R.id.batman_recycler_view);         batmanRecyclerview.setHasFixedSize(true);        GridLayoutManager gm = new GridLayoutManager(getActivity(),2);         gm.setOrientation(GridLayoutManager.VERTICAL);         batmanRecyclerview.setLayoutManager(gm);           MyAdapter mAdapter = new MyAdapter(itemsData);         batmanRecyclerview.setAdapter(mAdapter);         batmanRecyclerview.setItemAnimator(new DefaultItemAnimator());     } }   And Finally My MainActivity:      public class MainActivity extends AppCompatActivity {      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          BatmanFragment fragmentS1 = new BatmanFragment();         getSupportFragmentManager().beginTransaction().replace(R.id.your_placeholder, fragmentS1).commit();     } }

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


I have a form with three fields, "start_date", "days", "end_date". I would like to get the end date by adding days to the start date.   My jQuery code is:  $("#days").change(function(){   var start_date = new Date($("#start_date").attr('value'));   var days = parseInt($("#days").attr('value'))-1;   var end_date = new Date(start_date);   end_date.setDate(start_date.getDate() + days);                               $("#end_date").val(end_date.getFullYear() + '-' + ("0" + (end_date.getMonth() + 1)).slice(-2) + '-' + ("0" + end_date.getDate()).slice(-2)); });   In the "end_date" field I get "NaN-aN-aN".   What am I doing wrong?

How to add days to current Date using JavaScript. Does JavaScript have a built in function like .Net's AddDay?


After installing Ubuntu 13.10 mouse is blinking and sometimes it blinks so fast that I can't see where it is, especially on web pages. It also happens even if I don't work anything on computer.  During setup of installation I pointed /home to previous 13.04 Ubuntu, maybe some settings are obsolete. What could be problem here? I have NVidia 525M graphic card.

I installed Ubuntu today and since the first start up I have a problem with the mouse cursor.  It starts randomly disappearing and flickering a lot.  I have searched for a solution on Google and here but didn't find anything.


I'm looking for a science fiction book that is about the discovery of an ancient technological civilization on Earth in the far future .  The discoverer's civilization is not highly technological, and they awaken an artificial intelligence.   I don't know much more about the book - hopefully my description is not too vague. Thank you for any help.

I'm racking my memory for a post-apocalyptic novel that I borrowed from a library maybe 15 years ago, but I'm sure it was published a few years before that though (maybe early 90s?).  I remember a party of people travelling across the flooded USA after some kind of apocalypse (climate change/flooding?). Towards the end of the book the group makes their way to New York(?) and finds a partially flooded library, discovering a set of books that gives hope for the return/rebuilding of society.


In the Matrix Reloaded movie, when Morpheus and Key maker were about to die when two trucks collided, Neo flies to the accident location and saves both of them. Why does Neo need to fly, why does he not tele-transport himself to the accident location?

I've never quite understood why Neo cannot or doesn't want to just teleport all over the Matrix, or transform objects around him as he sees fit, large-scale. The promise about the One is that he is the, heh, one,     inside who had the ability to change whatever he wanted, to remake the Matrix as he saw fit.   But Neo hasn't gained many special abilities from the end of The Matrix till the beginning of Reloaded, or maybe he just doesn't want to use them. Why is that? In fact he doesn't need to gain any abilities as he should already be able to do .   Why is it that he is just not doing any new things? Maybe it's not about being cool, but why doesn't he do practical things like teleporting to the highway when his friends are in danger?  Inspired by a  by . (Why doesn't Neo turn into a dragon?)


Problem in understanding the following proof in my book:     If  $f^2$ is analytic in $\Omega$ then so is $f$ where $f$ is continuous in domain $\Omega$    Zeros of $f$ are isolated .   Let $z_0$ be a zero of $f$ then $f(z_0)=0\implies f^2(z_0)=0$.Now zeros of an analytic function are isolated hence zeros of $f^2$ are also isolated. And so zeros of $f$ are also isolated.Done   $f$ has a derivative at each point at each point where it does not vanish.   Unable to understand this fact   Using Riemann's singularity theorem we have that $f$ is analytic in $\Omega$.   I am unable to understand that how the fact that If $f$ has a removable singularity at $z_0$,then $f$ is bounded in a ngbd of $z_0$ proves that $f$ is analytic in $\Omega$.

I want to show the following:  If $f(z) $ is a continuous  function on a connected open subset of the complex plane and $f(z)^2$ is an analytic function, then $f(z)$ is analytic.  Clearly if $f(z) \neq 0$ then $$\frac{f(z+h)-f(z)}{h}=\frac{f(z+h)^2-f(z)^2}{h}.\frac{1}{f(z+h)+f(z)}$$  which shows $f^\prime(z) $ exists if $f(z)\neq0$.  What do I do when $f(z) =0$?


I'm very new to Ubuntu.  I have Kubuntu 18.04 installed on my laptop and have been updating it with no problem, until today.  I selected to 'update all', then it got stuck with a message popping up as below:    I cannot close the page or reset the update.  Haven't tried to reboot the laptop yet, though I suspect I will get stuck on the same thing when I try to update again.  Any help will be appreciated.

I have Google Chrome Version 70.0.3538.77 (Official Build) (64-bit).  Today, after running sudo apt update and sudo apt full-upgrade, I saw:  E: Repository 'http://dl.google.com/linux/chrome/deb stable Release' changed its 'Origin' value from 'Google, Inc.' to 'Google LLC' N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.   I looked at the man page for apt-secure but it's pretty technical and difficult, at least for me, to follow.  So how do I fix this issue?    Edit: for now, I've removed the existing Google Chrome ppa from Software Sources and then ran sudo apt update and sudo apt full-upgrade successfully with the following being installed/upgraded successfully:  The following NEW packages will be installed:   python3-netifaces The following packages will be upgraded:   netplan.io nplan ppp 3 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.


I need to know if I can join my friend playing mods on his computer from my ps4.

I want to play Minecraft but I have one controller only. I do have a PC as well. Can I play PC and PS4 Minecraft?


Can you find a topology on the set of real numbers $\mathbb{R}$ so that all polynomials $p(x)=a_nx^n+...a_1x+a_0$ considered as functions from $\mathbb{R}$ to $\mathbb{R}$ are continuous functions but the cosine function $\cos \left(x\right)$ is not a continuous function from $\mathbb{R}$ to $\mathbb{R}$. I tried cofinite topology and Zariski Topology but I didn't succesful. Can you help?

So the question asks to find a topology on $\mathbb{R}$ so that all the polynomials are continuous functions from $\mathbb{R}$ to $\mathbb{R}$ but $\cos(x)$ is not continuous as a function from $\mathbb{R}$ to $\mathbb{R}$.   I looked at another similar question in stack exchange:  I think this is a special case of my question since it requires all other functions to not be continuous.   Other than that I thought maybe the solution could be based on how cosine is a periodic function unlike the polynomials, so maybe I should take out some infinite sets from the topology but that still wouldn't be enough since the topology would be closed under unions. So I am not even sure if there exists such topology.


I am using ubuntu 18 switching from OSX.   In OSX mission control there is a feature where each monitor has its own "workspace" that can be independently switched between.   GNOME3 has a similar feature where you can either switch between workspaces on your main monitor, or using gnome tweaks (under workspaces>workspaces span displays) you can switch between workspaces across all of your monitors at once.   This doesn't quite replicate the functionality of the workspace on OSX however, because OSX allows you to switch between workspaces on each monitor independently. For example, on my side monitor, in OSX I could have a code window that I want to remain persistent across multiple workspaces on the other monitors.   Is there an extension or windows manager that has this functionality for ubuntu?    EDIT: This is what I mean:    A window manager where:    Multiple workspaces exist  Workspaces can span multiple monitors  Workspaces can be switched independently

I recently switched to a new PC at work, one with two (identical, Dell 23") monitors. I'm running Linux Mint 15 64bit / Cinnamon. Is there a way to set it up in such a way that, instead of both monitors sharing the same huge workspace, they are on separate smaller ones? E.g. left monitor on workspace 1, right monitor on workspace 2, and I could switch either monitor to workspace 3 if needed?  Failing that, is there a way to duplicate the bottom panel onto the second monitor? Currently it is only displayed on the left one.


I have Minecraft: Pocket Edition on iPod but every time I try to go on an external server it says invalid name!   How do I fix it?

I am having trouble getting onto a server in Minecraft PE on iOS. When I tap on the person's server it just says invalid name:    I have tried turning off and restarting the iPad, going to home screen and logging back into the server but I have had no luck and no change. Is there a reason why this is so?


I found the best (IMHO) way to include Mathematica code in LaTeX:  (@jkuczm)  To the test I put the TeX code from link above, but it doesn't work with Beamer presentation. File can't be compiled. I get many errors like this:  Integrate[{y^(-3)*(1-(a/y)^2)^(-2)},{y,r,Infinity}] \end {mmaCell} \begin \ETC. ! Paragraph ended before \FV@BeginScanning was complete.   ! LaTeX Error: \begin{list} on input line 45 ended by \end{beamer@framepauses}.  ! Missing } inserted.  ! Extra }, or forgotten \endgroup.  ! LaTeX Error: \begin{list} on input line 45 ended by \end{beamer@frameslide}.  ! LaTeX Error: \begin{list} on input line 45 ended by \end{document}.  ! You can't use `\end' in internal vertical mode.  ! LaTeX Error: \begin{list} on input line 45 ended by \end{document}.  ! Emergency stop.   Any ideas on how to include Mathematica code in Beamer?  Edit: It was enough to use fragile frame. Thanks for @samcarter

Problem  I want to explain C# programming language step by step using overlay in beamer.cls. But it does NOT works as shown in the following figure.  How to solve this problem?    Code Snippet  \documentclass[dvipsnames,cmyk]{beamer}  \usepackage{listings}  \begin{document}  \defverbatim[colored]\Lst{% \begin{lstlisting}[language={[Sharp]C}] using System; public delegate void Foo(object o); \uncover<1>{public class Foo} \uncover<2>{\{} \uncover<3>{public static void Main()} \end{lstlisting}}  \begin{frame}{MyListing} \Lst \end{frame}  \end{document}


what i want to know how the solution to this problem makes the answer valid how we are sure that every time we choose using ncr the vowels will not be adjacent okay i will provide a problem with solution to illustrate more  if we have a word permutation find the Permutations of string such that no two vowels are adjacent the constants are 6  the vowels are 5 the solution is the following   (6! / 2!) * (7C5 * 5!) the first part is the constant part i understand that very well the second part why we give that the remaining places should be equal to 7 places  this the link to the problem thanks in advance

What is the shortest solution to the following problem?     What is the number of ways to order the 26 letters of alphabet so that   no two of the vowels a,e,i,o,u occur consecutively?   What I thought is to subtract permutations consisting of 2 vowels, 3 vowels, 4 vowels and 5 vowels occurring consecutively from all permutations 26!. But I could not even find an reasonable answer with that method. It seems to be too long and I always make mistakes.


What is the main reason that reset nets are low true? Is this so that any noise on the GND doesn't reset your system? If it was high true than couldn't you save the little leakage current that is always wasted in the pull-up?

Convention?  Easier to implement?  Another reason?  Is there a reason things like MCLR or RESET on microcontrollers are active-low, that is, you have to pull them down to reset the IC, and pull them up to "run" the IC.   I'm just curious because this causes me some problems. If it were active high, I could avoid the capacitor on MCLR required in some instances and deal with just a pull-down resistor. It seems only to add to complexity.


I booked a flight from Mexico to Germany with a 3 hour layover in the USA (Atlanta).  Do I need some kind of Visa or permission for this layover?  Unfortunately I can only find contradictory information about this. Some sources say I need a so called ESTA from , and others say I don't need anything. What do I really need?

In Europe usually you don't need to go through immigration to change planes (unless you are entering/exiting Schengen). Is it the case in the US as well? May I catch a connecting flight on one of the US airports if I don't have US visa?


Edited:  It is known that if $f$ is differentiable then the derivative function of $f$ is not always continuous. For instance $f(x)=x^2\sin (\frac{1}{x})$ for $x\neq 0$ and $f(0)=0$ if $x=0$. Then $f^{\prime}$ is discontinue at $x=0$.   Is there any differentiable function $f$ whose the derivative of $f$ has countable points of discontinuity?

There is a well-known result in elementary analysis due to Darboux which says if $f$ is a differentiable function then $f'$ satisfies the intermediate value property.  To my knowledge, not many "highly" discontinuous Darboux functions are known--the only one I am aware of being the Conway base 13 function--and few (none?) of these are derivatives of differentiable functions.  In fact they generally cannot be since an application of Baire's theorem gives that the set of continuity points of the derivative is dense $G_\delta$.  Is it known how sharp that last result is?  Are there known Darboux functions which are derivatives and are discontinuous on "large" sets in some appropriate sense?


I run Arch Linux with texlive version 2019.52579-1. When I compile the LaTeX (Beamer) code below the table caption is "Figure: A simple table." That is, it includes "Figure:" instead of "Table:". The problem does not occur when the subfig package is not used or when the deprecated subfigure package is used instead. Suggestions are welcome. Thank you.   \documentclass{beamer}  \usepackage[utf8]{inputenc} \usetheme{default}  \usepackage{subfig}  \begin{document}  \begin{frame}{A simple frame}  \begin{table}  \caption{A simple table.} \begin{tabular}{ll} \hline a & b \\ c & d \\         \hline                  \end{tabular}  \end{table}  \end{frame}  \end{document}

It is pretty weird that once I load the caption package, all table captions start with "Figure", instead of "Table".  For example,   \documentclass[10pt]{beamer}  \usepackage{caption} \begin{document}  \begin{frame}  \begin{table}    \caption{Add caption} \begin{tabular}{c} a \\         b \\     \end{tabular}  \end{table} \end{frame}  \end{document}   produces   Yet, removing the caption package solves the problem.  It seems that the problem exists only for new versions of the caption package. For example, on my office computer, where the caption packages was installed on September 2018, the problem disappear, but on my personal laptop, which generates the problem above, the package was installed a few months ago.


What is the difference between the two sentences below?   Are they both grammatically correct?   I dislike his being blunt. I dislike him being blunt.

I have a problem analysing this sentence from the point of finite/nonfinite clauses, clause elements and their functions:     He does not want to destroy his parents' dream of him achieving a Cambridge degree.   I am especially interested in the: dream of him achieving a Cambridge degree.  I know that 'achieving a Cambridge degree' is a non-finite -ing participle clause. However what is its function? And what is the function of 'of him'? Is it a postmodification?


After the battle in The Last Jedi when the ship activated its hyperdrive and tore through the Star Destroyer, I immediately began wondering why weapons weren't being made that utilized hyperdrives to push something really fast to be used as a projectile. What I'm wondering is how much it would cost to develop a weapon like this compared to other weapons in the Star Wars universe, and why such a weapon had not been created hundreds of years ago.

This question is related to "The Last Jedi":  The maneuvre that vice admiral Holdo (with the purple hair) uses towards the end of the film seems remarkably effective.   It seems that it would have worked pretty well much earlier. Especially as two other ships were just allowed to run out of fuel and be destroyed.  It seems doing it earlier with different assets would have incurred less losses. Yet nobody seemed to consider it. Any in universe reason why?


I've encountered an interesting case when playing with implicit casts and IEnumerable - please look at the last line of attached code - it won't compile.  public class Outer<T> {     private T field;     public Outer(T it)     {         field = it;     }      public static implicit operator Outer<T> (T source)     {         return new Outer<T>(source);     } }  void Main() {     Outer<string> intsample = "aa";     Outer<IList<object>> listsample = new List<object>();      //The line below fails with:     //CS0266 Cannot implicitly convert type 'System.Collections.Generic.IEnumerable<object>'     //to 'UserQuery.Outer<System.Collections.Generic.IEnumerable<object>>'.     //An explicit conversion exists (are you missing a cast?)     Outer<IEnumerable<object>> enumerablesample = Enumerable.Empty<object>(); }   I have a very strong gut feeling, that it is elated to IEnumerable being covariant, but could someone explain that more formal?

I have a generic class that I'm trying to implement implicit type casting for.  While it mostly works, it won't work for interface casting.  Upon further investigation, I found that there is a compiler error: "User-defined conversion from interface" that applies.  While I understand that this should be enforced in some cases, what I'm trying to do does seem like a legitimate case.  Here's an example:  public class Foo<T> where T : IBar {     private readonly T instance;      public Foo(T instance)     {         this.instance = instance;     }     public T Instance     {         get { return instance; }     }     public static implicit operator Foo<T>(T instance)     {         return new Foo<T>(instance);     } }   Code to use it:  var concreteReferenceToBar = new ConcreteBar(); IBar intefaceReferenceToBar = concreteReferenceToBar; Foo<ConcreteBar> concreteFooFromConcreteBar = concreteReferenceToBar; Foo<IBar> fooFromConcreteBar = concreteReferenceToBar; Foo<IBar> fooFromInterfaceBar = intefaceReferenceToBar; // doesn't work   Does anyone know a workaround, or can anyone explain in a satisfactory way why I shuouldn't be able to cast interfaceReferenceToBar implicitly to Foo<IBar>, since in my case it is not being converted, but only contained within Foo?  EDIT: It looks like covariance might offer salvation.  Let's hope the C# 4.0 specification allows for implicit casting of interface types using covariance.


So I have an enum like this:  public class MyObnoxiouslyLongClassName : AbstractModel, IPerforceModule {     public enum Status { Fatal, Priority, Error, Warning, Info, Debug }   and when I access the enum in another class I have to do so like:  MyObnoxiouslyLongClassName.Status state = MyObnoxiouslyLongClassName.Status.Fatal   What im trying to do is like link to this enum in my other class so I can skip the long class name.. something like this pseudocode:  public class MyOtherClass : AbstractModel, IFileBrowser {     private enum Status = MyObnoxiouslyLongClassName.Status     Status state = Status.Fatal;     (state == MyObnoxiouslyLongClassName.Status.Fatal) //true   Any way this could be done in C#?

I want to create an alias for a class name. The following syntax would be perfect: public class LongClassNameOrOneThatContainsVersionsOrDomainSpecificName {    ... }  public class MyName = LongClassNameOrOneThatContainsVersionOrDomainSpecificName;  but it won't compile.  Example Note This example is provided for convenience only. Don't try to solve this particular problem by suggesting changing the design of the entire system. The presence, or lack, of this example doesn't change the original question. Some existing code depends on the presence of a static class: public static class ColorScheme {    ... }  This color scheme is the Outlook 2003 color scheme. i want to introduce an Outlook 2007 color scheme, while retaining the Outlook 2003 color scheme: public static class Outlook2003ColorScheme {    ... }  public static class Outlook2007ColorScheme {    ... }  But i'm still faced with the fact that the code depends on the presence of a static class called ColorScheme. My first thought was to create a ColorScheme class that I will inherit from either Outlook2003 or Outlook2007: public static class ColorScheme : Outlook2007ColorScheme { }  but you cannot inherit from a static class. My next thought was to create the static ColorScheme class, but make Outlook2003ColorScheme and Outlook2007ColorScheme classes non-static. Then a static variable in the static ColorScheme class can point to either "true" color scheme: public static class ColorScheme {     private static CustomColorScheme = new Outlook2007ColorScheme();     ... }  private class CustomColorScheme  {     ... }  private class Outlook2008ColorScheme : CustomColorScheme  {     ... }  private class Outlook2003ColorScheme : CustomColorScheme  {    ... }  but that would require me to convert a class composed entirly of readonly static Colors into overridable properties, and then my ColorScheme class would need to have the 30 different property getters thunk down into the contained object. That's just too much typing. So my next thought was to alias the class: public static ColorScheme = Outlook2007ColorScheme;  But that doesn't compile. How can I alias a static class into another name?  Update: Can someone please add the answer "You cannot do this in C#", so I can mark that as the accepted answer. Anyone else wanting the answer to the same question will find this question, the accepted answer, and a number of workarounds that might, or might not, be useful. I just want to close this question out.


When I send emails from my application I am getting a spf neutral error.  I have been working with Google and my hosting company, but none of them can figure it out.  Below is my spf record.  "v=spf1 include:s920.tmd.cloud include:mx1.tmdhosting.com include:mx2.tmdhosting.com ip4:184.154.73.81 ip4:108.178.0.170 ip4:198.143.161.162 ip4: include:_spf.google.com ~all"   Below is a snip of the email meta data.      ARC-Authentication-Results: i=1; mx.google.com;        dkim=temperror (no key for signature) header.i=@holyfirepublishing.com header.s=default header.b=HRuHEiL6;        spf=neutral (google.com: 108.178.0.170 is neither permitted nor denied by best guess record for domain of publisher@holyfirepublishing.com) smtp.mailfrom=publisher@holyfirepublishing.com Return-Path: <publisher@holyfirepublishing.com> Received: from mx1.tmdhosting.com (mx1.tmdhosting.com. [108.178.0.170])         by mx.google.com with ESMTPS id b67-v6si3713737ioj.9.2018.04.28.17.31.24         for <test@holyfirepublishing.com>         (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);         Sat, 28 Apr 2018 17:31:24 -0700 (PDT) Received-SPF: neutral (google.com: 108.178.0.170 is neither permitted nor denied by best guess record for domain of publisher@holyfirepublishing.com) client-ip=108.178.0.170; Authentication-Results: mx.google.com;        dkim=temperror (no key for signature) header.i=@holyfirepublishing.com header.s=default header.b=HRuHEiL6;        spf=neutral (google.com: 108.178.0.170 is neither permitted nor denied by best guess record for domain of publisher@holyfirepublishing.com) smtp.mailfrom=publisher@holyfirepublishing.com Received: from [184.154.73.81] (helo=s920.tmd.cloud) by mx1.tmdhosting.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from <publisher@holyfirepublishing.com>) id 1fCaFP-0005U5-6t for test@holyfirepublishing.com; Sat, 28 Apr 2018 19:31:24 -0500   I can really use some help building my spf record.  Thanks in advance.

This is a  about setting up .     I have an office with many computers that share a single external ip (I'm unsure if the address is static or dynamic). Each computer connects to our mail server via IMAP using outlook. Email is sent and received by those computers, and some users send and receive email on their mobile phones as well.  I am using  to generate an SPF record and I'm unsure about some of the fields in the wizard, specifically:   Enter any other domains who may send or relay mail for this domain Enter any IP addresses in CIDR format for netblocks that originate or relay mail for this domain Enter any other hosts which can send or relay mail for this domain How stringent should SPF-aware MTA's treat this?   the first few questions i'm fairly certain about... hope i have given enough info.


In an auditorium the announcer asks the audience to be seated on the left side seats.  Doesnt it mean the left side of the audience??

● Right or left? When the teacher says:      "If you look at the diagram on the left hand side, you will solve this question!"    Is it the teacher's left hand side or students' left hand side?  Imagine, you are in a position like this:    Where is right? Where is left? (You can use the colours).    The example I have in mind is this . There is a speaker off-screen. Referring to this image, he says        And cardiac muscle has structures called intercalated disks, which if you look at the diagram on the left-hand side, it explains what these intercalacted disks actually are and what their functional role is.


Here's a code  (function(x){     // Some code here })(1);   The code above is IIFE so this means that it will be executed just once. Qustion: why would anybody need to pass parameter into this function (whick is 1 in example below)?  I can just create variable inside function, like below  (function(){     var x = 1;     // Some code here })();   This question is not about how closures work but about why and when to use first code pattern and when the second one.

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


I'd like to have the first line of the node centered vertically with the object (here: a line) on the left of it. How can I do that?  Of course I could split the elements into several parts and then fine-tune the little bits, but I would really like to use a solution that does not include manual shifting.  Picture    MWE  \documentclass{standalone}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern}  \usepackage{ tikz, }  \usetikzlibrary{ intersections, calc }  \begin{document} \begin{tikzpicture}[font=\small] \draw (0,0) coordinate (A) (1,0) coordinate (B) ; \draw[thick] (A) -- (B) node[right, text width=5cm] {Words Words Words Words Words Words }; \end{tikzpicture} \end{document}

Do you know an elegant way to align multiline nodes according to first line, e.g. for use in a legend?  Compare this example:  \documentclass{article} \usepackage[%   paperwidth=7.5cm,%   paperheight=5.5cm,%   margin=0.25cm,%   marginparwidth=0cm,%   centering,% ]{geometry} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{positioning} \pagestyle{empty} %%%%%%%%%%%%%%%% \begin{document} \sffamily %--------------------------------------% \newlength{\tikztwo} \settowidth{\tikztwo}{\,two (2) lines\,} \newlength{\tikzthree} \settowidth{\tikzthree}{\ three (3)\,} %--------------------------------------% \begin{tikzpicture}[very thick,every node/.style={node distance=0.2cm}]   % The grid:   \draw[step=0.1cm,very thin, lightgray] (0,0) grid (6,4.5);   \draw[step=0.5cm,thin, gray] (0,0) grid (6,4.5);   %------------------------------------------------%   % Only for comparison:     \draw[blue,text=black] (0.25,3.5) -- (1,3.5)       node[anchor=west]{one line entry};   %------------------------------------------------%     % No positioning at all, "anchor=north west" is even worse:     \draw[magenta,text=black] (3.25,3.5) -- (4,3.5)       node[anchor=west,text width=\tikztwo]{two lines entry 0};   %------------------------------------------------%     % First attempt, node (A) only for positioning:     \draw[green] (0.25,2.5) -- (1,2.5) node[anchor=west](A){two};     \draw (2.12,2.285) node[text width=\tikztwo]{two (2) lines entry 1};     % Second attempt, node (posA) only for positioning:     \draw[green] (3.25,2.5) -- (4,2.5) node[anchor=west](nodeA){} node[anchor=west](posA){two}       node[below right=-0.439cm and -0.276cm of nodeA,text=black,text width=\tikztwo]       {two (2) lines entry 2};   %------------------------------------------------%     % First attempt, node (B) only for positioning:     \draw[red] (0.25,1.5) -- (1,1.5) node[anchor=west](B){three};     \draw (1.88,1.048) node[text width=\tikzthree] {three (3) lines entry 1};     % Second attempt, node (posB) only for positioning:     \draw[red] (3.25,1.5) -- (4,1.5) node[anchor=west](nodeB){} node[anchor=west](posB){three}       node[below right=-0.411cm and -0.276cm of nodeB,text=black,text width=\tikzthree]       {three (3) lines entry 2}; \end{tikzpicture} \end{document}   You can see first a two line node without positioning. After that I show the two attempts to manage what I want. Both have drawbacks, though: With both the positioning is done manually. With he first one you have to change the coordinates of the nodes, if you change the coordinates of the path. With the second this one does not happen, but you have to change the coordinates, if you change the text, exactly if a sign with uppercase length is added or removed (remove the number with the brackets for a test). Also it is not intuitive, that there I have to change the second coordinate to have an effect in the x-axis and vice versa.  BTW: The nodes that I marked “only for positioning” can be removed or commented out after the work is done.


As the arrows point, the little blue points before Evernote and MS OneNote.

They disappear once you open the apps and then return to the home screen, but I can't tell what they indicate.  Are they apps that haven't been opened since an app update? Or that it thinks have never been opened (not accurate in my case, but that could be a function of a "restore" confusing the phone).


I can't lock my reference image because there is no visible button for disabling the image to be editable:

The selection toggle arrows in the Outliner disappeared. Is there some preference in the settings that has to be turned on?


Is it possible to give a formal proof that the definition of cosinus by a series is the same as done in geometry using right triangles? If the answer is yes, then please give the proof here.

In school, we learn that sin is "opposite over hypotenuse" and cos is "adjacent over hypotenuse".  Later on, we learn the power series definitions of sin and cos.  How can one prove that these two definitions are equivalent?


Whenever I try the command sudo apt-get install -f I get the message     Media change: please insert the disc labeled    'Ubuntu 15.10 _ Wily Werewolf_ - release amd 64 (20151021)'    in the drive '/media/cdrom/' and press enter.   Now, my question is can I use a USB instead of a DVD in this case? Because  I've got the .iso named above already on a boot USB.

I'm running a Ubuntu server (9.0.4 'Jaunty') as a VMware image.  It's a real pain on the odd occasion I need to install a new package to have to fish out the install CD-ROM, and make it available to the VMware image so I can continue the package install.  Is there any way to take the original installation media out of the list of source packages - I'm assuming all packages will be available on the internet.  Thanks.


I am an old Thunderbird user sticking with it for over 10 years, and I cannot see any new mail notifications on my old Ubuntu 16.04 (Unity) since my last Thunderbird update, which is quite troublesome for my daily work. I tried searching addons but found no Thunderbird 68 compatible addons exist. I finally updated my Ubuntu to latest LTS 20.04 to see if it is resolved in latest release, but the result is still negative. So, does anyone know a solution to this problem: how can I receive new mail notifications from Thunderbird 68 on Ubuntu 20.04?

After update, my Thunderbird stopped getting minimized with the "MinimizeToTray revived" add-on. Is there any way to minimize my Thunderbird? Any other add-on that works with the new version?


I am a British citizen with a Thai wife, who at the moment is in the UK on a settlement visa. I am looking at taking a holiday with her to Spain in early 2018, 2-3 weeks.  Would my wife need at visa to visit Spain and if so what visa does she need?  If she does need a visa do you have an idea of what the cost would be?  And are there certain criteria that need to be met? She works part time and I'm in full time employment.

I am a British national resident in the UK. My wife is Jordanian, resident in the UK with me. She has a UK biometric residency permit. We were married in the UK and the marriage is registered in the UK.   Does my wife need visas to travel with me on holiday in France and Spain? I understand from EU Directives that she does not. Would we be able to leave the UK by ferry to France if my wife does not have a French visa but can prove that she is married to me and resident in the UK? If visas are necessary but the French or Spanish consulates were NOT to grant the visas, would this be in contravention of EU Directives/Law? If the answer to question 3 is "Yes, it would be unlawful", what action can one take to get the visas?


I am looking into buying a second hand bicycle. What should one look out for (frame and component wise) when buying second hand, both for hardtail and full suspension xc/all mountain type bicycles?

I'm moving to a city where I can ride a bicycle to the grocery store, coffee shop etc. I want to purchase a decent used bicycle. I'm leaning towards a bike that's in between a "10-speed" or road-bike and a mountain bike. What should I look for when choosing a particular bike?  I've never purchased a used bicycle. Other than classifieds (e.g., Craigslist), what types of places can I look? What other issues should I consider, such as size, visual appearance, leaking tires, etc.? How can I make sure it's not stolen?


We have two samples with different sizes: 42 and 47 and we have to verify if the means of the two samples are equals.  For verify this with t-test, we should verify first if the variances are different or equal with F-test?

I have a fairly simple question regarding the interpretation of the F-test in Microsoft Excel.  Let't say these are the results of my F-test:    I am now wondering how to interpret it in order to choose the correct t-test (assuming equal or unequal variances) for my data-set.  I have found guides telling me if F critical > F, then use unequal variances. However, some of the guides tell you to use only the p value, so I am unsure which parameters to look at when interpreting the results.


I never calculated my MAGI, but I don't have any student loans, educational expenses or anything like that for that matter. I just claim standard deduction every year. My net income this year is going to be in the 175k range. I am single, never married. Am I eligible for either of the IRA accounts? Someone in teamblind once told me that if I reduce my 401k contributions I can fund an IRA account or something. But he told me that it is too late for that. Basically are there any adjustments I can do to start putting money into an IRA account. My 401k account has very few options.

For the past few years I have been contributing to my company-sponsored 401k just enough to get all of their match, and contributing up-to-the-limit in a Roth IRA.  I've now reached the income limits for the Roth IRA (which seems like a good problem to have), which means that starting now I must find some place else to put the contributions that would have been going into the Roth IRA each year.  Is there any generally accepted advice on where the next best place is to invest money for retirement when Roth IRA is no longer an option? Seems to me like my choices are:   Invest back into company-sponsored 401k Traditional IRA, which offers no deduction benefits Invest on my own in an individual brokerage account.   I understand that no answer for advice can be truly objective or "the right answer", but I'm mostly curious if there is any conventional wisdom on what to do next.


I have a PDF with a math excercise and space to write the solution. I know a bit math-related Tex like $ \sqrt2 = 2^{1/2} $.  My goal is to print the result so I have excercise and solution on one page.

How could I write a command in LaTeX, so after compiling it will be shown as a text in PDF and not executed?  For Example, I would write \it This is how you write in italic and the compiled pdf would contain the exact same text between the quotation marks without \it being executed.


About two years ago I installed Ubuntu as a requirement for an IT academy, but ever since I finished the academy course, I have been on my Windows constantly. I haven't gone onto my Ubuntu for almost a year. I used to be able to choose whether I log into Windows or Ubuntu whenever I would turn on or restart my PC, but it's been months since that option stopped appearing, and it just automatically goes straight to Windows. Is it possible I somehow lost Ubuntu because I wasn't using it for too long?

I installed Ubuntu on a Dell XPS 13 laptop that had Windows 10 preinstalled on it. I installed it from a USB flash drive on a partition. When I boot my computer I can only boot into Windows 10 and Ubuntu is nowhere to be seen.  If I boot into my USB then I can see that Ubuntu is installed, but I can't get to it from the BIOS boot menu.


Romulan ships, unlike Federation starships, run on quantum singularities rather than matter-antimatter reactions.  Although this provides a lot of energy and is extremely efficient, you can't exactly 'turn off' a quantum singularity.  This shouldn't be much of a problem when operating the vessel, but when it becomes old and is scrapped, or is in need of servicing, what do they do?  You surely can't leave a quantum singularity continue generating such massive energy!

As I understand it, the TNG-era Romulan Warbird is powered by an  - a synthetic black hole.   When such a ship is taken out of commission or the power source is replaced, what do you do with a spent artificial black hole? Is it stored, or dismantled or something else?


so I have this tablet linsay f-10hd  Specs 10.1 "  0S: 4.04 Google Android CPU: 1.5 Ghz CORTEX A-8 1 GB RAM 4 GB Hard Drive Internal Memory Web CameraBuilt in 3-D acceleration, 3-D Effect 2160 P HD Wi-Fi Supported: WIRELESS 802.11 B/G HDMI mini HDMI Support 3 D Vision 2160 P HD Video player: Mp4, Avi you can watch your favorite Movies! USB port to Portable External Hard drive up to 3 TB USB port for 3G use  and I got locked out, forgot my email and password and I have been trying to unlocked it by doing a hard reset(vol+ and power)which takes me to the android logo   so I try to use adb   adb shell cd /data/data/com.android.providers.settings/databases sqlite3 settings.db update system set value=0 where name='lock_pattern_autolock'; update system set value=0 where name='lockscreen.lockedoutpermanently'; .quit reboot  adb shell  rm /data/system/gesture.key reboot so i start with  adb devices and get    20080411        recovery  but nothing I get and error. what can i do

I have an Android device which is running Android 4.0.3 (or something like that).  My little brother decided to try and guess my lock screen pattern the other day, and ended up locking me out.   I have since been unable to log back in to the tablet using my Google Account details. I provided the correct login details, however it says they are incorrect. Could this be connected to the fact I have no internet connection?  I have no internet connection as the device is WiFi only, and the WiFi is currently turned off. I cannot turn it on, as I am locked out.  How can I log back into my tablet without wiping the user data?


As a result of the Ehrenfest Paradox, the geometry of a rotating disc is non-Euclidean.  However, while reaching this conclusion, we assumed that "the radius doesn't undergo Lorentz contraction", because "the radius is always perpendicular to the velocity vector", which is equivalent to : "in a circle, the radius is always perpendicular to the tangent at that point."   But this is an Euclidean assumption (We have to use the parallel postulate to prove it.) Therefore it doesn't work in Non-Euclidean geometries, and we shouldn't be able to use it.

Refer, "The classical theory of Fields" by Landau&Lifshitz (Chap 3). Consider a disk of radius R, then circumference is $2 \pi R$. Now, make this disk rotate at velocity of the order of c(speed of light). Since velocity is perpendicular to radius vector, Radius does not change according to the observer at rest. But the length vector at boundary of disk, parallel to velocity vector will experience length contraction . Thus, $\dfrac{\text{radius}}{\text{circumference}}>\dfrac{1}{2\pi}$ , when disc is rotating. But this violates rules of Euclidean geometry.   What is wrong here?


$s$ balls are sampled and then replaced from/into a box with $N$ balls. On average, how many samplings are to be made until all of the balls have been taken at least once?   ps: this is not a homework problem. I’m trying to reduce the number of updates on parameters during a neural network’s optimization phase. I’m able to simulate this experiment and get a good numerical approximation, but doing so for every different value of $s$ and $N$ seems a little unclever.

I am trying to solve a variation on the .  In this scenario, someone is selecting coupons at random with replacement from n different possible coupons. However, the person is not selecting coupons one at a time, but instead, in batches.  Here's an example problem formulation: There are 100 distinct coupons. A person makes selections in 10-coupon batches at random (each coupon with replacement). What is the expected number of batches necessary to have selected 80 unique coupons?  I have been able to determine the expected number of selections necessary to have selected k unique coupons when selecting one at a time (much like Henry's ), but I'm a bit stumped as to how to go about solving it with this particular wrinkle.  Any tips/guidance would be greatly appreciated.


I'm trying to set the height of .background based on the number of .slice elements on the page. I know the inner elements being floated left doesn't help but I'm not sure how to solve this.  JSFiddle   HTML
                        Menu

   CSS  @import url(http://fonts.googleapis.com/css?family=Droid+Sans);   body {     background: #2980b9;     font-family: 'Droid Sans', sans-serif; }   #btn-nav {     position:absolute;     left:10px;     top:10px;     width:30px;     height:30px;     display:block;   z-index:1; }  #btn-nav:hover {   cursor:pointer; }  #btn-nav span:nth-child(2) {     top:10px; }  #btn-nav span:nth-child(3) {     top:20px; }  #btn-nav span {     height: 4px;     width: 30px;     background: white;     content: "";     text-indent: -999em;     display:inline-block;     position:absolute;     zoom: 1;     top:0px;     left:0px;     text-align:center;     -webkit-transition: top .3s cubic-bezier(0.165,.84,.44,1);   -webkit-transform: rotate(0deg); }   #btn-nav:hover > span, #btn-nav.open > span  {     top:10px; }  #btn-nav.open > span:nth-child(1) {   -webkit-animation: rotateAni .2s .1s forwards, expandAni .3s .3s forwards; }  #btn-nav.open > span:nth-child(2) {   -webkit-animation: rotateAni .2s .1s forwards, expandAni-2 .3s .3s forwards; }  #btn-nav.open > span:nth-child(3) {   -webkit-animation: rotateAni .2s .1s forwards, expandAni-3 .3s .3s forwards; }   @-webkit-keyframes rotateAni {   0% {-webkit-transform: rotate(0deg);}   100% {-webkit-transform: rotate(90deg);} }  @-webkit-keyframes expandAni {   0% {left:0;}   100% {left:-10px;} }  @-webkit-keyframes expandAni-2 {   0% {left:0;}   100% {left:0px;} }  @-webkit-keyframes expandAni-3 {   0% {left:0;}   100% {left:10px;} }   #main-nav {   position:fixed;   left:0;   top:0;   display:block;   width:100%;   height:100%;   z-index:-1; }   .slice {   width:25%;   height:30%;   min-height:30%;   float:left;   background:black;   opacity:0;   -webkit-transition: 1s; }  .background {   position:absolute;   left:0;   top:0;   width:100%;   height:100%;   z-index:-1; }

I have a page structure similar to this:

       /*Content*/

       /*Content*/

    I would like for the parent div to expand in height when the inner div's height increases.  Edit: One problem is that if the width of the child content expands past the width of the browser window, my current CSS puts a horizontal scrollbar on the parent div.  I would like the scrollbar to be at the page level. Currently my parent div is set to overflow: auto;  Can you please help me with the CSS for this?


I am a Syrian citizen. In a month’s time I am going to China, transitioning in Istanbul from Beirut.  My return ticket is from China to Istanbul, transitioning in Stockholm Arlanda.  Will I need a transit visa for Stockholm?

Do I need an airport transit visa through Switzerland if I have no Schengen visa? Am traveling from Cairo to Moscow via Swiss Air


I really like this font, but I could not figure out what's the name of it.  It looks like garamond and Linux Libertine.

Is it possible to identify the font used in a specific document/picture?  Answers to this question should identify:   Possible methods to do this (perhaps one answer per method) and adequately describe how to use it (as opposed to merely stating it); Ways of finding the identified fonts, if possible (free or not); and Any prerequisites associated with the method used, if required (for example, "In order to use method X, your document has to be in format Y").   This question is meant as an FAQ, based on an . Its aim is to facilitate the community with the general procedures involved in font identification. Similar cases are solved on a per-usage basis on 's  tag.


Let $E\subset\mathbb{R}^d$ be a Lebesgue measurable set and let $T\colon\mathbb{R}^d\to\mathbb{R}^d$ be a linear transformation. Show that $T(E)$ is measurable and $m(T(E)) = \left|\det (T)\right|m(E)$. I can't do it at all, I don't know how to start. Please help me!

Let $m$ be the $n$-dimensional Lebesgue measure and $T$ be a linear operator on $\mathbb{R}^n$. Let $\Sigma$ be the sigma-algebra of Lebesgue measurable sets. How do prove that (1) $\forall E\in\Sigma, T(E)\in \Sigma$ and $m(T(E))=\left|\det(T)\right|m(E)|$? Since the $\sigma$-algebra of Lebesgue measurable sets is strictly larger than the borel algebra, I think it cannot be proven by showing that $T$ is continuous. How do I prove this formally? I have a script from UC Davis and every thing is proven precisely here, except for one lemma which is critical for rest proofs in the script. That is,  Define $\mathbb{B}=\big\{\prod_{i=1}^n [a_i,b_i) : a_i,b_i\in\mathbb{R}\big\}$. Let $T$ be a unitary operator on $\mathbb{R}^n$. Let $A\in \mathbb{B}$ and $\{A_k\}_{1≦k≦m}$ be a finite disjoint sequence such that $\bigcup_{1≦k≦m} A_k \subset T(A)$. Then $\sum_{1≦k≦m} m(A_k) ≦ m(A)$.  It's written in the script: "This result is geometrically obvious, but a formal proof seems to require a fuller discussion of the volume function on elementary geometrical sets, which is included in the theory of valuation in convex geometry. We omit the details" It's okay to me to go through full discussion of volume function if that is precise. If it cannot be proven another easier way(so I can prove it in a day), please recommend me a "convex geometry" text which explains this.


How can I get rid of entirely irrelevant job offers in Careers 2.0? I have windows and .net as dislikes and careers keeps suggesting me windows and .net jobs.

I think Stack Exchange should recommend us jobs based on what we are asking and what we are answering, and reputations earned on those things. Stack Exchange has enough data to determine depth and width of skill-set of its users.   There is not any other job portal which has exact technical profile of members as stack exchange has. But I think Stack Exchange is not using that data.


Let $\text{Ext}^1(A,I)=0$ for all $A\in ob(_R\text{Mod})$, then $I\in ob(_R\text{Mod})$ is injective.  I got stuck by this problem. Any ideas?

If $\operatorname{Ext}^{ 1}_{R}(A,B) = 0  $ for all $R$-Mod $A$ then $B$ is injective ?  If $\operatorname{Ext}^{ 1}_{R}(A,B) = 0  $ for all $R$-Mod $B$ then $A$ is projective ?


I see this style rather frequently and in the past decade many print advertisements have apparently decided that it makes their sentences. have. more. impact. I can tell that the style is trying to mimic a very specific spoken word pattern that accentuates every. single. word. But I don't know if this writing style has a name.  I am specifically interested in the written variant that uses periods throughout a sentence in order to emphasize each word.

It may be limited to the web ecosystem, but I've read a lot of those sentences lately, where each word is followed by a period. Examples:  Oh. My. God. Best. Job. Ever. No. F***ing. Way.  Putting each word on its own hints the readers should give their full attention to each and every one of them. Does this technique have a name? Can its origin be traced back to a book or article?


Let $(x_n)$ be a real sequence with the property that for all $n \in \mathbb{N}$,  $$|x_{n + 1} - x_n| < \frac{1}{2^n}$$ I want to show, using the definition of a Cauchy sequence, that $(x_n)$ must be Cauchy.  I have found that the property implies that for any $(m, n) \in \mathbb{R}^2$, assuming without loss of generality that $m > n$, it must be true that $$|x_n - x_m| \leq \sum\limits_{i = n}^m \frac{1}{2^i}$$  How can I proceed from there ? Is this even the right way to approach this problem?

Let $\{a_n\}$ be a sequence of real numbers such that $|a_{n+1} - a_n| \le \dfrac{1}{2^n}$.   I would like to show that this sequence is Cauchy.    Letting $\epsilon > 0$, I said choose $N$ such that $1/2^N \le \epsilon$. However, I'm not sure if this is the right $N$, since $m, n > N$ doesn't seem to necessarily imply $|a_n - a_m| \le \epsilon$.  Can someone show me the light?


I Have a Windows XP VMWare Fusion image whose admin password is not known. How can I reset to recover the password?

I have forgotten the Administrator password of my Windows XP installation and locked out. Is there a way to reset it? I do have physical access to the PC.


I got a curious problem. I've copied some data from an external storage to a CIFS mounted directory over scp.   When I enter ls -lah in the CIFS mounted directory, I see that the file has 10 GB.   When I enter du -mh to see the size of the whole directory it says 1.5 GB.  What thing can cause this problem ?  Many thanks in advance

When I run arm-none-eabi-objcopy -O binary add.elf add.bin everything seems to be ok. But, later when I run ls -lh add.bin add.elf this is the output I received:   -rw-r--r-- 1 david david 2,6G nov 23 22:49 add.bin -rwxr-xr-x 1 david david 65K nov 23 22:40 add.elf   this is a huge file. But when I run du -h add.bin the output is:   8,0K    add.bin   What's happening here?  Edit: Output of arm-none-eabi -A -t -x add.bin:    Warning: could not locate 'add.bin'.  reason: Value too large for defined data type   Output of arm-none-eabi -A -t -x add.elf:   section           size         addr .text             0x2c          0x0 .data              0xc   0xa0000000 .ARM.attributes   0x14          0x0 Total             0x4c   Output of du -bh add.bin:   2,6G    add.bin   This is how I fixed it:  Initially when I link the program with the command arm-none-eabi-ld -Tld_script.lds -o add.elf add.o the ld script file ld_script.lds contains this:   SECTIONS {         . = 0x00000000;         .text : {                  * (.text);          }          . = 0xA0000000;  /* RAM starting address */         .data :{                  * (.data);          } }   The above code fills from 0x00000000 to 0xA0000000 with 0s. This error can be solved the following way:   SECTIONS {         . = 0x00000000;         .text : {                  * (.text);          }         flash_sdata = .; /* Start data in flash right after the text */          . = 0xA0000000;  /* RAM starting address */         ram_sdata = .;          /* AT specifies the load addr. of .data section */         .data : AT (flash_sdata) {                  * (.data);          }         ram_edata = .;   /* Address of end of data in RAM */         data_size = ram_edata - ram_sdata; }   And then in the source I added a piece to copy the data from Flash to RAM. Something like this:           @ Copy data to RAM. start:         ldr   r0, =flash_sdata         ldr   r1, =ram_sdata         ldr   r2, =data_size  copy:         ldrb  r4, [r0], #1         strb  r4, [r1], #1         subs  r2, r2, #1         bne   copy    If my English is not too precise, this is the  which helps me to fix the problem. (And a good site for learning ARM embedded programming).


i've seen some posts about this topic.  I have a string that contains the letter é. I need to json_encode this string, but the function will return null. In other posts it is said that the reason behind this, is the fact that the string is not a utf-8 encoded string. So, it needs to be a utf-8 encoded string to work.  The problem is, the string comes directly from the database, and the table it originates from is encoded as utf-8. So how is the string i'm trying to parse to a json object not utf-8? Am i missing something?

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.


I killed Flowey after a pacifist run and then, realizing that I now could not get true pacifist, I reloaded my save file. But Flowey wasn't there. I did this a few more times, and eventually I just reset, but Flowey still wasn't there. Help?

I just recently completed a neutral run where I experimented seeing how the story would go on if I only killed certain characters (it was my second run, my first run was True Pacifist) and I ended up choosing to kill Flowey instead of letting him live. I planned to start a Genocide run after resetting the game, but Flowey was gone when i did. Flowey is basically the base for each story in undertale (pacifist and genocide) so I know I can't progress any further without him being here. I really just want to start anew and, without Flowey, I dont think I can access True Resets anymore. It may be possible if I did a genocide route, but then I'd have to fight Sans, and that would take FOREVER.  Basically, I am wondering if I can erase all my progress somehow. I heard that True Resets don't erase everything entirely, so is there another way? Please respond, Undertale is the only game I have that's any fun and I don't want to have to buy another game.


Assign unallocated space to swap. I have no swap on disk currently. When I change the unallocated space to a new partition the mount point is not /. so it is not detected in df -h .

I did not create a swap partition during Ubuntu installation.  Later, I freed up some space and made a swap partition.  Now after each boot up, I am manually opening gparted to right-click the swap partition to turn on the 'swapon' option.  How can I automatically enable the swap partition at boot?  Also, if I had not created the swap partition, what are my other options?


I have tried installing Ubuntu 14.04 64-bit alongside Windows 8.1 64-bit for several hours, but i can't seem to find the solution to actually installing it without removing my Windows 8.1 from the hard drive. The problem is that Ubuntu doesn't seem to recognize my Windows 8.1 on the hard drive and it show the whole hard drive as it is empty.  I have both tried installing it with CD and USB-drive. The outcome is still the same.  Some pictures:       GParted error message :     Some notations: 1) My Windows 8.1 seems to be operating on Legacy BIOS mode, because when i last checked 'Disk Management' it showed no sign of EFI System Partition.  2) With both CD boot (with WUBI the same) and USB-drive boot i get a black screen with an error saying 'could not open "\EFI\BOOT\fallback.efi": 14' before getting the menu options choosing if i want to try or install ubuntu. But i can still continue the procedure.  3) I have tried making partitions inside Windows with 'Disk Management' tool, partitions still don't show up.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


I hope to draw the following diagram    Thanks a lot for your help.

Can anyone help me in giving commands for commutative diagrams in LaTeX ? It doesn't seem to appear properly in the LaTeX guides that I have. A command for a simple triangular diagram with arrows associated to maps would be good enough, or maybe some appropriate reference.


I'm building a IoT thing based on Arduino. The thing will be powered by a 12V battery. The reason why I want to use a 12V battery is because I will also have motors on the thing.  I would like my thing to know how much battery it has left, so it can signal with a LED or similar when it starts to run out of battery and needs to be recharged.  The Arduino has a built in power regulator which accepts 5 to 12V as input, so that part is fine.  It also has analog inputs, and my idea is to use the analog input to measure the voltage of the battery. This assumes that as a battery starts to run out it will give a lower voltage than when it is fully charged. So my first question is, is this correct? If not, how can I tell when a battery starts to run out?  Anyway, the analog input can only accept input voltages between 0 and 5V. So I can't obviously connect the battery directly to this input, this would burn the Arduino. The idea I have is to use a voltage divider like this:    And choose R1 and R2 to be 1.5kΩ and 1kΩ. This should give an input to A0 of 4.8V if the battery gives 12V, and and input to A0 of 3.6V if the battery voltage goes down to 9V. It should be enough of a difference in voltage for the analog input to be able to measure it.  Well... That's what I thought anyway... Is this a good way of doing it? Is this the "standard" way to measure battery life, or are there other better methods?

I am building a battery powered device. Almost all of my logic is running at 3.3v, although I do have a 5v supply for a few hobby servos.  I want to measure the battery voltage, but I can't do so directly with the ADC on my controller because the battery voltage (depending on the cell count of the lithium polymer battery that the user connects to the device) can vary between 6 and 36 volts. (My 5V and 3.3V supplies are fine with this input variation already.) The ADC can't measure anything above its supply voltage.  Obviously I need some sort of amplifier with a fractional gain, about 1/12 or so. Should I just use a simple voltage divider? How do I decide what values to use? Maximizing sleep-mode battery life is a concern, so that votes for using large values. What constrains how large those values can be? (The input impedance of the ADC, right?)  Am I better off using some sort of opamp amplifier circuit for some reason?  What's the usual solution here?


Is using @ to repress errors considered bad practice? Take this code for an example:  ... $an_array = false;  if (something) $an_array = array("key" => "value);   if (array_key_exists("key", $an_array)) ...   In my structure it can be, that an_array is still false when I want to use array_key_exists() on it. Is it considered bad practice to do: @array_key_exists()? Shall I use if (is_array($an_array) AND array_key_exists(...)) instead?

In your opinion, is it ever valid to use the @ operator to suppress an error/warning in PHP whereas you may be handling the error?  If so, in what circumstances would you use this?  Code examples are welcome.  Edit: Note to repliers. I'm not looking to turn error reporting off, but, for example, common practice is to use  @fopen($file);   and then check afterwards... but you can get rid of the @ by doing  if (file_exists($file)) {     fopen($file); } else {     die('File not found'); }   or similar.   I guess the question is - is there anywhere that @ HAS to be used to supress an error, that CANNOT be handled in any other manner?


I am trying to track down an exception thrown in a c# web app I have created and was wondering if someome could tell me what the + numbers relate to on each line in the stack trace

When reading a stack trace like:  [FormatException: Input string was not in a correct format.]    System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599    System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) +112    System.Convert.ToInt32(String value) +68   What do the +68, +112, etc. numbers mean. I'm guessing that they're offsets to something. If so, what?


I am currently trying to debug problems relating to our firewall configuration and found myself in the situation where I would like to test a config. Ideally I would like to take the iptables config and give it an IP or an IP range and get the decision iptables is going to make. i.e.  >> my-iptables-test /etc/sysconfig/iptables 54.91.251.226 Action: DROP   or something similar. I had a look for existing solutions, but I was not able to find anything. Probably just searching for the wrong words.  Just to be clear: I do not have access to the machines I would like to test, so "telnet" from that machine is not available. The iptables config is also sufficiently long to get lost.

I am configuring a Linux router with iptables. I want to write acceptance tests for the configuration that assert things like:   traffic from some guy on the internet is not forwarded, and TCP to port 80 on the webserver in the DMZ from hosts on the corporate LAN is forwarded.    alludes to a iptables -C option which allows one to ask something like, "given a packet from X, to Y, on port Z, would it be accepted or dropped?" Although the FAQ suggests it works like this, for iptables (but maybe not ipchains as it uses in the examples) the -C option seems to not simulate a test packet running through all the rules, but rather checks for the existence for an exactly matching rule. This has little value as a test. I want to assert that the rules have the desired effect, not just that they exist.  I've considered creating yet more test VMs and a virtual network, then probing with tools like nmap for effects. However, I'm avoiding this solution due to the complexity of creating all those additional virtual machines, which is really quite a heavy way to generate some test traffic. It would also be nice to have an automated testing methodology which can also work on a real server in production.  How else might I solve this problem? Is there some mechanism I might use to generate or simulate arbitrary traffic, then know if it was (or would be) dropped or accepted by iptables?


I'm completely lost, and I haven't been able to get anything yet. I looked at some that were similar to this problem, and still got pretty lost.

How to define a bijection between $(0,1)$ and $(0,1]$?   Or any other open and closed intervals?   If the intervals are both open like $(-1,2)\text{ and }(-5,4)$ I do a cheap trick (don't know if that's how you're supposed to do it): I make a function $f : (-1, 2)\rightarrow (-5, 4)$ of the form $f(x)=mx+b$ by \begin{align*} -5 = f(-1) &= m(-1)+b \\ 4 = f(2) &= m(2) + b \end{align*} Solving for $m$ and $b$ I find $m=3\text{ and }b=-2$ so then $f(x)=3x-2.$  Then I show that $f$ is a bijection by showing that it is injective and surjective.


When attempting to connect to a Windows 7 computer on the same network with RDP I'm getting a message: "The remote computer requires Network Level Authentication" It used to work but suddenly stopped working. I'm trying to connect from another Windows 7 machine that supports NLA. When I turn this requirement off in the host machine I can connect to it.  What is the reason it stopped working? How can I fix it?

I'm trying to remote into one Windows 7 computer from another Windows 7 computer, and am getting this error:     The remote computer requires Network Level Authentication, which your computer does not support     I believe my computer does support Network Level Authentication, because:   I'm on Windows 7 I have remoted into the target computer from this computer before, with Network Level Authentication required on the target computer The "About" dialog of mstsc.exe says that it is supported:     Has anyone seen this issue before, or know how I can fix it?


I have an HTML page when loaded, send a request to an API and populates a div via handlebars.js template using the data returned from the API call. The json data is nested and I am adding a button for each nested object. However, when I try to add a click event to those buttons using their class, nothing happens. The event is not registering. I tested with adding a button on the HTML file instead of the template and it worked as expected. It seems the issue is only for the buttons inside the handlebarsjs template. HTML: <!DOCTYPE html>     <meta charset="UTF-8">   <meta http-equiv="X-UA-Compatible" content="IE=edge">   <meta name="viewport" content="width=device-width, initial-scale=1.0">      <link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">   <link href="assets/bootstrap-icons-1.5.0/bootstrap-icons.css" rel="stylesheet">            <title>Rule Engine</title>

                        JS : const API_URL  = 'http://localhost:5000/getdata'  // Templates const ruleTypeHTML = $('#ruleType-template').html(); const ruleTypeTemplate = Handlebars.compile(ruleTypeHTML);  $(document).ready(function() {    $.get(API_URL , function(data) {     let html = ruleTypeTemplate({data})     $("#ruleTests").append(html);   });    $('.addButton').click(function() {     alert('clicked')     let d = $(this).data('ruleType');           console.log(d);      });  });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I like to have a friendly debate, but a lot of time people just come up with nonsense arguments like "Yeah but I'm right because you are stupid.". They are meant to be insults, but is there a word for this type of argument?

I'm looking for either a single word or phrase that would describe either someone or the action of dismissing someone's opinions as something "socially unpopular", without giving any reasoning why, either just to spite them, because they have a poor counter-argument, have been backed into a corner, or something similar.  For example, someone who supports something politically incorrect (like, say, stronger gun control or help for male domestic abuse) might have their views dismissed as racist or sexist or liberal without actually acknowledging and debating against them, thus labeling the former as something they might not be.  I was talking to a friend earlier about politics, and she complained about Germany's immigration problem. She said one issue was that many politicians that try to support stronger immigration laws would immediately be shot down as racist or a nazi and forced to resign, instead of being presented with counter-arguments. Regardless of whether you agree with them or not, what would describe that?  EDIT: Forgot to specify -- the word or phrase I'm looking for would be used in an informal context. And to address further questions, to be used when the person's opinion has legitimate worth and isn't just "being racist" etc, i.e. the dismisser is incorrect, and is only making these accusations because they can't argue further. (Added emphasis to the last sentence of the first paragraph)


To be specific. I need to cast a string to an enum. I have tried Type.GetType() but it doesn't seem to work in Unity or I need some complex assembly code. I know of ways to cast a Type to a string but not a nice method the other way around. I am using Unity and C#. I have looked at many answers here with no avail.  Side note : This wont be needed to answer if someone knows how to use an enum as as parameter. Again I scoured google but only found code that picks apart enums to send them or the answer no. Any light on this would be great also.  eg. Load(enumType);

What's the best way to convert a string to an enumeration value in C#? I have an HTML select tag containing the values of an enumeration. When the page is posted, I want to pick up the value (which will be in the form of a string) and convert it to the corresponding enumeration value. In an ideal world, I could do something like this: StatusEnum MyStatus = StatusEnum.Parse("Active");  but that isn't a valid code.


I have set up several color profiles (e.g. some from ) whose UUIDs I can now list with $ dconf list /org/gnome/terminal/legacy/profiles:/ :7e95bbb3-a584-469d-8ae1-75a08287f55a/ :b79f95fc-b8a9-40b8-beca-5a1c1aee078a/ :833171c4-5fa6-4038-af36-e667ab2d876b/ :611439c9-b5cb-4b3f-9166-50897a705e29/ :5e0814a6-5f24-4823-9f54-d4accb9d9d92/ :403d9eb7-16d5-46be-864f-42d9651dda49/ :7bad96ca-3efc-40d0-9a8d-9e0c5d67738e/ :b0ac22f9-3c3a-42b5-ab5d-542d8465f2a0/ list :4f99e9d3-caa3-4e88-8bc5-a1b6efe0b1ff/ :efbf6322-e497-4918-88e1-b44167d306fc/ :cb2c2176-2a0e-4e8b-83a9-ff2d9c456cb9/ :5ec02300-aa59-4bda-b33c-0e992f8adefb/ :de0d4915-5db9-4d58-a24a-7b7054ccfae1/ :7c6e6069-0dfb-48a9-bc3b-b4b2f486061e/ :484cd255-71a8-4655-b0cf-98b3f2e58abb/ default :3bfaf350-2cf3-4f87-8ef9-cdadfc5f46bf/ :9e62c391-a298-419a-a0a5-32ad8adf0015/ :cc854d98-9559-4eed-9014-8e622bb8dbcb/ :e6f55cc9-a78e-4727-91f3-0d0623c258ea/ :b358abc2-c1ba-4968-9da9-95e3becf2cda/ :8e8a102d-ac00-47ff-a05c-dc2208b6643e/ :7b44f31c-f78e-4308-87e6-87a77279c2b6/ :893a4288-62ab-4431-bca6-68b5928aa7d9/ :2433ec9b-ab41-4f90-9268-36fd5b3c8c9c/ :34e6a4c0-72ee-4f11-820a-f3b8fdeb6b05/ :03707c06-6c4e-46db-acf0-d97ff2d791fe/ :a6716d99-075e-4001-8030-919ee772b3c6/ :009bf635-944a-4de6-8b6f-52ccc190b2e9/ :d11a727f-bd8e-4b35-91c3-beaadf4fd445/ :ce9edba1-cf35-4d4a-9a2f-6423af523c1a/  I would like to set each new terminal window to any (random or round-robin) profile. This, I assume, I could do with a command in ~/.bashrc. For that, I require one piece of knowledge: How can I change the currently active profile from the command line? I know I could manually set it with right click > Profiles > myprofile. I also know I can start a new terminal window with the desired profile using $ gnome-terminal --profile='7e95bbb3-a584-469d-8ae1-75a08287f55a'

I created a new profile for gnome-terminal and I can switch between "Implicit" profile and the new created profile as you can see in the below image:  Now I wonder how can I switch between profiles using a command-line/script or maybe using a shortcut for this.  Note: Solutions like: gnome-terminal --tab-with-profile=Implicit && exit   are excluded because I prefer not to close and open another terminal or get another terminal window in this process of changing the profile.


I'm modeling a shield and got stuck with a problem. I want to fill the whole back of the shield mesh, but can't figure out a solution on doing so. I can't just press F to fill since all of them are individually modeled, but all of the vertices are aligned. I've attached a screenshot bellow

Is there any way to create a face out of these selected and enclosed edges in the screenshot? I have tried using the F key but the face overlapped part of the model. Any help is appreciated. :D


I have a really long equation, which I want to split into two lines. I searched the internet and found that it works with a split environment. It actually does! But I have big (or automatically sized) brackets which start on the first and end on the second line. But the second line has no closing bracket - it gets lost somewhere. Could you help me fix it?  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsbsy} \usepackage{amssymb} \begin{document} \begin{equation} \label{eq:vanderWaals} \begin{split}      V_{vdW} = &-\frac{A}{6}\left[\frac{2r_1r_2}{h^2+2(r_1+r_2)h}      +\frac{2r_1r_2}{h^2+2(r_1+r_2)h+4r_1r_2}\\      &+ln\left(\frac{h^2+2(r_1+r_2)h}{h^2+2(r_1+r_2)h+4r_1r_2}\right)\right], \end{split} \end{equation} \end{document}

I have a very long equation that must be separated into two lines, and it has several pairs of nesting \left \right delimiters. Unfortunately, it seems that they need to be on the same line in order for them to work.  Also I'm using the align environment because I need the aligning functionality. Is there a way to have the size of delimiters automatically adjusted over multiple lines?


I have fairly okay configuration on my system. Intel i3, 2.4 ghz, 4gb DDR3 ram ,500gb HDD. However each time I install any Distro even the lightest one takes 2 hours to install. I have tried all recent version such as lubuntu19,xubuntu20, linuxlite-5 but all takes same time. Any idea why ? Edit: my system motherboard was chnaged few months ago from accer amd to Intel i3.

I am currently installing Ubuntu 12.04.3. Everything was going fine until I came across this...     Installing System   It is sssooooooo close to being finished! Like 1/6 of the way there! I just wanted to know if this is normal or if something is wrong. I'm installing it through a flash drive if that helps   Also,what will happen if I press the skip button that pops up when I click Installing System?


I have a Graph object with an attribute adj_list, which is initialized to a list of empty sets. When I call my addEdge(self, u, v) function, the expected behavior is that u gets added to the set at adj_list[v] and v gets added to the set at adj_list[u], but after printing out what gets added in the console, it seems that calling self.adj_list[u].add(v) adds v to every single set in the list.   Here's my constructor:  def __init__(self, n):         """         Constructor         ------------         Parameters:         n: int             number of nodes in the graph         ------------         Attribute:         adj_list: list of int lists         int list at index i contains the neighbors of node i (nodes represented as ints          from 0 to n-1)         """         # adjacency list of graph (entry at index i = list of neighbors of node i)          initialized with empty neighbor lists         self.adj_list = [set()] * n   And here's the add_edge function:  def addEdge(self, u, v):         """         Adds an edge between vertices u & v         -----------         Parameters:         u: int             vertex at one end of edge         v: int             vertex at another end of edge         -----------         Returns:         void         """         if u < 0 or u > len(self.adj_list) - 1 or v < 0 or v > len(self.adj_list) - 1:             raise Exception("Invalid start/end vertices for edge")          # add edge by adding to list of neighbors if it's not already in         if v not in self.adj_list[u] and u not in self.adj_list[v]:             # undirected graph -> add edge in both directions             print("before", self.adj_list)             self.adj_list[u].add(v)             print("one add", self.adj_list)             self.adj_list[v].add(u)             print("after", self.adj_list)   This is how I called the function:  if __name__ == "__main__":     g = Graph(3)     g.addEdge(0, 1)    This is what printed out:  before [set(), set(), set()] one add [{1}, {1}, {1}] after [{0, 1}, {0, 1}, {0, 1}]   Could anyone help me figure out why this is happening and how to fix it? Thank you.

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


My ubuntu terminal is opening as "gdhobe@vfroot-Thinkpad-T440:~$" I want to open it as "vfroot-Thinkpad-T440:~$"  Usually terminal opens as vfroot-Thinkpad-T440:~$  How this issue could be solved.

When I open the terminal, a name is displayed before I type any command as follows: administrator@administrator:~$  What specific steps do I take to change the display name?


I'm a Kenyan citizen transiting through the UK on the way to Jamaica. I have an Italian ID card (the kind that is issued to foreign nationals who work with specialized agencies, and exempts the holder from having a residence permit). Can I use this document to transit through the UK?  Please note: I do not have a permanent residence card.  Also note that I am seeking to transit through the UK, and not visit (though I will need to pass through Immigration control, as my flight leaves the UK on the following calendar day).

I am non EU national, living in a Schengen country for past 5 years. I hold Indian passport and EU permanent residence card valid for 5 years.   Can i go to UK for few days to visit friends without a visa?  I am aware that UK is not in Schengen, and Schengen visas and residence permits issued by Schengen country is not valid for United Kingdom? But what about the PR card issued by a Schengen country?  I am also aware that EU citizens carrying EU passport have no restrictions to visit UK.


My PC is ubuntu 14.  My PC contains 2 partitions: "/" and "/home"  I do not want to backup the data in another disk. I want to keep it when installing new version  how to install new version of ubuntu 16 and keep the "/home" untouched and keep the same user

I would like to install Ubuntu 14.04.02 LTS on my machine which currently has Mageia 4.1.   So, I have the following partitions: One for /, one for swap and one for /home.   I have some important data on /home which I wouldn't like to lose (I have backed them up, but I would prefer to keep them) after a clean install. I plan to reformat partitions one and two as above and keep the /home one.   Will I be able to tell Ubuntu to do so during an installation? By this I mean: Will it be able to recognize the /home partition and keep all its data intact while formatting the rest? And one more question: Will it be able to keep the users as they are our will I be forced to change them too? (I have the bad feeling that it won't be able to keep the users as they are...)


How to get the co-ordinates of an element after onclick event ? I need to place an overlay just below an icon that was clicked.  Is there any such built in function provided by Javascript rather than manually writing a function for that ?

How can I find the XY coordinates of an HTML element (DIV) from JavaScript if they were not explicitly set?


I know Android has some sort of connectivity measurement, because when there's connectivity the wifi or phone network icons will turn either green or blue, depending on the Android version.  In my opinion, this measurement isn't perfect, because although it will indicate accurately the absence of connectivity (e.g., lost wifi connectivity), it is not so accurate when the phone is connected to the Internet: at work, my Defy running Cyanogen 9 (Android 4.0.4) has icons that are always gray, no matter what, even when the connection is obviously up (see image below).  I wonder how, exactly, Android measures the connectivity status. Is it by performing a ping or other sort of probing of a server? By listening to a port? By testing if some protocol is enabled? Or what?  to a closely related question doesn't seem to answer it.

We have a very large wifi network at Stack Exchange, and the primary guest network is tightly locked down.  Our firewall rules permit essentially just http/https and vpn connections.    When our Android phones connect to the wifi, they show good coverage but the WiFi icon never turns from grey to blue.    What is the Android phone checking to make the grey/blue wifi icon decision in JB 4.2.2?


If we have two metal plates of surface area A placed at a small distance d from each other such that one plate has a +Q charge while the other plate is overall neutral, then will the capacitance of this system differ from the general situation where both plates are overall neutral?

I am confused as to whether/how capacitance changes when each plate has a different charge.  For example, consider a coaxial cable and put $20Q$ on the outer cable, and $-Q$ on the inner. Or how about concentric spheres, grounding either the inner or the outer?


I am using a 3600x1800 environment texture to cast reflections on a completely reflective sphere, but all the reflections show up in very low resolution. If I turn on "Rendered Viewport Shading" and pan around I can see the background as having the correct high resolution.  What do I need to do to get the reflections to show properly?    Update: after both increasing the resolution and turning on smooth shading on the sphere, as was suggested in the linked answer and comments, I was able to get the desired result.

When I hit F12 to render an image and zoom in it is quickly pixelated. How can I render a higher res display? I have looked through the settings and couldn't find a solution.


I will start and write I read  It is written in the comments that there is a way to do it if you have xbox + computer with Ubuntu. I would have done this through the xbox directly, I just do not have xbox live account, and do not wish to buy one just for netflix. So, how do I use my Ubuntu + xbox 360 to stream netflix to my TV?

Is there a way to stream Netflix content to my Ubuntu machine?