Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given in /home/digibeem/public_html/forgot_pass.php on line 55
PHP & MySQL: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given
How to grep for text in a file and display the paragraph that has the text? Below is the text in the file:  Pseudo name=Apple Code=42B state=fault  Pseudo name=Prance Code=43B state=good   I need to grep for "42B" and get the output from the above text like:   Pseudo name=Apple Code=42B state=fault   Does anyone have idea on how to achieve this using grep/awk/sed? Add Virtualbox Shortcut in Unity Launcher to boot to a VM Consider the atomic spectrum (absorption) of hydrogen.     The Bohr's model postulates that there are only certain fixed orbits allowed in the atom. An atom will only be excited to a higher orbit, if it is supplied with light that precisely matches the difference in energies between the two orbits.   But how precise does 'precisely' mean. Of course, if we need energy $E$ to excite the electron to a higher energy level, and I supply a photon with just $E/2$ I would expect nothing to happen (since the electron cannot occupy an orbit between the allowed ones). But what if I supplied a photon with energy $0.99E$, or $1.0001E$ or some such number. What will happen then?  I think that the electron should still undergo excitation precisely because the lines we observe in the line spectrum have some thickness. Which means that for a given transition, the atom absorbs frequencies in a certain range.   Is my reasoning correct? If not, why? How does Bohr's model explain this? How about modern theory?   If I'm right, what is the range of values that an atom can 'accept' for a given transition? Let $A,B,C$ be sets, and $B \cap C=\emptyset$. Show $|A^{B \cup C}|=|A^B \times A^C|$ Let $A,B,C$ be sets, and $B \cap C=\emptyset$. Show $|A^{B \cup C}|=|A^B \times A^C|$ by defining a bijection $f:A^{B \cup C} \rightarrow A^B \times A^C$.  Any hints on this one?  Thank you! Very large log files, what should I do? Why does shrinkage work? In order to solve problems of model selection, a number of methods (LASSO, ridge regression, etc.) will shrink the coefficients of predictor variables towards zero. I am looking for an intuitive explanation of why this improves predictive ability. If the true effect of the variable was actually very large, why doesn't shrinking the parameter result in a worse prediction? how to adapt the sorting of a custom type `@standard` in using biblatex/biber Connect MacBook Pro to two external monitors Is there a way to connect my MacBook Pro to two external monitors (either VGA or HDMI; no Thunderbolt) in such a way that the Mac screen serves as a third monitor?  What hardware do I need? Is there a way to force Google Photos to recognize new faces? I have "Face grouping" enabled in my Google account and I can see around 10 faces successfully tagged when I go to my Albums. However, there's a lot of other people who are not tagged, as well as some unrecognized photos of people who are already tagged.   Is there a way to force Google Photos to run the facial recognition algorithm on a given photo, so that it adds new faces or maps a new photo to an existing face? Lyman and Balmer series I can't open/ping any antivirus sites I have a problem with a virus in windows 7, I don't know what kind of virus is infected my OS, I installed kasersky antivirus, and clear all detected viruses. After that I can't open any antivirus sites, can't ping any antivirus sites. example:  C:\Windows\system32&gt;ping kaspersky.com Pinging kaspersky.com [38.117.98.231] with 32 bytes of data: General failure. General failure. General failure. General failure.  Ping statistics for 38.117.98.231:     Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),   When I ping to other sites, I get reply normally: example woth pinging to google.com  C:\Windows\system32&gt;ping google.com  Pinging google.com [31.7.160.224] with 32 bytes of data: Reply from 31.7.160.224: bytes=32 time=2ms TTL=61 Reply from 31.7.160.224: bytes=32 time=2ms TTL=61 Reply from 31.7.160.224: bytes=32 time=1ms TTL=61 Reply from 31.7.160.224: bytes=32 time=1ms TTL=61  Ping statistics for 31.7.160.224:     Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds:     Minimum = 1ms, Maximum = 2ms, Average = 1ms   I tryed any antispyware/antimalware softwares, but null results.  Anyone else encountered this problem? CodeIgniter: A Class/Library to help get meta tags from a web page? What exactly can a financial advisor do for me, and is it worth the money? I've been managing my own expenses pretty meticulously for the past 4-5 years since being out of college and on my own. Because of this, I feel I have more of a clue about finances than the average 28-year-old.  I use  to manage pretty much all of my accounts, though I realize this is just a quick and easy personal finance solution. Plus, there's no personally customized advice on how I invest or set up my monthly budget.  These are the reasons I think I may want to find a good financial advisor. However, I don't know what I don't know. That is, there could be a long list of things I should be doing with my money to plan for retirement or just for general financial wellbeing.  Are these the functions of a financial advisor? What can I expect if I sit down to meet with one? Most importantly, how much would I be paying for this advice and is it worth it? How to install folding at home (Folding@home FAHControl) on Ubuntu 19.10 How to resize my dual-boot partitions I have a dual-boot laptop with both Windows 10 and Ubuntu 16.04.  Currently, the Windows side has too much disk space, and I want to resize things so that the Ubuntu side has more.  Firstly, I went into the Windows disk management and shrunk the Windows partition by 20GB. I then wanted to expand the Ubuntu partition, but it seemed like this option was greyed out.  Can I expand the Linux partition from Windows or do I need to be in Ubuntu or do I need to create a boot disk and do it that way?  Or do I need third party software?  Any help gratefully received. Center of a free product Let $A$ and $B$ be two groups and let $G=A*B$ be their free product. Suppose both $A$ and $B$ are nontrivial. I want now to prove that $G$ is infinite and that $Z(G)$ is trivial.  I think I can prove that $G$ is infinite using this argument: two reduced words of $A*B$ are equal if and only if they have the same length and the ith letter of the first word is the same as the ith letter of the second one. Hence one can find a reduced word of $G$ of length arbitrarily big (since we are sure it won't be equal to a shorter word). Do you think it works? Has anyone another suggestion?  On the other hand, I don't really have a clue for the second part except trying to analyze a long list of cases of reduced words and prove for each one that the only element with which they commute is the identity. Does anyone have a smarter idea?  Thanks in advance! What does "65" mean? Vector bundle on a quadric $Q$ I just recently bought an arduino and requires gcc-avr/avrdude to compile the software. I installed avr for another microprocessor component a while ago but is obviously an outdated version (gcc version 3.3 20030512 (prerelease)) so I went ahead to update these but it didn't work.   (Please note that before hand I also broke my aptdaemon through an incomplete wine installation (couldn't get passed font installation agreement) but I fixed that via a re-installation then accepting the agreement.)   I am trying to update these by running  but the dependencies it requires cannot be installed due to avr... terminal reports   Reading package lists... Done Building dependency tree        Reading state information... Done build-essential is already the newest version. libncurses5-dev is already the newest version. libncurses5-dev set to manually installed. libusb-0.1-4 is already the newest version. libx11-dev is already the newest version. You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: arduino-core : Depends: gcc-avr but it is not going to be installed avr-libc : Depends: gcc-avr (&gt;= 1:4.3.4) but it is not going to be installed Depends: binutils-avr (&gt;= 2.20) but it is not going to be installed binutils-dev : Depends: binutils (= 2.21.0.20110327-2ubuntu3) but 2.21.0.20110327-2ubuntu2 is to be installed libcwidget-dev : Depends: libcwidget3 (= 0.5.16-3ubuntu2) but it is not going to be installed Depends: libsigc++-2.0-dev but it is not going to be installed Depends: libncursesw5-dev but it is not going to be installed libmpfr-dev : Depends: libgmp3-dev (&gt;= 4.2.dfsg-1) but it is not going to be installed python-dev : Depends: python (= 2.7.1-0ubuntu5.1) but 2.7.1-0ubuntu5 is to be installed Depends: python2.7-dev (&gt;= 2.7.1-1~) but it is not going to be installed tk8.4-dev : Depends: tk8.4 (= 8.4.19-4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   But running   apt-get -f install   results in   (Reading database ... 163021 files and directories currently installed.) Unpacking binutils-avr (from .../binutils-avr_2.20.1-1ubuntu2_i386.deb) ... dpkg: error processing /var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb (--unpack): trying to overwrite '/usr/bin/avr-size', which is also in package avr-binutils 2.13.90.030512-2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Unpacking gcc-avr (from .../gcc-avr_1%3a4.3.5-1_i386.deb) ... dpkg: error processing /var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb (--unpack): trying to overwrite '/usr/bin/avr-g++', which is also in package avr-gcc-c++ 3.2.90.20030512-2 dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Errors were encountered while processing: /var/cache/apt/archives/binutils-avr_2.20.1-1ubuntu2_i386.deb /var/cache/apt/archives/gcc-avr_1%3a4.3.5-1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I have tried running update manager and updating my system via it but all I get is an error message  The following packages have unmet dependencies: arduino-core: Depends: gcc-avr but it is not installed avr-libc: Depends: gcc-avr (&gt;= 1:4.3.4) but it is not installed Depends: binutils-avr (&gt;= 2.20) but it is not installed   which then tells me to try running apt-get -f install which just results the same as last time.  So how can I fix my system, I really need the new avr, please :) BTW, my system is Ubuntu 11.04 Install Headers on Kali apt-get install linux-headers-`uname -r` Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package linux-headers-4.9.0-kali3-amd64 E: Couldn't find any package by glob 'linux-headers-4.9.0-kali3-amd64' E: Couldn't find any package by regex 'linux-headers-4.9.0-kali3-amd64'