null pointer exception in action bar menu item

I implement switch in action bar it gives me error Attempt to invoke virtual method 'void android.widget.Switch.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference  menu xml    <item     android:id="@+id/toggleservice"     android:actionViewClass="android.widget.Switch"     android:showAsAction="ifRoom"     android:title=""/>     Main activity  @Override public boolean onCreateOptionsMenu(Menu menu) {     getMenuInflater().inflate(R.menu.menu, menu);     final MenuItem toggleservice = menu.findItem(R.id.toggleservice);     final Switch actionView = (Switch) toggleservice.getActionView();     actionView.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {         @Override         public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {             if (isChecked){                 Toast.makeText(MainActivity.this, "Checked", Toast.LENGTH_SHORT).show();             }else{                 Toast.makeText(MainActivity.this, "UnChecked", Toast.LENGTH_SHORT).show();             }          }     });     return super.onCreateOptionsMenu(menu);  }   logcat error  03-28 12:09:43.556 10445-10445/? E/AndroidRuntime: FATAL EXCEPTION: main                                                Process: com.example.prem.weatherapp, PID: 10445                                                java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Switch.setOnCheckedChangeListener(android.widget.CompoundButton$OnCheckedChangeListener)' on a null object reference                                                    at com.example.prem.weatherapp.activity.MainActivity.onCreateOptionsMenu(MainActivity.java:92)                                                    at android.app.Activity.onCreatePanelMenu(Activity.java:2850)                                                    at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:362)                                                    at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:98)                                                    at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:335)                                                    at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:98)                                                    at android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:454)                                                    at android.support.v7.app.ToolbarActionBar$1.run(ToolbarActionBar.java:61)                                                    at android.os.Handler.handleCallback(Handler.java:746)                                                    at android.os.Handler.dispatchMessage(Handler.java:95)                                                    at android.os.Looper.loop(Looper.java:148)                                                    at android.app.ActivityThread.main(ActivityThread.java:5443)                                                    at java.lang.reflect.Method.invoke(Native Method)                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)   Thanks in advance


I've come across how to write over a left or right facing arrow but not one that's double-ended. I tried this below (but with \ in front of both [ and ] but for some reason this won't typeset here) but it doesn't work so any help would be greatly appreciated!  \[ a \xleftrightarrow{\text{x}} b \]   Many thanks!


Is the uncertainty principle a property of elementary particles or a result of our measurement tools?

In many physics divulgation books I've read, this seems to be a commonly accepted point of view (I'm making this quote up, as I don't remember the exact words, but this should give you an idea):      is not a result of our lack of proper measurement tools. The fact that we can't precisely know both the position and momentum of an elementary particle is, indeed, a property of the particle itself. It is an intrinsic property of the Universe we live in.   Then this video came out:  (skip to , if you're already familiar with the uncertainty principle).  So, correct me if I'm wrong, what we may claim according to the video is:     the only way to measure an elementary particle is to make it interact with another elementary particle: it is therefore incorrect to say that an elementary particle doesn't have a well defined momentum/position before we make our measurement. We cannot access this data (momentum/position) without changing it, therefore it is correct to say that our ignorance about this data is not an intrinsic property of the Universe (but, rather, an important limit of how we can measure it).   Please tell me how can both of the highlighted paragraphs be true or how they should be corrected.


SQL sort by version "number", a string of varying length

I'm trying to create an SQL query that will order the results by a version number (e.g. 1.1, 4.5.10, etc.)  Here's what I tried:  SELECT * FROM Requirements      WHERE Requirements.Release NOT LIKE '%Obsolete%'      ORDER BY Requirements.ReqNum   Now, the ReqNum field is a string field and unfortunately I can't change it to a float or something like that because I have requirement numbers like 162.1.11.  When I get the results back, I'll get ordering like this:  1.1 1.10 1.11 1.3   How can I write a query that will sort by lexicographic order?   ... or,  How can I correctly sort the data?  Thanks for the input in advance!


I am trying to turn OFF case assignment rules on before case update. However, it seems they are still firing on any field update and assigning the owner to some default user.   Trigger:  trigger TurnOffAssignmentRule on Case (before update) {      List<ID> caseIDs = new List<ID>();       for (Case c : Trigger.New){          caseIDs.add(c.Id);          }       if(caseIDs.size() > 0) {      CaseHelper.updateOwnership(caseIDs);      }  }    Class:  public class CaseHelper {      public static void updateOwnership(List<Id> caseIDs) {          Database.DMLOptions dmo = new Database.DMLOptions();          dmo.EmailHeader.triggerUserEmail = false;          dmo.assignmentRuleHeader.useDefaultRule = false;         List<Case> casesToUpdate = [select id from case where id in :caseIDs];           Database.update(casesToUpdate, dmo);     }  }   I am not sure am taking right approach. Any suggestions?


In Stack Overflow, when visit any user account page, including my own, I can't see all the asked questions. On the pager, I see the "next" link, but it doesn't work for all users, and I can only see the last asked question  what is the cause of this issue? Is it a JavaScript issue, or something else?


Ubuntu Server 18.04 LTS Not Using Correct DNS Server

I have a couple of 18.04 VM's that all have the same problem: they do not seem to be using the correct DNS servers. These machines get their settings from DHCP, which looks like below:  $ netplan ip leases ens18  # This is private data. Do not parse. ADDRESS=192.168.100.60 NETMASK=255.255.255.0 ROUTER=192.168.100.1 SERVER_ADDRESS=192.168.100.1 T1=3600 T2=6300 LIFETIME=7200 DNS=192.168.6.1 8.8.8.8 DOMAINNAME=my.domain HOSTNAME=influx CLIENTID=<redacted>   I have randomized the numbers above, but the point is that the DNS servers listed are the correct ones coming from DHCP. However, if I attempt name resolutions with nslookup I get the following:  $ nslookup > test.my.domain Server:     127.0.0.53 Address:    127.0.0.53#53  ** server can't find test.my.domain: NXDOMAIN   However, I can explicitly use the DNS server as such:  $ nslookup test.my.domain 192.168.6.1 Server:     192.168.6.1 Address:    192.168.6.1#53  Name:   test.my.domain Address: 192.168.100.150   Can anyone explain why it defaults to 127.0.0.53 and why name resolution isn't working?  It's worth noting I have 16.04 VM's running along side these in the same subnet and they do not have the same issue (they resolve and nslookup works as expected).


Which font is this and how can I use it in latex?

I would like to know which font the following image is:    and how to use it in latex. Any ideas? It is not quite Times.


So I'm trying to make a testfor command, here is the command:  /testfor @p[7586,198,698,r=1,name=BrodieBolt]   My problem is that the output says:  Invalid selector argument: '7586'   Can anyone help me with this?


How is Stack Overflow improved by closing polling questions?

Update 1: this question is not a duplicate - the Python question happened to be locked, but my question is about closing in general and not historical locks. Here is another example that was closed:   Update 2: I see that the Ruby question has been deleted because I mentioned it. Deleting the evidence does not make this question a duplicate. Here's another example:   I'm genuinely curious. I want to know which Python IDEs are popular and come highly recommended. I understand that there is not a single correct answer to this question, but it's still a valid (and very popular) question.     Closing the question prevents anyone else from answering, but it still appears in search results and does not prevent additional comments. So to state this another way, how does preventing people from answering a question, while still keeping it visible, improve Stack Overflow?


Let $\phi:G\rightarrow G$ be a group homomorphism. Prove that there exists $n$ such that $G\cong ker(\phi^n)\bigoplus \phi^n(G)$

Let $G$ be a finite abelian group. Let $\phi:G\rightarrow G$ be a group homomrphism. Prove that there exists $n$ such that $G\cong ker(\phi^n)\bigoplus \phi^n(G)$.  Any ideas?


How to find all functions $f:\mathbb R\to\mathbb R$ such that $\forall a,b\in\mathbb R$: $f(a)+f\big(a+f(b)\big)=b+f\big(f(a)+f^2(b)\big)$

Find all functions $ f : \mathbb R \to \mathbb R $ such that for all $ a , b \in \mathbb R$: $$ f ( a ) + f \big( a + f ( b ) \big) = b + f \big( f ( a ) + f ^ 2 ( b ) \big) \text . $$  Here, for any $ n \in \mathbb N $, $ f ^ n $ denotes the $ n $-th iteration of $ f $.  My ideas so far: I substituted $ ( 0 , x ) $ that yields: $$ f ( 0 ) + f ^ 2 ( x ) = x + f \big( f ( 0 ) + f ^ 2 ( x ) \big) \text . \tag 1 \label 1 $$ Let's say that $ a , b \in \mathbb R $, $ a \ne b $ and $ f ( a ) = f ( b ) $.  Then the LHS does not change value with $ a , b $ but the RHS does. That is a contradiction and thus $ f ( a ) = f ( b ) \implies a = b $. The function is therefore injective. If we substitute $ \big( x , f ( x ) \big) $ we can cross the functions like so: $$ f \big( x + f ^ 2 ( x ) \big) = f \big( f ( x ) + f ^ 3 ( x ) \big) \text ; $$ $$ \therefore \quad x + f ^ 2 ( x ) = f ( x ) + f ^ 3 ( x ) \text . \tag 2 \label 2 $$ If we assume $ f ( 0 ) = 0 $, we have $ f ^ 2 ( x ) = x + f ^ 3 ( x ) $. Using \eqref{2} we get $ f ( x ) = 2 x $. However, this does not satisfy the functional equation and thus we can conclude that $ f ( 0 ) \ne 0 $. I also noticed that if you substitute $ f ( x ) $ for $ x $, you get $ f ( x ) + f ^ 3 ( x ) =f ^ 2 ( x ) + f ^ 4 ( x ) $ and expressing $ f ^ 3 ( x ) $ from \eqref{2} we get an intresting result: $ f ^ 4 ( x ) = x $ which means the function is iterative with a cycle of $ 4 $ (or $ 2 $ or $ 1 $). I am not sure how to continue or what substitution should I try next.


Starting tasks inside a loop: how to pass values that can be changed inside the loop?

I'm trying to use TPL inside a while loop and I need to pass to the task some values that then changes into the loop. For instance, here it is shown an example with an index that is incremented (necessarily after the line in which the task creation is requested):  int index = 0; Task[] tasks; while(/*condition*/) {     tasks[index] = Task.Factory.StartNew(() => DoJob(index));     index++; }   But of course it does not work, since the index value can be incremented before the task start. A possible solution could be to pass also a WaitHandle on which waiting before incrementing the index and that has to be signalled into the DoJob method, but it doesn't seem to me a really good solution. Any other idea?


Normal Subgroups that Intersect Trivially

Let $H$ and $K$ be normal subgroups of a group $G$ such that they intersect trivially.  Why is it then the case that   $$hk=kh;\;\;\;\; \forall h\in H,\;\forall k\in K?$$


Whenever I am talking on my phone and walk into the elevator the call drops as soon as the doors close, and also the WiFi signal completely stops.  Why does this happen?  Note: I am asking this question because me and my friends are brainstorming for a project proposal to work on.


Is there some command, or app, to show a visual indication about the state of special keys (Caps Lock, Num Lock, etc)?  It is intended to be used with some keyboards without the "standard" indicator leds.  I use Ubuntu Studio 18.04.1 and Gnome desktop enviroment.


How are random numbers for RSA generated?

The RSA public key encryption requires two very large prime numbers as part of its encryption process that serve as secrets. These are typically generated with cryptographically secure random number generators of some kind.  However, random number generators generate random bits; they don't specifically generate primes; and proving that a number is prime would require attempting to factor it -- the very problem that makes RSA hard.  How are the prime numbers found for use in RSA?


Fantasy novel with amnesiac witch, impotent soldier and cursed animals

The story is set in a vaguely medieval world in which a young woman has been cursed by the evil witch who has enslaved her and caused her to lose her memory. With the aid of her talking animal friends who have also been cursed (toad has a huge stone under his tongue meaning he can't feed and a crow with a gem embedded in its wing and there's a little grey kitten too who never grows up) she sets out on a journey to break the curse for herself and her friends. Along the way she meets an injured unicorn and a horny-but-moral soldier rendered impotent by a curse after refusing the disguised witch's sexual advances.  After adventures there's a 'happy ever after' for all of the heroes and the witch meets a sticky end.    In the UK the book had a deep red cover with an illustration. I read it in either the 1990's or the early 2000's. Cracking book, definitely for adults given some of the situations, language and humour.


"Turn out the light" vs "Turn off the light"

What is the difference between "turn out the lights" and "turn off the lights"? Are they interchangeable? Which one seems more appropriate if there is no difference?


Headings and advice to write a PhD in physics using LaTeX

I have 3 months to write a PhD thesis in French. I have a good level in LaTeX (wrote several memoires and many articles), however, I would like to know if you have any suggestions concerning good practises for this kind of work (more than 100 pages, figures, tables, bibliography, footnotes...)  What would be great would be to share a heading file, including all packages that will be needed during the writing.  I give you what I came up with:  \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{lipsum}   \begin{document} \chapter{Chapter 1} \section{A section} \lipsum[1-10]  \chapter{Chapter 2} \section{Another section} \lipsum[1-10] \end{document}   I also noticed this excellent link:   Any other suggestion is welcome.


Does $\sum_{n=1}^{\infty} \frac{1}{n^{1 + 1/n}}$ converge?

Does $$\sum_{n=1}^{\infty} \frac{1}{n^{1 + 1/n}}$$ converge? If yes, to where?  I searched this specific series but couldn't find a solution.


Ubuntu installer freezes while installing grub2

I am trying to install Ubuntu desktop on my pc. During the installation, the installer freezes when installing the grub2 package. I have retried several times and it gets stuck in the same spot every time. I have tried the latest version as well as an older version. any help would be appreciated. TYIA


Is it really incorrect to start a sentence with "and"?

I know it's wrong, but I do it all the time or else my sentences would go on forever.


Beef Short ribs still chewy after internal temperature reach 201F

so i currently start to cook beef short ribs on a vertical smoker. The short ribs i used comes from australian company called hardwicks. I cook the ribs at 250-285F. Vent are fully opened. Weather is sunny. I marinade them on sweet soy sauce overnight. I use black pepper, cumin powder, paprika powder, onion powder, garlic powder, and sea salt. I spritz them when it reaches 170, and when it hits 190, i wrap it on alumunium foil with some spritz. After hitting 201F i take it out, rest it for an hour, but instead of being butter-like texture, it still chewy. I don't know how long i cook, i jjst focused on the internal temperature itself. So does anyone know why it still chewy and not butter-like when it cutted? Thanks everyone, sorry bcs english is not my first language. Cheers!


I had a nice footer that I used for a letter, and wanted to reuse it in an article in which I want to include title, author and date as well...  Now I find that if I include the title, author and date, my footer disappears... Why is this happening? How do I get it back?  MWE:  \documentclass[10pt,twocolumn]{article} \usepackage{lipsum} % Footer \usepackage{fancyhdr,lastpage} \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \setlength{\footskip}{1cm} \fancyfoot[L]{\textbf{Lorem ipsum footer}} \fancyfoot[R]{\thepage\ of \pageref{LastPage}}   %\author{John Doe} %\date{\today} %\title{Lorem ipsum text}   \begin{document} %\maketitle \begin{abstract} \lipsum[1] \end{abstract} \section{Introduction} \lipsum[1-7] \end{document}   See the footer disappear if you uncomment title, author, date, and maketitle


Ubuntu 18.04 brings a new feature "minimal installation". I could not find any official documentation about which packages are not installing when we checked "minimal installation".   Can you please provide a source/doc for package list?


I find it difficult to understand one of the properties and the definition of Hausdorff spaces.   The property states that, "If $X$ is Hausdorff then every finite set is closed. How is this possible keeping in mind that the definition states that for two distinct elements you can find an open neighborhood around them such that their intersection is empty. Thus, wouldn't the finite set be open because you can always find an open neighborhood around distinct elements of finite sets?   Can someone please explain?


Given three complex numbers $|Z_1|= 2 , |Z_2|= 3, |Z_3| = 4$ find the maximum value of $$|Z_1-Z_2|^2 +|Z_2-Z_3|^2+|Z_3-Z_1|^2$$      If we treat them as three vectors $a, b, c$ centred at zero the above expression becomes $$2(|a|^2+|b|^2+|c|^2)-2(a\cdot b + b\cdot c + c\cdot a)$$ I've been unsuccessful trying to find the minimum value of $a\cdot b + b\cdot c + c\cdot a$.


Ubuntu 20.04 application menu lost all apps. Frequently used button gives crash

I just made a fresh install of Ubuntu 20.04 on my dual boot. It was working well until all desktop icons in the application menu disappeared. The apps are still usable via command line or favourites, but gnome menu doesn't show anything. Searching for a specific app doesn't work either. Also, when I try to switch from All to frequent, the menu crashes and desktop refreshes itself. I looked around and found someone experienced a similar thing on Arch Linux with gnome, and a few things like reinstalling gnome-core or changing the format settings to a different country, but none solved it.  Edit: Here is a list of all apt files I have, since I was installing in batches I don't know exactly when the menu first broke:  chrome-gnome-shell clamav-daemon debfoster firefox-locale-en fonts-powerline gir1.2-unity-5.0 git gnome-tweaks keepassxc language-pack-gnome-en linux-generic-hwe-20.04  mtools neofetch neovim shim-signed tlp ubuntu-desktop ubuntu-standard ucaresystem-core vlc wbritish


Is 4 hours long enough for a long rest for Elves?

The Long Rest rules read:     A long rest is a period of extended downtime, at least 8   hours long, during which you sleep or perform light activity: reading,   talking, eating, or standing watch for no more than 2 hours of the   rest period. If the rest is interrupted by a strenuous activity—such   as attacking, taking damage, or casting a spell—you must start the   rest over to gain any benefit from it, unless the interruption takes   less than an hour. You must have at least 1 hit point to take a long   rest. At the end of the rest, you regain all your hit points and half   of your maximum number of Hit Dice (round up). You cannot benefit from   more than one long rest in a 24-hour period.   The elven Trance racial trait reads as:     Trance: Elves do not need to sleep. Instead, they meditate deeply for   4 hours a day. (The Common word for such meditation is “trance.”)   While meditating, you can dream after a fashion; such dreams are   actually mental exercises that have become reflexive through years of   practice. After resting in this way, you gain the same benefit that a   human does from 8 hours of sleep.   I have heard two views regarding these rules:   An Elf can get the benefit of a Long Rest in only 4 hours.   The 4 hours only applies to not being exhausted, 8 hours is still required get the benefits of a Long Rest.   Which is it?  Please provide supporting information, possibly from previous versions.


I have a problem with following proof:  $$\gcd(n^a - 1, n^b-1) = n^{\gcd(a,b)} - 1 $$  The only thing that I can show is fact: $$n^{\gcd(a,b)} -1 | n^a - 1$$ $$n^{\gcd(a,b)} -1 | n^b - 1$$ And $k={\gcd(a,b)} $ is the biggest number that $n^k-1 | n^a - 1$ and $n^k-1|n^b-1$ But how to show that $n^{\gcd(a,b)}-1$ is $\ the\ biggest\ $ divisor or alternatively that every divisor is form $n^k-1$?


Prove that the center of the ring $M_n(R)$ is the set of scalar matrices.  I know what a center look like but i feel like i have not enough information to even solve this problem. Anyone that can help that would be great.


I had a reikling as a follower and I told it to wait (in whiterun I think, I checked and it's not there.) now I cannot accept another follower and I'm one of those people who like to collect cool weapons and it's really putting a damper on my collecting. Help?


Does Node.JS create references when assigning values to a class, or will it simply create another copy of it?

Let's say I have two classes: const request = require("./request");  class Message {     constructor(client, id) {         this.client = client;         this.id = id;     }      async function fetch() {         // make a request         // the code inside this function is always identical         return await request(`/${this.id}`);     } }  class Client {     constructor() {         this.messages = {};         for (let i = 0; i < 5; i++)             this.messages[i.toString()] = new Message(this, i);     } }  So my first question is when setting the value of Message#client, does this create a reference to the Client class? i.e. does this create a copy of the class in memory, or does it simply provide a reference to it? Additionally, if I were to have this Message#fetch() function attached to every Message class as shown (each function is completely identical), would this be extremely inefficient (with an individual copy of this function being made for each class constructed) or would Node.JS optimise it, so that it actually only stores it once and all others are references?


Adding one variable into multiple parts of an alias? alias nd='mkdir $1' works but cannot add anything after, why?

I have the alias  alias moveit='mkdir $1 && find -name "*$1*" -type f -exec mv -t ~/$1 {} +'   But I'm not quite sure what I'm doing wrong. Any help would be much appreciated.  I'm trying to make an alias where typing moveit pdf   Creates a directory called pdf in the current working directory. Searches for all the files that contain pdf in the name within the working directory and all of its subdirectories. Moves those found files into the new folder called pdf.   I know that pdf will return other files that aren't pdfs. I'm essentially trying to create an automatic sorting script.  I have files called:  greatfile[pdf].rar greatfile[txt].rar greatfile[rtf].zip badfile[pdf].zip badfile[txt].zip badfile[rtf].rar okayfile[pdf].tar.bz okayfile[txt].zip okayfile[rtf].rar   And I want to sort these files into folders named pdf, txt and rtf, all in one script, or at least one at a time for now.


What is the difference between "Shell" and "Terminal"?

I am fairly new to Ubuntu and I am loving it!  But I don't quite understand the difference between the shell and the terminal. Can any one explain?  Someone told me that a terminal is just a "tool" to view the shell, akin to using a browser like Firefox or Chrome to "view" the web.   Is his analogy correct? Also what is the default shell of Ubuntu? Bash, tcshell, or something else?


Why is the following not a finitely generated R-algebra

So let $R = k[X,Y],\ k$ a field and let $\hat{R}$ be it's completion w.r.t to $(X)$. My question is why is $\hat{R}$ not a finitely generated $R$-algebra ? So I view $\hat{R}$ as the formal sum $B[[X]], $ where $B = k[Y]$. If my view is correct, I don't exactly see immediately why $\hat{R}$ not a finitely generated $R$-algebra. Any help is appreciated. Cheers !


How to bypass web URL filtering service to access blocked websites (proxy)

I'm using network, where services such as Gmail or any other e-mails, Google Drive, Dropbox, all social networks are blocked. Basically my goal is to access simply GMail, but I couldn't find any way to do that so far. I understand that different proxies have different filtering rules, so please post any tricks or your-way solutions.


Lost disk after migrating from XP to Ubuntu

After migrating from windows XP (they still exist ;) I "lost" the disk with 3 partitions on it. One of these partitions  was the windows system disk. This disk is now marked as "unallocated". How do I get access to this disk again?   Thnx for helping out...


Is symmetric group on natural numbers countable?

I guess it is too difficult a question to ask about the cardinality of $S_{\mathbb{N}}$ so I would like to ask whether it is countable or not.  I tried to prove it is uncountable somewhat mimicking the Cantor's diagonal argument but failed.


Can we Migrate an FTP repository into SFTP in Ubuntu?

recently I got a ticket asking to change internal repository from FTP to Sftp. one repository have been configured and connected to internet in most secured network zone and that acts as a master server where we download all packages into it. from that server all client servers are sharing files through Ftp port no 21 and now I have to change it into Sftp. is it possible to do that.


Getting topology or out of memory errors with large dataset intersects and spatial joins in ArcMap

I receive a topology error notification when intersecting a point dataset (with ~5 million points), with a polygon dataset created by buffering those points by a half mile. The goal is to create a table containing the intersection of the two datasets such that I have a list of all points within that half mile radius of each starting point. I can generate effectively identical results using either an intersection or a spatial join. My prototype of this process works fine when I work on a small subset of each dataset. When I scale up to the full dataset, the intersect operation fails with a topology error, and the spatial join fails with an out of memory error (which is plausible given the dataset size, and memory addressing limitations of a 32bit application). Much of the time I do these operations in PostGIS (successfully and easily), but on this project I'm constrained to working in ArcMap, with the assumption that my users will have only the ArcView (Basic) level of licensing. I've also done these operations in spatiallite. I'd really rather not have to pull in OGR2OGR to move the datasets to spatiallite for the processing, but can if I must. Machine specs: Intel Core2 Quad (Q9550), Windows 7 (64bit), 8GB of ram, plenty of hard drive space


I have multiple kernels installed. I'm trying to create a script that would temporarily set the the next boot to the stock Ubuntu kernel. From my online research, I understood that the kernel order is the result of the following command awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg, where the first line is 0. This is the output when I run the command: root@server150:~# awk -F\' '/menuentry / {print $2}' /boot/grub/grub.cfg   Ubuntu Ubuntu, with Linux 4.9.24 Ubuntu, with Linux 4.9.24 (recovery mode) Ubuntu, with Linux 4.4.0-81-generic                    # <- I want this Ubuntu, with Linux 4.4.0-81-generic (recovery mode) Memory test (memtest86+) Memory test (memtest86+, serial console 115200)  Since I need the fourth line, I ran grub-reboot 3. However, this boots into a memtest. Am I doing something wrong? How can I create a script that when executed, would always set the next boot to the stock kernel? PS: I'm eventually doing it in ansible, but since I couldn't find a module for it, I'm using bash. Thanks ahead!


Issue creating Exchange 2013 Default Profile using Office Customization Tool

My company is in the process of migrating from Exchange 2010 to Exchange 2013 -- currently the environment is mixed, OWA is up and running, and AutoConfig is working properly.  For our Exchange 2007 -> 2010 upgrade I was able to pre-build the Exchange account profile using the Office Customization Tool to define an Exchange account (as well as some fake-POP accounts that we use for alternate SMTP sending) into a dynamic profile that was created when Outlook was first run.  When trying to do this same procedure for 2013, I am unable to open Outlook using the new default profile. Depending on how I tweak the settings I am greeted with various error messages that range from "The Exchange server might be down for maintenance," or "you must connect with the current profile before opening the OST," to "Cannot open the default set of folders", and once I was given a network password authorization box that would not accept any account/password combo that it was given.  If I create a new profile and allow it auto-configure, it does so successfully and Outlook will start up without any problems.  I suspect that the problem is how Ex2013 uses unique (per-mailbox) addressing to describe the 'Server' field in the mail profile -- The TechNet documentation states that the 'Server' entry in OCT should point to an Exchange server, and that it will be corrected when the profile first connects, however that does not appear to be happening. The 2010 CAS is providing proxy services between the two Exchange server environments, so it might be possible that the authorization is not being forwarded through there as well.  I have scoured the internet for a use case that was successful in deploying an Ex2013 account using the OCT, but I cannot find anything useful that helps me understand my situation.  Allowing the current user profiles to upgrade is not an option, as we are building new VMs that will not carry over the profile information; first-run autoconfigure is also not an option because we need the fake-POP accounts to be added ahead of time to the profiles.  Do we know if the 2013 OCT is able to preconfigure Exchange accounts? If not that is a huge step backwards in my opinion, as this feature is paramount to our upgrade path. Any thoughts would be helpful, I am happy to provide more information upon request.


When we bring a bar magnet towards another bar magnet such that their similar poles are facing each other, the other bar magnet moves due to repulsion. How this is possible if magnetic force can't do any work?


I know questions similar to these have been asked  before. However, I could not deduce the answer to this question, because they only did tell me what I should do, but not why I should do that.  I have a laptop which needs 19V DC power, but I do not know whether I have the original adapter. I have some old adapters which seem to fit, but, you could've already guessed it, they give different output voltages.  Now I have multiple options:   I plug an adapter with 17 V / 1200 mA into the device. I plug an adapter with 18 V / 1250 mA into the device. I buy a new adapter which outputs 19 V, and plug that into the device.   Now I have the following questions:   What will (most likely) happen with the laptop if I plug in abovementioned adapters? Is it okay, is it bad, does it harm the device? Does Amp. matter? This might be basic physics; can anyone post a link where this is perfectly explained?


How to apply gradient transparency on an object in Illustrator?

I have created an object and set it's opacity to 30% however I want the object to get less opacity as it goes down how can I apply gradient opacity?


Responding to a question correctly with yes or no

This question has been irking me for a while and I cannot seem to find any answer. Take something simple such as:  Question:"Did you not enjoy eating at the restaurant?" Response: "No."  Does this mean: "No, I did enjoy eating at the restaurant." or "No, I did not enjoy eating at the restaurant." I've heard both used in the above context and I honestly could see how both could be used as a response depending on the previous context and other variables like the speaker's tone.


How to prove that there exist no functions $f,g:\Bbb{R}\to\Bbb{R}$ such that $f(g(x))=x^{2018}$ and $g(f(x))=x^{2019}$?

I have tried a little bit to solve the problem which goes as follows:   My intuition says that there exist no $f:\Bbb R\to\Bbb R$ such that $$f(g(x))=x^{2018}\text{ and }g(f(x))=x^{2019}.$$  Note that $$f(g(f(x)))=f(x)^{2018}\implies f(x^{2019})=f(x)^{2018}$$  Similarly, $$g(x^{2018})=g(x)^{2019}$$ Putting $x=1$ in $f(x^{2019})=f(x)^{2018}$, we get $f(1)=f(1)^{2018}$ and thus $f(1)=0$ or $f(1)=1$.  Similarly, putting $x=1$ in $g(x^{2018})=g(x)^{2019}$ we get $g(1)=g(1)^{2019}$ and thus $g(1)=0,1,-1$.  Now, I can't proceed further. Can anybody solve it? Thanks for assistance in advance.


How do I get a list of all values in the same column across multiple spreadsheets within the same Google Sheet?

I have a Google sheet that has multiple spreadsheets, let's say Sheet1, Sheet2 and Sheet3. In all of those spreadsheets, column H is a particular field of which I want all the values with blanks filtered out.  I'm not sure where to begin with this, I've tried unioning all the columns into one in another sheet and then filtering all of them but can't get the union to work.   End result would ideally be a single list of all the values from  Sheet1.colH, Sheet2.colH, and Sheet3.colH.


Why do two beams of light pass through one another without interacting?

Why is it that if I have two torches, each shining rays in perpendicular directions at perpendicular screens, such that the beams cross, then the images on the respective screens are independent of whether the alternate torch is switched on? In other words, why does light seem to pass through itself without interacting?  Apologies if this question is basic, and apologies if there is a similar question somewhere on the site but I haven't managed to find an answer.   Thanks,  A.


If two particles, accelerated by a particle accelerator, collide together when they are individually very close to speed of light, so when they collide their relative speed will be more than the speed of light. So the two particles will collide at a speed more than the speed of $c$. So what will happen?


Are there any post 2013 studies available that focus on the use of bike lights during the day to prevent collisions with cars?

My cousin was recently killed when hit by a car from behind as he was cycling his road bike in the countryside in broad daylight. The accident occurred on a sunny day as he entered a shaded area of tree's. I am now looking at raising awareness of the benefit of using rear lights in the day and I could use some help please.


Why exactly does a material reflect/absorb/refract light?

What is the property of the molecules of the material that causes it to behave differently when it interacts with light. Is it the frequency of the material?  I was thinking that the resonant frequency and the frequency of oscillation of the material has a role to play in it


Updating a game without the player having to start a new world

So im building a game in GameMaker(A engine im good with), the development is going great and im making good progress. (Not going to go into detail about the game, its unrelated) but the problem i have is that when i do an update the player is required to start a new game as you cant load an old world into the new version (Not sure why, although i think i know) and i want a system that will just update the players current world with the new items, creatures etc. i have tried making the game use older versions of the save file, but it just loads the save file without the new items and creatures.  Edit i think i cant load a old world into the updated game because of it only having the save for the old items etc.(Not sure if this is correct though) Edit 2.0 the version is the games version, say if i tried to update to version 2 and the save is version 1, it wont load version 1 with the updated stuff in version 2.


Sound Recorder with "Record as" list empty in 13.04

I tried today for the first time Sound Recorder, but the list "Record as" is empty.  Does someone knows why? Is maybe some other problem I have with Ubuntu since I upgraded to 13.04? Is it going to be solved with 13.10?


I have installed Ubuntu alongside Windows but system don't show option to choose OS at boot

I have installed Ubuntu successfully thru usb bootable flash disk. Now my hp laptop don't show me options to choose windows or ubuntu at boot / startup. please assist


installed ubuntu-12.04.3 server. After installing, i could see only terminal mode login. I Dont see the GUI mode scree. How could i login to GUI mode login? If you need more details please let me know.


javascript regex brackets match won't work, it changes the regex pattern

I'm trying to use this regex pattern to match this value [1] When I use this regex:  new RegExp("\\["+row+"\\]/g")    it returns me this:  /\[1\]\/g/   instead of this:   /\[1\]/g   I have tried many things but nothing works apparently.  Some help would be appreciated.


Find the sum of the series $ \ \sum_{n=1}^{\infty} \frac{1}{n^2+l^2} \ $


How to print the all the elements of String type arrays which present inside an list?

public class list{      public static void main(String[] args) {         // TODO Auto-generated method stub                  //Dynamic arraylist in which is input is dynamic like below is example           ArrayList<String[]> rows = new ArrayList<>();           rows.add(new String[]{"1","2","3"});           rows.add(new String[]{"1","2"});           rows.add(new String[]{"1"});                      for (String[] now : rows) {             System.out.println(now);         } } }  I am receiving this output in console can anyone help how to print the dynamically changing length of array. [Ljava.lang.String;@372f7a8d  [Ljava.lang.String;@2f92e0f4  [Ljava.lang.String;@28a418fc


What are the fundamental differences between the mainstream *NIX shells?

What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other?  I understand that some of it probably comes down to user preference but I've only ever used Bash and I'm interested to hear where another shell might be useful. Also, is there an impact on user-written shell scripts when running under one shell or another or is it simply a matter of changing the shell at the top of the file?  My instinct says it's not that easy.


I have a string named "var" where the text string is set as doc1, doc2 or doc3  String var = "doc2" // doc1 or doc2 or doc3   I get content from the website using Jsoup this way  Document doc_comp = Jsoup.connect("http://www.computer.org").get();                     Elements doc1_comp  = doc_comp.select("ul > doc1" );                                         Elements doc2_comp  = doc_comp.select("ul > doc2" );         Elements doc3_comp  = doc_comp.select("ul > doc3" );   I use switch case for the corresponding values to be printed         switch(var)         {         case "doc1": System.out.println(doc1_comp.text());         break;         case "doc2":System.out.println(doc2_comp.text());         break;         case "doc3":System.out.println(doc3_comp.text());         break;         default: System.out.println("no info");         }   Everything works perfectly fine with the switch case but I want to use a single line of code to replace switch case like this  System.out.println(var.concat("_comp.text()"));   but it straight away prints as a string "var_comp.text()" but does not execute it and print the content inside it.  Is there a way around to make it run


I am trying to teach myself punctuation rules. I have this sentence:     The Disney version generally considered both racist and sexist portrayed the female characters in stereotypical roles and presented ethnically diverse characters with stereotypical features.   I think the sentence needs a comma after sexist and before portrayed. I also think it needs a comma after roles because of what I have identified as a coordinating conjunction. I.e.:     The Disney version generally considered both racist and sexist, portrayed the female characters in stereotypical roles, and presented ethnically diverse characters with stereotypical features.   Did I punctuate the sentence correctly? Is this a coordinating conjunction?


Python memory allocation for small/large integers

Can someone please explain the following cases?  In case I, I thought of something reverse. For small objects, e.g., 1, python could allocate new objects for different references. But for large objects, e.g., 10000..., python could keep reusing the same memory. But case I here clearly shows the opposite.  In case II, both 'a' and 'b' refer to large objects. If case I makes sense, why assigning a tuple to 'a' and 'b' ends up with 'a' and 'b' having the same id?   Case I  >>> a = 1 >>> b = 1 >>> id(a), id(b) (140293399709656, 140293399709656)  >>> a = 100000000000000000 >>> b = 100000000000000000 >>> id(a), id(b) (140293400116296, 140293400116344)   Case II  >>> a = 100000000000000000 >>> b = 100000000000000000 >>> id(a), id(b) (140293400116296, 140293400116344)  >>> a, b = 100000000000000000, 100000000000000000 >>> id(a), id(b) (140293400116320, 140293400116320)


Calling one parameter from another parameter in String.AppendFormat

I have a situation where I would have to do the following -      String.Format("{0}",{1},"Hi!")   (This is just a very simple version of what i am trying to achieve)  And the output I want is -  Hi!  The output I am getting is -  {1}  String.Format("{0}","{1} Atul {2}","Hi!", "Kumar") I want the output to be - Hi Atul Kumar


I wonder which changes are made by the draft option?  That means what will be changed by calling it as global class option (\documentclass[draft]{<class>}) or locally for a single package if it is available (\usepackage[draft]){<package>}.    Note I know that this depends on the loaded packages and if they react on the draft option or not. But I thought it could be helpful to have a overview which packages do what.  I suggest the answers to be CW and using this layout  Package/Class: `name`   Changes  - one - two  Has `final` option too: yes/no   If you like we can discuss the layout in meta …


How is viscosity described on the molecular level?

What is the 'molecular' origin of the viscosity? The molecular origin of elasticity is almost clear for me: at the very bottom the 'elasticity' comes from the attraction and repulsion between atoms when they are reasonably far from each other or very close (like Lennard-Jones potential). Is there a similar description for the viscosity as well? Where does it come from?


I have a list of files that are using %20 to indicate a space in their names.  I'm currently trying to do the following to change them all from %20 to a space " ".  for x in *.txt   do mv $x $(echo $x | sed -e 's/%20/ /') done   That doesn't play nice. It spits out this:  usage: mv [-f | -i | -n] [-v] source target        mv [-f | -i | -n] [-v] source ... directory   But I do the same thing on some of my images when I'm importing them and it works fine:  for x in *_MG*.CR2   do mv $x $(echo $x | sed -e 's/_MG/_IMG/') done   Forgetting that one is using .TXT and the other is .CR2, what am I totally overlooking here?  Keeping in mind I'm using a work laptop so I can't add Homebrew to install any additional software. And it's Mac OS X for the OS.


I am a US citizen. I entered the UK on November 2016, and after my 3 months were over in the UK, I traveled to Spain for another 3 months. I am now in the United States since May.  Because I have been in Europe for 6 months, when is the earliest date I can legally return to England on a tourist visa?


For example:  def test(a)    a = 2    b = 5+a    x = a*2    return x   Is there a way to call the variable 'b' outside of the function?


I was wondering if anyone knew of free software to take an OS snapshot.  Something that would also compare and list the differences between the two different snapshots.


What is the difference between a 'closure' and a 'lambda'?

Could someone explain? I understand the basic concepts behind them but I often see them used interchangeably and I get confused.   And now that we're here, how do they differ from a regular function?


Story about a person who could speed up temporarily

The only thing I remember about the story (or possibly novel) was that the main character (and possibly some of his colleagues) could temporarily speed up.  I think it took a toll on them, and they needed a period of recovery afterwards.  It was probably a story by a very good writer.   I understand the need to give you more to work with.  I just remembered this a few minutes ago when I read this question on English Language and Usage   Possibly I will remember more after my subconscious works on it.  It was almost certainly a man.  The story is probably from 15 to 25 years ago, maybe more.  Most of the SF I read was from Analog; some was from Galaxy and F&SF.  In other words, it definitely was not from a comic book or a TV series.  The character was a good guy.  I think something had altered him so he could flip into the hyperspeed state at will.


Can I publish a paper with new proof but the same result?

I found a better proof for a theorem than a proof from a published paper. Is it possible for me to publish my proof with the same theorem citing that paper?


Blocking a fake website from duplicating my information

My website is www.somedomain.com Today, when I googled for it, I saw another domain www.fakedomain.com (set up from another country) which had my website's content. They had used a DNS CNAME of www.fakedomain.com to point to www.somedomain.com I made client side(Javascript) and serverside scripting changes so that visitors come to my website if the URL does not contain "somedomain.com" but I want to block such attempts.  I am running Win 2008 R2 with IIS 7, using Cisco ASA 5505 firewall, dotDefender as web application firewall.    Can I block www.fakedomain.com at a firewall level? I know in IIS, I can do reverse Domain Name System (DNS) lookup, but hear it is resource intensive. Are there any other options?   Any advice would be helpful.  Thanks


Carrying over attributes after building geometry in ArcPy with ArcGIS Pro

I've created polygons from a table that has two columns- an OBJECTID and a string of coordinates (Polygon_Coordinates). The resulting polygons (called "testing" in the code below) are in the correct locations, but I can't seem to figure out how to carry over the ID, which I need for a join later in the workflow. Any idea on how to build geometry, but maintain the attributes? fields = ['Polygon_Coordinates', 'OBJECTID']  with arcpy.da.SearchCursor(table, fields) as table_cursor:     for row in table_cursor:         #skip null rows         if row[0] != '-9999':                          #turn string of coordinates into a list but split them at the commas             coords= list(row[0].split(','))                          #break up list into list of pairs             pairs = [coords[i:i + 2] for i in range(0, len(coords), 2)]             coord_ints = [[float(i) for i in p] for p in pairs]              #create insert cursor for geometry creation             geocursor = arcpy.da.InsertCursor(testing, ["SHAPE@"])             array = arcpy.Array()                          #grab pairs from list, put into array             for a in pairs:                 array.add(arcpy.Point(a[1],a[0], ID=row[1]))                          #set crs, build polygon              wgs = arcpy.SpatialReference(4326)             poly = arcpy.Polygon(array, wgs)             geocursor.insertRow([poly])


Suppose I've added a Cylinder, on the left side there will be the 'add properties' section where I can tinker with all sorts of options such as radius, vertices, Depth etc. I will then resize the Cylinder and once I confirm the resize the 'add properties' section disappears. How can I get back the 'add properties' section back after I've resized?


Is it good to keep my MacBook Pro on charge?

I recently got the new MacBook Pro 2018 and would like to look after the battery better as I need it for university and would keep it for at least 3 years.  I understand that they are lithium-ion batteries and have a recommended max cycle counts of 1,000. A cycle count is counted as charging it x%, discharging x% and charging x% (if I remember).  If I were to keep the MacBook Pro on permanent charge, I will not have any extra cycle counts. However, would this cause any damage to the computer or not? I also think I read somewhere (a few years ago) about batteries breaking in (just like an engine). If this does happen, how long would this take?  If it helps, I have the 15".


How can we prove the identity $\sum_{r=0, r~ even}^{k}\binom{k}{r}\binom{r}{r/2}2^{k-r}=\binom{2k}{k}$?

We know that $$\sum_{r=0}^{k}{\binom{k}{r}}^2=\binom{2k}{k}$$ Can we prove such identity for the above case. I can check the identity for some numerical values. For example $k=4$ case satisfies it.


So I'm trying to implement heap sort, and I'm having trouble with the parameter passing part. In general, I have this:   int main() {  int array[5];  heapsize = (sizeof(array) / sizeof(*array));  std::cout << "Input 5 integers separated by spaces:" << std::endl; for (int i = 0; i < 5; ++i) {     std::cin >> array[i]; } cout << "main length of a: " << (sizeof(array) / sizeof(array[0])) << endl;   heapSort(array);  cout << "final output:" << endl;  for (int i = 0; i < 5; ++i)     cout << array[i] << "  ";  return 0; }   where I read in an array, and pass that into heapSort(array).   Then I do:   void heapSort(int A[]) { int n;  n = (sizeof(A)/sizeof(A[0]));  cout << "This is n: " << n << endl; //prints out n = 1  build_max_heap(A);  }   I mean to pass the array[5] into heapsort(int A[]), so why is the length showing up as 1?


Does this property of limits hold when we compose functions?

Suppose we have two functions $f,g:\mathbb{R}\to{\mathbb{R}}$ such that: $$\lim_{x\to{}\alpha}{f(x)}=L \text{ and }\lim_{y\to{\beta}}{g(y)}=\alpha.$$ Is then true that: $$\lim_{y\to{}\beta}{f(g(y))=L}?$$ My intuition tells me yes. Using an $\epsilon-\delta$ approach seems very long and tedious. Is that the case? Or is there a nice way of showing this to be true. Or, is there a nice counterexample?


Is it possible to resize faces/edges/vertices to a specific size?

I have some previous experience from both Hexagon and 3DS Max. And you can easily resize a face, edge or a group of vertices to a precise number in both platforms. For example, you can create a 2x2x2 m box, then select one single side (face) and set the size to 2.189 m. For example. Blender does have a size pane. But only for entire objects. I can set the width of an entire object to 2.189. But not a single face. Or an edge. In order to do the operation above in Blender I'd have to bring out a calculator and figure out the ratio of 2.000 to 2.189 and punch in that number in the resize tool. I can't for the life of me understand why there's no built in size panel for stuff like this. What also bugs me is that for the very same reason you cannot easily read the size of an element, such as a face or an edge. Sure, there is a distance tool. But a lot of time I'd like to know the size in X, Y and Z. Not the actual distance from one end of an edge to the other. Is there some plugin or setting in Blender for this? I basically want to be able to select a face or an edge, and see the size in all three directions. And also be able to change the size by punching in numbers. Resizing the width of an edge from, let's say 3.448 to 3.207 shouldn't require a calculator.


Multiple-entry Italian Schengen visa, can I go to Switzerland/Austria for a weekend?

I have a multiple-entry Italian Schengen visa that will last a couple of months. Within this period, I want to go to Switzerland for a weekend, and to Austria for another weekend. Can I just get on a train and arrive there? Or do I need to do some paperwork, request another visa, or something?


dd vs cat -- is dd still relevant these days?

I recently realized we can use cat as much as dd, and it's   I know that dd was useful in dealing with tapes where block size actually mattered in correctness, not just performance. In these days, though, are there situations where dd can do something cat can't? (Here I would regard a less than 20% performance difference irrelevant.)  Concrete examples would be nice!


Number Of Distinct Paths In A Rectangular Grid

Just wanted to share a nice problem.I have given my method below.More answers are welcome.  Consider a rectangular integral grid of size $m*n$.A person has to travel from one end say $(0,0)$ to the diagonally opposite end $(m,n)$.He moves one step at a time towards the east or towards the north(that is,never moves towards the west or south at any time).How many distinct paths exist from the point A to the point C ?


Is length contraction a physically real phenomenon?

Could someone explain a bit length contraction. According to the special theory of relativity objects that travel at relativistic speeds will decrease in length.  Do the atoms of the object come closer to each other or it is an illusion or something else?  Looking for examples i came across with that of muons. But this actually says that one perspective is time dilation and one other is distance contraction which is not the contraction of the object.


Electrolytic caps exposed to reverse voltage... permanently damaged?

Accidentally a bridge rectifier was installed backwards and the capacitor bank was exposed to reverse voltage, not for too long, maybe 20-40 seconds. There were a few different brands and values of electrolytic caps being used, 1 or 2 types became very warm to the touch after the exposure and I removed these. The rest were still cold, surprisingly the ones to get warm were cheap caps, and the ones that seemed unaffected were all better quality ones, the warming didn't seem to be related to the values and ratings. I have powered up the circuit with the remaining caps after correcting the reversed bridge rectifier, after running into a load for a while they have not shown any physical signs of failure/damage (heating, bulging, leaking etc.) Do you think these caps are still to use i.e the performance has not have been considerably degraded  in some way(increased leakage, decreased capacitance, decreased life span)?


How can I reference the same path from one command to the next?

Is there a way that I could reference the same path from one command to the next? For example, I may want to list the contents of a specific folder:  $ ls ~/Documents/some/dir  Then, once I've done that, I may want to perform some action in that same directory:  $ mv ~/Documents/some/dir/file.txt ~/Documents/other/dir  Is there a way to, essentially, invoke that path without typing it again (or using some sort of auto-suggestion or auto-fill that I can do with .zsh)?   I vaguely remember reading about something along these lines but I don't remember what the technique is?


When I get the hang of ubuntu, and I like it more than win 7. How would I be able to uninstall win 7 from my computer and just have Ubuntu as the main os? Since my laptop already came with win 7. Thank you


Cannot sign in because game asks for my date of birth and I cannot remember which date I had written

Trying to make AR work on my mobile,, I cleared data and cache of my Pokémon Go app on my mobile. After that, when I tried to sign in as a returning player, I was asked for my trainer's club code and password which I don't think I ever had. I know how to sign in with my email and password but how to get to the screen where email and password are required for signing in?  About AR, are there any specific settings for Samsung Note 9?  Why it doesn't work?


How do I create a reference to a defined interval in several sheets?   Something like this: =SUM(Sheet1:Sheet2!A1)


camera track - was good, but breaks after editing an object

First, I'm a newb to tracking.  That said, I tracked my scene with a .3 solve rate. I dropped in a cube and rendered out a short animation... looked great.  I readjusted the position of my cube... nothing more... and now my track is broken.  All tracking points were locked, I did not resolve the scene... just suddenly my object is wobbling all over in the render.  Going back to my LOCKED tracking points, they are no longer staying put.  Anyone else seen this?  Has happened on 2 machines, same reproduction steps. This last one was first time I tried locking the tracking points.  Memory issue?    Thanks...


How do I avoid rendering glitches from overlapping faces?

For instance, here I have two cubes that are offset only on the x-axis. When I render them (using Blender's internal renderer), the overlapping faces interfere with each other and the result looks awful. A quick and easy solution would be to offset them by just a smidget, but is there another solution that allows faces to overlap and not exhibit this graphical glitch?


Which sets occur as boundaries of other sets in topological spaces?  Of course the boundary of a set is closed. But is every closed set in a topological space, the boundary of some set in that space?  It is tempting to assert that boundaries have empty interiors, but this is not true, as is shown by the fact that the boundary of $\mathbb{Q}$ in $\mathbb{R}$ is $\mathbb{R}$. In fact it can be seen in general that the boundary of a dense set with empty interior is the whole space. Thus the only boundary in an indiscrete space is the whole set. (This is sort of complementary to the comment of Daniel Fischer below.)  However the intuitive feeling comes right for open sets (and then for closed sets as well): The boundary of an open set cannot contain an open set.  This question concerns all subsets of a topological space.  An alternative question shall be to characterise all topological spaces in which every closed set occurs as a boundary.  Note: I have now  this on MathOverflow.


Why is the domain of these two functions different?

I tried graphing the functions $y = x^{.42}$ and $y = (x^{42})^{\frac{1}{100}}$. From my understanding of the laws of exponentiation these two expressions should be equivalent. What I found out after graphing these two functions was that they were equivalent for all non negative real numbers. The difference between these two functions was that the domain of $y = (x^{42})^{\frac{1}{100}}$ is $( -\infty, \infty)$ whereas the domain of $y = x^{.42}$ is $[0, \infty)$. I was wondering whether someone could explain why the domain of these two functions is different?


Formula for the general Cavalieri Sum: $S_n(p)=\sum\limits_{k=1}^{n} k^p\,\,\,n, p\in\mathbb N$

What kind of formula is there that can be used for calculating the sum of power of $x$ of numbers from $1$ to $a$?  I know that the sum of numbers from $1$ to $a$ is $\ (n^2 + n)/ 2  \ $ and that the sum of the squared numbers from $1$  to $a$ is $n^3/3+n^2/2+n/6 $.  If possible, please give a solution that excludes Bernoulli numbers and works for negative numbers too.


mkfs on raw software raid device or partition

I am making a huge RAID10 device (8 TB) for storage on CentOS. I have created the 4 partitions on my 4 physical hard disks and have created the raid device /dev/md2 out of those 4 partitions.  Now it's time to put a filesystem on it. I am wondering whether I should do just:  mkfs.ext4 /dev/md2   which totally works (I tried it), or I should first create a single partition on that device (with fdisk, gdisk or parted?), that takes up all the space, and then do the mkfs stuff on that partition.  Googling the Web, I found another person asking the very same question here:  but, although a responder said:      Partitions go on the array members.   Filesystem goes on the array.   they didn't give him a definitive, non-ambiguous answer or an explanation when one approach should be preferred over the other.


I have made a mistake with this image:    ISO 400 | 1/1700s | f/2  I used manual Aperture mode and set it to F/2 (now I believe this is too much). Kids were one meter away. It was light cloudy morning.  However, they came out blurred - and the trees behind appear in focus. I was using auto-focus mode, and I think the focus was in the middle of the photo - but between the kids :(  How come my camera auto-focused the trees behind with f/2 (i was expecting this aperture works for close objects?). Was this only a miss-focus, or my aperture was wrong as well? What should I do next time?


What's the easiest way to stop WP from ever logging me out

After a certain amount of time WP logs out all users and forces them to log back in again. For development environments on my local machine this is obnoxious and absolutely unnecessary.  Is there an API-driven way of disabling the auto-logout indefinitely? Ideally I'd like something I can add to wp-config.php along with other dev-setup-related settings.  A plugin would be overkill for me so I won't consider it an answer, but you might as well post it as an option.


Is it possible to cast multiple spells per turn?

Never had an issue with spellcaster scaling until today. A player in the group claims he can cast Eldrich Blast twice on his turn. Once as an action, and a second time as a bonus action since it is a cantrip. Allowing him to shoot 4 beams for a d10 each (he's 5th level so 2 beams per cast). This seems vastly stronger than anyone else's max 2 attacks. After the session which ended early with many players angry this player ruined all encounters, there was much talk of re-rolling into all caster party. One wanting to do the same with a wizards Firebolt spell as a bonus every turn, others still browsing.  So, is it possible for a caster to cast multiple spells in 1 turn? From what I was quoted from the PHB, it's possible to cast any spell as an action, then cast a second spell; as long as the bonus action spell was a cantrip with a cast time of 1 action? So 99% of all cantrips? Please tell me this is wrong, because I feel that if anyone else does this our melee characters will never see a fight again before the casters nuke them down.


How to get on-screen visible element objects in jQuery?

I have a list of objects in DOM, which is longer than screen height area.  I need to detect on-screen visible objects only to make something like timeline tree-view.  (something like on the picture below):    My DOM looks like this:

Lorem ipsum

Lorem ipsum

Lorem ipsum

Lorem ipsum

Lorem ipsum

Lorem ipsum

Lorem ipsum

Lorem ipsum

Elem-1

Elem-2

Elem-3

Elem-4

Elem-5

Elem-6

Elem-7

Elem-8

   My goal is to detect IDs' of on-screen visible elements from #elements container and assign active class to corresponding elements in #timeline container.  I need to do this process on Scroll event.  Any ideas how to achieve this?


I would like to hear some easy books to learn basics of number theory from.  I have almost no knowledge about topic to start with, so book should start with very basics. I'm currently on high school, but the book would be used just for personal interest.   Thanks


How to display citations in text grouped as [1-3] in stead of [1,2,3]

Possible Duplicate:          In Latex I am using BibTex for the bibliography and use \bibliographystyle{unsrt} to manage my references.   When I use multiple references i.e. \cite{article1,article2,article3} I would love to see this appear in the text as:  blah blah [1-3] blah blah   instead I get:  blah blah [1, 2, 3] blah blah   I use the format of \bibliographystyle{unsrt} because it numbers the references in the order they appear and would like to keep this feature but I could be flexible on which style I use.


Should the system cap the number of answers allowed for a specific question?

Yesterday,  was closed and locked, which spurred  here on Meta.  The  for the lock was that it was aggregating answers and this had to be cut off at a certain point.  If this is to be the policy going forward, should there be a system-imposed cap of X answers for a given question so that this is codified somewhere and is not a per-question judgment call?    At a certain point, a question could just drop the "Add an answer" option, which would avoid the stigma of having the question locked (and potentially closed).  The text below the question could indicate that no more answers were being accepted for this question, but that the users were free to submit edits to existing answers in order to improve them or add more information.


What sequence of cross overs to follow Flash s04e08 to Flash s04e09?

I was trying to watch s04e08 of The Flash and I realised that the storyline was based on something that began from another CW show. I've seen this before but, it began with The Flash so it was easier to follow. I checked The Arrow s06e08 and it seemed to be another continuation. What's the cross over sequence to follow whats happening on The Flash?


Why does our eyes got wet when we feel emotional or whenever we are hurt?

I was thinking like whenever when we feel emotional or whenever we got hurt we got tears from our eyes but why is that happen ? Why our eyes got wet ?


Can't compile a PDF with UTF-8 in Sweave

I try to compile in Sweave (R Studio) a PDF which contains cyrillic characters. The PDF-file looks nice, and the cyrillic characters display correctly. But when I try to copy some text from the PDF to a clipboard I get something like this when pasting:  Ðàññìîòðèì ñëåäóþùóþ ïîñòàíîâêó çàä   How to fix it?  I use these packages:  \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel}  I save the .tex file with UTF-8 encoding.  doesn't help. I tried to weave with Sweave as well as with Knitr. I use Ubuntu 16.04 and R Studio 0.99.896.


undefined control sequence when using \addchap

When I compile my thesis.tex file which is compiled fine including the \addchap, I noticed that I have used \usepackage{unnumberedtotoc}. When I want to use my thesis.tex file on another computer it says tex capacity exceeded, sorry [input stack size=5000]. When I uncomment \usepackage{unnumberedtotoc}, it says ! undefined control sequence  \addchap.  Here I have pasted all the beginning of the packages that I have used in my thesis but I still get some problems in compilation, I don't know why, but I think if I can compile this code, then I can solve the problem  :   \immediate\write18{makeindex \jobname.nlo -s nomencl.ist -o \jobname.nls} \documentclass[12pt]{report} \DeclareMathSizes{12}{30}{16}{12} \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{lineno} \usepackage{amsmath}  \usepackage{array, nccmath}  \usepackage[nottoc]{tocbibind} \newcolumntype{L}{>{$}l<{$}} \newcolumntype{m}{>{\displaystyle}l} \usepackage{framed} \usepackage{cclicenses} \usepackage{makecell} \usepackage[french]{babel} \usepackage{setspace} \usepackage{mathptmx}  \usepackage{multirow}  \usepackage{gensymb}  \usepackage{empheq}   \usepackage{mathtools}   \usepackage{array}   \renewcommand{\arraystretch}{1.9}   \newcolumntype{P}{>{\centering\arraybackslash$}p{1.6em}<{$}}   \newcolumntype{C}{>{\centering\arraybackslash$}c<{$}}   \usepackage{makecell}   \usepackage{booktabs}   \usepackage{subcaption}   \usepackage[intoc]{nomencl}   \makenomenclature   \setcounter{secnumdepth}{4}   \setcounter{tocdepth}{4}   \usepackage[justification=centering]{caption}    \usepackage{etoolbox}     \usepackage{unnumberedtotoc} %https://github.com/johannesbottcher/unnumberedtotoc/     \usepackage[automark,     plainheadsepline,     headsepline,     plainfootsepline,      footsepline,     markcase=ignoreupper]{scrlayer-scrpage}    \clearpairofpagestyles    \ihead*{\leftmark}    \cfoot*{\pagemark}    \setkomafont{pageheadfoot}{\scshape}    \usepackage{titlesec}    \graphicspath{{imagesthesis/}}    \def\frenchlistfigurename{Liste des figures}    \usepackage[a4paper,right=20mm,left=25mm,top=26mm, bottom=26mm]{geometry}    \makeatletter    \titleformat{\chapter}[display]    {\normalfont\huge\bfseries}{\chaptertitlename\ \thechapter}{20pt}{\Huge}    % this alters "before" spacing (the second length argument) to 0    \titlespacing*{\chapter}{0pt}{0pt}{20pt}    %\patchcmd{\@makechapterhead}{\vspace*{20\p@}}{}{}{}% Removes space above \chapter head    %\patchcmd{\@makeschapterhead}{\vspace*{20\p@}}{}{}{}% Removes space above \chapter* head    \makeatother    \title {itle of the thesis}    \titleformat{\paragraph}    {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}    \titlespacing*{\paragraph}     {0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}     \usepackage[thin, , thinc]{esdiff}  \usepackage{subcaption}  \usepackage{caption}  \usepackage{framed}    \usepackage{nomencl}   \setlength{\nomitemsep}{-\parskip}\usepackage{booktabs,multirow}  \renewcommand{\cellset}{\renewcommand{\arraystretch}{0.5}}   \begin{document}  \renewcommand\arraystretch{0.8} %\noindent  \doublespacing  \maketitle  \tableofcontents %\listoffigures  \addchap{Publications et communications}   \section*{$\:$  a. Publications:}  \section*{$\:$  b. Communications:}  \addchap{Remerciements}  \end{document}


Does this MacBook have a screen or GPU problem?

This is on an Early 2011 Macbook Pro 17" with i7 2.2ghz and the Intel + Radeon HD6750:     If it is a screen error then I don't mind fixing it myself, but if the GPU is the problem, I'm worried I might have to buy a new logic board assuming I can't use the GPU.


How to set JAVA_HOME to point to a JDK installation?

I installed sun-java6-jdk.  I need to find its home directory. JAVA_HOME must point to a JDK installation, not JRE.


I'm able to access the root shell via the following commands:  sudo -i  sudo su (after providing the user password) or su (after providing the root password)  What is the difference between them? I notice that a user with root privileges can access the root account!


How to convert Ubuntu Desktop into Ubuntu Server?

I am having my machine installed with Ubuntu 14.04 LTS desktop version. but now I need Ubuntu server edition. can I integrate both or else should I replace my desktop version with server edition . please help me


What happens when I include a squared variable in my regression?

I start with my OLS regression: $$ y = \beta _0 + \beta_1x_1+\beta_2 D + \varepsilon  $$ where D is a dummy variable, the estimates become different from zero with a low p-value. I then preform a Ramsey RESET test and find that i have some misspesification of the equation, i thus include squared x: $$ y = \beta _0 + \beta_1x_1+\beta_2x_1^2+\beta_3 D + \varepsilon  $$   What does the squared term explain? (Non-linear increase in Y?)  By doing this my D estimate does not vary from zero any more, with a high p-value. How do i interpret the squared term in my equation (in general)?   Edit: Improving question.


I am working in company name or at company name?

Please help me figure out this one.     "I am working in [company name]"      "I am working at [company name]"   Which one is correct? In or at?


Is it possible to continue a Flash game session on a different computer?

I am currently playing a flash-game (Mardek RPG chapter 3) and I found it pretty long. I've done quite a lot of progress on a computer that's not mine (it belongs to my relatives), and now I want to continue playing this session on my computer.  I'm playing it off-line, so the saved data is on the computer.  Is it possible to transfer the saved data to my own computer? If so, how can it be done?


Subspace of a seperable space is not neccessarily seperable in topology space

Let $(X,d)$ be seperable metric space, then $(Y,d_1)$ where $Y \subset X$ and $d_1$ is induced metric on a subspace $Y$. Then $(Y,d_1)$ is a seperable metric space, too.  I think it is quite easy to prove using the second axiom of choice. My question is that this problem states it is not neccessarily true that when we talk about topology space instead of metric space.  Can anyone explain why and give an counterexample?   Thanks


I have a fedora system I have download ubuntu I want to write the iso image to a blamk cd so I can install it on another (windows computer) thats sick (windows is corrupt)   What command line options should I use (on the fedora machine) to write a BOOTABLE image to the cd so that when the windows box is booted it will see an ISO image and boot  I don't want simple answers.


Are special relativity calcs affected by media?

Time dilation, increase in mass, Lorentz contraction calcs all involve velocity of light in vacuum. But in optical media light slows down. So what of relativity calcs in media? Do we ever need to adjust the speed of light?


I do not have a flash drive or a CD that I can burn, what are some other ways that I could install Ubuntu on my computer (dell latitude d620)?


I tried to create a Minecraft animation using blender. When I'm in material mode I see this, but when rendering it shows normal.    Please can anyone tell me what should I do to fix that? I have no idea where that problem is.


Why doesn't ls -l show the time and or year for every file?

It annoys me that sometimes when I run ls -l on a folder it reports the data and time for some files and only the date and year for others.  $ ls -ltr -rw-r--r-- 1 oracle9 dba  173 Dec 22 09:49 a1.par -rw-r--r-- 1 oracle9 dba  191 Dec 22 09:49 a2.par -rw-r--r-- 1 oracle9 dba  185 Dec 22 09:49 a3.par -rw-r--r-- 1 oracle9 dba  497 Dec 22 09:49 a4.par -rw-r--r-- 1 oracle9 dba  238 Dec 22 09:49 a5.par -rw-r--r-- 1 oracle9 dba  260 Dec 22 09:49 a6.par -rwxr-x--- 1 oracle9 dba 1076 Dec 22 09:49 al.sh -rwxr-x--- 1 oracle9 dba  931 Dec 22 09:49 im.sh -rwxr-x--- 1 oracle9 dba  982 Dec 22 09:49 mt.sh drwxr-xr-x 2 oracle9 dba 4096 Dec 22 09:49 comp drwxr-xr-x 2 oracle9 dba 4096 Dec 22 10:08 scr -rw------- 1 oracle9 dba    0 Dec 22 10:25 nohup.out -rw-r--r-- 1 oracle9 dba    0 Dec 22 10:25 start -rw-r--r-- 1 oracle9 dba    0 Dec 22 10:25 start2 -rw-r--r-- 1 oracle9 dba 5587 Dec 22  2016 g2.log -rw-r--r-- 1 oracle9 dba 5725 Dec 22  2016 g2.out -rw-r--r-- 1 oracle9 dba    0 Dec 22  2016 t6.log -rw-r--r-- 1 oracle9 dba    0 Dec 22  2016 start6 -rw-r--r-- 1 oracle9 dba    0 Dec 22  2016 g6.log -rw-r--r-- 1 oracle9 dba  781 Dec 22  2016 t2.log -rw-r--r-- 1 oracle9 dba  730 Dec 22  2016 g6.out   Notice that it doesn't show the time for the last 7 files in the list, and that it doesn't show the year for the first 14 files.  This behavior is not always reproducible.   How can it be avoided? Shoudn't the date/time format be consistent within the same list by default?   OS is Red Hat 6.4


find list of classes and custom annotations

How can one or all of the following be done. Get all classes during runtime in Scala  in a package that extend a particular trait with a custom annotation


Call a member function of a derived object in a std::Map

So, I'm trying to store objects that are all derived from the same base class in a Map, and then call a member function from a specific object in the Map. The problem is, that it calls the function in the base class instead of the one from the derived class.   Here is the base class:   #pragma once  class State  { public:    virtual ~State(){};     virtual void update(double dt){}    virtual void render(){} };   The derived class:      #pragma once     #include "State.h"      class State_Splash : public State     {     public:         State_Splash();         ~State_Splash();          void update(double dt);         void render();     };   The class with the Map that stores the state objects:  Header file:      #include "State.h"      #include <map>     #include <string>      class StateManager     {     public:         StateManager();         ~StateManager();          std::map<std::string, State> m_StateMap;      public:         void AddState(std::string stateId, State state);     };   Implementation file:      #include "StateManager.h"      StateManager::StateManager(){}      StateManager::~StateManager(){}      void StateManager::AddState(std::string stateId, State state){          m_StateMap.insert(std::pair<std::string, State>(stateId, state));     }   And last in main, I'm using a StateManager object, and referencing the map in it.(I cut it down a bit and only included the necessary parts)   int main(int argc, char **argv){       StateManager stateManager;      State_Splash _splash;       stateManager.AddState("splash", _splash);        stateManager.m_StateMap["splash"].render();//just calls the base class function


How to reproduce this effect and what's its name?

I have been looking on project on behance and there are plenty of projects that show interfaces in a 3d way with depth and I can't find anything to reproduce something like this, so since I am not a native speaker I am wondering if I use the wrong terms.  This is what I am talking about :   Or another example :    Sometimes it is even like on a phone :    So you get the idea. Do you know what is the name of this ? When I search I always fall into google material design elevation thing which is not really what I am looking for. Do you have any links or tutorial on how to do this type of effect please ?


Number theoretic statement which follows from ZF+AC, and whose negation follows from ZF+$\neg$AC

Let's denote by ZF the Zermelo-Fraenkel axioms, and by AC the Axiom of Choice. I am sorry that the question is not very well formulated, but still:  can there be a "number theoretic statement" (by which I understand a 1st order logic sentence in the language of sets which is true iff a certain "number theoretic" fact is true), such that it follows from ZF+AC, and whose negation follows from ZF+$\neg$AC?


Hide account from login screen but can be used in UAC

So I have a Windows 7 home machine with 2 user accounts.  One is a standard user account and one is an administrator account.  Now this is going to be put in the hands of a very low-tech user so I don't want them to be able to see the administrator account on logon, but they want to have a password to prevent someone else from using the machine.  My goal is that when the user turns on the computer, they are presented with their login.  After logging in to their non-administrator account, if something needs to be installed then the administrator account can be used through UAC.  I have tried creating the reg key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList and adding a dword of the account name and set it to 0.  It succeeded in hiding the account from th login screen.  As well as hiding it from UAC.  So it fails the second requirement, of being able to run things as administrator through UAC.  Also since I didn't set an administrator password (left it blank) it seems that I have completely locked myself out of the machine since runas doesn't accept blank passwords.  So I also cannot undo it, and have quite effectively bricked the install, prompting an OS reinstall.  This is Windows 7 Home, so there is no Users management console.


if all motion is relative to the frame of reference determined by an observer, why would the view that planet earth revolves around the Sun more correct than the view that the Sun revolved around planet Earth and all the other planets revolve around the Sun?  Is there a mathematical proof?


General method for finding parametric equations for polynomials _in rational functions_

Is there a general method for trying to finding parametric equations for polynomial equations?  The classic example of $x^2 + y^2 = 1$ having multiple parameterizations:  \begin{array}{rcl} (x,y) &=& (\sin t, \cos t) \\ (x,y) &=& (\cos t, \sin t) \\ (x,y) &=& \left(\frac{1-t^2}{1+t^2}, \frac{2t}{1+t^2}\right) \end{array}  which are easily seen to work by plugging in. Note that the first two involve elementary functions, but the last one only rational functions.  I'm curious about higher degree polynomials. Is there a general method to find a parameterized set of equations in rational functions? That is, is there an algorithm for extracting the parameter functions for $x$ and $y$ from the equation (or arbitrary sets of equations over $v\ge1$)? And if not, is there a characterization of which implicit sets can be parametrized?  Take the (random off the top of my head) example:  $$x y^3 + x^2 y + x y = 1$$  Is there a set $x(t), y(t)$ for this that can be found algorithmically? (I may well be naive here, not realizing something obvious, or maybe the entire field of algebraic geometry is geared towards possible solutions to this).   One can do the reverse process of creating an implicit set of equations via Gröbner basis calculation, trying to eliminate $t$. Or likewise in the forward direction if you can eliminate variables one-by-one with GB that would suffice to parameterize via one of the original variables. But in general if elimination isn't possible, is there still an algorithm to (even partially) parameterize?


how to always round up to the next integer

i am trying to find total pages in building a pager on a website (so i want the result to be an integer.  i get a list of records and i want to split into 10 per page (the page count)  when i do this:  list.Count() / 10   or  list.Count() / (decimal)10   and the list.Count() =12, i get a result of 1.   How would I code it so i get 2 in this case (the remainder should always add 1)


Let $R$ be a commutative ring with $1$ such that $R[x]$ is a PID. Show that $R$ is a field.

Let $R$ be a commutative ring with $1$ such that $R[x]$ is a principal ideal domain. Prove $R$ is a field.  So I thought to take $a\in R$ and look at $aR[x]$ which is a principal ideal and obviously $a\in R[x]$ is a polynomial of degree $0$ so $\langle a\rangle=aR[x]$.  I don't have a clue how to continue. I wanted to somehow show that $a^{-1}\in R$ and so every element is invertible (because we took a random one) so $R$ is a field. But I can't seem to find a way to prove that $a^{-1}\in R$. Any ideas?


How to set up Blender for Multicore Animation

I use Blender as a video editor.  After setting up the video I want to process including correct Start and End frames I click "Properties->Render->Animation".  My CPU usage climbs to a range from 20% to 25%. I am running an i7-3770K @ 3.50 GHz with 32 GB Ram. Blender is working on a physical drive, not an ssd. The i7 has 4 cores. With hyper threading that is 8 Hyper threads. I think Blender is running animation on only one core.  When I try to research this topic I get a mixed message.  I can find performance analysis multi core vs single core. I can find a Microsoft demo how the job queue can be executed parallel on a cloud service.  I can find entries that say the Renderer is multi core the rest is not.  But I can not find the settings to enable my animation to be multi core. I assume this is possible since it looks like it is part of the Renderer .  Is there something definitive like an official source on this? How do I set up my Renderer so that It utilizes all (or most) of my machine?


Why are the United States often referred to as America?

People often refer to the country US as America and to the people from the US as Americans.  As far as I know, that's the only case in the world where a continent's name is used for a country's name (let me know if I'm wrong). Why does that happen?


Cannot get Biber to work on 32-bit windows Texmaker

For a project I am using my 32-bit windows 10 notebook with TeXmaker and MikTeX. I updated MikTeX and manually installed the biber-doc package. In configure TeXmaker "biber %" is typed in for Bib(la)tex. Still I get the following error message:  INFO - This is Biber 2.12 INFO - Logfile is 'test 1.blg' ERROR - Cannot find control file 'test 1.bcf'! - Did latex run successfully on your .tex file before you ran biber? INFO - ERRORS: 1   The simple file I am trying to run is depicted below and it works on my 64 computer at home.   \documentclass[12pt]{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel}  \usepackage[backend=biber]{biblatex} \addbibresource{bib.bib}  \begin{document} blabla \cite{1} \printbibliography \end{document}   I have the feeling something is up with the installation but I am quite new to all this so let me know if you have any suggestions.


Can Ubuntu be installed on a Samsung Galaxy Nexus Verizon 4g phone

I am an old man who is interested in seeing the Ubuntu OS used more widely. I read the instructions for flashing the OS onto a Samsung Galaxy Nexus cell phone. I ordered such a phone. When it came I started to follow the instructions on this page:  I watched a couple of YouTube videos to guide me through the process. One video featured a young man who looked like he knew what he was talking about. He said that the Samsung phone had to be a "GSM" something, which the Verizon 4G model is not.   I have three questions:   Must the Samsung Galaxy Nexus phone indeed be a "GSM" in order to accept the Ubuntu OS? If yes, could the instructions be made clearer to indicate this fact, as well as any other facts that civilians (as opposed to professional developers) might need to know in order to flash the OS onto a phone? If yes again, does anyone want to buy a slightly used Samsung Galaxy Nexus Verizon 4G cell phone cheap?   Thanks.  ~George


I'm trying to detect if a package is installed in a bash script using the following but the script keeps erroring out and preventing anything after it from running.  Is there an option for apt that tells it to NOT throw an error when a package is not in the list?  pkgExists=$(apt list "azure-cli" | grep "azure-cli" -s)


Where is the SSH Server Fingerprint generated/stored?

I installed openssh-server and created a key with ssh-keygen. I then attempted to test it using local port forwarding by doing ssh -L 8080:www.nytimes.com:80 127.0.0.1. However, the key fingerprint that this command provides is not the key fingerprint I get when I do ssh-keygen -l. Even if I delete my .ssh directory, I still get the same fingerprint, which is not the one I created with ssh-keygen. Is there another key on my system? Where is this key? How can I select this key for use by openssh-server?


What does $\frac{1}{\sqrt{1 - \frac{v^2}{c^2}}}$ mean with respect to special relativity?

What does the following mean with respect to ?  $$\frac{1}{\sqrt{1 - \frac{v^2}{c^2}}}$$


Why is connecting two different voltage sources in parallel dangerous?

I'm working through a circuit analysis text on my own for the purposes of getting started with Arduino. I just came across a box that explained why putting two different voltage sources in parallel is a bad idea but the explanation didn't quite make sense and now it's bugging me.  I'm aware there is another, similar question here:  but the answers aren't quite what I'm looking for.  What I want to know is: how do I calculate the voltages, currents and resistances in a circuit that clearly defies idealizations? For instance, how much current will my poor different-voltage batteries encounter, respectively?


Affiliate software to attract incoming customers

I am close to starting a new website for a small business which imports products from USA to Australia.  The wholesaler says he will allow my client to be the sole distributor for Australia & New Zealand.  I'm not sure what CMS or shopping cart software to use yet, but it will need to include an affiliate system to allow advertisers to push customers our way.  Do you have any suggestions for robust, flexible affiliate software?


increase ram of smartphone using sd card

Is it possible to increase ram using sd card by rohesoft ram expander after rooting? i have read it in an article anyone tell me working method to create virtual ram in android phone.can i expand the size of ram of my smart phone by usingvsd card


How to install one single package listed on packages.debian.org?

Sorry if this is a dumb question but I really haven't been able to find what I'm looking for. Maybe my search terms weren't right.  So there is currently  with the package ttf-mscorefonts-installer, which is fixed in the version 3.6 of the package, which is  but not backported to Ubuntu. Apparently, one workaround for the issue is to use this version instead of the older version available in Ubuntu.  However, even if I was able to find the package listed on packages.debian.org, I couldn't find a way to install it! All that I could download from that webpage is the source file of the package. And I don't think I should directly add debian to my /etc/apt/source.list since that would make me install all other Debian packages as well.  How do I install this one single package?    EDIT: Apparently some people can't read. I mentioned explicitly in my question that the reason why I asked is that I couldn't find the package file on the page, only the source files. Now after reading the answer, I found the package file available for download at the bottom of the webpage, which was totally non-apparent at first sight.


I'm working with Spring to manage the life cycle of my beans. I'm trying to use @Autowired or @Resource annotations to make successful ioc but i'm always getting the famous NullPointerException.  My interface.      /**      * @author Soufiane NAJAH      *      *       */     public interface ITokenService {          public String obtainToken();     }   The implementation.      @Service     public class ITokenServiceImpl implements ITokenService {          // TODO NAJ : Déplacer l'url vers le fichier properties         private static String tokenRequestParameters = "http://localhost:8080/****/****/*****?grant_type=******&client_id=*****&"                 + "client_secret=*****&username=******&password=*******";          private static String access_token = "";          public String obtainToken() {              try {                 URL url = new URL(tokenRequestParameters);                 HttpURLConnection conn = (HttpURLConnection) url.openConnection();                 if (conn.getResponseCode() != 200) {                     throw new RuntimeException("Failed: HTTP error code: "                             + conn.getResponseCode());                 }                 BufferedReader br = new BufferedReader(new InputStreamReader(                         (conn.getInputStream())));                 // System.out.println("OutPut from the server ......");                 JSONObject myObject = new JSONObject(br.readLine());                 // System.out.println("access_token " + myObject.get("value"));                 access_token = (String) myObject.get("value");             } catch (MalformedURLException e) {                 e.printStackTrace();             } catch (IOException e) {                 e.printStackTrace();             }             // System.out.println(access_token);             return access_token;         }   The call to my object      public abstract class GenericWebServiceClientImpl implements             GenericWebServiceClientInterface {          private static final long serialVersionUID = 1L;          protected Client client;         protected WebTarget baseTarget;         private boolean initialized = false;          @Autowired         private ITokenService tokenService;          public GenericWebServiceClientImpl() {             init();         }   My web.xml              <listener>             <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>            </listener>        <context-param>         <param-name>javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE</param-name>         <param-value>true</param-value>     </context-param>     <context-param>       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>       <!-- valeur initiale "server" changee en "client" car server provoque erreur ViewExpiredException -->       <param-value>client</param-value>      </context-param>         <context-param>             <param-name>contextConfigLocation</param-name>             <param-value>                 WEB-INF/web-context.xml             </param-value>         </context-param>   My webContext.xml      <?xml version="1.0" encoding="UTF-8"?>     <beans xmlns="http://www.springframework.org/schema/beans"         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"         xsi:schemaLocation="http://www.springframework.org/schema/beans              http://www.springframework.org/schema/beans/spring-beans-3.1.xsd">          <import resource="classpath:spring/applicationContext-security.xml"/>      </beans>   My applicationContext-security.xml      <context:annotation-config></context:annotation-config>     <context:component-scan base-package="ma.net.s2m.service.rs.client.token"></context:component-scan>   I have no idea where the problem is.


When mysqli_real_escape_string is not working so What are the other solutions without this?

Here's my code:   if(isset($_POST['doSEARCH'])){     $mysqli->query("SELECT * FROM data WHERE title = '$search'"); } ?> <form action="" method="post">     <input type="text" name="search" />     <input type="submit" value="SAVE" name="doSEARCH" id="doSEARCH" /> </form>   1 Q: can I use this method without using mysqli_real_escape_string? Is it safe?  $search = filter_input(INPUT_POST, 'search', FILTER_SANITIZE_SPECIAL_CHARS); if(preg_match("/[^a-z0-9 ,.]/i",$search)){     header('Location: 500error.html');      exit(); }   2 Q: any other short solutins for this? (without using mysqli_real_escape_string)   thank you!


How to install latest release ubuntu without losing data files

I'm running 12.04 and want to upgrade to the latest stable version.  How do I do that without losing my data files?


So I have an SQLite database with a table that has a column named id set up to auto increment.  Is there a way to retrieve what it will next increment to?


How exactly are we proving that modus ponens is valid?

This is being done in the context of a Hilbert system in propositional logic.  But let's assume we've already proven all the axioms are tautologies / will always be true.  How then are we showing that modus ponens is also valid? (or is valid the wrong word to use here? Normally, "valid" for a statement means the logic holds IF the premises were true, but premises being true is what makes it actually sound... but when it comes to inference rules I don't know the terminology)  $P, (P \to Q) \vdash Q$  Is this strictly an informal "look at the truth tables and reason it out" kind of thing?  i.e. if we assume $P$ is true and $P \to Q$ is true because they are each reducible to either true axioms or true atomic propositions, then we know $P \to Q = \top$ becomes $\top \to Q = \top$. And in the truth tables for $\to$, this only has one solution, i.e. where $Q = \top$, therefore modus ponens holds? Or are we now showing that $P, (P \to Q) \vDash Q$?  I mean is that it? Or is it a more formal approach? I get totally lost when it comes to understanding and manipulating / proving things with these metalogical symbols.


How did Captain America change World War 2?

In the Marvel universe Steve Rogers was transformed via the super-soldier serum into Captain America. As the formula for the serum died with its creator, America decided to send Captain America in to sort out the Nazis.  How did this change the result of World War 2 in the Marvel universe?


How do I let a float know on which column it is placed?

Is there a safe and sound way to let the insides of a float environment know on which column the float is placed?  Here is an examples that fails:  \documentclass[twocolumn]{article} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{graphicx} \usepackage{float} \usepackage{xparse}  \makeatletter \NewDocumentCommand{\blindfigure}{O{}}{ \begin{figure}[#1] \includegraphics[width=\linewidth,height=.35\linewidth]{example-image-a} \caption{\if@firstcolumn I'm on the left\else I'm on the right\fi} \end{figure} } \makeatother  \begin{document} \blindtext \blindfigure[H] \blindtext \blindfigure[H] \blindtext \blindfigure[H] \end{document}   The second float is reflowed to the second column so it gets tricked:    I'd love to have a solution that works with all float targets (hHtbp!).


What's the best way to produce a matrix with labels that are nested in braces, like this: