How to get all the data from a table in sql?
Which is faster/best? SELECT * or SELECT column1, colum2, column3, etc
I have a third party php library which I would like to use in a module. How do I do that in Drupal 8? In drupal 7, I have done things like the following code, but libraries_get_path() doesn't exist in Drupal 8, and I'm not exactly sure how things change, not that we use namespaces (of which I am a beginner).  require(libraries_get_path('twitter-api-php') . '/TwitterAPIExchange.php');   And, where should I place my library? Should I create a new libraries directory and put it in the root, just like modules and themes are now in the root? Using "of" or apostrophe, which is more common? Finding solution of non linear DE $x\ddot{x}-\dot{x}^2=1$ I am looking for help on how to find the solution of the following differential equation,  $$x\ddot{x}-\dot{x}^2=1,$$  which comes from solving the Euler-Lagrange equations for the lagrangian $L=x\sqrt{\dot{x}^2+1}$. It is from an exercise in my field theory course. My professor provided me with the solution $x(t)=c_1\cosh{\left(\frac{t-c_2}{c_1}\right)}$, which is a solution when plugged into the equation, but does not give any derivation.   Is there a way to solve this DE other than an educated guess? If so how? Elementary OS PPA gives “The repository does not have a Release file.” error I am running Ubuntu Bionic Beaver. I was trying to download the pantheon desktop environment on Ubuntu and it didn't work so I gave up. Now when I try to download themes or other things from the terminal I get an error code mentioning Elementary OS even though what I am downloading doesn't have to do with Elementary or pantheon. Here is what the terminal says:   jacob@jacob-MacBookPro:~$ sudo apt-add-repository ppa:tista/adapta -y …                                           E: The repository 'http://ppa.launchpad.net/elementary-os/testing/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository 'http://ppa.launchpad.net/mpstark/elementary-tweaks-daily/ubuntu bionic Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. Large text files load not working on android Gparted: move extended partition on the left CString to char* We are using the CString class throughout most of our code. However sometimes we need to convert to a char *. at the moment we have been doing this using variable.GetBuffer(0) and this seems to work ( this mainly happens when passing the Csting into a function where the function requires a char *). The function accepts this and we keep going.  However we have lately become worried about how this works, and whether there is a better way to do it.  The way i understand it to work is it passes a char pointer into the function that points at the first character in the CString and all works well.  I Guess we are just worried about memory leaks or any unforseen circumstances where this might not be a good idea. Accessing a property of derived class from the base class in C# How to install LINE (messaging app) on Ubuntu I would like to install  chat platform on my Ubuntu 12.04 LTS system. Please, could anyone provide me the steps to successfully install this software?. I've been trying to install this software using wine but I couldn't succeed it. Position of \caption gets counter incremented twice Is "funnest" a word? We seem to be stuck at an impasse on this issue.  Is funnest a word or not?  If so, does it mean "most fun"? Failed to download repository information due to missing CDROM Understanding slice notation I need a good explanation (references are a plus) on Python's slice notation.   To me, this notation needs a bit of picking up.   It looks extremely powerful, but I haven't quite got my head around it. "Was" or "were" for "half a dozen" In Microsoft Word, the following sentence is flagged.  It tells me to use "was" instead of "were"     There were half a dozen books strewn about the floor.   I would think that you would use "were" since it's a quantity more than one.  You wouldn't say, "There was twelve books strewn about the floor."  Does the use of the "half" modify it somehow? Distribution of orbital velocities in a disk galaxy for N-body simulation? I'd like to write an N-body simulation in which I collide two disk galaxies. To give you an idea of the accuracy I'm trying to achieve, I'm aiming to make this my screensaver at 30fps on my work desktop. Think Euler's method, large epsilons in denominators to prevent blow up, all that lazy stuff.   One place I don't want to be lazy, however, is in the initial construction of the galaxies I'm trying to collide. I want to design a galaxy that will at least sort of hold together by its own gravity until it smash it into another one.   How might I go about selecting the orbital velocities for each of the bodies composing the galaxy? Expectation of random variables ratio I lost the source code from one project I did on the company I'm working for and haven't been able to find a Visual Basic 6 decompiler; does that even exists?  I only have the EXE that I've rescued from a user's machine. Redirect the output of a command in `time command` I am trying to time something using:  /usr/bin/time myCommand   However, since /usr/bin/time writes to stderr, if myCommand also writes to stderr, I will get more than just time's output on the stream. What I want to do is, redirect all of myCommand's output to /dev/null, but still write time's output to stderr. Using an example myCommand that writes to stderr of ls /nofile, we see that (obviously) there is no output at all with the following:  $ /usr/bin/time ls /nofile 2&gt; /dev/null $   Without any redirection, we see both the output from ls (to stderr) and the output from time (also to stderr):  $ /usr/bin/time ls /nofile ls: cannot access /nofile: No such file or directory 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 3776maxresident)k 0inputs+0outputs (0major+278minor)pagefaults 0swaps   What I want is something that simply produces:  $ /usr/bin/time ls /nofile &gt; RedirectThatImAskingFor 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 3776maxresident)k 0inputs+0outputs (0major+278minor)pagefaults 0swaps   Any ideas? How would you evaluate the following limit:   $$\lim_{x\to \infty}\sqrt[6]{x^{6}+x^{5}}-\sqrt[6]{x^{6}-x^{5}}$$   I tried to use this formula: $a^{3}-b^{3}=(a-b)(a^{2}+ab+b^{2})$,  It didn't work.  Any hints? How to show via inductive proof (and without the use of the binomial theorem) that $ {n\choose k} \in \mathbb{N} $? How do I show via inductive proof (and without the use of the binomial theorem) that $$ {n\choose k} \in {\mathbb{N}} $$ $$\text{ for  all }\: n,k \in \mathbb{N}_0\: \text{ with }\: n≥k .$$ For my induction proof, I would show that$$  {n\choose k-1}+{n\choose k} = {n+1 \choose k}   $$ is true. However, how do I start the induction correctly with the base cases and the hypothesis? As far as I know, I cannot simply assume $$ {n\choose k-1}+{n\choose k}, $$  so how do I come to this derivation?