Bind9 named Got recursion not available from 192.168.1.100, trying next server

I use a Raspberry PI as bind and dhcp server. A strange thing happens to me… On the clients, the resolv.conf looks like this: # Generated by NetworkManager search flab nameserver 192.168.1.100 nameserver 8.8.8.8  The network has a machine called ipazia, IP 192.168.1.3. $ nslookup ipazia  ;; Got recursion not available from 192.168.1.100, trying next server ;; Got recursion not available from 192.168.1.100, trying next server Server: 8.8.8.8 Address: 8.8.8.8 # 53  ** server can't find ipazia: NXDOMAIN  $ nslookup ipazia 192.168.1.100  Server: 192.168.1.100 Address: 192.168.1.100 # 53  Name: ipazia.flab Address: 192.168.1.3  That is, it works if I specify the server where to make the query. The query works even if the resolv.conf is changed as follows: # Generated by NetworkManager search flab nameserver 192.168.1.100 # deleted nameserver 8.8.8.8  But in this case the servers outside the subnet are not recognized. I made various tests… without finding a solution. The following is named.conf.options: cl goodclients {     192.168.1.0/24;     localhost;     localnets; };  options {         directory "/ var / cache / bind";          // If there is a firewall between you and nameservers you want         // to talk to, you may need to fix the firewall to allow multiple         // ports to talk. See http://www.kb.cert.org/vuls/id/800113          // If your ISP provided one or more IP addresses for stable         // nameservers, you probably want to use them as forwarders.         // Uncomment the following block, and insert the addresses replacing         // the all-0's placeholder.          // forwarders {         // 0.0.0.0;         //};          // forwarders {         // 8.8.8.8;         // 8.8.4.4;         //};          forwarders {                 8.8.4.4;         };          // forward only;           // =============================================== ========================         // If BIND logs error messages about the root key being expired,         // you will need to update your keys. See https://www.isc.org/bind-keys         // =============================================== ========================           dnssec-validation auto;          // dnssec-enable yes;         // dnssec-validation yes;           listen-on-v6 {any; };          //MARCO        recursion yes;         allow-query {goodclients; };         allow-recursion {goodclients; };         allow-transfer {goodclients; };          allow-query {any; };         allow-recursion {any; };         allow-transfer {any; };         allow-query-cache {any; };         notify yes;          allow-recursion {127.0.0.1; 192.168.1.0/24; };          #querylog yes;          auth-nxdomain no;          listen-on {any; } };  Dig gives me the following answers: $ dig ipazia  ; << >> DiG 9.16.6 << >> ipazia ;; global options: + cmd ;; Got answer: ;; - >> HEADER << - opcode: QUERY, status: REFUSED, id: 13439 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available  ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags :; udp: 4096 ; COOKIE: 6f54b031555c3e42010000005f9aaeae29abdb401bc977b8 (good) ;; QUESTION SECTION: ; hypatia. IN A  ;; Query time: 3 msec ;; SERVER: 192.168.1.100 # 53 (192.168.1.100) ;; WHEN: Thu Oct 29 12:59:42 CET 2020 ;; MSG SIZE rcvd: 63  $ dig @ 192.168.1.100 ipazia  ; << >> DiG 9.16.6 << >> @ 192.168.1.100 ipazia ; (1 server found) ;; global options: + cmd ;; Got answer: ;; - >> HEADER << - opcode: QUERY, status: REFUSED, id: 55099 ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available  ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags :; udp: 4096 ; COOKIE: 6d3ed396d7e62a5f010000005f9aaed458609fe61b6fc588 (good) ;; QUESTION SECTION: ; hypatia. IN A  ;; Query time: 0 msec ;; SERVER: 192.168.1.100 # 53 (192.168.1.100) ;; WHEN: Thu Oct 29 13:00:20 CET 2020 ;; MSG SIZE rcvd: 63


On python, I can use the combinations function from itertools to get all the possible couples in a list. But is there a way to get all the combinations possible taking one element in a list and the other in another list?  l1 = [1,2,3] l2 = [4,5]   Is there a function that would return   (1,4),(1,5),(2,4),(2,5),(3,4),(3,5)


Can English people (American Writers) produce anime shows and write manga?

This question has been asked between me and my friends for centuries. We were trying to make tiny novels of manga and produce an anime show for the art club we own. Seems as it is their culture and their talent. Can we really make only English anime/manga and dub it to Japanese?


Different types of creating functions for javascript

What is the difference between this:    function Hero(options) {   options = options || {}   this.nickname = options.nickname || 'Default 1';   this.hp = options.hp || '50' }  Hero.prototype.walk = function() {   console.log('Hero walked'); }   And this:    function Hero(options) {   options = options || {}   this.nickname = options.nickname || 'Default 1';   this.hp = options.hp || '50'    this.walk = function() {     console.log('Hero walked')   } }   Are there any significative gains in using prototype?


GParted merge unallocated space to ext4 partition

Here I want to merge unallocated space to ext4 partition. But during running in Ubuntu it is not allowed. Am I right? It has key picture. I must do that Ubuntu DVD booting from it and selecting try Ubuntu there with GParted, I must merge this unallocated part by right clicking on ext4 partition and then selecting shrink. Am I right?   Then for swap area I want to take 5GB from extended partition (which is now called D on Windows). Can I format this partition in Windows or should I use GParted? But in GParted it has key picture. Or in the same way should I do this during trying Ubuntu to merge unallocated space to ext4? Thank you for your answers.


What's the difference between variance and standard deviation?

I was wondering what the difference between the variance and the standard deviation is.   If you calculate the two values, it is clear that you get the standard deviation out of the variance, but what does that mean in terms of the distribution you are observing?  Furthermore, why do you really need a standard deviation?


How to save the dynamic input from command line to a file in the same format as input using Shell script

I want to save dynamic multiline input from command line to a file in the same format as input.  For Eg:  Code to get the dynamic input:  echo "Enter the multi-line message" message=$(sed '/one.*/q') echo $message > Finalinput.txt   If i give the input message as below,  Subject: Subject for the file Date: Friday, June 11, 2016 @ 02:00am - 06:00am  Time: 02:00am - 06:00am    Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message Test message  Sincerely, xxxxx   Then the Finalinput.txt should also be in the same format like above but instead it is showing as   Subject: Subject for the file Date: Friday, June 11, 2016 @ 02:00am - 06:00am Time: 02:00am - 06:00am Test message Test message Test message Test message Test messageTest message Test message Test message Test message Test messageTest message Test message Test message Test message Test messageTest message Test message Test message Test message Test messageTest message Test message Test message Test message Test messageTest message Test message Test message Test message Test message Sincerely, xxxxx   Because of this problem, sed commands are replacing some wrong pattern. Kindly help me to save the dynamic input from command line to a file in the same format as input using Shell script


Am I creating bias by using the same random seed over and over?

In almost all of the analysis work that I've ever done I use:   set.seed(42)    It's an homage to Hitchhiker's Guide to the Galaxy. But I'm wondering if I'm creating bias by using the same seed over and over.


Login request failed with using Google account

I made an account of Stack Overflow and Stack Exchange with my Google account just a few hours ago.  I do want to use this contents (Stack Overflow, something like that), so I try to log in with my iPhone and iPad, but when I try to log in using the Google account, the message which couldn't perform this request with my account is sent on and on. How could I log in in the app Stack Overflow and Stack Exchange?  I'll write the message contains     Request failed: Could not perform this request with your account, please try logging back in. If this persists, let us know on meta.


I recently discovered that I will be over-staying my 90 day visa waiver by 2 days. My question is about leaving the country as I fly from NYC to LA before flying home to Australia and I'm wondering that if because the Visa has technically expired will I be allowed to fly from one US state to another or will I be forced to fly directly out of the US from NYC?


How to export obj file with different mesh

I have a simple bottle with cap. I have exported the mesh with obj file. Importing in After effect with 3d element plugin i get only single mesh. How to have a separate mesh. Any option while exporting.


I want search for a string and  to pull all the lines between two patterns(including the pattern).   START#1  Name S  101  Frankfurt_1_1  19  A+  Street   END   START#2  Name B  104  Berlin  20  A+  Street   END    START#100  Name C  107  Berlin  21  A+  Street  END    START#24  Name D  110  Frankfurt_1_1  21  A+    END   If I grep Frankfurt  Then it has to display all the lines between START and END(including START AND END) like :   START#1  Name S  101  Frankfurt_1_1  19  A+  Street   END   START#24  Name D  110  Frankfurt_1_1  21  A+  Street   END   Command which I used :  cat file | awk '/START/,/END/' | grep -p Frankfurt  But it didn't work.


How to change url's in Wordpress when changing domain

Is  there any plugin that can update the wordpress database, specifically the wp_posts table or any other custom table in the database created by other plugins which has absolute url's of images and other assets?  So for example I have an image in a post:  <img src="http://old-domain.com/wp-content/uploads/images/img.png" />   How do I update it when moving to new-domain.com? And also I have created a plugin that does save absolute URL's on a custom table. Should I also provide the functionality to update those URL's? I'm currently using the content_url() method which returns an absolute URL for the assets that the plugin is saving. Is there any way of modifying this so it uses relative paths so there will be no need for a migrate functionality if ever? Thanks in advance!


I've got a problem with writing Persian in Ubuntu, the problem is  when I try to write mixed Persian and English text files in Gedit or VIM the lines starting with Persian characters start from right direction of the screen and it's hard to follow lines like this .  How can I change Ubuntu so it just starts lines from left?    here is a picture of MS Notepad I want them to be aligned like this


If $V$ over $\mathbb{C}$, $\dim V\ge 2$, let $q: V \rightarrow \Bbb{C}$ be a Quadratic form. s.t. exists $v \ne 0$ such that $q(v)=0$

If $V$ is a vector space over $\mathbb{C}$ and $\dim V\ge 2$, prove that if $q: V \rightarrow \Bbb{C}$ is a Quadratic form then exists $v \ne 0$ such that $q(v)=0$   I'm not sure I even understand why this is true. Any tips?


I have been working on this proof for a few hours and I can not make it work out.  $$\sum_{i=1}^{n}\frac{1}{i(i+1)}=1-\frac{1}{(n+1)}$$  i need to get to $1-\frac{1}{k+2}$  I get as far as $$1-\frac{1}{k+1}+\frac{1}{(k+1)(k+2)}$$ then I have tried $1-\frac{(k+2)+1}{(k+1)(k+2)}$ which got me exactly nowhere.


How to use VSCode to find which reports are using a specific field

I have used Eclipse in the past but unfortunately, Eclipse and Force.com IDE no longer work for me. I have switched over to VSCode along with the Salesforce DX and forcecode extensions (among many others) and this is the first time I have used this software. I was able to download all of the metadata from my salesforce instance. Now I need to perform a search to find all reports that use a specific field. Can anyone help walk me through the process to achieve this search? And once the search is completed, how do I replace a specific field used in a report with another field?


Can an SCV repair a Protoss ally's structures?

In a 2vs2, 3vs3, or 4vs4 matchup In SC2 Wings of Liberty Repair structures, not units.


Problems with ubuntu after installing cinnamon, unity broken

I installed the newest version of cinnamon on my ubuntu 13.04 only to see how good it looks, hoping that I would still be able to use Unity if I didn't like it. It turns out it was a bad idea because cinnamon broke not only unity (to the point of complete uselessness) but also crucial system functions like the software center and bug reporting.  I tried to reinstall unity using terminal (I found a tutorial but I can't recall exactly what commands were there, 'reinstall ubuntu-desktop' or something like that) and purge cinnamon (with another tutorial) and now unity runs pretty much ok, but software center doesn't open and bug reporting causes a big crash (restart needed). Furthermore I can't access the 'appearance' option, it just doesn't start.  Is there way of restoring things as they were before cinnamon? Or I messed to much and have to reinstall ubuntu?


I am using windows 7 with 8GB RAM for last 8 months, C drive of 75 GB currently out of space, 8GB Page file (on auto manage) and 8GB hibernate file, i checked windows folder is of more than 30 GB. is it fair amount of size and how can i clear some space.   Recyclebin is empty, C Drive protection is ON and is consuming 5.7GB only (i wanna keep it max limit is 8GB) and i have installed Visual studio 2013 and MS SQl Express 2012 and Ms Office 2010.


proving bound on edges using Euler formula

I want to prove the following result     Every $n$-vertex planar graph with $n\geq3$ and with girth $g$ has at most $\frac{g}{g-2}(n-2)$ edges.   Any hints? I have no idea. I don't see any useful link between the girth and the number of edges.


Cardinality of a finite field is $p^{n}$

Theorem: Let F be a finite field of characteristic p. Then p is a prime and $\left | F \right |=p^{n},\left [ \exists n>0 \right ] \in \mathbb{N}$  Note that the characteristic of F denoted Char\left ( F \right )=p \neq 0 $\mathbf{For\space each \space \lambda \in \mathbb{Z}_{p} \space and \space a\in F}$ then $\lambda\cdot a=a+\cdot \cdot \cdot +a$ and $\lambda \cdot a \in F$ by definition of ring. The ring axiom implies that F is a vector space over $\mathbb{Z}_{p}$. Since F is finite, F has finite dimension and so have a finite basis $b=\left \{ \vec{e}_{1},\cdot \cdot \cdot \vec{e}_{n} \right \}$ In a vector space, every vector element \alpha is a unique linear-combination of basis vector so $\forall \alpha \in F$, $\alpha =p_{1}\vec{e}_{1}+\cdot \cdot \cdot +p_{n}\vec{e}_{n} \forall \left \{ p_{i} \right \}^{n}_{i=1}$ so, $\mathbf{the \space size \space of \space F \space is\space p^{n}}$. Two questions: What is the motivation behind the first highlighted bold? Secondly, is $\left | F \right |=p^{n}$ to be interpreted as $\left | F \right |=n\cdot p$ ?


How to stop "Monkey Test" and "Time Service" apps

When I long-press the "home" button to close all apps, there is an app named "time service" with android symbol and another named "monkey test" that are always open.   How to stop this?


When I start VirtualBox, I only have 32 bit operating systems available. After some research I followed the steps on  but to no avail. My host OS is 64 bit, Intel Virtualization Technology and VT-d are both enabled in the BIOS, and Hyper-V platform is disabled in the Windows Feature list, yet I still only am presented 32 bit operating systems.  I find these    and they seem to solve the problem for everyone, but not for me.   I also tried  the installation without luck. How can I fix this to run a 64 bit Linux OS in VB?  EDIT I also have the latest version of BIOS.  Edit: This question is not a duplicate of  as I state that the solution to that question did not solve this problem.


Showing the sequence converges $a_{1}=\frac{1}{2}$,  $a_{n+1}=\frac{1}{2+a_{n}}$.  I already know that if $(a_{n})$ converges then it does to  $\sqrt{2}-1$.But i dont't know how to prove that this sequence cenverges.  EDIT I think that the subsequence $(a_{2n+1})$ is monotonic decreasing and the subsequence $(a_{2n})$ is monotonic increasing.


Let the duplicate questions finder consider tags

When asking a new question and typing in the title we get a list of similar questions named     Questions that may already have your answer     That suggestions contains posts across all tags. Like the example in the screenshot it returns similar questions for Python, jQuery, SQL, C#, Java, C++, ...  This makes the list less useless unlikely people find a question that already answers theirs. If people actually find a similar question in that list many duplicates could be avoided.  So can tags I entered below the question be considered to update the list? And can the tag textbox maybe put above the question title?


Add ability for OP to "confirm" their question as a duplicate

Currently, when we vote to close a question as being a duplicate it provides a comment with a link to the duplicate question. The OP then has the option to follow that link to review the question.  As it stands, a question requires 5 votes to close (though I assume admins/mods can close as duplicate immediately?). The problem with requiring 5 votes is that a question might not always get all 5 votes.  Now, this is good from the point of view that we want multiple reputable people to agree it should be closed. But there are likely some instances (I would assume quite a few) where a question has been voted as duplicate, but not enough times to close. However, the OP may have already reviewed the possible duplicate, found it to be a match (and therefore solved their problem), but we are still stuck with an open, unanswered duplicate that the OP doesn't care about anymore.  So my proposition is to have a feature that allows the OP to say "I confirm this is a duplicate, my problem has been solved, this question can be closed". This could be an option that only becomes available once a duplicate vote has been logged. If multiple questions are identified as duplicates, then the OP should select which one was the one that solved their problem so the closed question can be correctly linked.


"du -shm ." and "quota -s" information are not matching for particular user?

when du -cshm . is run from home directory of user, the below is the output.   [user@host ~]$ du -cshm .  2859    .  2859    total   and when quota -s command is run, below is the output.  [user@host ~]$ quota -s Disk quotas for user user (uid 1234):   Filesystem  blocks   quota   limit   grace   files   quota   limit   grace xxx.xxx.xxx.xxx:/home1/users              15505M  16602M  17579M           26714       0       0      There is a huge difference from 2.8GB to 15-16GB(du to quota), can anyone please suggest how to resolve this.  (I have check empty folder, deleted trash but still quota show 15gb)


I have to write a C++ program to specify a character from input if it is a number or word or symbol? Firstly I used ASCII to solve that, but the problem is when the input is not a character in ASCII, example it is in UTF-16, it is a Korean word... So what can I do to solve? Thank you!


How to automate entry of external column data in BCS?

I have a document library, Resumes, that has a large number of resumes in it. There is a regular column on that library, called EmployeeID, that is already populated.  I have an external content type ( ECT ) that is mapped to a table that lists EmployeeID and several other columns of information. I added this ECT to the library as an External Column.    I am looking for a good way to automatically go through all items in the document library, and copy the value from the "regular" EmployeeID column into the External EmployeeID column and have it update the other columns from the ECT. Any techniques are useful (PowerShell, Object Model, Workflow?) When we have tried this in the past with workflows the setting of the External Column did not report failure, but didn't actually trigger a lookup of the other data and the value didn't seem to actually get saved.  [Update] I have been working on this and am getting closer. I am using PowerShell to access the list and set the external column ID field to the value I want it to be.  The problem is that it doesn't seem to be triggering a lookup of the external data when that field is set.  my "list" (a document library) has a few normal fields and a set of external columns mapped to an ECT "EmplData".  When you use the GUI to add or edit the properties of an item, it works. When I use PowerShell to do the following:  $spList = $spWeb.Lists["Resumes"] $spListItem = $spList.GetItemById(1) $spListItem["EmplData_ID"] = "00300"    $spListItem.Update()   Sometime the external ID field gets updated when I the refresh the web page, other times it says "(blank)". In all cases it does not load in the other fields.  Is there some Update method that updates the rest of the elements?  I gather from research that these are called "secondary fields", is the method to update the secondary fields based on the external item ID available in PowerShell cmdlets someplace?  [Update] I am finding that if I use:  $spListItem["EmplData"] = "000300"   instead of $spListItem["EmplData_ID"] = "00300" it gets around the problem of the column showing "(blank)".   I still need to figure how to make it update the other external columns (also known as "secondary columns" I think)


I'm having the a bit of a problem with accessing remote RedHat servers from a Windows machine using Cygwin SSH client.   What I do is I run some fairly time-consuming QA scripts on the remote RedHat machine by logging in from home Windows machine. At the client end I use Cygwin SSH in an ordinary Cygwin console window. As long as I'm working interactively (i.e. executing commands from the command line) everything is fine. When I start the script, everything works fine as well as long as the script produces any visible activity on the terminal, i.e. as long as it prints something to the screen. But if there's is a significant pause in the output, the connection to the RedHat machine eventually gets dropped with "Write Failed: Connection reset by peer" message.  Is this some sort of timeout/keep-alive issue? And if so, what do I have to configure to stop this from happening? And where (server side or client side)?


How to ask a question about ordinal number?

There are many pupils in the classroom. Peter was the n th( n is a positive integer) student to arrive. Now I want to ask Peter about what n is. How can I ask him? It seems that it is very difficult to begin with a wh- question in situations like this.  As I have noticed previous similar questions about this.   Where did Peter fall in the sequence of arrival?   Is this idiomatic ?


If you use an AES key just once, do you need to use IV, and/or pad the message?

I am developing an application that is going to use AES encryption.  Since it is going to use a different key for every message encrypted...   Would it be secure to use a constant IV? (i.e null bytes) Would it be secure to not pad the encrypted message?


In Stack Overflow question closing dialog, link texts like SSCCE.org, Super User were misaligned.  The issue is happening, only if there is at-least one vote for that particular category.  Issue 1:   Issue 2:


Does Absorb Elements' additional 1d6 get doubled on a critical hit?

, as part of its effects, has this line.  [T]he first time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.  But what happens if you score a critical hit?  When you score a critical hit, you get to roll extra dice for the attack's damage against the target. Roll all of the attack's damage dice twice and add them together.  Is that extra 1d6 considered part of the attack, and thus rolled again? My gut says yes, but I cannot think of any explicit rule that says so


Drawing text on an image background that has dark and bright parts

Often, I want to write text over a background image. If the background image is bright, I use a dark color for the text, and vice versa. But, often the image has both dark and bright parts. So a dark text is unreadable on the dark parts, and a bright text is unreadable on the bright parts.  I currently use one of several solutions, all of them are imperfect:   Brighten the image and use a dark font, or darken the image and use a white font; the problem is that it reduces the beauty of the background image. Use grey text (as in this question:  ). But grey text often looks unappealing, and is still only barely readable. Use dark text, and try to position it on the bright spots of the image (or vice versa). This takes a lot of time because it requires me to position each word separately.   Are there better solutions to this problem?   In particular: is there an automatic tool that takes an image and a text, and positions the text only on the dark/bright parts of the image?


How do you find the equation of the smallest circle that passes through the centres $C_1$ and $C_2$

The circles $C_1$ and $C_2$ are given by $x^2+(y+3)^2=1$ and $x^2+y^2-12x-10y-60=0$  C1 has a centre of (0,-3) and radius of Square root 1, whereas C2 has a centre of (6,5) and radius of 11!


problem of freezing after entering password

sir, As u said I tried and edited in the command box while booting.I entered nomodeset to the line contains vmlinuz.It is worked but I need to enter this command everytime I am booting up... can't save using F10.What's the solution?  Whie I use the code,no problem with the computer. But the problem rises again when I tries to reboot.


what c++ inline explicit constructor is good for?

i see sometimes this constructor writing with inline explicit. for example:  protected :      inline explicit Singleton() {           CCASSERT(Singleton::instance_ == 0, "error Singleton::instance_ == 0.");          Singleton::instance_ = static_cast<T*>(this);      }     inline ~Singleton() {          Singleton::instance_ = 0;      }   for what inline explicit is good for ?


How do I install software on ubuntu 10.04

I have been trying to install software from the Ubuntu software center & I have not been successful with anything. :-(   Does anybody have any suggestions?  I noticed that they stopped supporting Ubuntu 10.04 in 2013.


On the , they stated (in a very big banner):     "There are eleven long-established and prestigious wizarding schools   worldwide."   But they only listed 6 schools, with Hogwarts, this makes 7. So there are still 4 schools that don’t appear on the Pottermore site.  On the , we can find that they have one more entry. They included  in Russia.  So I’m looking for the other 3 long-established and prestigious wizarding schools.  (I guess some more in Asia or Oceania would be most likely.)


Dual monitor setup, why does NVidia 340 Prime only detect one monitor?

I'm using:   Alienware M14xR2 laptop running Ubuntu 14.04 2 * DELL U2412M monitors attached via HDMI and Mini Display Port Optimus graphics (Intel + nVidia GeForce GT 650M) running with nvidea-340 and nvidia-prime, with Prime setup in nvidia-settings GUI to use the NVidia GPU built-in laptop monitor disabled   Unfortunately, the monitors only work successfully in the default mirrored setup - I have the following issues trying to get a dual external screen extended desktop to work:   nvidia-settings GUI can only see one monitor on the X Server Display Config page. System Display GUI can see both displays but can only mirror the displays successfully. By fiddling with Display GUI and ARandR, I temporarily managed to get an extended desktop working, but NVidia GUI still only sees one of the monitors and if I try to reboot with 2 monitors attached, the GUI is totally glitched and unusable after login. During boot, the system just uses the left monitor (via HDMI i/f) for display, so I presume this is treated as the primary display. However, after boot, it appears the system switches to using the Display Port for the primary display and the system will not let me have the Ubuntu launcher only on the left (HDMI) display. The only options that work are for having the launcher on both or just on the right (Display Port) monitor. I tried to forcefully fix the issue with the primary monitor incorrectly being set to the right monitor by changing the primary monitor switch in ~/.config/monitors.xml, however this does not work and causes both monitors to appear at strange resolutions and glitch badly with uncoordinated mouse input.   Running  /usr/lib/nvidia-340/bin/nvidia-xconfig --query-gpu-info gives  Number of GPUs: 1  GPU #0:   Name      : GeForce GT 650M   UUID      : GPU-...   PCI BusID : PCI:1:0:0    Number of Display Devices: 1    Display Device 0 (DFP-0):       EDID Name             : DELL U2412M       Minimum HorizSync     : 30.000 kHz       Maximum HorizSync     : 83.000 kHz       Minimum VertRefresh   : 50 Hz       Maximum VertRefresh   : 61 Hz       Maximum PixelClock    : 170.000 MHz       Maximum Width         : 1920 pixels       Maximum Height        : 1200 pixels       Preferred Width       : 1920 pixels       Preferred Height      : 1200 pixels       Preferred VertRefresh : 60 Hz       Physical Width        : 520 mm       Physical Height       : 320 mm   Running xrandr --query gives  Screen 0: minimum 8 x 8, current 3120 x 1920, maximum 16384 x 16384 DP-0 connected primary 1200x1920+1920+0 left (normal left inverted right x axis y axis) 518mm x 324mm    1920x1200      60.0*+    ... DP-1 disconnected (normal left inverted right x axis y axis) LVDS1 connected    1600x900       60.0 +   40.0      ... DP1 disconnected DP2 disconnected HDMI1 connected 1920x1200+0+0 518mm x 324mm    1920x1200      60.0*+    ... HDMI2 disconnected VGA1 disconnected VIRTUAL1 disconnected   Running lspci | grep VGA gives     00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)   01:00.0 VGA compatible controller: NVIDIA Corporation GK107M [GeForce GT 650M] (rev a1)   My xorg.conf is almost empty but I believe 14.04 automatically detects those settings.


Xbox 360 controller for Xbox 360 games on Xbox one?

The title line sounds a bit confusing. I apologize for that. Say I'm on my xbox one but I'm playing an xbox 360 game such as borderlands 2. Is it possible to use a wired 360 controller for gameplay?


Find $S$ if $S=\tan^21^\circ+\tan^23^\circ+\tan^25^\circ+\dots+\tan^289^\circ$.   I tried converting all tangents above $45^\circ$ to cotangents and added them with tangents with the same angle, but that does not give any result nor does it telescope. Tried writing $\tan^2\theta = 1-\frac{\tan\theta}{\tan2\theta}$, but again, no headway. I am trying to relate this problem with complex numbers, and saying roots of a polynomial are of the form $\tan[(2n+1)\frac{\pi}{180}]$, but haven't been able to do so.


My Ubuntu 20.04 changed to Kali 2020.02 after installing Katoolin3

Yesterday I installed katoolin3 on Ubuntu 20.04. It didn't work. After that I uninstalled katoolin3, but it will change my Ubuntu OS to Kali GNU/linux Rolling!  Can anyone help me to get back to Ubuntu 20.04? Also my GRUB is showing:   error found when loading etc/profile   Please help me to get out from that. Because of this, I cannot use Ubuntu properly, and my apt-get update shows the error:  404 error found   The command cat /etc/os-release shows:  PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" ID=kali VERSION="2020.2" VERSION_ID="2020.2" VERSION_CODENAME="kali-rolling" ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="https://www.kali.org/" SUPPORT_URL="https://forums.kali.org/" BUG_REPORT_URL="https://bugs.kali.org/"


When spawning an object in blender its invisible

When i spawn in an object in 2.82.7 with a plugin/script or while clicking the button the object is invisible here is an example of a spawned in sphere while its selected   There is no need for lights because im in "solid mode" When unselected the object is completely invisible (there is no outline)  Now the only way i found to fix this is i switch from "object mode" into "edit mode" and the moment i do that this happens  This also works if i press this button  If i switch back to "object mode" or disable the icon above it returns back to being invisible and the only way i found to make it visible is if im in "edit mode" (or the icon from above is activated) and then i deselect the object (by left clicking on empty space) and after that going in "object mode" Here are all the steps in picture form Deselect  object mode after deselecting  and now the object is visible and the "icon" from above is not active now here is an example  if i select something that isnt an object or camera and go to "edit mode" and do all of the steps it doesnt work also if i go back to "edit mode" and select a face and go to "object mode" without unselecting it it turns invisible example   btw if i go up to a higher version of blender for example 2.9 then blender doesnt start for me but crashes on the "start screen" the like "command window" with all of the "words" before it would launch I have an AMD processor and an AMD graphics card


Is there a way to query what functions a class has?

With tools such as std::is_base_of, std::is_arithmetic, etc, is there a way we can, at run time, check if a function is available to a type?  e.g.  template<typename T> void function( T arg ) {     static_assert(std::has_function<T, "DoSomething">::value, "Type must have function DoSomething!");     arg.DoSomething(); }   Or something along those lines?


Let $A = \mathbb{Z}$, $B = [−1, \pi]$, $C = (2, 7)$. List all elements of $A \cap (B^c \cap C)$.

After working it out on a number line, I got: $\{4, 5, 6\}$.  As it stands, the expression contains the integers that do not belong to the set $B$ that cross into $C$. This would result in $4, 5, 6$. Number $7$ would not be included because of the soft brackets surrounding $C = (2, 7)$. Is this correct?


I want to import a .las file into QGIS 2.0.1. My guess is that I need to convert it into a format that is readable in QGIS. But how?  I tried using LASTools. I downloaded it, but I don't understand how to use it? Any ideas?


What are the optimal Java Memory Settings for Railo 4.x / Tomcat 7?

I'm currently running Railo 4.0.4.001 final on an Amazon 64-bit Linux m1.medium cloud instance which has 3.75Gb of memory.    My setenv.sh script is currently starting Railo / Tomcat with ...  JAVA_OPTS="-Xms256m -Xmx1024m -XX:MaxPermSize=256m ";   My questions is this ... Can/should I use higher memory settings?  This machine is strictly an Apache/Tomcat/Railo web server with no other applications running.


What does "Ubuntu" mean, and why did they choose that particular name?


How to know if a custom field is referenced in Workflow or Validation rule using Metadata API?

Is there any way to find out if a field is used in Workflow or not. I tried working with Metadata API's listMetadata call which returned me file properties . But no information about Field referenced in it.  Is there any other way to know field referenced in WF rule or validation rule ?


How to use grep to search for a pattern which starts with a hyphen (-)?

sudo find / -name "*" | xargs grep -sn --color=auto "-j"   Above command returns below:  grep: invalid option -- 'j' Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. ...   How do I search for string -j?


I've recently come across this question and have no idea how to do it.  Let $P(x)$ be a 11-degree polynomial such that   $P(x)=\frac{1}{x+1}$ for $x=0,1,2,...11$  Find $P(12)$.  I've tried using the general form of a polynomial but it's turning to long. I think I'm missing some simple trick.  After this comes a general form of the problem.  If $P(x)$ is a polynomial of degree $n$ such that  $P(x)=\frac{x}{x+1}$ for $x=1,2,...,n$, find the value of $P(n+1)$.


Is there a way to make a colour input dynamically match the colour of whatever other material/mesh it's touching?

Anyone know if there's a way to set a colour input (for a material) to match the colour of the closest material/mesh? For example, if I had a cube that I wanted to dynamically adopt the colour of the nearest surface - so if it touched a green surface it would be green, if it touched a red surface it would be red. Thanks :)


Counting question based on Inclusion-Exclusion Principle

This was the question in one of the online test I was giving for preparation of an exam. I was not convinced by the final answer so I wanted to discuss it.  Consider a set S = {1000, 1001, 1002, ........ 9999}. The numbers in set ‘S’   that have atleast one digit as 2 and atleast one digit as 5 are ________.  I solved it using complimentary counting.  Final answer will be  All total numbers from 1000 to 9999 both inclusive - All such numbers that do not have either a 2 or a 5.  Now Let A:All 4 digit numbers do not having 2 B : All 4 digit numbers do not having 5  $|A|=8*9*9*9=|B|$  $|A \cap B |=7*8*8*8$  $|A \cup B|=|A|+|B|-|A \cap B|=2(8*9*9*9)-(7*8*8*8)=8080$  So my answer will be $9000-8080=920$  But in solution they have given answer to be 2752. Which one is correct?


I wrote some codes to create a directory named "E:\hkhkhkhk\...." in c++. It actually created "...." iteratively. And the parent directory "hkhkhkhk" cannot be removed.   I was wondering how the system explains "....".  The code is as below, execute it in virtual machine.  #include <windows.h> #include <iostream>  using namespace std;  int main() {     if (!CreateDirectoryA("E:\\hkhkhkhk\\....\\", NULL))         cout << GetLastError() << endl;      getchar();     return 0; }   Josh


ssh terminal session times out, how can this be changed

It seems after about 5 minutes an inactive ssh session is terminated. The server is Ubuntu. How can I change this?


How to change android primary google account

During the "in-app purchase" I am unable to switch the Google account I would like to use for "in-app purchase". Currently, in order to change the primary Google account on Android operating system, we have the following ways:   Remove other Google accounts, leave only one Google account. Perform factory reset on our devices.   If we perform factory reset, we will lose all data that we have not backed up or unable to do backup. And, we have to re-install the applications that we need to use.    If we choose to remove other Google accounts from our systems and leave only one Google account, if there are applications installed from Google Play Store by using the Google account that we want to remove from our systems, then we will not be able to remove the account from the system unless we remove those applications. However, sometimes we may forget which account we used to install an application from Google Play Store.  My question is that is there any other way to switch between the accounts?


End-game card priority? How does it work?

This question comes from a game I've recently played. I was playing Lucio and I got nearly 13,000 healing and nearly 13 minutes on fire. However, at the end of the game, at the commendations screen, I got a "card" for my 4 environmental kills. Is there a certain system that prioritizes some stats over others or is it a case of luck concerning what comes up at the end-game screen?


When citing the K-means algorithm in a paper, what is the standard reference?  I ran into  paper through some digging around but I am not entirely sure if this one is still the correct one.  I could potentially cite ESL but I wanted to know if people here had any opinion on this.  I am not looking for a reference to a specific implementation of the algorithm, just a generic reference.


So much space occupied by PyCharm and Intellij

I'm trying to free up some space on my Ubuntu partition, and I've already deleted huge redundant resources such as caches and log journals. Now two directories on /snap have grabbed my attention: /snap/intellij-idea-community and /snap/pycharm-community. In each of them there are two folders with almost identical sizes, and a shortcut named "current":   As seen in the photos, these two programs take up 3.8 Gigabytes of space combined. I thought they are two different versions of the same program (because of the size similarity) but when I tried to move one of them to another directory using the sudo mv command, it said: mv: cannot move '249' to '/home/esra/Desktop/249': Device or resource busy  The same happened for the two directories in /pycharm-community. Do they really belong to the same version and I'm going to screw up my IDEs if I delete one of them? If not, why can't I move any of them to somewhere else?


What are good ways to make pdflatex output copy-and-pasteable?

One frequent aspect of pdflatex output that could be improved is to what extent one can select text output from the generated pdf-file and copy-and-paste it. This is essentially an issue of having the right output encoding. There are at least two important aspects to this:   In the ideal case, Unicode would be the output encoding. Ligature glyphs (such as ﬁ) are ideally de-ligated in the output (here: "fi").   It seems that output encodings are specified through the fontenc package. What is the range of possible output encodings, and most importantly: Is there a way to specify a Unicode output encoding and one that deals with ligatures in the intended way?  (Note: It is important to distinguish output from input encodings. How to use different input encodings in LaTeX has been documented widely. My understanding is that this is best handled by the inputenx package, as it supersedes the inputenc package.)    Quick guide to the solutions: The information in the answers and answer threads is a bit distributed, so here the short summary: one approach is to use \input glyphtounicode together with \pdfgentounicode=1; the other approach is to use cmap/mmap.  Addendum: Sometimes one will need to load the package accsupp and enclose one's macro definition in \BeginAccSupp{method=hex,unicode,ActualText=<codepoint>}[...]\EndAccSupp{} to generate a specific code point. See the caveat about non-BMP code points  and the fix (starting from accsupp version v0.4, 2012/11/18) , which provides the new unichar package option.


Luke is the  of Lucius, a . With the advent of Christianity, it has been mostly associated with , and hence has a strong Christian connotation, particularly in the Occidental culture (where it's mostly found).   Meanwhile, as far as my experience of SW universe tells me, there is an active effort in stories of omitting references to any human-known major religion. Thus, I find odd that who is allegedly the most central character of all the series has a Christian-associated name. It is hard to find other instances of this in SW. Another example is , a Hebrew name, , and the first name of the Solo character .  What is the justification (perhaps by George Lucas himself) of naming the main character of the whole series with a very familiar western (and popularly Christian) name, amid an evident effort of making no references to human-Earth religions?  PS: I am not judging Christianity in any sense. I just want to understand how to reconcile the above issue with the more general naming convention in SW.  PS2:  (or others) have no relevant answer to the one here.


Suspicious Calendar Events, Spam Phone Calls, and Outgoing Messages—Has my iPhone been hacked?

Has my iPhone been hacked?  Part I: The FaceTime Call  Yesterday evening, after turning on Do Not Disturb mode for the night, my phone begin to ring (an incoming FaceTime call) with a ringtone I have never used. The caller was not on my favorites list (so the call should not have made noise since I was on DND). That caller is my co-worker at the office, and claims to have not called me (and indeed his phone has no record of the outgoing call).  Part II: The Outgoing Text Messages  Today, I noticed an unsent text to several phone numbers I do not know (and a few I do know, some of my friends) with a political message I do not support. This wasn't me sending it, so what happened?  Part III: The Suspicious Calendar Events  As detailed in , I'm having spam calendar events appear as invitations.  Conclusion  I have no idea what is going on with my iPhone! Have I been hacked? What can I do to resolve this problem with my iPhone?


vertical centering div without defined height and content

I have a Wordpress site which I want to vertically center content in the Jumbotron div (site uses Bootstrap framework) No tables if possible as it ruins other functionality in the jumbotron.   EDIT: The child div is centered but the content inside is not  html  ...

                            <?php echo $content ?>  (function to generate content not shown)

   css  .jumbotron {  position: relative; min-height: 600px;  width: 100%; border-radius: 0 !important; margin: 0; padding: 0; background-size: cover; background-repeat: no-repeat; background-position: center center; }  #s-text {  position: absolute;  text-align: center; margin: auto; max-width: 60%; top: 0; right: 0; left: 0; bottom: 0;  transform:translateY(-50%)  }     .jumbotron {   position: relative;   min-height: 600px;   width: 100%;   margin: 0;   padding: 0;   border-radius: 0 !important;   background-size: cover;   background-repeat: no-repeat;   background-position: center center; } #s-text {   position: absolute;   display: inline-block;   text-align: center;   margin: auto;   max-width: 60%;   top: 50%;   right: 0;   left: 0;   bottom: 0;   transform: translateY(-50%) } #s-text p {   position: relative;   font-weight: 500;   font-size: 1em;   line-height: 1.4em;   color: #fff; } <link href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet" />

content content content content content content content content content content content content content content content content content content content content content


I am having a programming function with name WorkFunction_(). I am trying to highlight this function using \texttt{}, something like \texttt{WorkFunction_()}. However this ends in error.  Could anyone suggest an alternate for this?


How to automatically scroll to requested command when the "General Commands Manual" is shown?

I sometimes end up requesting the man page for a "basic" command like set or pushd that is built-in into the bash/zsh shell.  So I type:  man set   …and I end up here:  BASH_BUILTINS(1)            General Commands Manual           BASH_BUILTINS(1)  NAME        bash,  :,  .,  [, alias, bg, bind, break, builtin, caller, cd, command,        compgen, complete, compopt,  continue,  declare,  dirs,  disown,  echo,        enable,  eval,  exec, exit, export, false, fc, fg, getopts, hash, help,        history, jobs, kill, let, local, logout, mapfile, popd, printf,  pushd,        pwd,  read, readonly, return, set, shift, shopt, source, suspend, test,        times, trap, true, type, typeset, ulimit, umask, unalias, unset, wait -        bash built-in commands, see bash(1)  BASH BUILTIN COMMANDS        Unless otherwise noted, each builtin command documented in this section        as accepting options preceded by - accepts -- to signify the end of the        options.   The  :, true, false, and test builtins do not accept options        and do not treat -- specially.  The exit, logout, return,  break,  con‐        tinue,  let,  and shift builtins accept and process arguments beginning        with - without requiring --.  Other builtins that accept arguments  but        are  not  specified  as accepting options interpret arguments beginning        with - as invalid options and require -- to  prevent  this  interpreta‐        tion.        : [arguments]               No  effect;  the command does nothing beyond expanding arguments  Manual page set(1) line 1 (press h for help or q to quit)   …in a thing apparently called "General Commands Manual".  Now the problem is: This man page is without any value to me. I mean, it's very nice, well-written and detailed… actually, very detailed.  I know, I can search in man pages with / thanks to the default pager less), but that does not really help here, as such a common word/string as set appears often in the command. And yes, I've tried awkward things as putting spaces around, no, this does not help:   So this is not productive, as I would have been faster searching for this problem online then, than using the man page. With "proper" man pages that do not have hundreds of commands/man pages combined, it would actually have been faster.  What I actually just want is that when I type man set this page opens, but it automatically scrolls to the command I've actually requested (i.e. set in this example).  That said alternative solutions to the problem (like splitting that huge man page, if such a thing is possible?!) are also appreciated.  I would prefer solutions for this problem for bash or zsh (or other shells, if it is such a specific problem.). However, I would obviously prefer a solution that works everywhere.


In the movie Star Wars, one of Mace Windu(S.Jackson)'s line reads such that:     I think it is time we informed the Senate that our ability to use the Force has diminished.   Is saying 'inform the Senate' rather than 'informed the Senate' technically wrong?


Event binding on dynamically created elements?

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


Notification bar broken after upgrade 16.10 -> 17.04

I recently upgraded my Ubuntu installation from 16.10 to 17.04. Since then, the notification bar has not displayed some of the icons that should be present when certain programs are running.    Both Skype and Slack are running, and previously displayed their respective icons in Ubuntu 16.04, which are missing after the upgrade to 17.04. (Due to the lack of the icons, this is a bit hard to illustrate. Note that both the Redshift as well as the Dropbox icon are still there, as well as the standard notification icons.)  Also, new notifications look strange (blue box) and have become non-clickable. The image shows an incoming Skype notification, which did not look like this before.  What has happened, and how can I revert to the previous (standard, I assume) behaviour?


Bash script returning wrong output for file size

I have this simple script: #!/usr/bin/bash  flimit=157286400 #150MB limit size fsize=$(stat -c%s $0)  if [ "$fsize" -gt "$flimit" ]; then    echo "File size is greater than expected." else    echo "File size is OK" fi  echo "The file size is $fsize"  Basically, it receives a file as argument ($0) and check if it is greater than a specified limit of 150mb. When i run it with ./checksize.sh my_file.zip, i get this output: File size is OK. The size of this file is 220  my_file.zip has 153MB. I don't know where this 220 came from and if it was expected. Thanks


I am using the WinEdt QuickGuide.tex as a template and tried to put in my bibliography with the following in my preamble:  \usepackage[refsection=chapter,defernumbers=true,sorting=none,sortcites=true,autopunct=true,babel=hyphen,hyperref=true,abbreviate=false,backref=true,backend=biber]{biblatex} \addbibresource{C:/Superstar/Desktop/HomeWork/References/chap1.bib}  \defbibheading{bibempty}{}  \newcommand*{\refname}{Bibliography}   then in the document I used:  \chapter*{Bibliography} \addcontentsline{toc}{chapter}{Bibliography} \section*{Books} \addcontentsline{toc}{section}{Books} \printbibliography[heading=bibempty,type=book,prefixnumbers={B}] \section*{Articles} \addcontentsline{toc}{section}{Articles} \printbibliography[heading=bibempty,type=article,prefixnumbers={A}] \section*{Online} \addcontentsline{toc}{section}{Online} \printbibliography[heading=bibempty,type=misc,prefixnumbers={O}]   but then I get the error \protect...ing=bibempty,type=book,...  Is it because I am using this command in the  scrbook class instead of the book class?  If so, how do I get around this issue in the scrbook class?  Here is a minimum example where the problem comes in:  \documentclass{scrbook} \usepackage{biblatex} \addbibresource{biblatex-examples.bib}  \usepackage{expl3,xparse} \ExplSyntaxOn% syntax of expl3 on % \cs_new_eq:Nc \emph_old:n { emph~ } % Copying the old definition of `\emph` \cs_new_eq:NN \emph_braces:n \textup % Braces should be typeset upright. % \cs_new:Npn \emph_new:n #1 {   \tl_set:Nn \l_emph_tl {#1}   \tl_replace_all:Nnn \l_emph_tl {(}{\emph_braces:n{(}}   \tl_replace_all:Nnn \l_emph_tl {)}{\emph_braces:n{)}}   \tl_replace_all:Nnn \l_emph_tl {[}{\emph_braces:n{[}}   \tl_replace_all:Nnn \l_emph_tl {]}{\emph_braces:n{]}}   \exp_args:NV \emph_old:n \l_emph_tl } % % \emph umdefinieren, Sternvariante mit altem (=kursivem) Verhalten \RenewDocumentCommand {\emph} {sm} {   \IfBooleanTF {#1} {\emph_old:n {#2}} {\emph_new:n {#2}} } % \ExplSyntaxOff% syntax of expl3 on   \begin{document}   \backmatter \printbibheading[heading=bibintoc,title=\bibname] \printbibliography[heading=subbibintoc,type=book,prefixnumbers={B},title={Books}] \printbibliography[heading=subbibintoc,type=article,prefixnumbers={A},title={Articles}] \printbibliography[heading=subbibintoc,type=online,prefixnumbers={O},title={Online}]  \end{document}   Here is the error that I get:  Package biblatex Warning: Setting 'defernumbers=true' recommended.   Package biblatex Warning: Option 'prefixnumbers' requires global (biblatex)                'defernumbers=true' on input line 33.  ! Missing \endcsname inserted. <to be read again>                     \protect  l.33 ...type=book,prefixnumbers={B},title={Books}]


All my music has been deleted off my phone, and I don't know how to get it back!

I put all my music on a playlist seperate from the rest of the music on the iTunes library, so I could easily get to what music I wanted to listen to, instead of my brother or sister's music. My brother recently got an iPod nano, and didn't know how to use iTunes, after explaining it to him, he deleted my whole entire playlist. I didn't know, so when I hooked my phone up to the computer to sync some songs I was going to buy, all the music on my phone disappeared. I've tried re-doing the playlist and syncing all of it to my phone again, but it won't work. I've also tried turning off my phone for certain periods of time, still nothing.  I lost about 200 songs (thankfully not more), and I don't know how to get it back.


given that $f$ is an analytic function with real part $u$ is a polynomial in the variable of $x,y$, $z=x+iy$, we need to show $f$ is a polynomial in $z$, I am kind of puzzled to see the problem, first I would like to say:any hint please


Why is "rm" so much slower than deleting files via the File Manager?

I witnessed that deleting directories (with the size of a couple of gigabytes) which contain many files is very slow when using rm. It takes up to several minutes! When deleting the same folder via the File Manager, the job is done within a second. (It takes another second to empty the trash afterwards.)  What is the reason for this?


CUDA error: Out of memory in cuMemAlloc(&device_pointer, size)

My GTX 960 is reporting there there is not enough memory, even when another person the same card is able to render it fine. The other person had the same set up as I do and rendered the same scenes. He did not have this issue.   I'm a render farmer for black plasma studios and I have come across this problem with my rendering recently. I was doing a benchmark test for them and blender gave the error (in the title).  My first test went good:    But I got the error on my second test:   as you can see it renders the first square but then runs out of memory after that. It did not render at all until I updated my graphics drivers with GeForce Experience. This helped a little but the render still didn't finish.  I seem to get this error a lot now and I would assume a better graphics card would be needed but someone else in the group has the same one that I have and he can do it just fine.  Computer info:  Display Device: name: NVIDIA GeForce GTX 960 DAC type: Integrated RAMDAC Device Type: Full Display Device Approx Memory: 6091 MB    System: OS: Windows 10 Home 64-bit processor: Intel Core i5-6600K CPU @ 3.50GHz (4 CPUs), about 3.5GHz Current Display Mode: 1920 x 1080 (32 bit) (60Hz) Memory: 8148MB RAM  How do I fix this?


How to install pygments package on Windows 10?

I have a problem with this error message:  "Package minted Error: You must have `pygmentize' installed to use this package."  I read  but I don't overcome problem.  I installed Python 3.6 (32-bit). Can anybody help me? (I am dummy)


I'm a PuTTY newbie. Sorry if my questions sounds a bit basic.  Our client has an AWS EC2 Ubuntu instance to which we have received access. I can connect to the instance using PuTTY. But I need to install and test many programs and files on the instance.  I am wondering if one gets GUI access to an EC2 instance so one can use it like a normal OS and not through command line.


Is there any way to actually impose disadvantage (not just cancel advantage) on saving throws against spells for a creature with Magic Resistance?

Many creatures in D&D 5e have a feature called Magic Resistance. One such is the :  Magic Resistance. The archmage has advantage on saving throws against spells and other magical effects.  So the Archmage has advantage on saving throws against magical effects. Suppose I wanted to weaken the Archmage's resistance to magic - I use some effect that gives disadvantage on the saving throw for my spell. Normally, this would balance out to a straight roll, as the  say:  If circumstances cause a roll to have both advantage and disadvantage, you are considered to have neither of them, and you roll one d20. This is true even if multiple circumstances impose disadvantage and only one grants advantage or vice versa. In such a situation, you have neither advantage nor disadvantage.  This seems to set a baseline for a straight roll on saves against magical effects, that the Archmage can never roll at disadvantage against magical effects. But is there a way to get around this? Keep in mind, such an ability must respect the  rule:  That said, many racial traits, class features, spells, magic items, monster abilities, and other game elements break the general rules in some way, creating an exception to how the rest of the game works. Remember this: If a specific rule contradicts a general rule, the specific rule wins.  The general rule here is that advantage and disadvantage balance out to a single die roll, so getting around Magic Resistance must either specifically override the rule for advantage and disadvantage, or eliminate Magic Resistance entirely. Is there any way (e.g. magic item, class feature, spell, etc.) to force a creature with Magic Resistance to make a save against a magical effect with disadvantage?  While writing this up I did find  which asks generally how to combat creatures with Magical Resistance, I intend this to be a (hopefully) more focused version of that question.


The following is an old qualifying exam that I cannot solve:  Suppose $f$ is holomorphic on the punctured unit disk and $ \frac{f '}{f} $ has a simple pole at $0$.  Show that $f$ does not have an essential singularity at $0$.


About the official Stack Exchange app: Is there a way to view prior edits to a post?

I would really like to view the history of a post, but there doesn't seem to be a button for it.   Tapping the gray "Edited" text yields no results.


Please help me with An error occurred, please run package manager

I try to install spotify on my ubuntu 16.04 just very can't remember what I do and get the message.     An error occurred, please run Package Manager from the right-click   window or apt-get in a terminal to see what is   wrong.    The error message was:     Error: opening the cache(E:Type 'sudo' is not know on line 1 in source list/etc/apt/sources/.list,E: the list of source could not be read.)'This usually means that you have >installed packages with unmet dependencies   I did not sure it this a problem too. I got something like this when I used code: sudo -H gedit /etc/apt/sources.list  sudo apt-get update #deb-src http://repository.spotify.com stable non-free #deb http://repository.spotify.com stable non-free


how to blend or diffuse two materials properly

As you can see in the image that I've attached, there are two materials used for the soil and the grassland. please be kind enough to tell me, how to make the boundary looks better ? how to make a proper diffusion or a realistic gradient between these two ?  Im so sorry if this is a dumb question, but im new to blender. -peace-


Accidentally deleted Ubuntu system partition during attempted Windows installation

During a foolish attempt at installing Windows 7 alongside Ubuntu 12.10 on a separate drive for some lab work, I accidentally deleted (not formatted) the wrong disk and immediately after realizing what I had done stopped the installation. So now nothing is installed and I am left with   grub rescue>   I know my files are still there. How do I go about putting everything back in its place?  Would it be easier to continue with my plans to install Windows 7 on the right disk and recover the partitions from there?   Or should I recover my Ubuntu 12.10 system first and then attempt the Windows 7 install after with more caution?


Simplify result of $\int_0^{\infty} \frac{1}{1+x^n}dx$

It is quite easy to show that (by using residue theorem) $$\int_0^{\infty} \frac{1}{1+x^n}dx = \frac{2 \pi i^{1+2/n}}{n(e^{2 \pi i / n} - 1)} $$ for $$n \ge 2$$  Is there any possibility to simplify $$\frac{2 \pi i^{1+2/n}}{n(e^{2 \pi i / n} - 1)}$$ or it is best result?  Thanks in advance!


I'm rather new to photography, having come from an amateur hobbyist video background. I recently purchased a Sony Alpha A58, and I want to take high quality close up shots. As I understand it, I need something called a macro lens. How are macro lenses measured? Focal length?" Something else?  Finally, are there other options for using, say, a regular lens?


I'm trying to do something that I thought would be relatively simple but seems to be quite hard. I have a table with a number of columns, and I'd like to make all of the titles appear in bold text. Obviously I can add \textbf to each of them in turn, but it strikes me that there must be a nicer way of doing this (particularly for tables with many columns).  As far as I can see there isn't a good way of doing this with plain LaTeX. Are there any packages that make this (and possibly other table-related issues) easier?


NullPointerException error from null variable. as listview comes empty

with fragments i got confused on how to call the UI compared to activities as i have to do it differently. Now with my listview i am initialising it in the oncreateView as most of the tutorials state that i have to do. however on my PostExecute function it's seems to return an empty ui and therefore the results will be null which triggers a null exception error.   public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     View view = inflater.inflate(R.layout.listview_main, container, false);     listview = (ListView) view.findViewById(R.id.listview);      new RemoteDataTask().execute();     return view; }     private class RemoteDataTask extends AsyncTask<Void, Void, Void> {     @Override     protected void onPreExecute() {         super.onPreExecute();         // Create a progressdialog         mProgressDialog = new ProgressDialog(getActivity());         // Set progressdialog title         mProgressDialog.setTitle("Stored Files");         // Set progressdialog message         mProgressDialog.setMessage("Loading...");         mProgressDialog.setIndeterminate(false);         // Show progressdialog         mProgressDialog.show();     }      @Override     protected Void doInBackground(Void... params) {         // Locate the class table named "UploadedFiles" in Parse.com         final ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("NewFiles");         query.orderByDescending("_created_at");         query.findInBackground(new FindCallback<ParseObject>() {              @Override             public void done(List<ParseObject> objects, com.parse.ParseException e) {                  if (e == null) {                     try {                         aF = query.find();                     } catch (com.parse.ParseException e1) {                         e1.printStackTrace();                     }                     Toast.makeText(getActivity(), "Success",                             Toast.LENGTH_LONG).show();                 } else {                     Log.d("Error", e.toString());                 }             }           });          return null;     }       @Override     protected void onPostExecute(Void result) {         // Locate the listview in listview_main.xml          // Pass the results into an ArrayAdapter         adapter = new ArrayAdapter<String>(getActivity(), R.layout.list_view_item);         // Retrieve object "ImageName" from Parse.com database         for (ParseObject NewFiles : aF) {             adapter.add((String) NewFiles.get("ImageName"));         }         // Binds the Adapter to the ListView         listview.setAdapter(adapter);         // Close the progressdialog         mProgressDialog.dismiss();         // Capture button clicks on ListView items         listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {             @Override             public void onItemClick(AdapterView<?> parent, View view,                                     int position, long id) {                 // Send single item click data to SingleItemView Class                 Intent i = new Intent(getActivity(), SingleFileView.class);                 // Pass data "name" followed by the position                 i.putExtra("ImageName", aF.get(position).getString("ImageName")                         .toString());                 // Open SingleItemView.java Activity                 startActivity(i);             }         });     } }   And this is the error that i am getting. And I have the Listview set correctly with no mistakes so i don't think the issue is from that.  Process: com.venomdev.safestorage, PID: 3027 java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference at com.venomdev.safestorage.ListViewFiles$RemoteDataTask.onPostExecute(ListViewFiles.java:146) at com.venomdev.safestorage.ListViewFiles$RemoteDataTask.onPostExecute(ListViewFiles.java:95)


What is bigger, $p(\mathbb{N})$ or $\mathbb{R}$?

I know that $|p(\mathbb{N})|>|\mathbb{N}|$, and that $|\mathbb{R}|>|\mathbb{N}|$, and I wonder whether $|p(\mathbb{N})|>|\mathbb{R}|$ or not.  What I tried so far: I found the function from $\mathbb{R}$ to $p(\mathbb{Q})$ defined by $f(x)=\{q\in \mathbb{Q}|q<x\}$, which I am quite sure to be injective function, but not onto. As $|\mathbb{Q}|=|\mathbb{N}|$, also $|p(\mathbb{Q})|=|p(\mathbb{N})|$, so I inferred that $|p(\mathbb{N})|\ge |\mathbb{R}|$. But are they equal?  In this, $p(A)$ is the power set of A, denoted also by $2^A$ and defined as is the set of all subsets of A.


A PDF output is obtained by compiling the following code. \documentclass{article} \usepackage{xcolor} \usepackage{listings}  \lstset {     language={[LaTeX]TeX},         numbers=left,         numbersep=1em,         numberstyle=\tiny,     frame=single,     framesep=\fboxsep,     framerule=\fboxrule,     rulecolor=\color{red},     xleftmargin=\dimexpr\fboxsep+\fboxrule\relax,     xrightmargin=\dimexpr\fboxsep+\fboxrule\relax,     breaklines=true,     basicstyle=\small\tt,     keywordstyle=\color{blue},     commentstyle=\color[rgb]{0.13,0.54,0.13},     backgroundcolor=\color{yellow!10},     tabsize=2,     columns=flexible,     morekeywords={maketitle}, }  \begin{document}  \begin{lstlisting} \documentclass{article} \usepackage{listings} \title{Sample Document} \author{John Smith} \date{\today} \begin{document} \maketitle Hello World! % This is a comment. \end{document} \end{lstlisting}  \end{document}  I attempted to copy the code only inside Acrobat Reader. Unfortunately, the line numbers also got copied as shown on the following screen shot.  The line numbers are useful, but readers want not to copy them. Is there a LaTeX trick to prevent a PDF viewer from copying the line number?


Short version: How do I prevent biblatex from capitalizing the first word of every bibliography entry?  Long version: I have an author called (nearly) "Paolo di Italia" and biblatex (called with useprefix option) renders the name prefix very well, but in my bibliography of authoryear style, the prefix happens to stand at the beginning of the entry and therefore is capitalized. How do I prevent this, but of course still capitalize normal last names?  In other words: In my understanding, a bibliography entry is not a sentence. Biblatex evaluates this differently, forcing capitalization and a closing dot. The dot can easily removed with \renewcommand*{\finentrypunct}{}, but what about the capitalization of the first word?  MWE  \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{filecontents} \usepackage[backend=biber,style=authoryear,useprefix]{biblatex}  \begin{filecontents}{lit.bib} @book{regular,author = {Paolo di Italia},date = {2005}} @book{other,author = {Some Otherguy},date = {2005}} \end{filecontents} \addbibresource{lit.bib}  \begin{document} \cite{regular}\\\cite{other}\\\printbibliography \end{document}   Output    I want the references entry to be "di Italia, …", but still "Otherguy, …" - just exactly like in the citation output above.  "{di Italia}" isn't an option: I can not just mark it with brackets like "Paolo {di} Italia" or "Paolo {di Italia}". The first would make the citation be just "Italia" , the second can't be used because the author's name is repeated later in the bibliography entry with the last name abbreviated – which then would be rendered as "Paolo d." instead of "Paolo di I.".


Usage question: "I hadn't drank any coffee before I lived in Italy."

Ok, so as an English teacher, I know that in the present and past perfect tenses, the auxiliary verb have is followed by the past participle form of the verb. Using most verbs, I find that this is true for all sentences I have heard. However, on several instances, I have run into a native speaker using the past form of the verb (drank) where the grammar calls for the past participle (drunk). For example: "I hadn't drank any coffee before I lived in Italy." According to grammar norms, this sentence should be: "I hadn't drunk any coffee..." More and more, I noticed that people tend to use drank instead of drunk after perfect aspect constructions. This construction was used across all communities of practice and wasn't subject to dialect boundaries. According to results from , have drank and have drunk are clear, with the standard have drunk being 4x more prevalent than have drank. However, with an instance rate of about 200,000 for the non-standard form, that is nothing to scoff at. However, the opposite was true with the negative form haven't drank vs. haven't drunk with the non-standard being almost twice as prevalent. EDIT: As for the dialect variant idea, I have researched into the various dialectal changes involving the past participle. Most constructions involving the variant are indicated to be dialectal or just plain bad grammar. However, when I started hearing it from people from the UK, this is when I started asking questions. Looking into it further, I have found some linguistic research papers involving corpora and frequency analyses of this phenomena and have found that there is definitely a shift among non-standard verbs to use the past instead of the participle for perfect aspect. At least according to the BNC and COCA. This is usually with germanic-root words such as bid/bade/bid, drink/drank/drunk, bit/bit/bitten.     So, my question, then, is whether or not there is some sort of construction that is the exception for this particular situation, i.e. some construction where perfect tense does not use past participle after the aux. verb, or if this is simply some crazy, non-standard phenomenon with the verb drink in the perfect tense.


Personal information missing next to the picture

I am writing my CV and I can't understand what's wrong with my code but it doesn't work.  I'd like to have my name on the left, my picture on the right and the information just next to the picture but I can't display the personal information in any way.  Here what I wrote:  \documentclass[11pt,a4paper,sans,english]{moderncv}         \moderncvstyle[left]{casual} \moderncvcolor{black} %\nopagenumbers{} \usepackage[utf8]{inputenc} \usepackage[scale=0.75,a4paper]{geometry} \usepackage{babel} \firstname{AAA} \familyname{BBB} %\title{}                                \address{CCC, DDD}{12345}{EEE}          \mobile{+1 23456789}                           \email{xxx@gmail.com}                                               \photo[64pt][0.4pt]{picture}  \begin{document} \makecvtitle \section{Section1} \end{document}   But this doesn't show anything next to the picture but just in the footer:    How shall I do to make something appear?  T


How to get the PropertyInfo of a specific property?

I want to get the PropertyInfo for a specific property.  I could use:  foreach(PropertyInfo p in typeof(MyObject).GetProperties()) {     if ( p.Name == "MyProperty") { return p } }   But there must be a way to do something similar to   typeof(MyProperty) as PropertyInfo   Is there?  Or am I stuck doing a type-unsafe string comparison?  Cheers.


Android as a microphone for Windows PC via USB

My microphone is not working so I wanted to use my android phone as a microphone via a USB cable.I want to connect my earphones to my phone and then my phone to my PC via USB. I have tried WO mic but as you know its no longer safe. Please suggest me a simple solution. Thanks in advance


What are all the ways to kill a buggy GUI app?     I can't right-click on its icon in the whatever-its-called bar, or use the top-of-window menu.  The app does not respond to anything, and does nothing but eat more and more memory as times goes on.  In Linux, there's xkill.  Is there something similar on OSX?


Is Ubuntu an open source software (OSS)?


Is every sub-lattice of $\mathcal P(X)$ isomorphic to a sub-lattice of $\mathcal P(X')$ containing a singleton set?

Let $X$ be a finite set. $\mathcal{P}(X)$ denotes the set of all subsets of $X$.  Let $\Gamma$ be a sub-lattice of $\mathcal{P}(X)$, i.e. $\Gamma$ is a collection of subsets of $X$ closed under union and intersection. Suppose $\Gamma$ non-empty and $\Gamma$ not made only of the empty set.  Set $$n:=n(\Gamma):=\min\{m\geq1\,|\, \Gamma\text{ contains at least one set of cardinality }m\}$$ and suppose $n\geq2$. I would like to find a lattice $\Gamma'$ isomorphic to $\Gamma$, but with $n(\Gamma')=1$.  With this purpose I thought to define a map $\Phi\!:\Gamma\to\Phi(\Gamma)=:\Gamma'$ doing the following operations:   from each set $A\in\Gamma$ with cardinality $|A|=n$, choose $n-1$ elements and delete them; (Notice that all these sets $A$'s are pairwise disjoint, by the minimality of $n$ and since $\Gamma$ is closed under intersection) call $Y$ the set of all deleted elements; from each set $B\in\Gamma$ with cardinality $|B|>n$, delete the elements of $Y$.   Clearly in this way one obtains $\Gamma'\subseteq\mathcal{P}(X')$, where $X':=X\smallsetminus Y$. By construction $n(\Gamma')=1$.  It is trivial that $\Phi$ is surjective. It is also easy to check that $\Phi$ is an homomorphism of lattices (i.e. $\Phi(A\cup B)=\Phi(A)\cup\Phi(B)\,$, $\,\Phi(A\cap B)=\Phi(A)\cap\Phi(B)\,$): it suffices to write $\Phi(A)=A\smallsetminus Y$ and apply elementary facts of set theory.  Therefore to conclude it remains only to prove that $\Phi$ is injective. I think it is true because I don't manage to build any counter-example. Can you help me to prove it?


solve null pointer exception at 'org.andengine.opengl.texture.ITexture org.andengine.opengl.texture.region.ITextureRegion.getTexture()'

java.lang.NullPointerException: Attempt to invoke interface method 'org.andengine.opengl.texture.ITexture org.andengine.opengl.texture.region.ITextureRegion.getTexture()' on a null object reference          at org.andengine.entity.sprite.Sprite.preDraw(Sprite.java:243)         at org.andengine.entity.Entity.onManagedDraw(Entity.java:1354)         at org.andengine.entity.Entity.onDraw(Entity.java:1162)         at org.andengine.entity.Entity.onManagedDraw(Entity.java:1385)         at org.andengine.entity.Entity.onDraw(Entity.java:1162)         at org.andengine.entity.Entity.onManagedDraw(Entity.java:1385)         at org.andengine.entity.scene.Scene.onManagedDraw(Scene.java:260)         at org.andengine.entity.Entity.onDraw(Entity.java:1162)         at org.andengine.engine.Engine.onDrawScene(Engine.java:627)         at org.andengine.engine.Engine.onDrawFrame(Engine.java:617)         at org.andengine.opengl.view.EngineRenderer.onDrawFrame(EngineRenderer.java:105)   getting nullpointer exception. Does not get any idea to solve it.


What happened to those who killed Michael's wife?

Did Michael ever get revenge on the guys who killed his wife back in Sicily in The Godfather? I have been unable to locate this on any message boards.


Fetch a fixed number of rows in SQL query in Oracle

Please help me to write an SQL query in the Oracle database. There is table called tbl and it has 12 rows. I want to select first 4 rows first then next 4 and the last 4 rows.  Can any anyone tell me how can I do this in Informix.


My cycles view port render is unbelievably broken. Crazy noise patterns

So I just updated all windows and graphics drivers and I am still experiencing strange renders within the cycles engine. This noise only appears within the cycles engine either in viewport mode or within the final render (f12). When I first installed blender I was using the gpu render and made sure my card was enabled and I had no problems. Only within the last 3 weeks havve I seen constant problems. After I exported a render I tried moving the entire blender window by clicking and dragging, I noticed once this happened most of the screen went black. When saving the file it started dropping letters. Intel i5-8600k Radeon RX 580 (4Gb Vram) 16 GB RAM


Does python have a shorthand to check if an object has an attribute?

Background is I'm getting data from a JSON API where lots of fields are optional and I want most of the fields in a database. When a specific field isn't available I want an empty string ("") written into the database.  Currently I've been doing:  if jsonobject.what_i_look_for:   dbstring = jsonobject.what_i_look_for else:   dbstring = ""   And then inserted dbstring into the database. However I'm getting a lot more of these fields now and I want a much cleaner code rather than a function which consists about 80% of if-statements.  I've found  and  shorthand to check if a variable is empty, but both don't seem to work directly as a string. I've tested this using print() in an interactive python 3.5.2 shell:  >>> print(testvar or "") Traceback (most recent call last):   File "<stdin>", line 1, in <module> NameError: name 'testvar' is not defined  >>> print(testvar if testvar else "") Traceback (most recent call last):   File "<stdin>", line 1, in <module> NameError: name 'testvar' is not defined   This: echo (isset($testvar) ? $testvar : ""); is the PHP equivalent of what I seek.  Edit: Since it seems relevant: The object I am trying to process is coming from Telegram's JSON API. I'm using python-telegram-bot as library and  is an example object.


Good color palette, usable for the color blind.

I'm designing a chart right now, that will slowly have more items added to it. I'd like to create an list/order of colors for the items, that will be most usable for the color blind to differentiate between each item. Any ideas how/where to start?


How does the comma operator work in C++?  For instance, if I do:  a = b, c;     Does a end up equaling b or c?   (Yes, I know this is easy to test - just documenting on here for someone to find the answer quickly.)  Update:  This question has exposed a nuance when using the comma operator.  Just to document this:  a = b, c;    // a is set to the value of b!  a = (b, c);  // a is set to the value of c!   This question was actually inspired by a typo in code.  What was intended to be  a = b; c = d;   Turned into  a = b,    //  <-  Note comma typo! c = d;


rsync --link-dest not working as expected with symlinks

I'm using rsync to backup some of my files:  rsync -aEN --delete --link-dest="$CURR/" "$SOURCE/" "$NEW/"  The --link-dest option works fine with most files, but not with symlinks. When I was writing a clean-up script for old backups, I noticed that unchanged symlinks are not hard-linked, but rather copied.  Now I'm wondering: Is there a way to make rsync hard-link unchanged symlinks as well? And if not: Is it intentional or a bug in rsync?  I'm using rsync version 3.1.1 on Mac OS 10.11.  Edit:  It seems to be a problem in Mac OS X. For some reason HFS+ seems not to support hard-links to symlinks.


I run TeXShop on a MacBook Air. There are some strange problems. When I open a .tex file, TeXShop always typesetting automatically and show me the result .pdf file. The code file doesn't occur. But I just want to edit the source file with extension .tex. Unless I open the .tex file in the menu "open to edit" of TeXShop, I cant see the file I want to edit. Another problem is that I cant set the default size of font displaying in the source window. Thanks for your help.


How to replace form tag id with new id?    <form method="post" action="contactus.aspx" id="ctl01">   replace id="ctl01" with id="validForm"  Update  look like ctl01 id generating by code. by the time we changing id name, 'crl01` is not available yet. How to handle after page loaded?


In the limit as $\epsilon \to \infty$, obtain a three-term asymptotic solution to the roots of the following equation.  $$\epsilon x^3+x^2-2x+1=0$$  What I've done so far  I've assumed $x=O(\epsilon^r)$ as $\epsilon \to \infty$ therefore,  $\epsilon x^3=O(\epsilon^{1+3r})$  $x^2=O(\epsilon^{2r})$  $x=O(\epsilon^{r})$  $1=O(\epsilon^{0})$  I'm not too sure what needs to be done from here. any help would be much appreciated.


Closure counter with 'classic' function doesn't work, but with IIFE it does. Why?

I have two counter realizations seems identical (for me), here is my code:    var fakeCounter = function() {     var i = 0;     return function() {         return i++;     } };  // And  var counter = (function() {     var i = 0;     return function() {         return i++;     } }());  // And here the confusion:  console.log(fakeCounter()()); // 0 console.log(fakeCounter()()); // 0 console.log(fakeCounter()()); // 0  console.log(counter()); // 0 console.log(counter()); // 1 console.log(counter()); // 2     So, the first counter doesn't work, while the second does. And I can't get why, because counter() is equal to fakeCounter()() on my mind. Can someone clarify that?


Hi friends How do I get only the main message here is to show my j44?  error: function (xhr, status, errorThrown) { alert(xhr.responseText); }


My animation keeps rendering the video editor place not the animation area.  If someone could help me that would be great.


Redefinition of pgfplotstableread and inline tables

I had to redefine pgfplotstableread because I use it in standalone files in an extra img/ folder that loads data from a different data/ folder as follows.  \begin{filecontents}{plot.tikz} \documentclass{standalone} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{external}  \begin{document} \tikzsetnextfilename{myplot} \begin{tikzpicture} \begin{axis} \addplot table[row sep=\\] { n err\\ 1E3 1E-5\\ 1E5 1E-9\\ }; \end{axis} \end{tikzpicture} \end{document} \end{filecontents}  \documentclass{article} \usepackage{pgfplots,pgfplotstable} \usetikzlibrary{external} \tikzsetexternalprefix{img/} \tikzexternalize % define table read from image folder \let\OLDpgfplotstableread\pgfplotstableread \renewcommand{\pgfplotstableread}[1]{\OLDpgfplotstableread{img/#1}} \usepackage{standalone} \begin{document} \input{plot.tikz} \end{document}   This apparently screws up my ability to use inline tables in pgfplots as this mwe does not compile. The whole external stuff is not necessary to reproduce the problem but is justification for the redefinition. A real MWE would be  \documentclass{article} \usepackage{pgfplots,pgfplotstable} \let\OLDpgfplotstableread\pgfplotstableread \renewcommand{\pgfplotstableread}[1]{\OLDpgfplotstableread{img/#1}} \begin{document} \begin{tikzpicture} \begin{axis} \addplot table{ n err 1E3 1E-5 1E5 1E-9 }; \end{axis} \end{tikzpicture} \end{document}   Is there any way to have both features enabled at the same time (relative paths and inline tables)?


Strange behaviour involving nested TikZ pics an the to path

I have become quite fond of using TikZ pics, but sometimes I run into some unexpected behaviour.  As far as I know, if you define coordinates like (-A), (-B),... inside a pic and draw the pic later as \pic (yourname) {pictype};, you can access them as (yourname-A), (yourname-B), and so on, which is quite convenient if you want to build a base/scaffolding pic on which you add more stuff in subsequent pics. But sometimes this breaks in unexpected ways:  \documentclass{article}  \usepackage{tikz}  \begin{document}     \tikzset{         brokenbase/.pic={             \node (-A) at (0,0) {};             \draw (-A) to[in=0] (0,0);         },         broken/.pic={             \pic (B) {brokenbase};         },         works/.pic={             \node (-A) at (0,0) {};             \draw (-A) to (0,0);         },         worksbase/.pic={             \pic (B) {worksbase};         }     }     \tikz{\pic {works};}     \tikz{\pic {broken};} \end{document}   I've implemented the same thing twice here: A base pic that draws an empty node and then a to-path from the node to the origin. If I don't give any arguments to the to-path, this works. If I give an in or out argument, it fails with this error: Package pgf Error: No shape named BB-A is known.  I have heard of a similar bug here:  But I don't think my problem is exactly the same since it goes away once you don't give to any options or use a usual -- path.  P.S.: It seems it would make some sense to have "pic inheritance" in an OOP sense. Anyone up to implement that? ;)


Which weapons are bolstered by which skills?

In Payday 2 there is a set of weapons and skills that you can get to improve certain aspects of their usage. What I can not find however is which weapons the skills affect and if there is any overlap. Some of the weapons are easy to tell, like the SMGs. But the rest seem like they could fall into two groups.  The skills break down as such:   Equilibrium - Pistol Gunslinger - Pistol Kilmer - Assault Rifles Leadership - Pistols and All Weapons when Aced Shotgun Impact - Shotgun Shotgun CQB - Shotgun Hard Boiled - Shotgun and All Weapons when Aced Overkill - Shotgun, Saw and All Weapons when Aced Rifleman - Assault Rifles Sharpshooter - Single Shot Weapons and All Rifles when Aced Mag Plus - All Weapons Silent Killer - All Silenced Weapons The Professional - All Silenced Weapons   There are some of these that are obvious. What I am wondering though is about cross over. Are the single shot shotguns considered Single Shot weapons for the 'Unlocking the Sharpshooter' skill? Do pistols that are single shot count as single shot weapons? Is the M308 a single shot weapon only or will it gain the benefits of skills like Kilmer and Rifleman that affect assault rifles?


Is the ar1 coefficient from an AR(1) model the "first order correlation of the noise" of a time series?  I'm using R's aws package and one of the arguments of the aws function allows you to "specify a first order correlation of the noise". Instinctively, I did  arima (foo, c(1, 0, 0))   and used the ar1 coefficient as this correlation value. Plugging it into aws makes the results look more like what I'd expect, so I was quite happy…  Until it struck me that AR coefficients can fall outside of the range [-1, 1], while the correlation cannot. So maybe I just got lucky. Then it struck me that if the ar1 coefficient of an AR(1) model falls outside of [-1, 1], the model's not stationary, so perhaps a well-fitting AR(1) model's ar1 coefficient is essentially restricted to [-1, 1].  But then I thought: just because they share the same range doesn't mean they are the same. I did some searching and didn't find anything saying this is a correlation. I did some simulations and it appears that it is close to a correlation.  Anyone have an authoritative statement on the matter?  I've also looked at arima (foo, c(1, 0, 0), xreg=theDate) to account for a trend. I've thought that if the AR coefficient is a correlation: what if an AR(2) model is a better fit than an AR(1) model -- is the ar1 coefficient still what I'm looking for or do I have to combine it with the ar2 coefficient, or do I still go with the AR(1) model?


Getting Multiple errors when performing update with "apt-get update"

For some reason my ubuntu has become very slow because of apt-daily-upgrade.service taking 45.63s. Main reason being getting a whole list of errors and not being able to update. E: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/docky-core/ppa/ubuntu focal Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://repo.vivaldi.com/stable/deb stable Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9658E8044A3AA3D6 E: The repository 'http://repo.vivaldi.com/stable/deb stable Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.```


I have the following author field in a bibtex file:  author = "Lastname, Theo and Surname, Sam"   In the reference list, when using a style that applies initials, I want it to print:  Th. Lastname and S. Surname   instead of  T. Lastname and S. Surname   Is there any way to do this?


I have a situation where different users have asked questions and I answered them. The problem is not that they haven't accepted the answer which can tell me that it is correct or not. But they are actually not responsive and it seems to me that answer is being ignored. Or they asked the question just for the sake of asking.  See -the user was last seen yesterday, the same day it was answered.  -the user was last seen today.   which is also upvoted by a fellow user, but the OP is seen till days after it was answered and is not even commenting.  I went through a lot of question on meta on similar situation such as  where Anna says that it is completely voluntary for users to accept it.   But then again, I believe it is becoming a fashion, to ask a question read the answer as a suggestion and leave it.  It is discouraging me. I am not saying that my answers or suggestions are 100 percent working but I atleast need be told so I can improve it. And more importantly I am not the only one facing this.  Please advise.  EDIT : Well, I got a lot of suggestions from the answers and comments combined below and I have to say that I agree with what Cody Gray has to say and just keep on answering the questions, the returns(good or bad) may be now,later or never and just move on. However, in my own defence I would also say that I did not raised this question to pin point any user but a bad practice that I find worthy of discussing. Thanks.


I currently trying to join two rigged (and animated) models, which both has separate meshes, separate bones and separate animations. The first mesh is the horse while the second mesh is human:   So I am interested to join human model onto horse model to make a rider:   I think the best way would be to make horse as a parent and human as a child during the join process. In that case I would like that all horse animations (there are 3 of them - idle, walk and run) would remain as they are, while I can lose human animations, as I will need different ones for it. I was also thinking to make human root bone as a child of one horse back bones, that when horse moves up and down it would move entire human mesh together. It would be also good to keep the same weights that human bones would not start deforming horse mesh and vice versa.  I tried to use Ctrl+J by selecting various combinations between bones and meshes in object mode, however, I noticed that it messes up scaling and rotation of the child object. So I was wondering how it would be possible to properly join these models to create a rider?


Use "does" in front of another verb in a question?

What time does sound good to you?     What time sounds good to you?    Is there a difference?


Where can I find out what games have cards?

Which games drop cards?  I've been looking at the .  However, I recently discovered that it's incomplete (eg. Trine 2 and A.R.E.S. now have cards, but aren't listed there).  Obviously I don't expect someone here to maintain an updated list; but, is there anywhere online I can view an updated list of which games have cards?


Can you calculate probability with mean, SD, skewness, and kurtosis

I know that a standard normal distribution has mean 0, sd=1, skewness=0, and kurtosis=0. I can then transform a value and calculate which percentile it sits. 1.96 is in the top 97.5%  Can I perform a similar calculation when the skewness and kurtosis imply the distribution is not normal? ie. skewness=-2.2, kurtosis=3.1  If I were to deal with this data set, should I perform a transformation to try and make it normal, as I would like to predict where a value would fall in an almost normal distribution (ie with mean=0, sd=1, skewness=-2.2, and kurtosis = 3.1).  In short, I have a value of 1.96, will this fall in top 97.5% of the data? Given a value, can I predict where it would sit in the distribution?  Everything I read online explains how to calculate skewness and kurtosis but not find a way of predicting where a value would sit given these factors to consider as well


CTRL+ENTER on a file in Windows 7 Explorer

The .py files are associated to SublimeText on my Windows 7. Thus, when hitting ENTER when the cursor/selection is on a .py file in the Explorer, SublimeText opens it. I want to keep this.  How to make that CTRL+ENTER (or another short shortcut like WIN+ENTER, but no contextual menu) can start the .py file with C:\Python27\python.exe <filename.py>?  Note: if not possible with Explorer, I'm open to use AutoHotKey.


Inequality for Sobolev space $H^s $ where $s > \frac{n}{2}$

I am trying to prove the following inequality Let $s > \frac{n}{2}$ and $f,g \in H^s(\mathbb{R}^n)$ then $$ \Vert f \cdot g \Vert_{H^s}\le C\cdot\Vert f \Vert_{H^s} \Vert g \Vert_{H^s} $$ where $C$ is just some positive constant. I am trying to solve this  using only the definition of the norm $ \Vert \cdots \Vert_{H^s}^2=\int_{\mathbb{R}^n}{(1+\vert y \vert)^s (\hat f(y))^2dy}$ and youngs inequality for convolutions which states that for $\frac{1}{p}+\frac{1}{q}=1+\frac{1}{r}$ $$ \Vert f \ast g \Vert_{L^r}\le \Vert f \Vert_{L^p}\Vert  g \Vert_{L^q} $$ I have checked that $s > \frac{n}{2}$ implies that $f,g$ are continous and vanish at inifinity. Would appreciate any help/hints how to approach this problem


How do I make knife cuts into a mesh *based* on another mesh? (Not boolean)

So I have this (selected plane in edit mode below) plane and I want to cut into it with this mesh (the mesh on top):  The crucial bit is that I'm not looking to use the boolean mod to punch out a shape. I just want the curve of this long, thin piece to be part of the plane's geometry. That way, I can select those faces and adjust the Z location (riverbed). I've tried using the boolean modifiers but have had no luck. Is there a way for me to project this other mesh onto the plane? Thanks for your attention.


Why are class members private and properties public?

In a class we declare class members as private but we define properties as public.  For example:  public class student {     private int StudentId;     private string StudentName;     private string Address; }    and after this we assign using method.  But if we use properties for get set define public like.  public class student {     public int StudentId {get;set;};     public string StudentName{get;set;};     public string Address{get;set;}; }    What is the reason behind this?


In the Bank Heist levels for Bain, you're tasked with robbing a bank. This level is also re-used during Hector's Firestarter mission, where you're tasked with burning all of the Mendoza's money which is currently being stored in the vault.  The Firestarter mission specifically states you should stealth it, but it's seems like common sense that if you're hitting a bank that you don't want the police involved.  How can I pull off a Bank Heist without the cops getting involved?