php - help me about search to database
mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc... expects parameter 1 to be resource
Explanation that air drag is proportional to speed or square speed? How do I get transparency to work with the Principled BSDF shader? How do I get the Cycles Principled BSDF shader to support a base color image such as a 32bit png with alpha or a tga with an alpha channel, and get the transparency to work. I don't see anywhere on the Principled BSDF shader that handles transparency.  Without success, I have tried:   Properties Editor>Render tab>Film rollout>Transparent Properties Editor>Material tab>Settings rollout>Viewport Alpha (changing to other than Opaque). Adding a Transparent BSDF and Diffuse BSDF after the base color image node and using a Mix Shader to combine them. Could someone recommend a free and/or open source GIS application that can orthorectify map images? Require duplicates to be imported in Shotwell I have some drawings that I have imported and tagged by date. Now I want to take some of them that I have organized on my disk and put give them a new tag. Shotwell thinks they are duplicates and won't import them. Is there a way to require Shotwell to import these duplicates? What are the differences between 2.5" and 3.5" hard disks? What does the 2.5"/3.5" value indicate? The thickness?  I want one of my friends to buy 1TB hard disk for me. I know I want a 1TB capacity and 7200rpm, but don't know how to choose between 2.5" and 3.5"; I am worried that the 3.5" drive may be physically too big.  Also, aside from the measurements, are there any other differences that may cause compatibility or usability concerns? Can I completely disable Cortana on Windows 10? Windows 10 has Cortana, which I don't like. I disabled it as soon as I could. However, looking in Task Manager, the process for Cortana is still running, and can't be effectively terminated: ending the task simply results in the process respawning a few seconds later. Using the command  taskkill /IM Cortana.exe /F   has the same result: the process respawns.  Is there any way to disable Cortana so that the process doesn't keep running in the background, and doesn't respawn if terminated? Transpose of inverse vs inverse of transpose File sync error (AUTH_FAILED) Recently I started getting a File sync error on all 3 of my PCs running Ubuntu One.  One is running Ubuntu, the other 2 are running Windows 8.  Looking at the list of clients on the web, none of them were there anymore.    I found this article:      On how to fix the issue for my Ubuntu PC and it worked perfectly.  Now I am looking for a similar fix for Windows but haven't found one yet.  I've tried un-installing Ubuntu One and re-installing it, but it must still be holding the keys somewhere because it never asked me to login again.    Does anyone know where I can clear these keys to get my files syncing on Windows again? Triggered send status queued, need to get an alert How can I capture the movement of a bullet? Just beginning with photography.    Consider this image:     (This photo was taken by Harold "Doc" Edgerton in 1964 using his Rapatronic camera.)  I am looking for a  camera that can capture such an image. I am not looking for more fps. less fps is fine, but it must be able to capture such an instance.   What features should I look in such a camera?  How fast should be the shutter speed? What other things I should look for? The attribute image.itemtype has an invalid value I am using JSON-LD format for Structured data. In home page @type=website &amp; in details page @type=Article. Logo property of Organization section in details page showing following warning in Google Structured Data Testing Tool But home page is not although in both page value is same.      (The attribute logo.itemtype has an invalid value.)   Home page JSON-LD  &lt;script type="application/ld+json"&gt;     {     "@context": "http://schema.org",     "@type": "WebSite",     "url": "http://kothaboli.com/",     "name": ".....",     "alternateName" : "....",     "description" : "......",     "potentialAction": {         "@type": "SearchAction",         "target": "http://kothaboli.com/search?keywords={search_term_string}",         "query-input": "required name=search_term_string"     },     "sameAs":[         "https://www.facebook.com/kothaboliDotCom/",         "https://twitter.com/kotha_boli",         "https://plus.google.com/+kothaboli"     ],     "publisher" : {         "@type" : "Organization",         "name" : "....",         "alternateName": "...",         "logo": "http://kothaboli.com/media/1018/ka.jpg"         }     } &lt;/script&gt;     Details page JSON-LD      &lt;script type="application/ld+json"&gt;     {     "@context" : "http://schema.org",     "@type" : "Article",     "url": "http://kothaboli.com/interviews/intellectual/arundhati-roy/",     "name" : "... ....",     "headline":  "...--’",     "datePublished" : "7/26/2016 1:10:05 AM",     "dateModified" : "8/12/2016 1:50:54 AM",     "image" : "http://kothaboli.com/media/1088/33333333.jpg",     "articleSection" : "....",     "articleBody" : ".....’ ",     "mainEntityOfPage": "..",     "author" : {         "@type" : "Person",         "name" : "....",         "alternateName": "Arundhati Roy"         },     "publisher" : {         "@type" : "Organization",         "name" : "...",         "alternateName": "Kothaboli",         "logo": "http://kothaboli.com/media/1018/ka.jpg"         }     } &lt;/script&gt; Analogous results to Euler's theorem Fermat's little theorem and its generalization, Euler's theorem holds for pair of relatively prime integers. Are there any analogous results for not relatively prime integers ? Thanks in advance. Are these gerund sentences grammatically correct? I bought this book titled 2 Hari Taklukan Grammar, written by Edward Rahardian in Bahasa (Indonesian language) and mostly talk about gerund and infinitive. And these are some examples of the gerund sentences that I found.        His mother suggested having lunch before we leave.     I will try studying harder.     The car needs washing.     Your hair needs washing.     My teacher disliked me coming late.        Somehow those words sound unnatural for me because I've never heard those in daily conversations. As a learner, I only get exposed with English by watching TV series and any other entertainment resources.  So in my thought, they sound more natural like this:        His mother suggested to have lunch before we leave.     I will try to study harder.     The car needs to be washed.     Your hair needs to be washed.     My teacher disliked me to come late.       Are those sentences in the first group grammatically correct? And, is it normal for one to say them in normal/daily conversations? What is a serialVersionUID and why should I use it? How can I listen to communication between a process and a serial port? On a Gentoo Linux machine, a process is communicating with another computer via serial port (/dev/ttyS1). I want to listen to this communication (i.e. what is being sent/received by the process) without further interfering.   How can I achieve this with just basic Linux tools? I even can change the serial port the process is communicating with, so maybe I can 'shortcut' two devices (/dev/ttyS1 and /dev/xxx) listen to all communication, when all output to /dev/ttyS1 is forwarded to /dev/xxx and vice versa. But how do I do it? Something with socat? Change MAC address in OS X Yosemite How to remove GNOME Shell from Ubuntu 20.04 LTS to install other desktop environment from scratch? I have just installed the final version of Ubuntu 20.04 LTS desktop system from ubuntu-20.04-desktop-amd64.iso. After two days of testing I completely do not like its graphical interface - the GNOME Shell. Even installation of GNOME Flashback does not help either.  So I want to completely remove the GNOME Shell with all its trails from my system without re-installation. Just want to start from scratch like it was approximately if I have installed Ubuntu from . Cross product: matrix transformation identity How can one prove the following identity of the cross product?  $$(M a)\times (M b)=\det(M) (M^{\rm T})^{-1}(a\times b)$$  $a$ and $b$ are 3-vectors, and $M$ is an invertible real $3 \times 3$ matrix. I would like to ask for some simple examples showing the uses of &lt;div&gt; and &lt;span&gt;.   I've seen them both used to mark a section of a page with an id or class, but I'm interested in knowing if there are times when one is preferred over the other. Parentheses vs. double commas vs. dashes to provide additional detail When do you use commas and when do you use parentheses to provide more detail about something?  For example:   The suspect, Tom Wilson, is now being charged with murder. The suspect (Tom Wilson) is now being charged with murder. John Smith, a member of the jury, agreed with the verdict. John Smith (a member of the jury) agreed with the verdict. The first example, the one about the fox, is the more valid one. The first example (the one about the fox) is the more valid one.   I realize that the first example, the one that uses parentheses, is probably more valid in this case (if anyone has a better example, please include it), but when, if ever, would you favor parentheses?  Update: I realize that dashes are sometimes used for similar situations, so I'd appreciate information on these as well.  For example:   The children—who are wearing shoes—will go on the trip The children, who are wearing shoes, will go on the trip The children (who are wearing shoes) will go on the trip