Material Colors don't show when exporting?

I have this model here and instead of textures I've just assigned materials to different parts of the mesh and gave them plain colors. But when I export it in any format, fbx or obj or gltf, when I try to upload it to sketchfab or mixamo or even try to open it in microsoft 3D viewer, it just shows a blank version of my model. When I import what I exported, it still has the materials but their colors are gone and instead of "Emission" they're now "Principled BDSF". How do I solve this problem? Thank you.   EDIT: Moderators: I have already checked the question provided and all the other questions, they say it's not possible but I've seen people do it on YouTube like Grant Abbitt on his "how to rig the easy way" video. So I've checked quite a lot of questions on this matter but it still doesn't solve my problem. (Also important to mention that I'm very new to 3D stuff)


Prove using combinatorics $\sum\limits_{k=0}^n 2^k \binom{n}{k} \binom{n-k}{\lfloor{\frac{n-k}{2}}\rfloor}=\binom{2n+1}{n}$

Prove using combinatorics   $$\sum\limits_{k=0}^n 2^k \binom{n}{k} \binom{n-k}{\lfloor{\frac{n-k}{2}}\rfloor}=\binom{2n+1}{n}$$  The right side seems easy for the right side we have floor function it seems we have to count the number of subsets that $A_i \notin A_j$ but when I try to prove I can't show the right side.Any hints?


Difference between a sub graph and induced sub graph.

I have the following paragraph in my notes:     If $G=(V,E)$ is a general graph . Let $U\subseteq V$ and let $F$ be a subset of $E$ such that the vertices of each edge in $F$ are in $U$ ,   then $H=(U,F)$ is also a general graph and $H$ is a subgraph of $G$ .        If $F$ consists of all edges of $G$ which have endpoints in $U$ ,then $H$ is called induced subgraph of $G$ and is denoted by $G_U. $     From here both the definition of a subgraph and a induced subgraph seem same to me.. I can't understand what is the difference between them... Please help with this..


Do strong and weak interactions have classical force fields as their limits?

Electromagnetic interaction has classical electromagnetism as its classical limit. Is it possible to similarly describe strong and weak interactions classically?


How do I downgrade Firefox v. 57 to v. 56?

What is the most straight forward way to downgrade Firefox 57 to Firefox 56?   This is to have more time to wait for working replacements for legacy extensions.


C# 3.0 Auto-Properties - Is it possible to add custom behaviour?

I would like to know if there is any way to add custom behaviour to the auto property get/set methods.  An obvious case I can think of is wanting every set property method to call on any PropertyChanged event handlers as part of a System.ComponentModel.INotifyPropertyChanged implementation.  This would allow a class to have numerous properties that can be observed, where each property is defined using auto property syntax.  Basically I'm wondering if there is anything similar to either a get/set template or post get/set hook with class scope.  (I know the same end functionality can easily be achieved in slightly more verbose ways - I just hate duplication of a pattern)


I get a warning from Gparted Partition Editor

I get a warning as the app starts up.  Libparted warning: The driver descriptor says the physical block size is 2048 bytes, but Linux says it is 512 bytes.  What does it mean?  Because of this warning, I didn't do anything with the app.


No grub menu after Ubuntu install, booting directly into Ubuntu

I have two separate SSD's. One of them has Windows 10 Pro installed, and the other has Ubuntu 14.04.3 LTS.   When my computer boots I get no grub menu to choose the operating system I want to boot into, it directly boots into Ubuntu automatically. I can boot into windows with on problems when setting its SSD as the first one in the boot sequence in the BIOS.  I have a third 2TB HDD that I use only for storage. Here is the information summary after running bootinfoscript  ============================= Boot Info Summary: ===============================   => Windows is installed in the MBR of /dev/sda.  => Windows is installed in the MBR of /dev/sdb.  => Grub2 (v1.99) is installed in the MBR of /dev/sdc and looks at sector 1 of      the same hard drive for core.img. core.img is at this location and looks      in partition 112 for .  sda1: __________________________________________________________________________      File system:       ntfs     Boot sector type:  Windows Vista/7: NTFS     Boot sector info:  No errors found in the Boot Parameter Block.     Operating System:       Boot files:        /bootmgr /Boot/BCD  sda2: __________________________________________________________________________      File system:       ntfs     Boot sector type:  Windows Vista/7: NTFS     Boot sector info:  No errors found in the Boot Parameter Block.     Operating System:       Boot files:        /Windows/System32/winload.exe  sda3: __________________________________________________________________________      File system:       ntfs     Boot sector type:  Windows Vista/7: NTFS     Boot sector info:  No errors found in the Boot Parameter Block.     Operating System:       Boot files:          sdb1: __________________________________________________________________________      File system:       ext4     Boot sector type:  -     Boot sector info:      Operating System:  Ubuntu 14.04.3 LTS     Boot files:        /boot/grub/grub.cfg /etc/fstab  sdb2: __________________________________________________________________________      File system:       swap     Boot sector type:  -     Boot sector info:   sdb3: __________________________________________________________________________      File system:       vfat     Boot sector type:  FAT32     Boot sector info:  No errors found in the Boot Parameter Block.     Operating System:       Boot files:        /efi/ubuntu/grubx64.efi /efi/ubuntu/MokManager.efi                         /efi/ubuntu/shimx64.efi  sdb4: __________________________________________________________________________      File system:       ext4     Boot sector type:  -     Boot sector info:      Operating System:       Boot files:          sdc1: __________________________________________________________________________      File system:       ntfs     Boot sector type:  Windows Vista/7: NTFS     Boot sector info:  No errors found in the Boot Parameter Block.     Operating System:       Boot files:         I have installed Linux before many times, however this is my first time installing it on a separate drive. Do I need to do anything extra/different seeing that is is installed on a separate drive to Windows?


I know of proofs that the rationals are not $G_{\delta}$, so I was just wondering what the following set is equal to: $$ \bigcap_m \bigcup_{r_n\in \Bbb Q}(r_n-2^{-n}/m,r_n+2^{-n}/m) $$ I know it contains $\Bbb Q$ but has measure 0 so clearly it is not the whole real line. However, it is also $G_{\delta}$ so it must contain some irrationals. Is there a way to show that this set contains an irrational number that does not use the fact that $\Bbb Q$ is not $G_{\delta}$? Perhaps even a way to find/construct such an irrational explicitly?


Pass values from python script to Blender and automate render(mp4) creation

I have a project in Blender that provokes a shape to move in certain ways based on two values (currently I manually change the values in the Python script in Blender and manually click to render to an MP4 file). The goal in mind is to have a web page that collects these two values and passes them into Blender to render a video (MP4) and write it out to a certain location. Essentially I want to automate the render upon the opening of this particular blender file.  I am relatively new to Blender, but I did notice that when I move my cursor over each setting, Python code is displayed. I have been trying to reference that code and the online documentation to auto-render, but I not having any luck.    The command shown to render is bpy.ops.render.opengl(animation=True). However, I am confused on where I would need to place this line of code to initiate the render. I have a python script that will open up blender and my blender file, but I just need a little guidance on how to pull off this next process.


If $f(1)=1$, then is it true that $f(n)=n$ for all $n \in \mathbb{N}\cup\{0\}$.

Let $f:\mathbb{N}\cup\{0\}\to\mathbb{N}\cup\{0\}$ be a function which satisfies $f(x^2+y^2)=f(x)^2+f(y)^2$ for all $x,y \in\mathbb{N}\cup\{0\}$. It' easy to see that $f(0)=0$ and $f(1)=0$ or $f(1)=1$. Suppose let's assume that $f(1)=1$. Then it's very easy to see that $f(2)=2$ and since $f(2)=2$, we can see that $f(4)=4$ and $f(5)=5$ because $5=2^2+1^2$. To see $f(3)=3$, note that $$25=f(5^2)=f(3)^2+f(4)^2 \implies f(3)=3$$ One can even see that $f(6)=6$, $f(7)=7$ and so on. Is it generally true that $f(n)=n$ for all $n$?  Edit. If anyone wondering how $f(7)=7$ here is the way. Note that $f$ satisfies $f(n^2)=f(n)^2$. One can see that $$25^{2}=24^2+7^2 \implies 25^{2}=f(24)^{2}+f(7)^{2}$$ We have to show $f(24)=24$. For this note that $$26^2 = 24^2+10^2 \implies f(26)^{2} = f(24)^{2}+f(10)^{2}$$ But $f(26)=26$ because $26=5^2+1^2$ and $f(10)=10$ since $10=3^{2}+1^{2}$. In short if $n=x^2+y^2$ for some $x,y$ and $f(1)=1$, then we can see that $f(n)=n$.


Can someone explain me OpenTTD's train signals quick and easy?

I've read the OpenTTD  page for a few times, but I don't really get it very well.   I usually use the 4th and 6th, but I'm not really sure what each of them does. And what are those things above the semaphores?  I have to note that I'm using signals a lot, but sometimes trains just get stuck and I fix it by randomly switching to other signals.  Can someone explain me train signals quick and easy?


I've been trying like crazy to get my composite node setup to render the exploding objects (pass index 1) and I really can't understand why my ID Mask won't render them.  Instead it renders the entire thing in a bluish green hue.  I just want the objects with a pass index of 1 to look like that.  It's been difficult to get any answers via pictures since my node setup is pretty big so I will provide a link to download the .blend file so you can see the nodes more clearly.


How to get only the number from a string with regular expression?

I have strings like " $250.00", " $100.00" , " $1000.88", " $75.00" and I would like to get just the numbers with the period in the middle. i.e.: "250.00"     "100.00"    "1000.88"     "75.00"  Also, the $ could be another currency. Not necessarily $.  So, I just need to get numbers and period.  I tried with some regular expressions that I know but couldn't do it.   var initialPrice = " $250.00" // I need just 250.00   I need to get rid of the spaces if possible.  I just need the numbers and the period.  Thanks!!!!


Why does `sudo -i` but not `sudo` remove newline characters?

What can explain the examples below and how do I fix this, preferably without heavy quoting acrobatics? I am using the $n to simulate multiple line command strings, just in case it distracts you from the real question.  ~$ n=$'\n'; sudo -i echo "line1${n}line2${n}" line1line2 ~$   but  ~$ n=$'\n'; sudo echo "line1${n}line2${n}" line1 line2  ~$


I think this is an obvious question, yet I'm stuck: Does $R/I \cong R$ implies $I=0$ where $R$ is a commutative ring with unity? Say there exists $I\neq 0$ s.t. $R/I\cong R$. Then since $R$ is free, we have $R\cong R\oplus I$. I feel like this is a contradiction somehow. My intuition is that $R\oplus I$ cannot be generated by 1 element, but I cannot prove this rigorously. Just a more general question: Does $R^2/I \cong R^2$ implies $I=0$?


Eeeek! Where did the reputation graph go?

The reputation graph no longer shows up on my profile when I click on the reputation tab. Is it gone now (like the mail icon)? Or has it been moved somewhere else?   I do like the more detailed summary of reputation earned. Is it possible to still keep some form of graph for easy visualization of reputation over time?


Reason behind standard names of coefficients in long Weierstrass equation

A long Weierstrass equation is an equation of the form  $$y^2+a_1xy+a_3y=x^3+a_2x^2+a_4x+a_6$$ Why are the coefficients named $a_1, a_2, a_3, a_4$ and $a_6$ in this manner, corresponding to $xy, x^2, y, x$ and $1$ respectively? Why is $a_5$ absent?


Is there a way to run a method/class only on Tomcat/Wildfly/Glassfish startup?

I need to remove temp files on Tomcat startup, the pass to a folder which contains temp files is in applicationContext.xml.  Is there a way to run a method/class only on Tomcat startup?


How to prove that $ \int_{2}^{x} \frac{dt}{(\log(t))^{k}} = O \Big{(} \frac{x}{(\log(x))^{k}} \Big{)} $ as $x \to \infty$?

For a homework exercise, we are asked to prove that $$ \int_{2}^{x} \frac{dt}{(\log(t))^{k}} = O \Big{(} \frac{x}{(\log(x))^{k}} \Big{)} \quad \text{, as } x \to \infty .  $$ The following hint is given: "Split the integral into $\int_{2}^{f(x)} + \int_{f(x)}^{x} $ for a well-chosen function $f(x)$ with $ 2\leq f(x) \leq x$ and estimate both parts from above.   I tried to use the functions $f(x) = \sqrt{x}$ and $f(x) = \log(x)$, but these functions don't seem to work.   Do you know which function $f$ I ought to choose in order to be able to prove what was asked?


How to write the output of Blender console out to a file

Is it possible to launch Blender in a mode where everything that appears in the Blender Console is sent to a file?


Can I search my Steam library titles and sort them by user review?

I, like many other Steam users, own quite a few games, and have trouble ever deciding which ones to try next. My favorite metric these days is the user review scores, but I can find no way to apply this to my library.  I did find this question:  However, the accepted answer is from back in April (before the discovery update) and the additional answer added in September doesn't address all the possibilities I am looking for insight on.  I have dug around and can find no indication of being able to search by anything other than the available columns in list view (name, metascore, last played etc.) However, I know that the core search now shows which titles are in your library. Is it possible to use the general search and filter by only the titles in your library? (The answer to this according to the Sep. answer on the aforementioned question is No)   Is there anyone who has come up with some sly way of helping filter down lists to a close approximation of your owned games. If so, then I could leverage the additional useful sortations found in general search (user review and release date for sure) also having the ability to filter on things like number of players, features and everyone else's tags.  I have tried various tricks to get the search to filter in unpublicized ways, is there a super-user out there that has cracked this nut or is it truly not possible at this point?


Folks, hope you could point me, what I missing out. I am new to programming and now solving problems for Project Euler. One of the tasks is to calculate the sum of even numbers of Fibonacci sequence. I wrote code which passed 4 of 5 test. Here it is:  //N is input (N<=4*10^16), let's find n by Binet's formula   double a = log10(sqrt (5) * N); double b = log10((1 + sqrt (5)) / 2); int n = (int) (a / b);   //Using same formula, we find every Fibonacci number till n for (int i = 1; i <= n; i++){   a = (1 + sqrt(5)) / 2;   long fiboNum = Math.round (Math.pow(a,i) / sqrt(5));   And here is my problem: when I run a test with big numbers, there is some rounding happening around F(71). By my code, F(71) is 308 061 521 170 130, according to WolphramAlpha calculations 308 061 521 170 129.  Because of this, final sum is wrong.  Also, while testing I printed out all numbers and recognize, that even numbers repeat every 3. But even if I simplify it to the small loop of sum every third number, still problem exist.  If I do not use Math.round, I am getting the wrong sequence...


declaring structs in c with a struct inside a struct

I am new to c programming I am trying to understand structs concept in c in many tutorial they explained how to declare structs with this below example   struct node     {       int data;       int value;     }   I under stand the above case ,but in the case below case they declared a struct inside it   struct node {     int data;     struct node *next;  \\ what is this?  why they declared like it ? }


I have two objects and I want to merge them, but it should not replace the object.  var x = {'one':1, 'two': {'b': 2, 'c': 3}} var y = {'two': {'b': 4}}   When I merge them The out put should be :  {'one':1, 'two': {'b': 4, 'c': 3}}


java / jUnit testing classes with one public method

I have a class that has one public method (cheer for single responsibility principle) except within that method there is a try that lists about 20 method calls. In terms of testing and / or refactoring and testing, how would I go about this? I'm new to java. Looking for a better way to structure and test this code. Any suggestions / pointers to best practices would be appreciated! Thanks!


What happens when a clone soldier (clonetroopers and stormtroopers included) dies? Does the republic/empire have a mass body disposal facility? Do they bury the dead troopers? Is the equipment issued to this dead soldier salvaged and handed to one of his brothers?


How to get vertex normals from a shape-key in Python?

I'm trying to create an exporter for a format, which includes shape key support. This format requires both vertex coordinates and normals to be specified. This should be logical, because the vertex selected on the image below won't have the same normals:     Comparing it to this one:    But I actually haven't found any way to export shape key normals. Both Bmesh Vertex and ShapeKey Vertex only store the coordinates.  Is there any way to get them?


Can we hear on Mercury, since the atmosphere is so thin?

Since the atmosphere of Mercury is very thin, and only contains negligible amount of Oxygen, Hydrogen, and Helium, can we hear the sound over there? can the sound be transmitted by some mean?


I am new to Ubuntu 14.04, having just installed it 2 weeks ago. I am running Ubuntu 14.04 as my only OS. I am a new user and I have to say I love the OS but I am having a difficult time learning it. I have been adding apps from the "store" and installing software via the terminal (with a lot of help from howtos on YouTube).  I seem to have everything working well and then a red triangle with an exclamation point showed up in the tool bar on the desktop next to the two arrows for my Internet connection.   I've been reading posts but from what I see, others are getting different info than myself. I've tried update and upgrade as well as going to synaptic to reload. I'll list those results here. If you could help me figure out what is wrong I would greatly appreciate it.


How do I customize terminal prompt color?

I can change the background and text color in Preferences, but there is not an option to change the prompt text color, it's always green! Anyway to change it to red?


Existence of inertial frames is an empirical fact.    What observations conclude that the existence of inertial frames is an empirical fact?


There are a lot of questions about this topic on this site, none of them answer my question specifically. I have read this question:   I think of the emitted photon as a point particle (but with a polarization vector) traveling in a straight line from the atom to the measuring device.    For some people, a photon is a dimensionless point traveling on a world line (Eugene Wigner's definition of a particle).    The photons do not have a well defined trajectory. The diagram shows them as if they were little balls travelling along a well defined path, however the photons are delocalised and don't have a specific position or direction of motion.    because photons take all paths, but since their underlying physics is "wavey" different paths can "interfere.    This calculation assumes that light simultaneously travels over all possible paths. To what extent this is just a calculational device and to what extent it reflects an underlying physical reality is a matter of opinion.    Indeed, nothing in nature moves around on all possible paths, in reality it's a field that permeates the vacuum which has quantized solutions.  There are mainly two thoughts:  the photon travels in a straight line, and that explains why it only interacts with a certain atom, meaning, that the photon can only be detected once, and the photon will not interact with the other atoms because they are out of its trajectory  the photon takes all paths, and that is why it truly goes through all possible avenues, explaining experiments like interference     Now these lead to two different propagation pictures. On the top, you can see the photon (EM wavepacket) spreading spherically in all directions. On the bottom, you can see a photon traveling from A to B, taking all possible paths. But which picture could be experimentally proven to be correct? The picture on the top cannot explain why the photon misses all the other atoms, that is, why it is not interacting with other atoms, because all atoms are in its way basically (it spreads spherically). The picture on the bottom cannot explain diffraction, because the photons is shown not to spread like a wave (cannot interfere), but just like a billiard ball on different paths. After the question was closed, I am editing to clarify (to reopen), that (as I understand), the question was closed due to the word "really" and what it physically means for the photon to take all paths, or whether the picture on the top (spherical spread) physically describes what is happening. I now revise these words, and the "physically" is meant here to say "experimentally provable". Question:  Do photons take all paths or not?


In a normed space $E$, is the convex envelope of any compact set also compact?

In a normed space $E$;  One can show that, if $E$ is finte-dimensional, the convex envelope of any compact set is also compact. $(*$)  Is (*) true if $E$ is no longer supposed finite-dimensional ?


Instantiating subclasses which is the right way to do

I have a BankAccount class which is superclass and SavingsAccount and CheckingAccounts as subclasses/derived classes. Very simple classes. What is the difference between these first 3 lines of code vs next 3 lines of code. First 3 lines of code"  BankAccount b = new BankAccount(100);  BankAccount s = new SavingsAccount(100);  BankAccount c = new CheckingAccount(200);  Next  3 lines of code"  BankAccount  b = new BankAccount(100);  SavingsAccounts s= new SavingsAccount(100);  CheckingAccount c = new CheckingAccount(200);


I'm trying to follow advice at  , I don't know where .bbl is. It's not in the working directory.


E: Unable to correct problems, you have held broken packages. (caffe installation)

I am trying to install caffe by partitioning my PC hard drive. I am going to use the following codes for this purpose :  cd ~  mkdir deep-learning  cd deep-learning sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler  sudo apt-get install --no-install-recommends libboost-all-dev   sudo apt-get install libatlas-base-dev  sudo apt-get install the python-dev  sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev cd ~/deep-learning  git clone http://github.com/BVLC/caffe.git cd caffe  cp Makefile.config.example Makefile.config #change to only cpu # CPU_ONLY := 1  make all make test make runtest  cd ~/deep-learning/caffe  make pycaffe  echo export PYTHONPATH=~/deep-learning/caffe/python:$PYTHONPATH >> ~/.bashrc    But after executing   sudo apt-get install libboost-all-dev   terminal is showing me error saying   E: Unable to correct problems, you have held broken packages. What can I do to solve this problem?


jquery : hover and hover (one after another)

I'm not sure if it's possible like this : I'd like to have one effect when I hover an element, then another effect with a new hover, and so on...  $('.suivre').hover(function(){         $(this).css({"transform": "translate(50%,0)" }).addClass('suivre2');     }); $('.suivre2').hover(function(){         $(this).css({"transform": "translate(0,50%)" }).addClass('suivre3');     });   I tried with and without addClass. Only the first hover is working.  I also tried with mouseover and had the same result  $('.suivre').mouseover(function(){         $(this).css({"transform": "translate(50%,0)" }).addClass('suivre2');     });     $('.suivre2').mouseover(function(){         $(this).css({"transform": "translate(0,50%)" }).addClass('suivre3');     });   Maybe, i'd better search for another way.  Thank you @j08691 for the duplicate flag. I did find a solution in it :  $('.social').on('mouseover', '.suivre', function(){         $(this).css({"transform": "translate(50%,0)" }).addClass('suivre2').removeClass('suivre');     });     $('.social').on('mouseover', '.suivre2', function(){         $(this).css({"transform": "translate(50%,50px)" }).addClass('suivre3').removeClass('suivre2');     });


My game is completely fine, but when I try to place a block down it won't work. I have tried everything but nothing works.


Show that the complement of every connected subset of $S^1$ is also connected.   Here $S^1$ means $S^1 = \{(x,y)\in\mathbb{R}^2:x^2+y^2=1\}$.  Can someone give some hints on this? It seems that arcs are the only connected subset of $S^1$. If it is true, the the complement of this subset is also a arc, which of course is also connected. Is this intuition true? Can someone give some hints on how to proceed? Thanks in advance.


In C# what is the thing written in square brackets before a class or a function?

I am familiar to C and C++. I am using C# for the first time. I trying to learn about WCF and WPF. I using a tutorial in CodeProject. There the writer has given a sample code. There he has written something before an interface and methods in square brackets. What are those? Are they comments? Here is the given sample code.  [ServiceContract(SessionMode = SessionMode.Required,      CallbackContract = typeof(IChatCallback))] interface IChat {     [OperationContract(IsOneWay = true, IsInitiating = false,          IsTerminating = false)]     void Say(string msg);      [OperationContract(IsOneWay = true, IsInitiating = false,          IsTerminating = false)]     void Whisper(string to, string msg);      [OperationContract(IsOneWay = false, IsInitiating = true,          IsTerminating = false)]     Person[] Join(Person name);      [OperationContract(IsOneWay = true, IsInitiating = false,          IsTerminating = true)]     void Leave(); }


How do native speakers of English say "To inherit a behavior"?

I was trying to translate  a text from Brazilian-Portuguese into english and I got stuck at a slang phrase we have. Here in Brazil, we use the word "puxar" ("to pull" in English) with an additional meaning close to: "to inherit or mimic a parent's trait or behavior". I'm not sure if there is an equivalent word or phrase in English.  Can anyone help me find a verb or a verb-like expression that means it?


Is auto-initialization of multi-dimensional hash array possible in Ruby, as it is in PHP?

I am so used to work in PHP with multi-dimensional arrays, where I can assign and initialize a hash by  unset($a); // just to show that there is no variable $a $a['settings']['system']['memory'] = '1 Gb'; $a['settings']['system']['disk space'] = '100 Gb';   Is there a way to do similar thing in Ruby? Or I need to initialize all dimensions first, and then to assign values. Is it possible to define an advanced Hash which will allow to do what I need? How would you do that?    Update  In addition to the solution proposed by Douglas (see below), I have found a , in which Brian Schröäer has proposed an extension for the Hash class:  class AutoHash < Hash   def initialize(*args)     super()     @update, @update_index = args[0][:update], args[0][:update_key] unless args.empty?   end    def [](k)     if self.has_key?k       super(k)     else       AutoHash.new(:update => self, :update_key => k)     end   end    def []=(k, v)     @update[@update_index] = self if @update and @update_index     super   end end   It allows to solve the problem when a missing hash item is undesirably created when the item value was only requested, e.g. a['key'].    Some additional references


Can I import my Chrome bookmarks into Firefox?

I just switched from Chrome to Firefox and I was wondering if I can get my bookmarks out of Chrome and into Firefox somehow. Is it possible to export to some standard format and import into Firefox?  Thanks


I'm riding a lot with my girlfriend. We just ride - no training or such. Yet I do like to train. The intensity I normally ride with her is not enough for any training benefit. I guess adding weight could be an option, but the problem is that we sometimes go on long flat routes so the added weight would have to be uncofortably huge to compensate (I don't think carrying a bag of bricks is a solution). Using brakes all the time is tedious and potentially unsafe but also will produce uneven power outputs resulting in uncofortable speed changes, also using up brake pads swiftly. Is there a way to make pedalling less efficient without making rides too uncomfortable/unsafe? Bicycle type is gravel 46-30 / 11-34 with a very relaxed geometry


Find an integer $r$ with $0 ≤ r ≤ 10$ such that $7^{137 }≡ r (\text{mod} 11)$.

Find an integer r with 0 ≤ r ≤ 10 such that $7^{137}$ ≡ r (mod 11). So far I have: $7^{2}$ ≡ 5(mod 11). $7^{4}$ ≡ $5^2$ ≡ 3(mod 11). $7^{5}$ ≡ $3*7$ ≡ -1(mod 11). $7^{135}$ ≡ $(-1)^{27}$ ≡ -1(mod 11). so $7^{137}=(-1)*(5)≡ -5(mod 11)$. I feel like I did something wrong but I'm not sure in which part? Can anyone point it out for me?


Could someone provide me with a good explanation of why $0^0=1$?  My train of thought:  $x>0$  $0^x=0^{x-0}=0^x/0^0$, so  $0^0=0^x/0^x=\,?$  Possible answers:   $0^0\cdot0^x=1\cdot0^0$, so $0^0=1$ $0^0=0^x/0^x=0/0$, which is undefined   PS. I've read the  on mathforum.org, but it isn't clear to me.


Given a prime ideal $\mathfrak p\subset k[x,y,z]$, is $\mathfrak{p}^2$ a primary ideal?

As mentioned, we have $R = k[x,y,z]$, $\mathfrak{p} = (xz - y^2, x^3 - yz, x^2y - z^2)$, and we want to determine if $\mathfrak{p}^2$ is $\mathfrak{p}$-primary.   So my first thought was no, mostly because I think the professor is pointing out that $\mathfrak p$ being prime (which I have already shown) does not imply powers of $\mathfrak p$ are $\mathfrak p$-primary. However, I cannot seem to develop a solid argument. I tried finding an element whose multiplication map from $R/\mathfrak p^2$ to itself is neither injective nor isomorphic, but I don't know how to pick a clever enough element. I also tried thinking about elements $ab\in \mathfrak p^2$ such that $a\notin \mathfrak p$ and $b^n\notin \mathfrak p$ for any $n$, but again I don't see how to come up with these. I think I would maybe want $b = z$, and come up with a crazy $a$ somehow. I even tried looking at some associated prime stuff, but that did not seem too fruitful.  Now I am second guessing my intuition like I am trying to fit a square peg in a round hole.  Any hints/suggestions are appreciated. Thanks.


Unable to install software or update the system after half installed java

Please help solve 'oracle-java7-installer' missing. Error below  dpkg: warning: files list file for package !['oracle-java7-installer' missing;][1]  assuming package has no files currently installed (Reading database ... 302933 files and directories currently installed.) Removing linux-image-extra-3.8.0-19-generic ... /var/lib/dpkg/info/linux-image-extra-3.8.0-19-generic.postrm: 6: /var/lib/dpkg/info/linux-image-extra-3.8.0-19-generic.postrm: Syntax error: ")"  unexpected dpkg: error processing linux-image-extra-3.8.0-19-generic (--remove):  subprocess installed post-removal script returned error exit status 2  Errors were encountered while processing:  linux-image-extra-3.8.0-19-generic  E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install.  Trying to recover:


Can't login to Admin account as have forgotten password, can't get onto Grub to reset

I am using Kubuntu operating system, and on my computer I have a Admin account and my working account.   I have forgotten the Admin password, cannot log into that account or authenticate for updates etc. Have looked online and found it is possible to set new password from recovery mode, from grub. But I cannot get onto grub - Have tried pressing Esc, Shift, F2, F12 at computer boot - it does not bring a grub menu (it does give a spool of text - booting process I think).  Have checked /etc/default/grub file and there are two options : GRUB_DEFAULT=0, GRUB_TIMEOUT=0.  I think I have to set Timeout to more than 10, but cannot do this as I do not have write privileges.   What are my options? Would I have to reinstall operating system? Can I get onto Grub from a boot CD or USB?   Thank you.  EDIT : I managed to get the Grub menu by pressing F5 after doing a hard shut-down. Password was changed through recovery mode --> root shell prompt.


NullPointerException when fetching applet parameters

I'm working on a basic applet and I'm getting the following error when I compile in Eclipse:  java.lang.NullPointerException at java.applet.Applet.getParameter(Applet.java:191) at com.putable.clickaid.ClickAid.<init>(ClickAid.java:18) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:379) at sun.applet.AppletPanel.createApplet(AppletPanel.java:795) at sun.applet.AppletPanel.runLoader(AppletPanel.java:724) at sun.applet.AppletPanel.run(AppletPanel.java:380) at java.lang.Thread.run(Thread.java:745)   When I try to run it with appletviewer, I get a blank window and a notification that the applet hasn't been initialized. (I get the empty window on Eclipse, too.) If I try to compile the files via the command line, I get repeated "cannot find symbol" errors for the other classes in the package. (I'm not getting anything like this in Eclipse.) Here's the first part of the main class, along with part of the constructor (I'll post more code if needed):  public class ClickAid extends Applet implements ActionListener {     int rows;     int columns;     ActiveSquare[][] buttons = new ActiveSquare[rows][columns];     int appxMax = 0;     int appyMax = 0;     private static final long serialVersionUID = 1L;   public ClickAid() {      if (getParameter("ROWS") == null) {rows = 4;}     rows = Integer.parseInt(getParameter("ROWS"));     columns = 6;     if (getParameter("COLUMNS") == null) {columns = 6;}     else {columns = Integer.parseInt(getParameter("COLUMNS"));} ...   I know that seems like a lot of questions in one, but I'm assuming at least some of them are related. My main concern is the issue with fetching the parameters - I set them up via run configurations, and I haven't been able to find any clues as to why it's not working.


Preventing admin users from accessing other admin users’ files

Is there a way to prevent a user who has administrator privileges from accessing the files of another user with admin privileges in Windows Server 2008?


How to find the height information from LiDAR point cloud data

I need to find the biophysical parameters(biomass) from the LiDAR point cloud data. For that I need the height of the trees from the data. Currently I am having the general height with respect to sea level(400 range).   I tried with lasheight, and also tried to create dem and dsm and from them chm but nothing is working with the data set. I have attached my las data too below.    I tried with lasheight, and took the output, its supposed to give the height information as 0 for ground and for the trees for example 10m or something. but I'm getting the same 400 range values for ground and trees.         I tried with las2dem and tried to save its output as tif image.(I am programing using R), while reading that tif image to R. Its giving error. Its not taking that tif image


Let S = {1, 2, 3, 4}. How many equivalence relation are there and describe them?

Question Let $S = \{1, 2, 3, 4\}$. How many equivalence relation are there and describe them?  I know that 1~2 and 2~3. I also know that there are 2 equivalence relation but how do I prove that and describe them properly.


sudo commands such as sudo spctl --master-disable shows errors everytime

I get the following error every time I run Sudo commands : sudo: /etc/sudoers is world writable sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin  I used to be able to run such commands but now, anything I do on terminal ends up with the same result. I'm running on MacOS Catalina. Hope someone will be able to help me out


What's the proof that the Euler totient function is multiplicative?

That is,     why is $\varphi(AB)=\varphi(A)\varphi(B)$, if $A$ and $B$ are two coprime positive integers?   It's not just a technical trouble—I can't see why this should be, intuitively: I bellyfeel that its multiplicativity should be an approximation at most. And why the minimum value for $\varphi (n)$ should be $ \frac{4n}{15} $ completely passes me by.


I know, I know, there are already similar questions in  and . But their questions and answers are not exactly what I am looking for. Besides, they are locked question so I can not add a new answer to them. SMH.  Firstly, let's clarify the question to understand its scope. When using enum in other static languages like this:  public enum Size {     SMALL=0,     MIDIUM=1,     LARGE=2,     BIG=2  // There can possibly be an alias }   we want it to help us in:   Guard against typo when referencing a value. For example, var foo = Size.SMALL is valid, var bar = Size.SMAL should generate a lousy error. Enum values can support strings, Such as HTTP404 = "Not Found", HTTP200 = "OK", .... (Therefore those implementations based on range(N) is unacceptable.) When defining a parameter as a specific Enum type, it serves as a regulation to accept only that kind of values. For example, public void Foo(Size size) {...} I also want the values to be first-class citizen in my Enum solution. Meaning, my functions def parser(value_from_the_wire): ... would like to consume some native values (such as an integer or a string etc.), rather than to consume an Enum member. This is the tricky part in standard Enum in Python 3:   assert 2 == MY_ENUM.MY_VALUE would only work when MY_ENUM was derived from IntEnum (and there is no default StrEnum although it is not difficult to subclass one by yourself) assert 2 in MY_ENUM wouldn't work, even if MY_ENUM was derived from IntEnum.


$A\subseteq B\to C\setminus B\subseteq C\setminus A\,$ -- how to prove this?

Given $A \subseteq B $. Prove for every set $C, C\setminus B \subseteq C \setminus A  $.  Logical Argument: Given: $\forall x,  x \in A  \rightarrow x \in B $  Goal: $\forall C \forall x , x\in C\setminus B \rightarrow x \in C \setminus A$  For arbitrary $C$ and $x$,   $  x\in C\setminus B \rightarrow x \in C \setminus A$  rewriting,     $  x\in C\ \wedge x \not \in B \rightarrow x \in C  \wedge \not \in A$  adding, $  x\in C\ \wedge x \not \in B $ to the given.  Proof by contradiction:  Now the given contains, $ x \in A  \rightarrow x \in B $  $  x\in C\ \wedge x \not \in B $  $x  \not \in C  \vee x \in A$  In the disjunction, if I choose $x \not \in C $, then it's a contradiction.  If I choose $x \in A $, then agin it's a contradiction because modus ponens, it adds $x \in B$ which is again a contradction.  Is there any better way to argue this?


How do I make this regex stop at the first match?

I'm converting a lot of code from legacy to maintainable and I'm creating a list of regex we can use to do all the pages quickly and the same. My regex skills are that of a child running with a knife...its not great. I've looked up a lot of different ways to only find the first set but I can't seem to get it to work. Can anyone solve this specific problem for me?  Here is the regex search and replace I'm using.  regex: (rs.*)\.Fields\[\"(\w+)\"\].Value  replace: $1.GetValue<object>("$2")  Works  code to search: ...rsProducts.Fields["Price"].Value...  result: rsProducts.GetValue<object>("Price")  This, as I want it to, finds the rs (recordset) of something and changes the way that we extract the value to use an extension method.  Does Not Work  code to search: ...rsProducts.Fields["Price"].Value + rsProducts.Fields["Price2"].Value...  result: rsProducts.Fields["Price"].Value + rsProducts.Fields["Price2"].Value  should be: rsProducts.GetValue<object>("Price") + rsProducts.GetValue<object>("Price2")  In this case the search does match 2 distinct instances but instead it matches the entire line. Here's a pic from regexr.com.  // sorry I don't have the reputation to post the image as an image but heres the


Ever since I updated from Blender 2.77 to 2.79, my Codec menu in the Render tab looks like this:  .  I'd like to render a scene in H.264 and I have no idea why it is missing in the menu. This doesn't seem to be a common problem, I haven't found any forums threads about this issue at all. I would be very grateful for your help!


How can I change the owner of VirtualBox shared folders on Ubuntu 18.04 guest VM?

I am using a VM with Ubuntu 18.04 with GUI, and I am working on a Wordpress project with Nginx. I installed VBox guest additions, but I cannot change the owner of the shared folder, which I have set to auto mount in the /opt folder; the path to the shared folder is /opt/myfolder/THISFOLDER. I want to edit contents (files) inside THISFOLDER. I have tried the command sudo chmod -aG vboxsf myusername and rebooted to no avail. When I do sudo chown -R myusername /opt/myfolder, it also doesn't do anything. How can I fix this?


Initialising boolean[][] in a constructor and returning it in a method in Java

First of all, sorry if I've formatted anything wrong here as this is my first post.  I've found a project online and have attempted to complete it. It is trying to recreate The Game of Life. In a section it is asking to intialize an instance of a variable 'private boolean[][] world', expand the constructor to include this and then to modify a method 'boolean getCell(int i, int j)' to return the corresponding value in the matrix world.   The whole project can be found here:    and the part I am referring to is Step 1 just after Your Task.  From what I've done so far I am getting a NullPointerException and not sure where to go from here.  So far I've initalized the variable and extended the constructor. I've also provided a getWorld method that just returns world.  When modifying the getCell method I've ran in to a few problems. I first attempted to include a boolean b in the arguments for the method but felt like that's not the way forward. Instead I've included the variables i and j in the 2D array of world, but this gives me the NullPointerException.      private int width, height, gen;     private boolean[][] world; //my code      public LifeModel (int w,int h, boolean[][] b) {         width = w;         height = h;         world = b;  //my code     }   //original code of project  for getCell method     public boolean getCell(int i, int j) {               if (i==0 && j==0)             System.out.println("LifeModel: Call to getCell(" + i + "," + j + ")");          return(i+j) % 2 == 0;   //What I've done so far to change the method.     public boolean getCell(int i, int j) {            world[2][4] = true;  //I think these should be somwhere in the main method instead         world[4][4] = true;          return world[i][j];     }   I should be getting a model of the the GameOfLife with all the cells dead except for 2, but instead I am getting the NullPointerException.  I'd appreciate any explanation of where I'm going wrong or hints of what to do instead.


Do I need to activate the firewall? I only use Ubuntu for a home desktop use?

I am a novice at Ubuntu (12.04).  I have it on my netbook which I use mainly for surfing the net, learning python and remote desktop into my work computer.    Do I need to enable a Firewall type software?  If so, what would you suggest, and what are sensible default suggestions?


Why did The New York Times use the present simple to describe a past event?

Statement is as follows:      Obama makes a surprise visit to Afghanistan.   Is this a simple present tense? If yes then please explain  As per the definition of simple present tense, this statement does not fall into any of the following categories:   For repeated or regular actions in the present time period. For facts. For habits. For things that are always / generally true.   This statement is one of the headlines in the New York Times.


I would like to extract these phone number patterns using regex:  xxx.xxx.xxx, xxx-xxx-xxx, (xxx)xxx-xxxx, or (xxx) xxx-xxxx  I've done this:  preg_match_all('/\b[0-9]{3}\s*-\s*[0-9]{3}\s*-\s*[0-9]{4}\b/',$output,$matches);   But it only matches xxx-xxx-xxx your help would be appreciated. thanks!


Are there any circumstances in which the terms 'moral' and 'ethical' can be used interchangeably?


Showing that $\Gamma(x)\Gamma(y) = \Gamma(x+y)\beta(x,y)$ via change of variable

From $$\Gamma(x)\Gamma(y)=\int_0^\infty e^{-t}t^{x-1} \left( \int_0^\infty e^{-t} s^{y-1} ds \right) dt,$$ use a change of variable $s=ut$ to show    $$\Gamma(x)\Gamma(y)=\Gamma(x+y)\beta(x,y).$$   Let $s=ut$ so $ds = udt + tdu$ and then  \begin{align*}  \Gamma(x)\Gamma(y) &=\int_0^\infty e^{-t}t^{x-1} \left( \int_0^\infty e^{-s} s^{y-1} ds \right) dt \\ &= \int_0^\infty e^{-t} t^{x-1} \left( \int_0^{\infty} e^{-ut} (ut)^{y-1}(udt+tdu)\right)dt \\ &= \int_0^\infty e^{-t} t^{x-1} \left( \int_0^{\infty} (e^{-ut} u^y t^{y-1})dt+ \int_0^{\infty} (e^{-ut}u^{y-1}t^y)du\right)dt \\ \end{align*} My next thought was to use integration by parts, but that didn't pan out. Any suggestions?   Note that Gamma Function for $x>0$ we define: $$\Gamma(x):=\int_0^\infty e^{-t}t^{x-1}dt.$$  And for the Beta Function for $x>0$, $y>0$, we define  $$\beta(x,y):=\int_0^1 t^{x-1}(1-t)^{y-1}dt.$$


Movie where a boy is transported into the future by an alien spaceship

I am attempting to find the title of a live action (not animated) movie I once watched on a VHS tape years ago, sometime around 2000-ish, although I believe that the movie had existed long before I watched it. I believe that it was in color (it was not black and white); however, I am not 100% sure this is true. The main plot followed a young boy in America who was transported years into the future by a friendly alien spaceship. I can remember that this boy doesn't remember that he traveled through time, and he attempts to go back home, where he finds that his house has a different family living in it (because he was in the future). The boy eventually finds his family, but they are years older and have been looking for the him since the night he was taken through time.  I can also remember that the U.S. government eventually got involved and kept the boy in confinement to try and discover why he didn't age, but that's about all I can remember. In the end, the boy does end up getting transported back to his own time; however, I do not recall how this happened.  I hope that this is not too vague - if anyone has any ideas as to what this film is called I would be very appreciative to hear them.


I'm having trouble getting basic APA bibliographies to work. The same thing works with nejm style, but changing the style to apa gives errors:  ! Undefined control sequence. <argument> \mkbibdateapalongextra  {year}{month}{day}\iffieldundef {endyear}{...  Package biblatex Warning: Macro 'name:apa:last-first' undefined. (biblatex)                Using \newbibmacro.  Package biblatex Warning: Macro 'name:apa:first-last' undefined. (biblatex)                Using \newbibmacro.   I'm using texlive 2012, as you can see I'm using biber, yes, I reran biber, and also tried delting the .bbl file and rerunning tools. My source markup is:  \documentclass[12pt]{article}  \usepackage[hidelinks]{hyperref} \usepackage[backend=biber,style=apa]{biblatex}  \addbibresource{BibResource.bib}  \begin{document}  test\parencite{ormrod2004human}  \clearpage  \printbibliography  \end{document}


Error appears as: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference. How can it be resolved?

Error appears as: Attempt to invoke interface method 'int java.util.List.size()' on a null object reference And the following line is pointed as to where the error is- return visitors.size(); Which is under the - public int getItemCount() Please help me out. This is my code from Adapter.java : package com.example.vistiorg;  import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView;  import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView;  import java.util.ArrayList; import java.util.List;  public class Adapter extends RecyclerView.Adapter<Adapter.ViewHolder> {      LayoutInflater inflater;     List<Visitor> visitors;       Adapter(Context context, List<Visitor> visitors) {         this.inflater= LayoutInflater.from(context);         this.visitors=visitors;      }      @NonNull     @Override     public Adapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {         View view= inflater.inflate(R.layout.custom_list_view, parent, false);         return new ViewHolder(view);     }      @Override     public void onBindViewHolder(@NonNull Adapter.ViewHolder holder, int position) {          String name = visitors.get(position).getName();         String date = visitors.get(position).getDate();         String time = visitors.get(position).getTime();          holder.vName.setText(name);         holder.vDate.setText(date);         holder.vTime.setText(time);      }      @Override     public int getItemCount() {          return visitors.size();              }      public class ViewHolder extends RecyclerView.ViewHolder{          TextView vName, vDate, vTime;          public ViewHolder(@NonNull View itemView) {             super(itemView);             vName = itemView.findViewById(R.id.vName);             vDate = itemView.findViewById(R.id.vDate);             vTime = itemView.findViewById(R.id.vTime);         }     }  }


Mountain and a feather dropped from same height. Which hits Earth first?

Let's assume:    the feather has a mass of $0.006$kg the mountain has a mass of $6 \times 10^{15}$kg the earth has a mass of $6 \times 10^{24}$kg no air resistance both objects released at the same time with an initial velocity of $0$ both objects released at a height of $10,000$m   Would the mountain hit first, as it itself would exert a gravitational pull on the earth?


Please take a moment to checkout at the LM386 circuit below. The circuit comes directly from the LM386 specifications document:    My question revolves around the output branch consisting of the 0.05 microfarad capacitor and the 10 ohms resistor.  At first I thought that this branch acted as some kind of RC filter but then I realized that on all RC filters (as far as I know) filtering is achieved by taping into the node between the capacitor and the resistor (which is not the case on this branch).  So what is this branch supposed to do? Is it for filtering? Also, what effect does the branch consisting of the 250 microfarad and the speaker has on the output signal? It looks like at the end both branches will combine in parallel and I am having trouble understanding how all these component work together.  Thanks.


I know this is more of a general linux question but w/e. So when I enter a program like vim in the command prompt it displays all the text in the file and I can edit it etc. But I can't figure out how to close or save the file and get back to the command prompt without killing the process. Any help is appreciated.


I just started using Ubuntu so please give me an explained answer.  I was trying to install macbuntu theme in my Ubuntu 16.10. I did the first step which was   sudo add-apt-repository ppa:noobslab/macbuntu   This step worked fine. Next when I did,  sudo apt-get update   I got the error  W: The repository 'http://ppa.launchpad.net/docky-core/stable/ubuntu yakkety Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. E: Failed to fetch http://ppa.launchpad.net/docky-core/stable/ubuntu/dists/yakkety/main/binary-amd64/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.   These are just the last few lines which gives the error.  How do I solve this?  EDIT : This is the contents of the sources.list.d directory       docky-core-ubuntu-stable-yakkety.list     docky-core-ubuntu-stable-yakkety.list.save     noobslab-ubuntu-macbuntu-yakkety.list     noobslab-ubuntu-macbuntu-yakkety.list.save     webupd8team-ubuntu-java-yakkety.list     webupd8team-ubuntu-java-yakkety.list.save     webupd8team-ubuntu-sublime-text-3-yakkety.list     webupd8team-ubuntu-sublime-text-3-yakkety.list.save   Output of lsb_release -a command       No LSB modules are available.     Distributor ID: Ubuntu     Description:    Ubuntu 16.10     Release:    16.10     Codename:   yakkety


Database synchronization between dev/staging and production

I have a problem with WordPress database synchronization between development and production and I am wondering how other people solving it. I am aware about  but it doesn't really cover the nastier and more realistic use case.  Say I have a live WordPress website. I took a dump of everything, replicating it on our dev environment. I started making changes. 1 week later I am ready to deploy my updates. In the meantime, database on production site has changed(new posts, new comments, etc.). How do I synchronize changes between production and development during the rollout and is it possible to automate(somewhat at least) this process?


APT unable to update after release upgrade

Ubuntu 16.04LTS -> 18.04LTS upgrade failure Yes it was a long in the tooth install. But it finally got a release upgrade.  Since then I haven't been able to get apt to install anything much looking for dosemu but has no targets, and update spews errors about InRelease not containing bionic. W: Skipping acquire of configured file 'bionic/cnf/Commands-amd64' as repository                                          'http://archive.ubuntu.com/ubuntu focal InRelease' doesn't have the component ' #------------------------------------------------------------------------------# #                            OFFICIAL UBUNTU REPOS                             # #------------------------------------------------------------------------------#   ###### Ubuntu Main Repos deb http://au.archive.ubuntu.com/ubuntu/ focal bionic main restricted universe multiverse deb-src http://au.archive.ubuntu.com/ubuntu/ focal bionic main restricted universe  ###### Ubuntu Partner Repo deb http://archive.canonical.com/ubuntu focal bionic partner deb-src http://archive.canonical.com/ubuntu focal bionic partner deb http://archive.ubuntu.com/ubuntu focal bionic main # auto generated by ubuntu-release-upgrader  deb http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe deb-src http://in.archive.ubuntu.com/ubuntu/ focal-updates main restricted universe  deb http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe deb-src http://in.archive.ubuntu.com/ubuntu/ focal-security main restricted universe  deb http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe deb-src http://in.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe   The google-fu gives all sorts of strange answers, but nothing I can find fixes this issue. Regards, A


New Ubuntu 17.10.1 install. Network is up and running on DHCP, trying to change it to static and point to local DNS server. ran sudo nano /etc/network/interfaces and it only shows the loopback interface.  I added the following, saved, reboot the server, it still using DHCP.    auto eno1 iface eno1 inet static address 192.168.0.100 netmask 255.255.255.0 network 192.168.0.0 gateway 192.168.0.1 dns-nameservers 192.168.0.10   What am I missing?


Trying to figure out how to best implement this. Background:  Have a current formula field that captures if a picklist value is X for any of the picklists show X in the formula.  There is a coded backend calculator that houses the proper tier order.  For example, if someone selects "Happy" on the picklists, it's the top tier value so the field would "Happy" versus "Silly".  Consider this formula field's structure as the order (tier).  I need to add in two checkboxes to this formula field.  Checkbox1 indicates that if someone selects "Happy" and the checkbox is checked, the formula field shows "Unhappy".  If checkbox2 is checked, it overrides the checkbox1 behavior to show "Happy" include (nullifying the "Unhappy" result).  I need to have an override function.  But I cannot manage to figure this one out.  Any thoughts???      IF( OR( AND( Checkbox1__c = TRUE, Checkbox2__c = TRUE, RecordType.DeveloperName = 'XXX' ), ISPICKVAL(Picklist1__c, "Happy"),  ISPICKVAL(Picklist2__c, "Happy"),  ISPICKVAL(Picklist3__c, "Happy"),  ISPICKVAL(Picklist4__c, "Happy"),  ISPICKVAL(Picklist5__c, "Happy") ) 'Happy', 'Not Happy' ),  IF( OR( AND( Checkbox1__c = TRUE, Checkbox2__c = TRUE, RecordType.DeveloperName = 'XXX' ), ISPICKVAL(Picklist1__c, "Silly"),  ISPICKVAL(Picklist2__c, "Silly"),  ISPICKVAL(Picklist3__c, "Silly"),  ISPICKVAL(Picklist4__c, "Silly"),  ISPICKVAL(Picklist5__c, "Silly") ) 'Silly', 'Not Silly' ),  IF( OR( AND( Checkbox1__c = TRUE, Checkbox2__c = TRUE, RecordType.DeveloperName = 'XXX' ), ISPICKVAL(Picklist1__c, "Sad"),  ISPICKVAL(Picklist2__c, "Sad"),  ISPICKVAL(Picklist3__c, "Sad"),  ISPICKVAL(Picklist4__c, "Sad"),  ISPICKVAL(Picklist5__c, "Sad") ) 'Sad', 'Not Sad' ),  IF( OR( AND( Checkbox1__c = TRUE, Checkbox2__c = TRUE, RecordType.DeveloperName = 'XXX' ), ISPICKVAL(Picklist1__c, "Angry"),  ISPICKVAL(Picklist2__c, "Angry"),  ISPICKVAL(Picklist3__c, "Angry"),  ISPICKVAL(Picklist4__c, "Angry"),  ISPICKVAL(Picklist5__c, "Angry") ) 'Angry', 'Not Angry' )


Accent Commands Interpreted as Internal Bibtex Commands

I am having trouble with putting accent marks in my entries in my .bib references file.  There are two problems:  1) The author of one of my works has a tilde (~) over one letter in his name; the code I have for the "name" field in this entry is:  NAME = "Praj\{~}n\={a}karamati",   to get "Prajñākaramati."  When I compile the document, a "runaway argument" error comes up; it says Paragraph ended before \name was complete.  Looking at it now, I see that in the .bbl file the tilde is used to split first and last names within bibtex, here is the code from the .bbl file:  \entry{BCAPoussin}{book}{}   \name{author}{1}{}{%     {{}%      {{n}\={a}karamati}{n.}%      {Praj\}{P.}%      {}{}%      {}{}}%   }   \name{editor}{1}{}{%     {{}%      {Vall\'{e}e~Poussin}{V.~P.}%      {Louis}{L.}%      {de~la}{d.~l.}%      {}{}}%   }   \list{publisher}{1}{%     {Asiatic Society of Bengal}%   }   \strng{namehash}{nP1}   \strng{fullhash}{nP1}   \field{sortinit}{N}   \field{subtitle}{{Praj\~{n}\={a}karamati's commentary to the   Bodhicary\={a}vat\={a}ra of \c{C}\={a}ntideva}}   \field{title}{{Bodhicary\={a}vat\={a}rapa\~{n}jik\={a}}}   \field{volumes}{4}   \list{location}{1}{%     {Calcutta}%   }   \field{year}{1914} \endentry   Somehow it interpreted the "~" character, which was intended to accent an "n", as some kind of name break command.  2) Whenever I put an umlaut, which is done using a double quotation mark, (e.g. f\"{u}r for für) in a bibliography entry, it interprets it as the end of the entry, which is indicated by a quotation mark.  Does anyone know how to get bibtex to interpret these commands as accents and not internal bibtex commands?  Thanks.


How to politely negotiate PhD funding offer?

I have been fortunate enough to get accepted with 5 years guaranteed funding to my 2nd choice graduate school. While the guarantee is great, the funding is only for 9/months out of the year. Would it be rude to ask them to guarantee summer funding to me for the first year until I can write a grant to get on a RAship? I know I should be more appreciative, since not everyone gets funding, but just an increase of about ~3k a year would make living there so much better and I do not want to accept an offer at a lesser institution just because of money.  What would be the most polite way of doing this?  I want to make it clear that I am not trying to get more money for the sake of getting more money, moreover that I am just not comfortable with so little money and such a high living cost in that area.  Thank you for your time.


I have to append the same list to another one more than one time, and then modify only one of them. I tried  list_a = [] list_b = [0,0,0] for x in range(3):     list_a.append(list_b)   but the problem is that if I try  list_a[0][0] = 1   it modifies list_a[1][0] and list_a[2][0] also. How can I avoid that?


Prove that $\forall n \in \mathbb{N}^*, P_n \lt 4^n$ where $P_n$ is the $n$th prime number. I'm searching for a proof that doesn't use induction and uses only the elementary concepts of number theory.  This theorem appears in an old french book on Arithmetics destined to high school level students (lycée). It is introduced right after the concept of decomposition into prime factors. The book includes a proof that I didn't understand. You can see below a screenshot taken from the book and a translation attempt.   Theorem For all integers $n \gt0,$ the $nth$ prime number $q$ verifies the inequality $q \lt 4^n$.   Demonstration The $[1,q]$ interval is included in the set of integers $k$ that can be written, (after grouping all the squares that can be formed with the $n$ prime numbers $p_i  \le q $ in a decomposition of $k$), as $k = m^2p_1^{e_1}p_2^{e_2}...p_n^{e_n}$ with $e_i \in {0,1}$. (Here, $p_i$ is the i-th prime number, and $p_n = q$.). There are no more than $\sqrt{q}$ integers like m, and at most $2^n$ choices for the exponents $e_i$, what shows that $q$, cardinal of this set, is strictly lower than the product $2^n\sqrt{q}$, then the result.


"Submit" is not an answer to the question "Does this answer your question?"

"Submit" is not an answer to the question "Some community members have suggested a similar question that may solve your problem. Does this answer your question?"    Screenshot from Google Chrome on Samsung Galaxy S9 with Android 9 of the page .  Replacing "submit" with a yes/no choice seems more appropriate.


How to Set Logon User Rights with the Ntrights.exe in windows 10(64 bit)

I need to know whether ntrights.exe 64 bit version exists?  If not, which is the 64 bit equivalent of ntrights.exe?  Thanks in advance.


How to align a set of multiline equations

I am trying to align a set of long equations, that are themselves align environments as most of them are spreading on multiple lines.   Currently I just have a sequence of align environments, with each equation inside in order to align the pieces of each equations. I am attaching a screenshot of the result:    What would like to get instead is something looking more like    which is the same set of equations after going through the copyediting office of a journal and looks much better.  Here is a MWE. I would like all three equations to align on the equal sign.  \documentclass{article} \usepackage{amsmath}  \begin{document} \begin{align} a & =  b + c + d \nonumber \\   & \qquad + e + f + g \label{eq:1} \end{align} \begin{align} k & = l + m + n + m + n + m + n \nonumber \\   & \qquad + o + p + q \label{eq:2} \end{align} \begin{equation} r = s + t (u + v + w) \label{eq:3} \end{equation} \end{document}


How to return 0 if a pattern is matched from a file?

I have a binary that repacks android kernel (not mkbootimg). I'm making a script to automate the process.   I don't want any output on the screen. So I have redirected the output to a file named foo.log.  The command is - kernel_make "$zImage" "$ramdisk" "$cmdline" "$image" &> data/local/working/foo.log  My current working folder is data/local/working/. What I've to do is, if the last line of the output (foo.log) is this -  "targed file $1 is patched sucesfully, enjoy new kernel"  Then return 0 and exit. Else return 1 and exit.  I'm trying to do with grep, but as I'm new to command line, do don't have any idea of doing it the right way.


I want to write open and half-open intervals using the following notation:  ]a, b[ ]a, b] ]-∞, b]   When writing them just like that in the LaTeX source, the spacing doesn't come out right. For example, for this equation:   \(X = ]-\frac{π}{2}, +\frac{π}{2}[\)   the minus sign is typeset as a binary operator. I can solve this by surrounding the whole value in braces, but then the spacing around the equal sign is still not correct. For other combinations of intervals and operators, different spacing inconsistencies arise.  What is the correct and easy  way to input intervals in order to avoid having to take care of this at all?


I was wondering if anyone had managed exporting .svg files to TikZ code. I do not mean include an .svg file into a latex document, but rather to obtain the code of an image so you can then edit it with TikZ.   I know that this has been done here:  using inkscape and the svg converter svg2tikz () but I cannot reproduce it after installing inkscape.   When I run inkscape, I get the following message on the console (I run it from the console):     (inkscape:8700): Gtk-CRITICAL **: gtk_misc_set_alignment: assertion `GTK_IS_MISC (misc)' failed   I can still import an image and export to TikZ path but I get the following error message in a pop-up window:     Inkscape encountered an internal error and will close now.   Automatic backups of unsaved documents were done to the following locations:   /home/squeeze/New document 1.2012_06_19_18_10_24.0.svg   and the exported .tex file shows the following code which does not reproduce the image and compiles to a blank page:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz}  \begin{document}  \begin{tikzpicture}[y=0.80pt,x=0.80pt,yscale=-1, inner sep=0pt, outer sep=0pt]   \begin{scope}[cm={{2.4087301,0.0,0.0,3.1036527,(-508.27381,-1163.9469)}}]     \begin{scope}[cm={{1.25,0.0,0.0,-1.25,(213.2835,636.20725)}}]       \begin{scope}[scale=0.100]         \begin{scope}[cm={{2304.0,0.0,0.0,1195.2,(141.732,141.732)}}]         \end{scope}       \end{scope}     \end{scope}   \end{scope}  \end{tikzpicture} \end{document}   Has anyone done it?  I run Debian Squeeze; Inkscape is 0.47 and the forum on the inkscape-svg converter is not really active so I thought someone may have done it here.  I do not wish to specifically use .svg; I use GIMP usually, so if there is such a way to do it in GIMP, I am happy to do it (even better).  Here is an example of an .svg image that fails the above procedure:


In Stack Overflow, how do I exit the site? If I click "delete" from the user home page my account is deleted. I can't find "sign out". Please tell me.  (I am not leave,just clear cookie,but I can't find "sign out",so I think "Delete" is "sign out",so I have a try but my account is deleted.)


Generate multiple renders of same scene, each at a different resolution?

I would like to generate several renders of a static scene, each render being a different size (eg 1024x1024, 512x512 etc). Other than the size, each render will be identical.  Is there a way of doing this using, say, the command line, or a script? I am currently doing this by manually changing the dimensions within the render panel every time, but I was wondering if there's a quicker way.  I am using Blender Internal in this specific instance.  Many thanks


Text on a Path - Have Font Going from Big to Small

I'm trying to create some text on a path that gets smaller as it goes down the path. Similar to the text that says "Steam & Printer Job Label" in the picture below.  I've tried some of the effects and object -> envelope effect but I can't get it to work?  Is there a way to do this rather the creating an outline of the text and manually resizing each letter?  Thanks for the help.


vbox windows 8 guest on a Mac book retina resolution

I'm using a retina Mac book pro, and using virtual box.  How can I use the high resolution(2560*1600) in a windows 8.1 guest OS ?  Thanks.  EDIT:  Be more clearly, I have already installed the guest addons, and set the video memory 128MB, but in the guest os(windows 8.1) the highest resolution is still 1440*900, in mac os I have 2560*1600 resolution on the retina screen.


How are symmetries defined mathematically?

I have started working on differential geometry very recently. I am little bit familiar with mathematical concepts such as manifolds, differential forms and associated concepts. As I was speeding through I caught interest in Lie groups and whose invaluable connection with the symmetries. I would be happy if anybody answers to these few questions.   I want to know what is a symmetry from the mathematical point of view?  How are $su2$, $su3$, and other symmetries first formulated?  What was the motivation?  How do we identify internal symmetries and corresponding conserved physical quantities?


I'm trying to plot arctan(x) with pgfplots but I don't get a good output. Here is my code:   \begin{cfigur}\begin{axis}[      width=160pt,compat=1.5.1,grid style={ultra thin},every axis plot post/.append style={thick},      x tick label style={font=\tiny},y tick label style={font=\tiny},      scale only axis,grid=major,axis lines=middle,      xlabel={$x$},      ylabel={$y$},      xmin=-200,      xmax=200,      domain=-200:210,      ymin=-5.5,      ymax=5.5,      xtick={-150,-100,...,150},      ytick={-5, -4,...,5},      restrict y to domain=-20:20,      legend style={at={(0.5,-0.05)},anchor=north,nodes={right}},  ]  \addplot[mark=none,color=blue, samples=500]{atan(x)};  \addlegendentry{$y = \tan^{-1}x $};  \end{axis}\end{cfigur}


Using tikz overlay / remember picture option with forest trees

I want to connect two forest trees with an arrow, in a similar way it is discussed  for plain tikz trees. However, it seems to be impossible to add options to the forest environment in a similar fashion. Simply referencing the nodes will only place the arrow to the right of the right tree. (To avoid confusions: I don't speak about the $\Rightarrow_G$ in the first forest environment, but the bended one, that should connect two specific nodes.)  \documentclass{beamer} \usepackage{tikz} \newcommand{\false}{\mathbf{f}} \usetikzlibrary{calc, positioning} \usetikzlibrary{arrows} \usepackage{forest} \setbeamercovered{transparent} \begin{document}  \begin{frame}{}    % Tree 1 \begin{forest}     [$\sigma$, calign=last         [$a$]         [{\langle \sigma, \{1,2\},\false \rangle}%                  , math content, calign=first, baseline, draw=blue, ellipse,  name = replaceNode             [$\sigma_*$]             [$a$]         ]     ]   \node at (current bounding box.east)         [anchor=west]         {$\Rightarrow_G$}; \end{forest} % % Tree 2 \begin{forest}     [$\sigma$, calign=last         [$a$]         [$\sigma$, calign=last             [$b$]             [{\langle \sigma, \{1,2\},\false \rangle}%                  , math content, calign=first, baseline, name = t1                 [$\sigma$, calign=first                     [$\sigma_*$]                     [$a$]                 ]                 [$b$]             ]         ]     ] \end{forest} % % This arrow should connect two nodes of both trees. \begin{tikzpicture} \draw[->, black, dashed, bend angle=45, bend left] (replaceNode) to (t1); \end{tikzpicture}   \end{frame}  \end{document}   There seems to be the workaround of putting both trees in the same forest environment with a phantom parent node. However, I would appreciate an overlay solution for better modularity of my graphics, especially if more than two trees are involved.


The headphones are detected, because when they are plugged in, they appear in the sound settings.  The problem is that they just don't output any sound.  Laptop speakers output sound just fine.  I'm running Ubuntu 16.04 x64  This is the output from running :    What steps can I take to try and debug this issue myself?  Edit 1  Thanks to @Rexford and this , I've worked out how to get detailed debugging output from pulseaudio, by temporarily modifying /etc/pulse/client.conf using the --log-level flag.  I'll report back after I play around with this new information and try to find the problem.  Edit 2  Woke up this morning planning on getting to the bottom of this issue, when I discovered that the sound from the headphones started working.  Last night I had tried many solutions (from various forums and webpages), but was not restarting my computer (was just doing pulseaudio -k && sudo alsa force-reload).  So I guess that the reboot was necessary to make one of the solutions kick in and actually work.  One of the biggest things I tried was uninstalling pulseaudio, installing gnome-audio as a replacement and going back to pulseaudio. So I recommend others try that if they are struggling. Just note that if you do that, you should follow the instructions  to get your volume/sound icon back (if it's missing after reboot - which it was for me).  I can't get to the root of this problem now, because it no longer exists for me.  Edit 3  The problem came back...  Debug logs from pulseaudio don't reveal anything useful (e.g. error messages).  According to , alsa is the next stop to check for the cause.


What is the difference between identifying using @ and without it

I am new to C# programming and was reading in C Sharp 2010 for programmers and this interrupted me.     Identifiers   may also be preceded by the @ character. This indicates that a word should be interpreted   as an identifier, even if it’s a keyword (e.g., @int). This allows C# code to use code written   in other .NET languages where an identifier might have the same name as a C# keyword.   1-Can anyone explain what will the interrupter do if a @character was used with an example please, and how it is different than identifying without the @character.   2- how can it be used in other .NET languages


Can someone maybe help me out and let me know how to set:  ≠   in LaTeX? I am using Overleaf. I have tried \≠  but it did not work out.  Thanks in advance. Greetings.


It seems that I do not understand thoroughly the axioms of ZFC.   I am thinking of "is really the axiom of power set independent from the other axioms, and if it is, how to prove that?".  In other words, how to prove that ZFC without the axiom of power set is not equal to ZFC?


There are solutions to Maxwell's Equations called Standing waves, or so I was told .   If we consider the particle nature of EM waves, what does standing waves mean in terms of photons?  And when electrons excite and then release photons, can these be standing waves? Does that make any sense?  Edit: Most surely, this question is not a duplicate of . The other question is about the general relationship between EM waves and photons. I want to know about this exact same  relationship, but for the case of Standing Waves .


How to get this blur texture effect in photoshop?

I'm trying to get an image to look similar to this photo:    I'd guess they took a picture of the monitor with a regular camera. But I'm more interested to know what effects / filters they used to get the blur and texture. Any suggestions would be appreciated


So I have got Ubuntu 12.04 on a system 76 lemur ultra laptop.  I installed netflix via terminal with the following chain of commands:  sudo apt-get update sudo apt-add-repository ppa:ehoover/compholio sudo apt-get update sudo apt-get install netflix-desktop   when it was finished installing, I clicked the icon and something came up asking if you want to install some dependent software, but wouldn't let me interact with the window - so I hit tab and worked my way through that. But my computer shutdown before I could fully install GECKO.  Now I have the netflix icon, but when i click it or right click it nothing happens. I had tried uninstalling it with the following commands,  sudo apt-add --purge remove netflix-desktop   and then reinstalling it but there's no change.  does anyone know what I can do to get netflix to run from here? or what I can do to start troubleshooting? I searched around on AskUbuntu but couldn't find any answers to this specific problem.


Get a list of all custom post type names/slugs

I'm trying to create a dropdown-list of all my custom post types.   It would look like this:  <select>   <option value="post">Post</option>   <option value="book">Book</option>   <option value="some-other-post-type">Something</option>   <option value="team">Team Members</option> </select>   I have come across the get_post_types() function which is supposed to get a list of all registered post type objects. But it doesn't show my custom post types...  Is it possible to get an array with the slug and the title of all the post types registered in a theme? Considering the number of post types is unknown and dynamic. Every time a new custom post type is added or removed, it should reflect in the dropdown list.  My test:  $args = array(    'public'   => true,    '_builtin' => false // Use false to return only custom post types );  $post_types = get_post_types( $args );  print_r($post_types);   It returns an empty array... no custom post types that I registered.


How to redirect command output and error to two different files?

I want to redirect output of a tar command to one file say, out.log and errors during execution should be redirected to another file for example, error.log.   How can I achieve this?


Downgrading 18.10 to 18.04 - How can I only purge the OS and not delete my personal files?

Seeing as how I'm starting to hate 18.10 more and more, I've decided on a downgrade.  Also seeing as how a downgrade is not really recommended and I'll have to probably go with a total reinstall, what's the optimal way for me to keep my data and only have the live-USB touch the OS and its related files only?  Think "soft" reinstall.


In Java, if I call List.toString(), it will automatically call the toString() method on each object inside the List. For example, if my list contains objects o1, o2, and o3, list.toString() would look something like this:  "[" + o1.toString() + ", " + o2.toString() + ", " + o3.toString() + "]"   Is there a way to get similar behavior in Python? I implemented a __str__() method in my class, but when I print out a list of objects, using:  print 'my list is %s'%(list)   it looks something like this:  [<__main__.cell instance at 0x2a955e95f0>, <__main__.cell instance at 0x2a955e9638>, <__main__.cell instance at 0x2a955e9680>]   how can I get python to call my __str__ automatically for each element inside the list (or dict for that matter)?


I couldn't find a straight and clear answer to this question on the internet: Why is the weak interaction (charged), the only interaction which can change the flavours of the quarks?


Given $n\in\mathbb N$, there exists a non-negative integer $a$ and an odd integer $b$ such that $n=2^a\cdot b$  Base Case: $n=1 =2^0\cdot1$  I.H: Assume its true for $n=1,2,\ldots,k$  How would i prove this?


Introduction  This probably sounds a bit weird to ask, but the question is, is there such a base that is base 1.  One thing we know is that this base will contain one symbol only, but will this symbol represent something i.e. a value, or nothing?  If we try to see a connection between other bases, for instance base 10, 4, 3, 2, we see following:   base 10 {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} base 4  {0, 1, 2, 3} base 3  {0, 1, 2} base 2  {0, 1}   So base 1 should have the symbol $0$, in order to fit this pattern.  Number representation  Let's say that we introduce a new symbol, which will be used in base 1, namely $\alpha$. We will probably think that if we list the first numbers in base 1, we will get something like:  $$\alpha,\alpha\alpha, \alpha\alpha\alpha, \alpha\alpha\alpha\alpha$$  Which is quite logical. But, if we observe other systems, such as base 10, we will see that 10 is actually built up of two symbols. Similarly, for radix 2, $10_2$ is equal to 2, which appears to be the base.  So, would it not now be logical to claim that the definition of 1 (base 10) in base 1 is $\alpha\alpha$, or with other words, two symbols?  Number conversion  If we would, for example, convert $\alpha\alpha\alpha\alpha$ to radix 10, we would get following: $$(\alpha\alpha\alpha\alpha)_1=\alpha*1^3+\alpha*1^2+\alpha*1^1 + \alpha*1^0 = (4\alpha)_{10}$$  Sure enough, $$(\alpha\alpha)_1 = 1_{10} = (2\alpha)_{10}$$ So I suppose this statement is therefore true as well:  $$(\alpha\alpha\alpha\alpha)_1=(2\alpha)_{10} + (2\alpha)_{10} = 1 + 1 = 2$$  But the interesting part here is that our symbol $\alpha$ is nothing, i.e. does not have any value at all, which implies that all numbers do not exist as values.  Conclusion  I do not now how correct this is, so it would be great if someone could comment upon what is written here. The question is finally, is this plausible?  Thank you,  Artem


VARCHAR(MAX) taking more space than NVARCHAR(MAX)

I have a table in SQL Server 2012 Enterprise Edition that has ~100GB of data. Most of this data is attributed to a single NVARCHAR(MAX) column which has an average length of 4500 characters. It stores data compressed by an application that has no need for Unicode characters.    Since  takes two bytes per character and  takes one, I surmised I could cut down on some storage by switching the table over. However, once I altered the column to be VARCHAR(MAX), the table ballooned to 155GB.   I am aware SQL may use  but the documentation states this does not apply to NVARCHAR(MAX) so it couldn't have been in use.   So why has my table grown so much in size?  Table:  CREATE TABLE [dbo].[Table](     [RecordLocator] [char](6) NOT NULL,     [CreateDate] [date] NOT NULL,     [SystemId] [varchar](40) NOT NULL,     [EventXML] [nvarchar](max) NULL, --Not XML, compressed XML as characters     [UpdateUTCTimeStamp] [datetime2](7) NOT NULL,     [DeleteDate] [date] NULL,  CONSTRAINT [PK_Table] PRIMARY KEY CLUSTERED  (     [RecordLocator] ASC,     [CreateDate] ASC,     [SystemId] ASC,     [DeleteDate] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 75) ON [PRIMARY] ) ON [PRIMARY] GO   Additional notes:   Table design is not ideal, I am also working on getting that changed with the third party developers.  Table is partitioned on DeleteDate - also not ideal but required as of now to efficiently swap out old data Table does not have row or page compression enabled Table row growth before and after table alter is negligible D'oh, I did run sp_spaceused and failed to add the output:   name   rows        reserved        data            index_size  unused  Table  11407899    160531008 KB    159465328 KB    525200 KB   540480 KB


Finding univalent function with $f(z_1)=z_2$

Let $\Omega$ be a simply-connected domain. Let $z_1,z_2\in\Omega$. Prove that exists an univalent function such that $f(\Omega)=\Omega$ and $f(z_1)=z_2$.   Since $\Omega$ is simply connected, one can apply Riemann mapping theorem to get $g:\Omega\to\mathbb{D}$ ($\mathbb{D}$ is the unit disk) with $g(z_1)=0,g(\Omega)=\mathbb{D}$. I thought taking $$f(z)=g^{-1}(g(z)+g(z_2))$$ thus $f(z_1)=g^{-1}(g(z_1)+g(z_2))=z_2$. On the other hand, $f$ does not map $\Omega$ to itself.  How can  I build a map which will satisfy the requirements above?


Directory with spaces in it as a variable

I made this script that watches one folder and copies any file added to that folder to another destination. It works as expected when the directories have no spaces. With spaces "~/Untitled Folder" becomes ~/Untitled and ~/Folder resulting in a "no such directory error". please help! How do I get the variable to work properly later in the script? #!/bin/bash clear echo "Drag folder you want me to watch into this window, then press enter."   read WatchFolder  echo $WatchFolder echo echo "Drag backup destination into this window, then press enter" read BUfolder echo touch "$BUfolder"/CopiedList.txt  cd $WatchFolder lastCount=0          LoopCount=0 while true     do         LoopCount=$(expr $LoopCount + 1) ; echo $LoopCount #increment Loop count by one. Loopcount is echoed as progress feedback         Copied=($(cat "$BUfolder"/CopiedList.txt))         if [[ $(ls $WatchFolder | wc -l | sed 's/ //g') -gt 0 ]] && [[ $lastCount != $(ls $WatchFolder | wc -l | sed 's/ //g') ]] ## if watchfolder has more than zero files and the current count "$LoopCount" is greater than               then        ## previous count "$lastCount"                 for i in $WatchFolder/* ## This loop copies every file in the watch folder not listed in CopiedList.txt                      do                       if [[ ! ${Copied[@]} =~ $i ]]                       then                       cp  -n -R "$i" "$BUfolder"/ ; echo "Copying $i" ; echo $i >> "$BUfolder"/CopiedList.txt ## -n Stops cp from overwriting file. -R copies entire sub-tree of $BUfolder                       sleep .1  ## just a little pause to limit how much memory the script eats up                     fi                 done               fi               lastCount=$(ls $WatchFolder | wc -l | sed 's/ //g')  ##pass new file count to variable $lastCount               sleep 1 ## pause 1 second to save memory/cpu  done


How to answer "Is applicant eligible for Non-ECR category?"

I am applying for a passport for my mother. She has completed the 10th grade and she is about 58 years old.  The following question has been presented:     Is applicant eligible for Non-ECR category?   Is the correct answer for her 'Yes' or 'No'?  If  'Yes', what documents are required to prove this?


What is the impact of Thread.Sleep(1) in C#?

In a windows form application what is the impact of calling Thread.Sleep(1) as illustrated in the following code:  public Constructor() {     Thread thread = new Thread(Task);     thread.IsBackground = true;     thread.Start(); }  private void Task() {     while (true)     {         // do something         Thread.Sleep(1);     } }   Will this thread hog all of the available CPU?    What profiling techniques can I use to measure this Thread's CPU usage ( other than task manager )?


Method to create a live USB disk (with persistence) which actually works?

I've tried so many combinations - all I want is a fast Ubuntu Live USB disk with persistence that works. What I've tried so far:   Using unetbootin on my Mac, choosing some "Space used to preserve files across reboots (Ubuntu only)".   Result: Doesn't boot at all.  Using unetbootin on my Mac, choosing no such space.  Result: Boots fine and very fast (doesn't even show the annoying dialog "Try ubuntu/install ubuntu" at startup!), but has no persistence. (So I have to choose my keyboard layout, install programs I need, etc. every time)  Using Startup Disk Creator from my Ubuntu 11.04 installation.  Result: I cannot choose "reserved extra space" at all. It's greyed out. I know I know, there was bug , and many people say that the workaround from  works for them. But it doesn't work with Ubuntu 11.04 anymore (see also ).  Using Startup Disk Creator from my Kubuntu 10.10 installation, gnome version (usb-creator-gtk).   Result: I can select the "reserved extra space" option, but installation doesn't work (fails when installing the bootloader).  Using Startup Disk Creator from my Kubuntu 10.10 installation, kde version (usb-creator-kde).   Result: Actually works: Reserved space can be selected, installation works. But after booting, I get the screen "Try ubuntu/install ubuntu". Clicking on "Try ubuntu" takes me to the desktop - but only after waiting 5 minutes (every time!). It also doesn't seem to keep my keyboard settings.    I know, that instead of creating a startup disk, I could install a full ubuntu system on the USB stick. But as far as I know, this isn't very good, because /tmp and similar directories will then also be on the USB disk, which is a) slow, and b) not very good for the USB disk due to frequent overwriting.  I'm frustrated. So has anybody managed to create a working Ubuntu 11.04 Live USB disk with persistence?


How can I see the photo settings like f-stop, ISO etc. of a image?

I am new to photography and enjoying shooting with my Nikon D3200 camera. Once I take a photo, is there any tool by Nikon or a third party which can give me info like F-stop, ISO, Shutter speed, etc? If there is no tool, does Nikon camera support this after the photo is shot?


"POSSIBLE BREAK-IN ATTEMPT!" in /var/log/secure — what does this mean?

I've got a CentOS 5.x box running on a VPS platform. My VPS host misinterpreted a support inquiry I had about connectivity and effectively flushed some iptables rules.  This resulted in ssh listening on the standard port and acknowledging port connectivity tests. Annoying.   The good news is that I require SSH Authorized keys.  As far as I can tell, I don't think there was any successful breach.  I'm still very concerned about what I'm seeing in /var/log/secure though:     Apr 10 06:39:27 echo sshd[22297]: reverse mapping checking getaddrinfo for 222-237-78-139.tongkni.co.kr failed - POSSIBLE BREAK-IN ATTEMPT! Apr 10 13:39:27 echo sshd[22298]: Received disconnect from 222.237.78.139: 11: Bye Bye Apr 10 06:39:31 echo sshd[22324]: Invalid user edu1 from 222.237.78.139 Apr 10 06:39:31 echo sshd[22324]: reverse mapping checking getaddrinfo for 222-237-78-139.tongkni.co.kr failed - POSSIBLE BREAK-IN ATTEMPT! Apr 10 13:39:31 echo sshd[22330]: input_userauth_request: invalid user edu1 Apr 10 13:39:31 echo sshd[22330]: Received disconnect from 222.237.78.139: 11: Bye Bye Apr 10 06:39:35 echo sshd[22336]: Invalid user test1 from 222.237.78.139 Apr 10 06:39:35 echo sshd[22336]: reverse mapping checking getaddrinfo for 222-237-78-139.tongkni.co.kr failed - POSSIBLE BREAK-IN ATTEMPT! Apr 10 13:39:35 echo sshd[22338]: input_userauth_request: invalid user test1 Apr 10 13:39:35 echo sshd[22338]: Received disconnect from 222.237.78.139: 11: Bye Bye Apr 10 06:39:39 echo sshd[22377]: Invalid user test from 222.237.78.139 Apr 10 06:39:39 echo sshd[22377]: reverse mapping checking getaddrinfo for 222-237-78-139.tongkni.co.kr failed - POSSIBLE BREAK-IN ATTEMPT! Apr 10 13:39:39 echo sshd[22378]: input_userauth_request: invalid user test Apr 10 13:39:39 echo sshd[22378]: Received disconnect from 222.237.78.139: 11: Bye Bye     What exactly does "POSSIBLE BREAK-IN ATTEMPT" mean?  That it was successful? Or that it didn't like the IP the request was coming from?


The Remote Desktop client shows me this option to connect:    What does this option do?


I am 19 years old, around 1.62 meters tall and a weight of 55 kilograms, and I want to increase my height.  Is it possible to do it at my age? If so, can I have a specific diet or use growth hormones?


How can I propose new rules for posting on Stack Overflow?

I have collected more things that can be improved or that cause confusion + frustration for a lot of users and would like to be able to propose some new rules with the ability to confront directly with complete arguments the "opinion" leaders and the rule makers.   Also I am asking this because until now there are, at least in my opinion, some requests that were rejected or left without big attention because of the author's lack of maybe more strong and convincing arguments.   Specifically I ask if there is kind of form/template to complete which would be analysed more focused, rather then leaving it as a question for community's "pop corn" sake.


Single question thread with multiple questions, some duplicates

I've recently run into many questions where to author asks several related questions in one post, many of them asked before.   I'm wondering what out policy is on such questions:   Should I vote-close them as being not constructive? Should I vote-close them as duplicates? Should I leave them be? Or even suggest an answer?    - Each of the questions: Waiting for an AJAX request with selenium, and headless browsing in selenium have been asked here before, but he asked both in one.  I've done my best to search for similar questions here in meta but I was unable to find any, reading appreciated.


MSSQL 2008 for xml path concatenation query

I know this is somehow redundant question but please understand.  first - I've research all the resources I could here in stackoverflow and outside of it and I found some solution close to my desired ouput.  second - I made my own query from what I've researched, so far It is running.  third - my desired output from my query is not what I've expected.  My current table(in view) design is this which is unconcatenated.  +----------------------+ | groupID | vesselName | +----------------------+ |    2    | ACRO       | +----------------------+ |    1    | JANICE 1   | +----------------------+ |    1    | P/S-B      | +----------------------+   this is my query  SELECT     HRDB.dbo.vRangerGroup.groupID,     STUFF(         (             SELECT HRDB.dbo.vRangerGroup.vesselName + ',' AS vesselName             FROM HRDB.dbo.vRangerGroup AS RGS             WHERE HRDB.dbo.vRangerGroup.groupID = RGS.groupID             FOR XML PATH('')         ),1,0,''     ) AS RESULT FROM HRDB.dbo.vRangerGroup   and here the output of my query  +------------------------------------------------------------------------------+ | groupID | vesselName                                                         | +------------------------------------------------------------------------------+ |    1    | <vesselName>JANICE1,</vesselName><vesselName>JANICE1,</vesselName> | +------------------------------------------------------------------------------+ |    2    | <vesselName>ACRO,</vesselName>                                     | +------------------------------------------------------------------------------+ |    1    | <vesselName>P/S-B,</vesselName><vesselName>P/S-B,</vesselName>     | +------------------------------------------------------------------------------+   Desired Output  +---------------------------+ | groupID | vesselName      | +---------------------------+ |    2    | ACRO            | +---------------------------+ |    1    | JANICE1, P/S-B  | +---------------------------+   I don't know what's wrong with my query.


Definition of orientable surface in space

Let $S$ be a surface in $\mathbb R^3.$ I'm trying to understand the definition of orientable surface (as it appears in the Stkoks theorem). I'm trying to make the  regroups  definition for orientable surface. An surface $S$ in $\mathbb R^3$ is said to be Orientable if there exists a unit normal field $\hat{n}(p)$ that is normal to ever point $p$ on $S$ as $p$ continuously varies over $S$, in other words, there exists a map $$\hat{n}:S\to \mathbb R^3:p\mapsto \hat{n}(p)$$ is continuous (here $\hat{n}(p)$ is a normal vector at $p$). My Question is: Is above definition  is correct? Is the map I defined make sense? Any example or intuition in this regards..


How do you remove the "EOL while scanning string literal" error when using two separate strings?

I am trying to import files from the same folder, but put the r'location' on separate lines.  import pandas as pd extra=r'C:\Users\Desktop\Pandas\' visits=pd.read_csv(extra+r'visits.csv')   I get the EOL while scanning string literal error.


Keyboard shortcut for closing the current IE 8 window?

What's the shortcut for closing the current tab or window? Also, the new Win 7 shortcuts don't work for me.  For instance Alt + Space + X maximizies  the window but Win + UpArrow doesn't work.  Weird.


How to efficiently partition a single Windows-Ubuntu dual boot disk?

This is not a question on  or  but is a question on access rights and how not to let them bite you in the lower abdomen...  ;-) This question will not help you how to make partitions on your disk, but will tell you what to do in , depending on your personal use case, so choose one of the following:      Note: The above questions can also be used with multiple disks, but the examples in the answers are given for one disk.


I have 2 connections: wlan0 (gw: 192.168.1.1) and eth0 (gw: 192.168.2.1). My default connection is wlan0, but I wanted some websites load through my eth0, so I set up routing for those websites/IPs like this:  route add -net 31.135.208.0/21 gw 192.168.2.1 dev eth0   This works, however is not permanent (disappears after reboot). I tried to put this code in /etc/network/interfaces like this:  up route add -net 31.135.208.0/21 gw 192.168.2.1 dev eth0   but when I restart Ubuntu, it starts without networking (it crashes). I also put these lines into that file:  auto eth0 address 192.168.2.125 gateway 192.168.2.1 netmask 255.255.255.0   but still system boots without networking.  Currently I have put route command into /etc/rc.local, it works, but it is not permanent, because when I restart/re-connect my eth0 (for some reason), routing disappears.  Some notes: I have long list of IPs to route. My router, which I connected eth0 is set to DHCP. I tried to connect eth0 both static and DHCP way.    Thanks for you help!