From what we've been taught at networking lessons, I understand that a VPN (Virtual Private Network) is made to interconnect physically separate networks or computers via the Internet and sort-of emulate a local area network over these computers. I take applications like Hamachi, Tunngle or Evolve (RIP) as the main examples of a VPN.  Yet when I usually see a VPN mentioned, it is in sentences like "get a VPN to become anonymous" or "I am using VPN to hide my real IP address on this server". I fail to understand a) how could a VPN be utilized to connect to the Internet when it is made to interconnect private networks, and b) why is VPN used in such a manner when its purpose is different?  In these examples, people seem to be using a computer in the network as a medium in the transmission, masking the original IP address. Yet this usage matches another device I know - a proxy (Tor coming to my mind as one of the examples). But setting up a whole VPN seems pointless to me when all they need is a proxy server. Is it just me or do people really mix these terms up?

How do these anonymous VPNs work? They say you can browse the web using a different IP address than your own. How does this work?  I understand the Virtual Private Network model, I am just confused on how I browse the web with a different IP?


$$\int^{\infty}_{0}(\prod^{n}_{r=1}\cos\frac{x}{r})\frac{\sin(4x)}{x}dx=\frac{\pi}{2}$$ I highly suspect that the relation is true. How would I go about proving this? I thought it would be induction related but I cannot get anywhere with it as it quickly leads (through parts) to integrating $\frac{\sin x}{x}$

Why do we have, for every $n\in\mathbb N$, $$\int_0^\infty\left(\prod_{k=1}^n \cos\left(\frac{x}{k}\right)\right)\frac{\sin{4x}}{x}dx\approx\frac{\pi}{2}\ ?$$


Trying to get the most out of a low-end HP laptop running windows 10 It runs alright provided I don't open more than 2 intensive programs at once. I've used Ubuntu on it before (dual boot) but did not fully switch over was mostly just trying out different OS. Is there an advantage performance wise?  My  Also, the hard drive is almost 30G but mostly taken up by windows, I use a USB for storage of programs and pictures  And sorry if anything here seems stupid, I'm new to the site

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I need help about this question for my algebra exam. I would be very thankful if someone could help me solve this. I should calculate determinant of this $n \times n$-matrix: $$     \begin{pmatrix}     1 & 9 & \cdots & 9 \\     9 & 2 & \cdots & 9 \\     9 & 9 & \cdots & 9 \\     \vdots & \vdots & \ddots & \vdots \\     9 & 9 & \cdots & n \\     \end{pmatrix} $$ where $n$ is a nonnegative integer.

I'm having troubles solving the following determinant:  $$\left|   \begin{array}{cccc}     a_1 & x & \ldots & x \\    x & a_2 & \ldots & \vdots \\     \vdots & \ldots & \ddots & x \\     x & \ldots & x & a_n \\   \end{array} \right|$$  I have tried coming up with recurrent formula, but there's always one lingering row and column. I also tried finding values of x for which determinant is 0, hoping I could get a nice polynomial solution, with no luck.  By subtracting first row from every other I get somewhat nicer result, but there's still that one row/column which I can't solve. If all other columns are added to the first one and then I subtract the first row, then the column doesn't depend on x anymore, but I haven't found 1..n much more useful.


I'm playing around with HashMaps in Java and I've stumbled upon something that I can't make sense of. I can't seem to find a duplicate of my issue on here either.  I'm trying to create a Map that has a VertexPair key and an Integer value. The VertexPair is simply a container for 2 Vertex objects. When I create 2 VertexPairs that have the same hash code and are equal (verified by .equals()), they do not return the same value from my map.   Here is my code:  HashMap<VertexPair, Integer> edges = new HashMap<VertexPair, Integer>();  Vertex a = new Vertex("A"); Vertex b = new Vertex("B");  VertexPair p = new VertexPair(a, b); VertexPair m = new VertexPair(a, b); VertexPair n = new VertexPair(b, a); VertexPair check = new VertexPair(a, new Vertex("C"));  System.out.println(p.equals(m)); System.out.println(p.equals(n)); System.out.println(m.equals(n)); //just to be sure equals is working System.out.println(p.equals(check));  System.out.println(m.hashCode()); System.out.println(n.hashCode()); System.out.println(p.hashCode()); //just to be sure hashCode is working System.out.println(check.hashCode());  edges.put(p, 10);  System.out.println(edges.get(p)); System.out.println(edges.get(m)); System.out.println(edges.get(n));   And it's output:  true true true false 1757285723 1757285723 1757285723 -425440240 10 null null   Here is the VertexPair class as requested:  public final class VertexPair {      private HashSet<Vertex> set;      public VertexPair(Vertex a, Vertex b) {         if(a==null || b==null)             throw new NullPointerException("Vertexes must not be null");         set = new HashSet<Vertex>();         set.add(a);         set.add(b);     }      public HashSet<Vertex> getVertexes() {         return set;     }             @Override     public int hashCode() {         return set.hashCode();     }      public boolean equals(VertexPair p) {         if(!(p instanceof VertexPair))             return false;         if(p==this)             return true;         return set.equals(p.getVertexes());      }   }   Can someone please explain to me what's going on? I must be misunderstanding something crucial about HashMaps. Thanks in advance :)

I ran into an interesting behavior recently.  It seems that if I override .equals() to take a parameter other than Object, it doesn't get called.  Can anyone explain to me why this is happening?  It seems to violate my understanding of polymorphism in OOP, but maybe I'm missing something.  Here's much simpler code that shows what I'm seeing:  public class MyClass {   private int x;   public MyClass(int n) { x = n; }   public boolean equals(Object o) { return false; }   public boolean equals(MyClass mc) { return x == mc.x; }   public static void main(String[] args) {     List<MyClass> list = new ArrayList<MyClass>();     list.add(new MyClass(3));     System.out.println("Contains 3? " + list.contains(new MyClass(3)));   } }   When this is run, it prints "Contains 3? false".  It looks like the equals(Object) function is called, even though there is another that would work.  By contrast, if I write equals like this the code works as expected:  public boolean equals(Object o) {   if(!(o instanceof MyClass))     return false;   MyClass mc = (MyClass)o;   return x == mc.x; }   Why isn't it figuring out which version of the function to call based on the type of the parameter?


I'm using Ubuntu 15.04.  I'd like to have f1-12 work like f1-12 without holding fn, rather than volume and brightness.  Does anyone know how to do this?

everyone!  I had to change keyboards at work and they gave me a mac keyboard that wasn't in use. I configured most of it to the point where I can use it, but I noticed that I need to press the fn key to activate the Functions F1~F19 and I was wondering if there is anyway I could flip that.  So what I want to do is have the Function keys as default, and need to hit fn whenever I want the other function of the key, such as Volume Up or Eject Disc


To perform an integration by parts, we compare an integration with $$\int u dv=uv-\int v du$$ trying to guess the best fitting for $u$ and $dv$, followed by derivative of $u$ to find $du$; and integration of $dv$ to find $v$. At that last step, we despise a constant which, at a regular infinitive integration process, it wouldn't be despised. My question is: why we do that? I know if we don't despise it, $uv$ can assume an undefined constant times variable value, but I'm looking for a conceptual justification.

After finishing a first calculus course, I know how to integrate by parts, for example, $\int x \ln x dx$, letting $u = \ln x$, $dv = x dx$: $$\int x \ln x dx = \frac{x^2}{2} \ln x - \int \frac{x^2}{2x} dx.$$  However, what I could not figure out is why we assume from $dv = x dx$ that $v = \frac{x^2}{2}$, when it could be $v = \frac{x^2}{2} + C$ for any constant $C$. The second integral would be quite different, and not only by a constant, so I would like to understand why we "forget" this constant of integration.  Thanks.


i have qmobile a700 whenever i download new thing an error occurred insufficient space and i have all the data to sd card but still i get the same error if anyone know how to fix this then plz help me out I have tried many other ways but still the problem persist and the app-lib method that one was out of my understanding   .. i'll be waiting for your positive response thanks in advance :)

Currently, my internal storage is running low on space.    What can I do besides moving applications to the external memory, as to free up more space, but preserve my current applications and avoid uninstalling?  (Some of them won't be moved)


Is there any difference between "fall into/fall within/fall under several categories"?

As far as I know, when a group of people or things with particular features in common are classified we can use "fall into a category". But quite recently I came across the following sentence in a linguistics book published by Hodder Education:     Notice that these examples fall under well-established categories of acceptable, standard English.   There is no record of "fall under a category" in none of my learner's dictionaries. Instead, they all say "fall into a category". For example:        "Voters fall into three main categories."   "Students over 25 fall into a different category."     So, is "fall into" different from "fall under" when we talk about categories?


I have a Laravel PHP webapp that shows analytics data in Angular frontend to users. User can only show content, plots and tables. I have written 3 laravel commands that hourly download and store data into mysql db. The main components in the server are:  The API written in PHP with Laravel framework. The angular frontend. The nginx web server that serve API and Frontend. The mysql DB that is used to store and retrieve data.  The application is online and works good with default php-cli/php-fpm, nginx, mysql configuration without any tune for current user load (10 user per minute). I expecting a great user flow for a particular event next week, so I decided to increase server resources from 8GB RAM and 4 core to 32GB RAM with 8 core on SSD. I'm quite new in server and db administration, I read that each component (php, mysql and nginx) have configurations that allows an amount of memory or a number of child process to be run. How can I adjust configuration properties to use my server resources at best? Thanks in advance!

This is a  about capacity planning for databases. Related:      I'm looking to create a canonical question of tools and methods of capacity planning for databases. This is intended to be a canonical question. Obviously, the general workflow is:  Put your scenario in place Add monitoring Add traffic Evaluate results Remediate based on results Rinse, repeat until reasonably happy  Please feel free to describe different tools and techniques for different web-servers, frameworks, etc., as well as best-practices.


Can I create a whitelist of commands that a standard user can execute in the terminal in Ubuntu 12.04 desktop?  I don't want to block the terminal for the standard user.

I am working on a small project. I have about 20 computers with Ubuntu 10.04 on them, which will be used in a computer lab for elementary, middle, high school and college kids. Some seniors and new computer-users will be using the computers.  I want to lock-down the computers for so children and people who want to play around with PC configuration can use them securely and without breaking them.  I therefore want to restrict user privileges, removing the ability to upgrade, add/install software or otherwise personalize the lab's computers.  The only uses for these computers should be:    access to school websites for access of e-text books (homework assignments)  access to learning-aid websites(such as www.math.com or webster.com)  access/restrictions to applications that are safe and appropriate for the elementary students.  For more senior users only, access to websites for completing applications for re-certifications of say food stamps, medicaid and so on.   Are there any software packages that will let me do this?


I am have trouble with Ubuntu's install disk. I have put  together a new pc, low cost and not too powerful but it should run Ubuntu 14.04. It currently has no OS. My problem is, when I put in the cd with Ubuntu, it show the try/install menu, but won't show any further. When go to the "try it" option , the monitor becomes black for a couple minutes without any result. please, can someone explain me why?

I'm new in this forum.  I know, that this is an old problem and I have been reading other questions regarding this. However, I've been unable to find the solution.   I've been trying to install Ubuntu 14.04 on my Asus Vivobook F200MA machine from USB, but the screen goes black, if I choose any of the options. It is a new machine, with only freedos on it.   If I follow the instructions on     it still doesn't work.   SATA is set to AHCI, Secure Boot is disabled, CSM is enabled.   Do you have any ideas, how I could install it?   Edit:   I have tried:   checking the usb for errors (no errors), verified the integrity (alright),  disabled the secure boot enabled csm set SATA to AHCI from the menu (try without installing, install and check for defects) because the screen goes black.


I'm reading the Google SEO starter guide and on page 11 it says you should prepare a site for users and one for search engines in XML.  My site is about vehicles, and vehicle is not in a separate folder. It gets loaded dynamically with GET and PHP – so can Google crawl this if it's "not really there"?   The pages are there under ?GET variables like home.com/seevehicles?2009-camar so am I doing it wrong or can Google also crawl this?

I have a very stupid question. I developed a website that has only one page at the public html directory(index.php).  all content are dynamically loaded as different pages.   How can i SEO my pages for google?  i mean like the what we type in this site are .............i believe stored in database and search engine find these pages like any static pages...  Just a little tip would be appreciable.......!


What is the best offer for a pre-paid SIM card with big data? I don't need to make a voice calls or send SMS. I'll need it for two weeks only.  I'm going to Toronto and then I want to visit PEI (via Quebec, Montreal).

Next month I am traveling to country X, where I would need Y minutes of calls, Z text messages and most importantly Q megabytes of data. How can I find the cheapest/most reliable SIM card for my needs?


The synopsis I remember is: there is a job recruiter (I believe) that is able to identify an alien that looks like a human and after talking with the alien for a bit the alien heads out to perfect his mannerisms and such and comes back a while later (a few months?) and is recognized again

I'm looking for a story where a guy who has done job interviews for years is approached by an applicant, and because of his experience talking to people (I remember he specifically mentions having done something like 250,000 interviews), he immediately is able to tell the applicant is actually an alien in human form.  He goes on to help the alien understand human emotions & teaches him how to fit in.


We know that when a curse hits an object, it bounces off/lights it on fire/makes it explode.  Another jet of green light flew from behind the silver shield. This time it was the one-armed  centaur, galloping in front of Dumbledore, that took the blast and shattered into a hundred pieces  However, we see spells being cast through the invisibility cloak:  Sturgis had Moody’s Invisibility Cloak, right? So, what if he was standing guard by the door, invisible, and Malfoy heard him move - or guessed someone was there - or just did the Imperius Curse on the off-chance there’d be a guard there?   “Petrificus Totalus!”  Without warning, Malfoy pointed his wand at Harry, who was instantly paralyzed. As though in  slow motion, he toppled out of the luggage rack and fell, with an agonizing, floor-shaking crash, at  Malfoy’s feet, the Invisibility Cloak trapped beneath him   He immobilized me, I couldn’t do anything, I  was under the Invisibility Cloak  We also see Harry cast spells through the invisibility cloak:  Harry raised the hawthorn wand beneath the cloak, pointed it at the old goblin, and whispered, for the first time in his life, “Imperio!”   Hidden beneath the Invisibility Cloak, Harry cast a Shield Charm between Neville and Voldemort before the latter could raise his wand.  So why do the curses pass through the invisibility cloak? Even Xenophilius Lovegood explains how powerful the cloak is:  “Ah, but the Third Hallows is true Cloak of Invisibility, Miss Granger! I mean to say, it is not a traveling cloak imbued with a Disillusionment Charm, or carrying a Bedazzling Hex or else woven from Demiguise hair, which will hide one initially but fade with the years until it turns opaque. We are talking about a cloak that really and truly renders the wearer completely invisible, and endures eternally, giving constant and impenetrable concealment, no matter what spells are cast at it. How many cloaks have you ever seen like that, Miss Granger?”  Although he's talking about the cloak's strong concealment, we can still understand how powerful the cloak is, and that it has the ability to block spells. So why don't we see the cloak acting like that?

In Harry Potter and the Half-Blood Prince, after Harry eavesdropped on Malfoy on the Hogwarts Express, Malfoy cast Petrificus Totalus on Harry while Harry was wearing his Invisibility Cloak.   How did the spell work, when Deathly Hallows tells us that no spell used against the Invisibility Cloak will work? (Harry's cloak was not an ordinary cloak and was a gift by Death, himself, to his ancestors, passed down to him)  To prove my point, sometime later in Deathly Hallows, one of the Death Eaters tried to Accio the cloak to find Harry, which didn't work.  So this contradicts J.K. Rowling theory.     Ah, but the Third Hallows is true Cloak of Invisibility, Miss   Granger! I mean to say, it is not a traveling cloak imbued with   a Disillusionment Charm, or carrying a Bedazzling Hex or else   woven from Demiguise hair, which will hide one initially but fade   with the years until it turns opaque. We are talking about a cloak   that really and truly renders the wearer completely invisible, and   endures eternally, giving constant and impenetrable concealment,   no matter what spells are cast at it. How many cloaks have you   ever seen like that, Miss Granger?


Is it possible in some way to stop or terminate  in a way that it prevents any further JavaScript-based execution from occuring, without reloading the browser?  I am thinking of a JavaScript equivalent of exit() in PHP.

How can I exit the JavaScript script much like PHP's exit or die? I know it's not the best programming practice but I need to.


Just for practice purpose I write a generic template class which do sorts for a given comparison function.  #include <vector> #include <iostream> #include <fstream> #include "Student.h" using namespace std; template <class T, class F> class myVec { public:     myVec(vector<T> a);     void sort();  private:     vector<T> w;     int size; }; template<class T, class F> myVec<T,F>::myVec(vector<T> a){     w = a;     size = a.size(); }   template<class T, class F> void myVec<T,F>::sort(){     for(int i=0; i<size; i++){         for(int j=i+1; j<size; j++){             if(F(w.get(i), w.get(j))>0){                 iter_swap(w.begin()+i-1, w.begin()+j-1);             }         }     } }     int cmpStudent(Student stu1, Student stu2){     int score1 = stu1.getScore();     int score2 = stu2.getScore();     if(score1 == score2) return 0;     if(score1<score2) return -1;     return 1; }  int main(){     typedef int(*fn)(Student, Student);     vector<Student> students;     string fileName = "mydata.data";     ifstream ifs;     ifs.open(fileName.c_str());     string name;     int score;     while(ifs>>name>>score){         Student student(name,score);         students.insert(students.end(), student);     }     myVec<Student, fn> myvec(students);   }   IT works well.  But if I put myVec as a header file and myVec.cpp. include "myVec.h", then the compiler report error on   myVec<Student, fn> myvec(students);   IT bothers me for a long time, why it works when I put all the materials in main

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I have an old Ubuntu version 11.04. Version is obsolète. I want to upgrade directly to 13.04 version using my terminal. How can I do it ?  thx in advance Anis

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


How to evaluate $\lim_{n \to \infty} \frac1n \sum_{r=1}^n r^{\frac1r}$?    I've tried finding it, and I know that without the $\frac1n$ factor, the sequence has the limit $n$. What about the series? Will it be 1, then? How to show?

I have a problem with the calculation of the following limit. \begin{equation} \lim_{n\rightarrow \infty} \frac{1+\sqrt{2}+\sqrt[3]{3}+\cdots+\sqrt[n]{n}}{n} \end{equation} I do not know where to start! Thank you very much


We are in the combat phase:   I declared my attackers  My opponent declared his blockers, stating which attackers he was blocking I cast an instant, which automatically kills his blocker. There is nothing blocking my attacker now   Now we're in the damage phase. I said that my attacker now does damage and  reduces my opponent's hit points. My opponent said that because my attacker was blocked no damage could be done. I pointed out that the blocker was destroyed before the damage phase, so therefore he wasn't blocking, but he wasn't having it. (My attacker does not have trample)  Is this covered by a specific section in the rules?

Suppose Player 1 has a Dragon on the table and  in hand, while Player 2 has two Spiders on the table.  Player 1 chooses to attack with the Dragon and Player 2 chooses to block with one of the Spiders.  Before combat damage is to be dealt, Player 1 uses Unsummon on the blocking Spider.    Does Player 2 take any life damage from the attacking Dragon?


I always feel confused about the concept of wave. I don't know why we have to develop a term called "wave"? To me, wave made of particles oscillating up and down periodically.  Is wave just a collection of particles or is wave an identity independent of particles?  For example:  A Wave on a string is a collection of string particles  A Sea wave is a collection moving water molecules  A Light wave is a collection of photons  But,then why does the light still travels in a straight path?If light is a wave then,it should move up and down ?  Note:I am a high school student and English is my second language.

At the end of this nice video (), she says that  is a chain reaction of electric and magnetic fields creating each other so the chain of wave moves forward.  I wonder where the  is in this explanation. What is the relation between electromagnetic wave and photon?


I just bought a Ryanair plane ticket except that I did not see the QR code on the boarding pass, is that normal? the message is : this is not a boarding card go to check-in for visa check and boarding card

I just bought a Ryanair plane ticket except that I did not see the QR code on the boarding pass, is that normal? the message is "". thank you.


Every time I try to update my system I get the message All packages are up to date. I think something goes wrong during the upgrade from 20.04 to 20.10. My process to verify updates is: sudo apt update and sudo apt upgrade. But in the first step I don't reach the updates. This is my sources file /etc/apt/sources.list deb http://sft.if.usp.br/ubuntu/ groovy main universe restricted multiverse deb-src http://sft.if.usp.br/ubuntu/ groovy main universe restricted multiverse  deb http://sft.if.usp.br/ubuntu/ groovy-security main universe restricted multiverse deb-src http://sft.if.usp.br/ubuntu/ groovy-security main universe restricted multiverse  deb http://sft.if.usp.br/ubuntu/ groovy-updates main universe restricted multiverse deb-src http://sft.if.usp.br/ubuntu/ groovy-updates main universe restricted multiverse

Using Ubuntu, I have a habit of running: sudo apt update sudo apt upgrade   on every startup. But for a month, I guess, there have been no updates whatsoever. The message shows: All packages are up to date  Now I am starting to worry. Can there be a fault in my update manager? As far as I know, I've made no changes to the package manager settings. But no updates for almost a month seems kind of weird. Any feedback would be helpful. Thanks.


After studying about the 'Back' button, I still can't decide on which best suited my case. I am designing an internal portal where the content varies in width.  Button position: A.1  Right side seems like a more common location for the buttons. In other pages, where there is the 'Back' and 'Next' button, it makes more sense that the next button is on the right side of the page.  A.2  left side is good since the location of the button would stay regardless of width size of content.   Style: B.1  I also saw some platform that replaced their back button at the bottom with an arrow beside the page title.

Our main goal is, to keep the ability to go back SOMEWHERE but we don’t want it to be too prominent. Where should we put that button?  This is the link to the live page where this button called 'Ürün listesine geri dön'


If the integral of a derivative of a function produces the original function (within a constant), why are integrals referred to as anti derivatives rather than inverse derivatives?

Integration is supposed to be the inverse of differentiation, but the integral of the derivative is not equal to the derivative of the integral:     $$\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int f(x)\mathrm{d}x\right) = f(x) \neq \int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}f(x)\right)\mathrm{d}x$$   For instance: $$\begin{align*} &\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int 2x+1\;\mathrm{d}x\right) &&= \dfrac{\mathrm{d}}{\mathrm{d}x}\left(x^2+x+C\right) &= 2x+1\\ &\int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}\left(2x+1\right)\right)\mathrm{d}x &&= \int 2\;\mathrm{d}x &= 2x+C\end{align*}$$  Why isn't it defined such that $\dfrac{\mathrm{d}}{\mathrm{d}x}a = \dfrac{\mathrm{d}a}{\mathrm{d}x}$, where $a$ is a constant, and $\int f(x)\;\mathrm{d}x = F(x)$? Then we would have: $$\begin{align*} &\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int 2x+1\;\mathrm{d}x\right) &&= \dfrac{\mathrm{d}}{\mathrm{d}x}\left(x^2+x\right) &= 2x+1\\ &\int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}\left(2x+1\right)\right)\mathrm{d}x &&= \int \left(2+\dfrac{\mathrm{d1}}{\mathrm{d}x}\right)\;\mathrm{d}x &= 2x+1\end{align*}$$  Then we would have:     $$\dfrac{\mathrm{d}}{\mathrm{d}x}\left(\int f(x)\mathrm{d}x\right) = f(x) = \int\left(\dfrac{\mathrm{d}}{\mathrm{d}x}f(x)\right)\mathrm{d}x$$   So what is wrong with my thinking, and why isn't this the used definition?


I'm trying to include a function in my terminal program (in python) that does the following:  Takes a command - checks if it actually is a command - if it is, run it - if it's not, treat it as function.    Like so;  else:     try:         print("Navigating...")         (input)()   as in, it would then try to go to def (input):  How can I get this to work?

What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this.


Sorry for asking but I strugle really hard to uninstall this thing, I watched this topic  and other one but this isn't working for me let me explain you.  I Remove all kali linux repositories  I run : sudo apt-get update sudo apt-get install -f sudo apt-get autoremove  sudo rm /usr/bin/katoolin  gksu gedit /etc/*release   but in here I have the lsb_release that I have changed to Ubuntu but I have an os-release file with Kali Linux info on it. I changed it too Then I tried like in the tutorial to put sudo apt-get install --reinstall software-center but I have an error Package software-center has no instalation candidate. I tried to fix it with the gnome-terminal thins but didnt workout guys please me please, thanx you PS:I just found that  look at the bottom of the page, the cheitan guy, I have an os-release file with Kali Linux on it, should I need to reinstall my Ubuntu OS ?

Updated Ubuntu 16.04 today using the software updater. Now my PC is running Kali? There were something like 2Gb of updates, which I thought at first was because I haven't updated in a while. Now I'm thinking that it was downloading Kali. Here's a  of the new boot-up process.  The screen will continue to flicker for another 30 seconds or so, then stop flickering leaving the text on the screen. I tried switching the display manager from gdm to lightdm, which will boot me straight to the console and without flickering, but still no desktop.  I'm not altogether sure how I managed to accomplish this. It must have been when I was trying to get Katoolin running.  Any tips as to how I can either get the desktop or revert the updates?  Contents of cat /etc/lsb-rolling:  DISTRIB_ID=Kali DISTRIB_RELEASE=kali-rolling DISTRIB_CODENAME=kali-rolling DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"


Where $(,)$ is the greater common divisor and $[,]$ the smallest common multiple.  In general how do you solve this kind of problems?

These two exercises I encountered recently seem to develop some type of connection between GCD and LCM I can't quite figure out. Exercise 1:  Find all the numbers $x$ and $y$ such that: $a) \ GCD(x,y)=15, \ LCM(x,y)=150$ $b) \ GCD(x,y)=120 \ LCM(x,y)=1320$ $c) \ GCD(x,y)=100 \ LCM(x,y)=990$  Exercise 2:   Find all the numbers $m,n$ such that $GCD(m,n)=pq , \ LCM(m,n)=p^2qs$  where $p,q,s$ are prime  The first thing that is known to me is that $GCD(x,y) \cdot LCM(x,y)= x \cdot y$ Also $LCM(x,y)$ is at most $x \cdot y$ while $GCD(x,y)$ is at most $\max \{x,y\}$. Last thing is that $GCD(x,y)|LCM(x,y)$. Using all this I tried to solve the first exercise: $a)$ First two obvious pairs are $x=15, y=150$ and $y=15, x=150$. Now neither of the numbers can be bigger than $150$ or smaller than $15$. So we are looking for numbers in the range $15-150$ that satisfy $x \cdot y = 15 \cdot 150$ Another such pair is $(x,y)=(30,75), \ (x,y)=(75,30)$. Similarly for $b)$ we find that the only possible values are permutations of the set {$120,1320$} and in $c)$ since $100$ does not divide $990$ no such numbers exist. Now exercise 2 is what made me think there is actually another connection I'm not quite aware of since now it's about arbitrary prime numbers and the previous method doesn't work anymore. My intuition is that it has something to do with $GCD$ or $LCM$ of the $GCD(x,y), \ LCM(x,y)$


I want to perform the following command in command line :   $ md5sum $(find . -type f)   But this would cause problems when it encounter files with spaces in filenames :   md5sum: Kaufmann: No such file or directory md5sum: Mobile: No such file or directory md5sum: 3D: No such file or directory md5sum: Graphics: No such file or directory

I'm working on some scripting:  for x in `find ./ -name *.pdf` do   echo pathname $x done   My filenames are Test1 ( Volume II), Test2 ( Volume II). I'm getting a return of  pathname Test1 pathname ( pathname Volume pathname II …   How do I get it to stay as one variable?


I'm using SQL Server 2012. I have a stored procedure that outputs 2 tables. I need to insert those 2 result set in two separate temp tables. I am using   INSERT INTO #TempTable EXEC [dbo].[SomeSP]   but it only catch the first table.  Is there anyone knows how to do it? Thanks in advance.

How do I do a SELECT * INTO [temp table] FROM [stored procedure]? Not FROM [Table] and without defining [temp table]?  Select all data from BusinessLine into tmpBusLine works fine.  select * into tmpBusLine from BusinessLine   I am trying the same, but using a stored procedure that returns data, is not quite the same.  select * into tmpBusLine from exec getBusinessLineHistory '16 Mar 2009'   Output message:     Msg 156, Level 15, State 1, Line 2   Incorrect syntax near the keyword   'exec'.   I have read several examples of creating a temporary table with the same structure as the output stored procedure, which works fine, but it would be nice to not supply any columns.


I have a driver license issued in my country (Egypt), can I use it in California? I'm staying with a J-1 visa. My name is written in English but the expiration date is in Arabic numerals.

I'm planning to attend a Californian university as a visiting scholar (not paid by the university) on a J-1 visa, for a total of four weeks; a colleague of mine will do the same, but for 12 weeks. I've been told (personally, ie. no citable sources) that, if you're staying on a J-1, you're effectively a California resident for the time you're there, and, therefore, need a Californian driver's license.  I've read up on this and found  that states:     If you are a visitor in California over 18 and have a valid driver   license from your home state or country, you may drive in this state   without getting a California driver license as long as your home state   license remains valid.      If you become a California resident, you must get a California driver   license within 10 days. Residency is established by voting in a   California election, paying resident tuition, filing for a homeowner's   property tax exemption, or any other privilege or benefit not   ordinarily extended to nonresidents.   I'm not planning to vote in any elections, nor will I own a home there, but I'm not sure what would constitute "privileges or benefits not ordinarily extended to nonresidents".  Do we need to get driver's licenses in California, or can we use our foreign licenses? How about day trips to Arizona or Nevada?  Note: this seems to be related to , but my question is specifically about staying there on a J-1.


So my friend is trying to make a plane out of a cylinder and we decided to make it smooth but ends up a mess...     anyone knows how to fix this issue? :(

My problem is simple. I think that the strange deformations on the top are there because there are so many vertices in one face. How do I fix this while maintaining nice topology?  Although I triangulated the top polygon, the problem still persists.


For example : When click on the aaa button,  'bbb' button is inserted but later when click on the bbb button i dont have allert. Why ?  <button id="aaaa">aaaa</button>

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.


Since I can't have multiple base classes, I am looking forward to pass a base class as a type. Is it possible in c#?  Example:  public class MyClass : Base1<Base2> {}  public class Base1<TBase> : TBase  {     m1(); }  public class Base2 {     m2(); }   This way I can access m1() and m2() from MyClass  Thanks in advance.

Since multiple inheritance is bad (it makes the source more complicated) C# does not provide such a pattern directly. But sometimes it would be helpful to have this ability. For instance I'm able to implement the missing multiple inheritance pattern using interfaces and three classes like that: public interface IFirst { void FirstMethod(); } public interface ISecond { void SecondMethod(); }  public class First:IFirst  {      public void FirstMethod() { Console.WriteLine("First"); }  }  public class Second:ISecond  {      public void SecondMethod() { Console.WriteLine("Second"); }  }  public class FirstAndSecond: IFirst, ISecond {     First first = new First();     Second second = new Second();     public void FirstMethod() { first.FirstMethod(); }     public void SecondMethod() { second.SecondMethod(); } }  Every time I add a method to one of the interfaces I need to change the class FirstAndSecond as well. Is there a way to inject multiple existing classes into one new class like it is possible in C++? Maybe there is a solution using some kind of code generation? Or it may look like this (imaginary c# syntax): public class FirstAndSecond: IFirst from First, ISecond from Second { }  So that there won't be a need to update the class FirstAndSecond when I modify one of the interfaces.  EDIT Maybe it would be better to consider a practical example: You have an existing class (e.g. a text based TCP client based on ITextTcpClient) which you do already use at different locations inside your project.  Now you feel the need to create a component of your class to be easy accessible for windows forms developers. As far as I know you currently have two ways to do this:  Write a new class that is inherited from components and implements the interface of the TextTcpClient class using an instance of the class itself as shown with FirstAndSecond.  Write a new class that inherits from TextTcpClient and somehow implements IComponent (haven't actually tried this yet).   In both cases you need to do work per method and not per class. Since you know that we will need all the methods of TextTcpClient and Component it would be the easiest solution to just combine those two into one class. To avoid conflicts this may be done by code generation where the result could be altered afterwards but typing this by hand is a pure pain in the ass.


I have a php website hosted on IIS. App pool idle timeout is set to 0. Recycling is set to 3am daily.    After some time of inactivity (0 users on the website) First hit is very slow. (10-15 secods) vs normal 2 seconds.  I looked at the network tab in chrome and it shows that it spends most of the time on "Content Download" of js and css files (~500-600kb)  So, I'm wondering if there's a problem with static files, but not sure.

I'm hosting a low-traffic ASP.NET MVC 5 application on a VPS with Windows Server 2012 R2 / IIS 8.5, with 1 GB of RAM.  My problem is that the first request after some time without any requests always gets a slow response - around 1.5 seconds according to Chrome Dev Tools. Subsequent refresh requests/responses only take about 45 ms.  I already did set Start Mode to AlwaysRunning on the application pool, and Preload Enabled to True on the website level, but it had absolutely no effect. Even if there are no changes/uploads whatsoever, after some time passes, with the next request it takes 1.5 s to get a response.


I have a set of maps I am creating with Data Driven Pages. Each map has a scale and rotation set by the feature class that is driving the map creation.  I would like to create a polygon that is the extent of each page that is created - not the polygon from the DDP index feature class. Is this possible?  I am playing around with the Fishnet, as my page size is the same, but not sure I can put the rotation into that.

I need to label the four corners of a dataframe as shown in the image. Can this be done with dynamic text scripts?


I am finding it hard to turn off the hotspots on the desktop (Ubuntu 18.04.2) at the top left corner that shows up with a miniature version of the windows I have available to switch to. The stuff I can think to search for like "activities hotspot ubuntu" are all too generic to get me there.  I checked gnome-shell extensions in Firefox, but I didn't see anything obviously it and am not very familiar with the interface yet. Does anyone know what to call this feature? I just want to turn it off because it false triggers all the time when I hit close buttons on a maximized application, and having two monitors makes this happen as well when on a second monitor that shows no floating taskbar.  Where are such configurations stored in the latest version?

How can I disable the hot corner /Activities corner using the Terminal?  I know I can use the Tweak Tool, as mentioned , but I am writing a little bash script to reconfigure my Ubuntu Gnome quickly to my needs so I would like to use e.g. gsettings for that.


Let's say a person doesn't fully know person and they "know" that person for a long time now, but you only know basic stuff about them, like what their likes, dislikes, but never fully dwelled deeper than that. You never knew how they came to be the person they became today or who they were when they were young, or what experiences shaped them to become the person they are today. I'm trying to write a song that has that special meaning to the person I'm describing.

In English there is only one word for grade of friendship: friends. All of you agree that friends are different: with some of them you just drank beer few times, other you know for many years and you build strong bonds to them. There should be different words for that!  In Russian there are three words for different grades of friendship:   You met few times. You meet regularly, spend time, but don't have strong bonds. You are important to each other, bonds are strong. (Usually people have 1-10 friends of that sort)   So I am interested, are there commonly used words to denote different gradations of friendship in English?


I have an USB mouse and keyboard, both of which have a cable 1.8m long. However for my purposes this is too short.  I read that USB standard limits the length of a cable to 5 meters for high speed devices and 3 meters for low speed devices. I guess that both mouse and keyboard belong into the low speed ones.  I measured that I need 1.2 more meters. However there are no 1.2m USB cables available in the shops I have access to, only 1m or 1.8m.  When I buy the 1.8m USB cable, will it work? Or do I have to look for active USB extenders with own power supply?    And What about the standard USB hubs? What if I connect both mouse and keyboard to an hub and that one will be connected to the extending USB cable, will it extend the range at least a bit?

I'm planning to use USB port for an application(from a device to a PC) but the distance between the device and the PC will be around 15m. The recommended maximum USB cable length is 5m.  How can I buffer the data without loosing any information, safely? Would a USB hub work?


In , it shows that there are 2 users with reputation greater then 2000 while in reality there is only one:      It seems that it is also wrong for 200+ rep: showing 22 users where  there are only 13.  I checked the accepted answer for the question  but it didn't explain the case of a less-then-90-days beta proposal? The other answer do, but letting the explanation why wrong open.

Taking Biology as an example, :     Every site needs a solid group of core users to assist in moderating   the site. We recommend:         150 users with 200+ rep (on pace for 83 users  at 90 days)   10 users with 2,000+ rep (on pace for 2 users at 90 days)   5 users with 3,000+ rep (on pace for 0 users at 90 days)      At the current time, there are   70 users with 200 rep or more 2 users with 2000 rep or more   See  (36 per page)  So assuming that the projected extra thirteen 200 rep users are the next thirteen closest, the Area 51 projections say that the thirteenth user is expected get 44 reputation points, that is, 22% more than they have currently in the next 17 days.  Yet this doesn't seem to be the same logic as applied to the next category. Four users are within 170 reputation points (8.5% more) and some are only 22 reputation points (1.1%) away from crossing the threshold. Surely they are more likely to do this in the next seventeen days than the 200 reputation points users (I am sure their reputation per day is higher too) so why don't these users show up in the on pace stats?  Could the projections be broken for the middle category?  Similarly for the third category, a user is 66 reputation points (2.2%) away from the 3000 mark yet doesn't show up in that bracket. Surely they should be doing at this point?  I also think it's unlikely to be a caching problem as some of the 2k users haven't gained reputation points over the last couple of days but are still within striking distance.


They're obviously not opposed to messing with other races but do they place limits on their interference and/or interactions?  We have witnessed Q (John de Lancie) change or alter many things for his amusement, but he only goes so far and usually puts things back as they were when he gets bored or done with whatever he's up to. I have never seen them 'advance' a civilisation, though Q has saved one or two.  Do they have a rule for this?

Are there any rulesets or laws for Q or Q continuum? Anything, that would prevent them from doing... anything? Or at least limit them from doing something really bad?  In "" episode Q explains to  that they can do, have, get, become anything they want or appear anywhere they want, with just a snap of fingers. If that is true and if there are absolutely no borders or limits, they can't pass, then how can universe work in general? Or, how did it manage to exist so far?  I mean -- any Q could wipe out Borg, entire human population or even entire universe... with just a snap of fingers. What could prevent Q from doing that?


I have a table that looks like this..Just two column..Date and Profit:  Date--------------Profit  24 - March------25.00  24 - March------19.85  25 - March------5.25  26 - March------6.36  26 - March------10.18  26 - March------35.63     I basically want to calculate and display the average daily profit in one cell. Can someone help me. Please keep in mind that when i enter in new dates such as 27 - march and it's profit, it should update the average daily profit cell.  Thanks a lot

I have a table that has just two columns, Date and Profit:  Date            Profit 24 - March      25.00 24 - March      19.85 25 - March      5.25 26 - March      6.36 26 - March      10.18 26 - March      35.63   I want to calculate and display the average daily profit in one cell.  Please keep in mind that when I enter data for new dates such as 27 - March and it's profit, it should update the average daily profit cell.  Some days I do not make any sale; for example, if I make sales and profit for march 24, march 25 and march 27, I did not make a sale on March 26, I want it to calculate it regardless of me making a sale on a date or not. Meaning in a month that has 31 days, it should divide by 31 regardless on whether I made a sale on a specific date or not. Would that be possible?


Prove series $$\sum\limits_{n=2}^{\infty}\frac{1}{n\ln n}$$ doesn't converge without integral test. I really don't know any hint for $\ln n$. So I understand I have to show $$\frac{1}{n\ln n} > \frac{1}{x^b}$$ where $b<1$. But I really don't know how

If I have $\sum_{n=2}^{\infty} \frac {1}{n\log n}$ and want to prove that it diverges, can I use following?  $$\frac {1}{n\log n} \lt \frac {1}{n}$$   $\sum_{n=1}^\infty \frac 1 n$ diverges, but the limit of $\frac 1 n$ equals to zero so the comparasion I think isn't useful. Or can I say it diverges because $\sum_{n=1}^\infty \frac 1{\log n}$ also diverges?   And If I have $\sum_{n=2}^\infty \frac {(-1)^n}{(n)}$ I can use the Leibniz rule. $\sum_{n=1}^\infty \frac 1 n$ diverges, but the limit of it equals to zero, so I am confused if this series diverges/converges again. I understand that $\sum_{n=1}^\infty \frac 1 n$ has an infinite sum, but what to do in this case?


After upgrading to 11.10, the behavior of applications switcher (Alt + Tab) has changed. Now it displays applications across all workspaces. I have a lot of windows opened when working. I'm grouping opened applications to separate sets which are placed on different workspaces. This is how I found myself be more productive. But now it became totally time consuming, if I need click "tab" button more than 10 times while I reach some app.  How can I force the windows switcher to display only applications from current workspace?

I am looking for a clean and fast method to force GNOME in Ubuntu 14.04 to switch between active apps only on the current workspace when pressing the shortcut alt + tab.


I have tries a bunch of methods using the nodes and various node configurations as explained in a number of other how-tos and tutorials, and every result is the same, no transparency. The alpha layer of my image is either solid black, or solid white, not transparent.  How to I creat a material using nodes with the Cycles Render using a texture image (.png file) which a center area that is transparent (alpha channel).

After converting to nodes in order to render using Cycles I've no idea where to enable the z-transparency. I guess the image textures alpha channel needs to be pluged somewhere but I've no idea which node would be suitable.   The question is how could I correctly setup the nodes to have the same effect as when using z-transparency in BI?      The materials original settings for BI are:    Which renders like:    I had no luck with DarenWs suggestion:


I am learning PHP Pdo and I got a question and answer.   Assuming that the PDO connection is valid. the following code returns none because the prepared statement is invalid.   I want to know why/how the prepared statement is invalid.   $pdo = new PDO(...); $sql = "SELECT :cols FROM names WHERE name = :name"; $stmt = $pdo->prepare($sql); $stmt->bindValue(':cols', 'COUNT(id)'); $stmt->bindValue(':name', 'anna'); $stmt->execute();

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


I have a Lenovo Ideacentre K330B running Windows 10 Home and I want to change it's BIOS to UEFI. It has a Lenovo motherboard. Here are some specs -    BIOS Version/Date: "LENOVO DPK21A, 8/8/2011" Bios Mode: Legacy   I've been searching around the internet for a straightforward way to do this but haven't had any luck. Any tips?

I just ran the Windows 8 Upgrade Assistant on an older machine (just for fun) and was informed that due to lack of UEFI firmware, Secure Boot would not be supported.   Is it possible for motherboard manufacturers, if they so choose (obviously they won't), to release a firmware flash that would update the BIOS to UEFI (or maybe UEFI+BIOS which some systems have)? Does UEFI require actual hardware support or is it entirely a matter of low-level software?


In (n,n) Shamir secret sharing if n shareholders do not have the public values (X values) can they still obtain the secret with only Y values?

I'm wondering, in Shamir secret sharing, can generator of the shares, keep the x values which are used in evaluating the polynomial to obtain y values (i.e., the shares) secret, and whenever the original secret is needed, he retrieves the t shares and reconstructs the secret? In this setting the share holders should not be able to construct the secret even all of them collude. Is there any secure way of doing so?


I always drain the water I soaked the beans in overnight and cook them in fresh water. But I've been noticing that the water gets a mild dye of the beans so I was wondering if I'm throwing parts of the baby with the bath water, to be proverbial.  Should beans be cooked in the same water they soaked in?

I'm making a two pounds of dry black beans by:    Sorting out the rocks, dirt, malformed beans Washing any dirt or mud from the remaining beans Soaking for only 1 hour in 2 gallons of water and 2 Tablespoons of salt Add any non-acidic ingredients and spices Heating stove top until 212 F  Maintaining temp in oven at 225 F for 3-4 hours Adding any acid like Tomatoes after cooking is finished   My Logic is:   Soaking for 1 hour is reported to decrease cooking time Soaking for 8 hours only decreases cooking time by 30 minutes and makes more beans fall apart Soaking / cooking in salt reduces skin toughness Using the soak water in the final product improves taste, nutrients, color, as reported by Alton Brown, many other pro chefs, and most traditional Cuban and Mexican cooks Salt content of the soak water is about what I'd like in the final product Using stove top is fastest method of reaching 212 F and avoiding 170-180 F, which increases phytohaemagglutinin (phytohemagglutinin) by 5 x at that temp Using oven avoids stirring / sicking to the bottom of the pan Adding any acids like tomatoes increases cooking time   Answers and feedback requested:  The CDC reports that pouring off the soak water decreases phytohaemagglutinin in the final product.  However, if 30 minutes or more removes most all of the phytohaemagglutinin, why would throwing out the soak water help, and if so, by how much?  Soak water also contains other non-digestible sugars and proteins that can cause problems.  However, extended cooking is also supposed to break these sugars and proteins down.  So, will this increase digestive problems, and if so, by how much?  Any other comments of answers to critique my methods are welcome.  For an extremely detailed discussion with many references:   Pressure cookers and tossing the soak water do decrease non-digestible sugars:


I'm working on a table that has a parent toggle on the top row with each child row below having its own toggle.   If I were to disable a specific row, I will visually see that the row has been disabled.  Now, let's say I were to disable the parent toggle...do you expect all enabled toggles to remain in their current state or to all look and turn disabled?

I have a hierarchical category tree and checkboxes next to each item that allow to enable/disable the correpsonding category.    I assume it is an expected default behavior that all subategories of natural environment become checked when I check the natural environment category. But what about unchecking it again: Should this automatically uncheck all subcategories or restore the previous state in case some were checked already?  Furthermore... Should unchecking one of the subcategories cause the parent category to become unchecked?


One of the sites I manage was hacked, basically the hack consisted in redirecting users to other external webpage (sort of advertising spam malware).  I have moved the hacked site to a staging site and restored a clean copy of the site. Then I have uploaded Wordpress core to original state, updated to latest plugins.  So now I am focusing on the hacked staging copy, attempting to understand what and how it happened.    I use Wordfence as a defence tool, hence the plugin was already installed when the hack occurred.  Nevertheless I have performed a full scan on the staging copy and got an alert about a user (one of the legit administrators): "wordfence user account created outside of the domain". Maybe the user password was sniffed/stolen somehow, as no brute force attack were reported by Wordfence. I have deleted the user for safety reasons and continued investigation.  Then I have installed and run Sucuri, Exploit scanner and Antimalware plugins: No evidence of malware, apart from lists of possible false-postives in multiple .js files.  Followed instructions in these articles, helpful to restore and clean code         but none of those helped to find where hack is.(verified, headers, footers, wpconfig, htaccess, etc, etc)  Then I have switched to default WP theme and the hack stopped, so I have realised that (apparently) the hack was performed in my theme and child-theme code, therefore I have downloaded both folders copies (good one and hacked) and performed diff on sources (clean vs hacked). Basically minor differences where found in PHP code, but nothing suspicious.   Things to mention: about 30 copies of existing posts appeared in the posts list as drafts, with basically little text in the body (no malicious code in there). Looks like someone created those copies randomly.  The hosting provider performed site and account checks and no malware was found. BTW there was no trace of geo-located logins through my cPanel account nor with FTP accounts other than the town i live.  I have also attempted to debug the hacked staging site in Google Chrome , hoping to find a reference to the offending code, however this didn't work too. Maybe the redirect is not performed with Javascript.... but there are no META refresh tags in the source code of the generated page.  I am aware that latest techniques involve hiding code in images, making the task more difficult.  Conclusion: the site was hacked probably by someone that has stolen secondary administrator password, although I wonder if the hack may be performed by a editor-equivalent user.  What I currently miss: an in depth analysis of the database and sources code.  I wonder what else I could check to understand where did the hack got place and how!   Addenda 1  Any page on the hacked site will load but quickly redirected. to further test this I have opened two Chrome tabs with "view-source:" one from the hacked site and one from the clean site. These are identical.  As I wrote, I have followed the guides linked in this post, so I will explicitly add some other info on what I have done (but this relates to the cleaned site, so it's a bit out of scope here):   Changed WordPress admin user passwords Changed Hosting account user password  Change FTP passwords Change MySQL db user password Updated wp-config nonces/salt Blocked directory-browsing access, via .htaccess   This post differs from  as it focuses on where is the hack and not on what to do to esnure the hack was removed!

My for-fun WordPress blog at  (running WordPress 3.1.1) got hacked -- it was showing an <iframe> on every page like so:  <iframe src="http://evilsite.com/go/1"></iframe> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">    I did the following   Upgraded to 3.1.3 via the built-in WordPress upgrade system Installed the  (lots of critical warnings on unusual files) and  (this showed all green and clean, so I uninstalled and removed it after running) Changed MySQL password. Changed all WordPress user passwords. Connected via FTP and downloaded the whole filesystem (not large, this is a WordPress-only Linux shared host) Diffed the filesystem against an official ZIP of WordPress 3.1.3 and removed or overwrote anything that did not match.   I am quite sure that    all the files on disk are official WordPress 3.1.3 files there are no "extra" files on disk other than my one /theme, the Exploit Scanner plugin (which I just downloaded), the /uploads folder, and a tiny handful of other expected files. My other plugin, wp-recaptcha, matches the current official downloaded version. I also checked the .htaccess file and nothing looks wrong there     I did not touch the database, but I am struggling to think how anything in the database could be malicious without special PHP code to make it work?  My WordPress blog appears OK and hack-free now (I think), but is there anything else I should check?


How can i solve $T(n) = T(n/3) + T(n/4) +5n$ using iteration method to find time complexity of the requrrence?

I'm doing some research about time complexity of algorithms and stumbled upon the following problem that I'm not able to solve:  Let $T(n) = T(n/3) + T(2n/3) + 5n$. prove that $T(n) = O(n log n)$  First, I made a recursion tree, which is the same as the one in the question:   I found out that each level costs $5n$ and that the leaves have different depths (The left path is the shortest with height $log_3 n$ and the one on the right is the longest with height $log_{\frac{3}{2}}n$).  Now, since we need an upper bound, I took the longest path of height $log_{\frac{3}{2}}n$. This gives total costs $5n \cdot log_{\frac{3}{2}}n$.  Now I want to prove with induction on $n$ that this is true. I proceeded in the following way:  Assume as induction hypothesis that $T(k) \leqslant 5k \cdot log_{\frac{3}{2}}k$ for $k < n$. Then:  $T(n) \leqslant T(n/3) + T(2n/3) + 5n$ $=^{IH} \frac{5}{3}n log_{\frac{3}{2}}(\frac{n}{3}) + \frac{10}{3}n log_{\frac{3}{2}}(\frac{2n}{3}) + 5n$ $= \frac{25}{3}n log_{\frac{3}{2}} n - \frac{5}{3}n log_{\frac{3}{2}} 3 - \frac{10}{3}n log_{\frac{3}{2}} 3 + 5n$ $= \frac{25}{3}n log_{\frac{3}{2}} - 5n log_{\frac{3}{2}} 3 + 5n$  And this is certainly not smaller then or equal to $5n \cdot log_{\frac{3}{2}}n$. I've spend an entire day now on solving this recurrence relation, but nothing solved it so far. Could you help me solving this problem?


Someone sent me a password-protected PDF. I know the password, but I want to make the PDF password-less, for convenience.  However - I want to make sure I don't lose any of the information in there. For example, I don't want images to be resampled, or vectorized content rasterized, or text runs/paragraphs broken up, or ancillary/non-critical non-printing data to be lost, I want the document properties meta-data to stay the same (well, perhaps I'm a little flexible about that).  Also, since I'm not a PDF format wiz, I'm not sure I can tell when a PDF has been degraded. So, for example, if I print to PDF from a PDF viewer, I'm not sure if the result is satisfactory - until perhaps someday later I'm trying to import it in a document editor or select some of the text and then find out something has changed.  My question is: Is there a way for me to do this which is qualitatively better than printing to a PDF? Perhaps I can simply remove the password somehow, in-place? Or at least ensure maximum-conservatism in the processing?  Notes:   I'm using Devuan GNU/Linux 3.0 (which is about the same as Debian Buster). There's a near-duplicate question,  - but the answers there are Windows and Mac utilities. I've tried using pdftk ... input_pw, but that doesn't work.

I have a couple of ebooks as PDFs with passwords, however my ebook reader (sony prs600) doesn't seem to support PDFs with passwords.  What is the easiest of removing the password from a PDF (I know the password, which presumably helps a lot).  It's a bit annoying buying a book and then only being able to read it in front of a computer.


Since, past few days, an adult website opens on visiting any website in Google Chrome. I have re-installed my chrome, and ever reset my chrome settings. Is their any option to prevent this virus? I even format my windows, and it was good for few days, now again the virus is creating   Edit: The same problem is present in all my vireless devices, Laptop, Andorid Tablet (Nexus 7), Phone (Nexus 5)

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I am having trouble getting .shp layers to "line up" on QGIS.  Now, I opened them both in ArcGIS and noted there that they had the same projection. I opened them up in a text editor, and just to be sure, copied the data from one .prj file into the other. Reopened them in Arc and had no problems whatsoever.  However in QGIS I can't get them to come into the same map. I've tried every combination of CRS / Layer menu options that I can think of, nothing seems to work.   They seem to have the same Projected Coordinate System, but different Geographic Coordinate Systems: this I assume from going to the full extent, and note that both layers are on the map but hundreds of KM apart.  I tried setting them to the same GCS in QGIS properties, but then they both vanished. ("Zoom to Layer didn't work, they were gone.)   Is there are process I should be following here?   If the data were corrupted, wouldn't duplicating the .prj data be enough to fix the problem? If it's a GCS issue, how do I change that?  Mostly I'm looking for a process I can apply every time I import data to QGIS so I'm guaranteed to work around any CRS issues.

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other.  Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and  clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.


I'm using Ubuntu 18.04 and I'm new to this OS. After formatting my Laptop with Ubuntu OS, I installed Wine application, as well as I'm using gpg key-ring. I even have my public key and secret key and now when I want to update, it shows me many errors for example:   GPG error: http://ppa.launchpad.net/remmina-ppa-team/remmina-next/ubuntu bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8A993C2521C5F0BA   I tried to update the file sources.list and its directory from another Ubuntu system but still the same problems.

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


Sorry but I'm a new user and I couldn't find anything about this here. Can anybody tell me what does it mean.  Here I don't see any arrow:

Comments can now be upvoted and flagged. How do those features work? Do users get rep for their upvoted comments? Do upvoted comments have any effect on comment sorting? And can users see their own comment upvote number somewhere?  Related:  The  about comments


I'm having trouble understanding POSIX permissions, specifically setgid(2). I understand that setuid(2) changes the user ID of the calling process so that it takes on the privileges of the new user. This makes sense, because a user only has a single UID, so a process may only have a single UID as well.  What I don't understand is why can a process only have a single GID? After all, a user can be a member of any number of groups, so what determines which GID the process runs as? I realize that every user has a "primary" GID, and that is the GID that processes run by the user will take on by default. But what if the application has to access a file that belongs to a group other than the user's primary group (and therefore, the process's GID)? Is it the application's responsibility to attempt to setgid to match the file's GID? Or will the kernel simply check to see if the UID of the process is a user who is a member of the group the file belongs to, and allow or deny access according to the file's group permissions? In the latter case, it seems that setgid would not be needed.  For example: I am a member of group "adm" but my primary group is "griffin". Somehow, I'm still able to cat files in the "adm" group. Is cat using setgid to change its GID to "adm" before accessing the files? Or is the kernel checking that user "griffin" is a member of "adm" before returning a file descriptor (in this case, setgid is not needed)? How is a process's GID fundamentally different from having a UID of a user who is a member of the desired group?  Any clarification on this subject is greatly appreciated.

I know how setgid works, but I don't know why it is designed, is there any example to illustrate what problems it solves?


I have some errors while run sudo apt-get update. How do I solve this ? Thank you.  W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://extras.ubuntu.com raring Release: The following signatures were invalid: BADSIG 16126D3A3E5C1192 Ubuntu Extras Archive Automatic Signing Key <ftpmaster@ubuntu.com> W: Failed to fetch http://extras.ubuntu.com/ubuntu/dists/raring/Release   W: Some index files failed to download. They have been ignored, or old ones used instead.

I frequently cross this issue, and always have to google for an answer. Does anyone have a permanent fix for BADSIG errors from apt-get?     W: GPG error:    lucid   Release: The following signatures were   invalid: BADSIG 54422A4B98AB5139   Oracle Corporation (VirtualBox archive   signing key)


I have a gift for you       I have got a gift for you    Which one is correct? They say that have and have got are interchangeable but I don't think this works here because I have got would mean I have received (a gift for you) which doesn't sound right as far as I think

Could you please tell me if you got some time to read the report?   In this sentence, I have to use got or have got ? what is the difference between these two w.r.t. the meaning of the sentence?


prove that the sequence converges  $$a_n = \sum_{k=1}^n \frac1k \ -\ \int_1^n\frac{dx}x$$  Attempt:  I dont even know where to start here. the integral gives you -ln(n)

I'm trying to show different convergents, and this is the first one i'm having problems with.   $\dfrac11 + \dfrac 12 + \ldots + \dfrac 1n - \log n \rightarrow \gamma$  Like it's the definition of euler's constant, but how to show that this expression is convergent( i don't mean convergent to specific number, just convergent ).   I tried d'alambert's criterion. This is : if $$\left| \frac{a_{n+1}}{a_{n}}\right | < 1$$ then $a_{n}$ is convergent.   But i end up with something like   $$\frac{H_{n} + (n+1) - ln(n+1)}{H_{n} - \ln(n)}$$ where $H_{n}$ is n-th harmonic number. I have no clue how to work on it further.   Would love to get some hints or solutions on this.    Cheers


I have a separate question about the phrase "turn the gun on somebody" and "turn the knife on somebody".  It seems that, according to google, "turn the gun on somebody" is more common than "turn the knife on somebody".  Could it be that because a gun could be "theoretically" turned on, but a knife cannot be "turned on", that "turn the knife on somebody" is  idiomatically wrong?

I have a question about the pattern "turn <something> on <somebody>" :     Then he allegedly turned the body-building equipment on his 44 year-old wife, identified by sources as Feng Liang, and his elderly mother-in-law, Feng Kun Zaehng,77, the sources said.     I understand the phrase "*turn the gun on <somebody>", am not sure about "turn the equipment on <somebody>".  Could the example be wrong?


tmux keeps track of active sessions in a file, on my system this is in /tmp/tmux-1000/default. Recently I manually cleared everything in the /tmp directory, removing this session file.  Normally, you can use tmux attach to reattach to a session. Active sessions can be listed using tmux ls. Because this file is gone, tmux doesn't know about any active sessions:    $ tmux attach no sessions     $ tmux ls error connecting to /tmp/tmux-1000/default (No such file or directory)   Using top I can verify tmux is still running, along with the applications I had opened in that session.  How can I reattach to this session, after I've removed the session file?

I was trying to re-attach to a long-running tmux session to check up on a python web-application. However tmux attach claims that there is no running session, and ps shows a tmux process (first line), but with a question mark instead of the pts number.  What does this mean---is this tmux session permanently lost, and what could have caused it? Is there still a way to look at the current state of the python process, spawned in the tmux session and running in pts/19 (second line)?  [mhermans@web314 ~]$ ps -ef | grep mhermans mhermans 16709     1  0 Mar04 ?        00:26:32 tmux mhermans  8526 16710  0 Mar04 pts/19   00:20:04 python2.7 webapp.py root      9985  6671  0 10:18 ?        00:00:00 sshd: mhermans [priv] mhermans 10028  9985  0 10:18 ?        00:00:00 sshd: mhermans@pts/16 mhermans 10030 10028  0 10:18 pts/16   00:00:00 -bash mhermans 16247 10030  6 10:28 pts/16   00:00:00 ps -ef mhermans 16276 10030  0 10:28 pts/16   00:00:00 grep mhermans mhermans 16710 16709  0 Mar04 pts/19   00:00:00 -bash mhermans 16777 16709  0 Mar04 pts/21   00:00:00 -bash


I'm interested in migrating my current telco-based phone service to a more affordable VOIP solution. Because of this, I've decided to settle on Skype, which I've used for years and has been my choice as my primary desktop VOIP application.  Currently in my home I have a standard phone system that plugs directly into a telephone jack, with 4 wireless handsets. Because I already have this system, I would prefer not to replace it with a different system that's offered for sale in the Skype shop.   My ideal solution would be to purchase an adapter (or some sort of box) that goes between my modem and my existing telephone, to allow my current phone to ring when I receive a Skype call, or allow me to make outgoing calls using my Skype account. Unfortunately, I haven't been able to find anything like this for a home environment, everything that I see is more directed towards office environments.  Does such a product exist, and if so, where can I find out more information about it and/or purchase it?

In short, I'm looking to drop current VOIP provider (Cablevision/Optimum Voice) and go with cheaper standalone package BUT want to keep existing standard phone that plugs into their box.  Does anyone know of any solution, preferably Skype, Google Voice etc, that I can switch to but without the need for a go-between computer?  Side note: Vonage have a $9.99 per month plan that might work, but will Vonage be around next year?  UPDATE: TO clarify a little more: I know I could use an Android/iPhone with a Skype app etc over wifi but we find the there is a large difference in quality/volume between an actual landline phone (even over voip) and a cellphone. With out current handset its already to go with a charger etc while Android/iPhone requires dock. The priority is to use an existing handset. Second, I do not want yet another computer in the house, that will require restarts, plugging into another socket and such. Thanks so far for suggestions, please keep them coming.


My site creativeblends(dot)tv as of right now has only a coming soon message, nothing more. The other day I sent someone the link with www in front and when opening (in Firefox) it opened automatically the secure protocol version of it.  The weird thing is, I don't have any secure protocol at all. I bought the domain from Godaddy and have my site(s) hosted there too (yes, it happens with more than just one site). But I don't need a SSL because I don't manage any kind of personal or private information.   The problem: When I accept to make an exception for the https version it opens my domain (the very same but with https in front) but with a completely other page content from iwant-glameyes(dot)com   The funny thing is, that iwant-glameyes(dot)com bought the SSL from Godaddy themselves. Did they hack me? Is GoDaddy involved somehow?  How do they manage: a) use my domain? b) use my host IP? c) without redirecting and hosting content on my server show their page?  And more important: How can I get rid of this problem?  Edit: This question:  seems to be similar, but unfortunately nobody could give a real solution.

I'm running a website which is acting extremely strange.   At the time of writing, this link works: http://www.example.com This link doesn't: http://example.com  But it does work if you copy/paste it and run it in Incognito... This link (after ignoring a warning) serves a totally unrelated and unknown website: https://example.com    I have no idea how to debug this issue. I have contacted the hosting and domain company to investigate the issue. How is the last issue even possible?


Using Ubuntu 14.04, I have 2 accounts:   Account A (first one set up) with Password 1 Account B (second set up) with Password 2, when updating software in Account B, I use Password 1 to authenticate.  Has been successful so far.   How do I set up sudo with its own Password, and then run sudo apt-get clean?

How can I give a user one password for normal usage when logging in, and another password for system administration and sudo access? I want one user to have two passwords.


my_string = """This is my first line, this is my second line, and...  ...this is my fourth line!"""   How can I store the first line of that (This is my first line,) into a separate string? I attempted to use .readline() from another similar question, however I get this error:  AttributeError: 'str' object has no attribute 'readline'

I have a multi-line string literal that I want to do an operation on each line, like so:  inputString = """Line 1 Line 2 Line 3"""   I want to do something like the following:  for line in inputString:     doStuff()


So i was wondering, what happens if you lose a special vehicle like if it was destroyed or something, can you take another one in the garage or buy the DLC again. ( i know this may be a silly question but i really curious )

Does anyone know what happens to the special cars you get in the garages (Turismo, etc) if they get destroyed while out in them?  What about if you just park it up and then do other stuff? Do you still lose your mods?


While using the "Volume Scatter" option in Blender the Background turns Black. (I am using Blender 2.79). Here is my issue in detail.  The first image below shows a normal scene with Blue sky (Set using the "World" as shown in the image)    I wanted to add mist to the scene; so i used the Volume Scatter shader and plugged it into the "Volume" node in the "World Output". The entire scene turned black and later I discovered this feature doesn't work with the "Sun Lamp" well. So I added a "Point Lamp" too in the scene. Now the mist appears. But the issue is that the blue background has entirely turned into black as shown in the image below.    I've tried changing the Strength of the "Point Lamp" but it won't help. I would request to kindly inform if anyone knows how to fix this.

I'm working on lighting a scene in which I need to have both an Environment texture for the background and Volume Scatter for light cones, but when I check the volume section in World setting and choose the Volume Scatter, the environment becomes black background (but the lighting works as I want).  I'm using Blender 2.72  How can this be fixed?


In the mobile app feed, the Android one specifically, I'll see 'Featured meta post' show up once in a while. When I see that wording with the megaphone icon, I think that it's a post with  and it's showing up under the 'Featured on Meta' headline on the desktop sidebar. I do notice that the tags are shown below the feature meta post title and I just assume  isn't displayed since the featured nature of the post has already been established. When I visit the post, I'm surprised to find out it's not . It's more like the 'Hot Meta Posts' area of the desktop sidebar.   Can the headline be changed from 'Featured meta post' to something more like the site, say 'Hot Meta post' or 'Trending Meta post'?    App version 1.0.59

I have the idea that non-featured meta posts are displayed as if they are in the app feed.   Or does featured mean something else here?


I need to know the correct use of this word, I am quiet confused about the plural form and singular form due to some people use it as plural persons and I was taught that the plural is people1

Can you please clarify the relation and differences between these nouns?   For example, is it proper to use "persons" instead of "people"? Are they the same? As I believe that "people" is plural, how come there exists the plural of the plural (=peoples)? Does it have any usage?


Evaluating the integral:  $$u=(1+x), \qquad du=1\,dx$$  $$\int_0^\infty \frac k {\frac{u^{-4+1}}{-4+1}} \, du \to \left. \frac{-3k}{(1+x)^{-3}} \right|_0^\infty$$  but the answer given has:  $$\left.\frac{-1}{3(1+x)^3} \right|_0^\infty$$ What did I do wrong?

Evaluate the PDF to find K  $1 = \int_0^{\infty} \frac{k}{(1+x)^4}$  using u substitution I got:  $u=1+x$ and $du= dx$  $\int_0^{\infty} \frac{k}{u^4} \to \frac{k}{\frac{-1}{3} u^3}$   Since $u^4 du = \frac{u^{-4+1}}{-4+1}=$ $\frac{u^{-3}}{-3}$  which evaluating gives:  $1=\frac{k}{\frac{-1}{3(1+x)^3}} \vert_0^{\infty} \to \frac{-3k}{(1+x)^3} \vert_0^{\infty} = 0 -3k$   and $k= \frac{-1}{3}$  somehow though they came up with $\frac{-k}{3} \frac{1}{(1+x)^3}$ after integrating $\int_0^{\infty} \frac{k}{(1+x)^3}$   Was my approach correct to use substitution? Where does my work go wrong?


I installed ubuntu 13.04 along side windows 7. However, after installation was complete and the computer restarted I could not see ubuntu in the operating system load choice. I had windows 7 initially and 3 drives c,d and e before I installed ubuntu. I deleted e: partition and installed ubuntu in the unallocated space.  Windows boot loaded does not detect ubuntu 13.04.  please help

I have made a BOOTABLE USB installation of Ubuntu 13.04 using . I also have Windows 8 on separate partition. After I finished installing Ubuntu 13.04 from the USB, it went straight to Windows 8 without Grub showing to ask me to select an operating system, how can i fix this ? I don't have UEFI or secure boot.


I try to find midway position on this kind of pathes :    \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc}  \pagestyle{empty}  \begin{document}  \tikzset{pics/.cd,     % Marque ronde     Dot/.style args={#1 and #2}{%         code = {%         \fill[#2] (0,0) circle (#1 pt) ;         }     },     Dot/.default={1.25 and black}, }   \begin{tikzpicture}  \draw (0,0) -- (3,0) pic[midway] {Dot} ;  \draw (0,0) --++ (0,5pt) -| (3,0) pic[midway] {Dot} ;  \draw (0,0) --++ (0,-5pt) pic[midway] {Dot} -| (3,0) ;   \end{tikzpicture} \end{document}

I make frequent use of |- and -| with computed points in diagrams, like so:  \coordinate (a) at (0,0); \foreach \x in (1,...,10) {     \coordinate (b) at ({whateverFunction(\x)},{whateverOtherFunction(\x)});     \draw (a) |- (b); %Straight line segment     \draw (b) -| (a); %Another straight line segment     \coordinate (a) at (b); }   To get plots like:   I would like to be able to label the midpoint of each line segment, but doing something like node[midway,above] {a} does not act like expected:    I want something like:    Why does midway not work, and what is a good workaround here?


I am creating a bot and the user can enter name of a movie and results should show up by searching inside a SQL table and find the right movies name so I used prepared statements in PDO but I want to when a user type the incomplete name of a movie it shows up so I want it to be case insensitive and also find matches. I am using mysql dirver. before this the SQL query was like this also noting this is a string inside a PHP script "SELECT * FROM movies WHERE name = :name LIMIT 5"  but then I thought to use the way that I explained to you above and I know it isn't case insensitive. "SELECT * FROM movies WHERE name LIKE :name" . "'%' LIMIT 5" but I don't think this will work properly and fine so how should I write this query to work as I explained at the beginning? Should use different keywords like REGEXP ?

Here's my attempt at it:  $query = $database->prepare('SELECT * FROM table WHERE column LIKE "?%"');  $query->execute(array('value'));  while ($results = $query->fetch())  {     echo $results['column']; }


I am new to apex, I've achieved the basic working code of what I had to, in java. But now I am told that I cant do DML statements or queries inside loops. Any help/explanation as to how I could I do this will be appreciated. for(hed__Course_Offering__c key: cOMap.keySet()) {               hed__Course_Offering__c newCO = new hed__Course_Offering__c();             newCO.Name = CO.Name;             newCO.Status__c = 'Active';                           insert newCO;             for(hed__Course_Enrollment__c value: cOMap.get(key) ){                 hed__Course_Enrollment__c ccs = value;                 ccs.hed__Course_Offering__c = newCO.Id;                 update ccs;                 System.debug('Key: ' + key + ' Value: ' + value);             }         }  I figured out how to take the update method out of the loop, but I am not able to understand how to take out the insert method, as the update method is based on the newly inserted records ID.

Some of code I read in trigger is like this    for(account a: [select id  from account where id in: mapAccount.keySet()]) {     //code      }    some are like   List<Account> listAccount = [select id  from account where id in: mapAccount.keySet()];   for(Account a: listAccount ){   //coode   }   Are those same from performance view?which one is better?


I built the required module for the 8821ce chip from source (). 2.4GHz wifi is working fine, however 5GHz as well as bluetooth is not available. Do I miss something or is it just not implemented completely by now?

We just bought a Lenovo  (which is supposed to have the Intel 8265 for wireless). This laptop was bought in part because it is certified to run Ubuntu and as such to me at least it would make sense for things to work out of the box... but no such luck.  First, I installed Ubuntu 17.10 and after installation realised Wi-Fi was not working. I also tried Ubuntu 16.04 from a USB drive since that is the version of Ubuntu it is certified for, but no luck there either.  The wireless chip is not detected by lshw (or even lspci by the looks of it), ip link does not show a wireless interface, and the iwlwifi kernel module is not loaded at boot (I can load this myself using modprobe iwlwifi but this does not make Wi-Fi work). I think it is a combined Wi-Fi/Bluetooth chip, and Bluetooth does appear to work (or at least Bluetooth shows up in Gnome and rfkill list).  modinfo iwlwifi | grep 8265 shows me a file ending in -34 is supposedly loaded but only a file ending in -33 (and some other lower numbers) is present in /lib/firmware, if that helps).  I have also installed the Linux 4.14.9 kernel in an attempt to get things to work, but this did not resolve the issue either.  Further information  root@ThinkPad-E570:~# modinfo iwlwifi | grep 8265 firmware:       iwlwifi-8265-34.ucode root@ThinkPad-E570:~# rfkill list all 0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no root@ThinkPad-E570:~# dmesg | grep iwl root@ThinkPad-E570:~# lspci -nnk | grep 0280 -A3 05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c821]     Subsystem: Lenovo Device [17aa:c024]   Update  I just noticed that the laptop does not have an Intel wireless chip at all, but in fact has a Realtek one... which means that the  of the shop I bought this laptop at were not accurate... Sigh. Same problem stands, however, just with a crappier wireless chip.


I have a graph represented by a dictionary with this values:  self.dicpre: {0: [1, 2], 1: [2]}   What the dicpre is representing is that node 0 has two children (node 1 and 2), and node 1 has one children (node 2).   I'm using a recursive function to check if there is a close-loop (direction matters in this case) based on DFS. For doing that, I'm using a vector need to check if I visited that node before. If I start with the vector with all zeros:  need = [0]*numNodes   and I call the recursive fuction:  self.doCourse(node,need)   The fuction is like this:  def doCourse(self, node: int, need: List[int]) -> bool:     if need[node] == 1:         return False     else:         need[node] = 1     if node in self.dicpre:         for c in self.dicpre[node]:             if not self.doCourse(c,need):                 return False      return True   So first I visit node 0 then node 1 (children from 0) and then node 2 (children from 1). Because node 2 have no children, I come back to node 0 and visit its other children which is node 2 again. What I expected to see for each call to the fuction would be:  1- For Node 0, need = [1,0,0] 2- For Node 1, need = [1,1,0] 3- For Node 2, need = [1,1,1] 4- Come back to the Node 0 call (and then need whould be reset) and visit Node 2 again so need = [1,0,1]   However, when I come back to the node 0 to visit node 2, the need vector is not reset and I have:  Node 0, need = [1, 0, 0] Node 1, need =[1, 1, 0] Node 2, need =[1, 1, 1] Node 2, need = [1, 1, 1]   I thought that when you call a recursive function, you stack all the variables in memory, but this is not the case because the vector need does not return to its original value.  Am I missunderstanding something here? Thanks a lot

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


I recently asked about the safety of my travel to Miami.  Now I had to cancel my hotel in Miami and I will not take my flight to Miami. Instead I go to Vegas or NY.  On my ESTA appliance I had to name an address where I will stay in the U.S. I gave the address of the hotel I booked. Now I am concerned that I have to apply a new ESTA or change my old one, does anyone know how this works out? I don't want to end up being returned at the U.S. Airport.

I wish to travel to the US and think I am eligible to do so under the Visa Waiver Program. I found a lot of information out there but am still having some trouble understanding how this works.  What is the US Visa Waiver Program? What is an ESTA?


I installed Ubuntu 17.04 alongside Windows 10 and after successful installation I am not able to connect to the WiFi network to complete some other activities.  I tried all the solutions suggested like modifying NetworkConfig.conf and restarting the network service but nothing worked for me.  $ lspci -knn | grep Net -A3; rfkill list   Following is the result when execute the above command:  06:00.0 Network controller [0280]: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter [168c:0036] (rev 01)     Subsystem: Dell QCA9565 / AR9565 Wireless Network Adapter [1028:020c]     Kernel driver in use: ath9k     Kernel modules: ath9k 07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10) 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: dell-wifi: Wireless LAN     Soft blocked: no     Hard blocked: yes 3: dell-bluetooth: Bluetooth     Soft blocked: no     Hard blocked: yes 4: hci0: Bluetooth     Soft blocked: no     Hard blocked: no

I installed Ubuntu on my Dell laptop, but the wifi isn't working! I tried to solve the problem using different commands suggested by people on this forum, but none of them worked for me!  When I ran rfkill list all I get the following:  $ rfkill unblock all $ rfkill list all 0 : dell-wifi: Wireless LAN         Soft blocked: no         Hard blocked: yes 0 : phy0: Wireless LAN         Soft blocked: no         Hard blocked: no $ sudo rfkill unblock wifi       $ rfkill list all 0 : dell-wifi: Wireless LAN         Soft blocked: no         Hard blocked: yes 0 : phy0: Wireless LAN         Soft blocked: no         Hard blocked: no   When I saw that there is a problem with the hardware, I checked the BIOS and everything was set correctly!


I'm an American living in France, and I want to play Magic the Gathering. Would it be a problem if I buy English printed cards to play in FNM and official tournaments here? Should I just stick to French printed cards since English printed cards may not be allowed?

I want to buy a few booster pack from a local shop that only gets them in French. Is it generally acceptable to show up to a tournament with cards in different languages?


I have a equirectangular 360 panorama photo. I tried to use it as a texture for a default Unity Sphere. The image had artifacts/visible seams, especially near the "poles" of the sphere (north pole and south pole).  Here is an example of the artifacts.    I also have the same image rendered by some third party apps, where it looks ok:   How can I fix this?

I'm using the Autopano Giga 4.4 and Autopano Video Pro 2.6 to stitch and create spherical content, but I've recently moved into wanting to create 360° tours via Unity. I know this is partly a developers question, but if anyone out there can help me with the right specs for exporting a spherical image or video from Giga to use to create the image for the inside of the sphere on Unity, I'd appreciate it!  Experimenting with Premiere and FCPX to edit highlight reels of spherical content, I've had seamless experiences created. For some reason in Unity, the images appear to be stretched around the sphere wrong and it's creates issues on the top and bottom of the image:    The image shown is the bottom of the sphere. I'm using the Android platform to hopefully turn these tours into apps when completed. Thank you for any help!


if you are in safety zone and you get a backwards 4, do you move backwards and then forwards?

For example, if I draw a 4 (move 4 spaces backward) and the only piece that could make the move is in my "safe zone", do I have to make the move?


I have 1 dataset of animals sighted walking a survey, and I would like to tag them to the respective sampling points along a transect.   Any idea what function/package in R can do that? Maybe something nearest neighbour related?

I have 54 points in one data set A I have 300+ data points in a dataset B.  I wish to find the distance for each point in dataset-set B, to points in dataset A.  Nearest Neighbor packages appear to only find neighbors within a given data-set, not a second data set.   --"Given two sets of locations computes the full Euclidean distance matrix among all pairings or a sparse version for points within a fixed threshhold distance."  , saying "Read two geocoded point sets from Comma Separated Value (CSV) files into R data objects. Assign to each member of first point set the geographically closest point from second set" but is so dated (2010), so something more recent must exist...  Same issue with   Other packages find distances between points and lines, points and polygons, etc.  viz:   The omission of P2P suggests I am missing something simple...


exercise: let $A$ be an integral domain in which all prime ideals are maximal (but may not be Dedekind in general).  let $P_1,  P_2$ be 2 distinct prime ideals.  prove: for any positive integer $m, n$,  $P_1^m+P_2^n=A$.   so the hint is to prove this first for arbitrary $m$ when $n=1$.  I finished this step by observing that if $P_1^m$ is contained in $P_2$,  then since they re prime ideals $P_1 \subset P_2$.  this contradicts the fact that they re distinguish and maximal.  so this was done.   but next how to use induction for $m$? I need some hint, thanks!

Let $R$ be a commutative ring and $I_1, \dots, I_n$ pairwise comaximal ideals in $R$, i.e., $I_i + I_j = R$ for $i \neq j$. Why are the ideals $I_1^{n_1}, ... , I_r^{n_r}$ (for any $n_1,...,n_r \in\mathbb N$) also comaximal?


The question below is related to the fundamental idea that .  Suppose that $V$ is a vector space with countable basis $\mathcal{B}$, i.e., $|\mathcal{B}| = |\mathbb{N}|$. If $\hat{\mathcal{B} }$ is another basis, must it be countable as well or is it possible that it is uncountable? If so, is the proof (non-)trivial?

I am having a difficulty setting up the proof of the fact that two basis of a vector space have the same cardinality for the infinite-dimentional case. In particular, let $V$ be a vector space over a field $K$ and let $\left\{v_i\right\}_{i \in I}$ be a basis where $I$ is infinite countable. Let $\left\{u_j\right\}_{j \in J}$ be another basis. Then $J$ must be infinite countable as well. Any ideas on how to approach the proof?