I made an application for taxi service with PHP and MySQL. And I use PDO for connecting. I setup an admin panel and I wrote a delete query for delete unwanted price records according to its priceid. But nowadays I lost all price data(Table become empty) sometimes without any action from Admin. Please check my delete query page code below. Thank you for your time.  ob_start(); include 'inc/database.php'; include 'inc/header.php';  if (isset($_GET['getid'])) {     $getId = $user -&gt; cleaninput($_GET['getid']); } else {     header("Location:prices.php"); }  if (!empty($getId) &amp;&amp; is_numeric($getId)) {     $adData = $DB_con-&gt;prepare("DELETE FROM price_data WHERE price_ID=".$getId." LIMIT 1");     $adData -&gt; execute();     header("Location:prices.php"); } else {     header("Location:prices.php"); }
From what I can gather, there are three categories:   Never use GET and use POST Never use POST and use GET It doesn't matter which one you use.   Am I correct in assuming those three cases? If so, what are some examples from each case?
The first homology group $ H_1(E(K); Z) $ of a knot exterior is an infinite cyclic group which is generated by the class of the meridian. In PHP you can just use $_POST for POST and $_GET for GET (Query string) variables. What's the equivalent in Python? Interpretation of LASSO regression coefficients I'm currently working on building a predictive model for a binary outcome on a dataset with ~300 variables and 800 observations. I've read much on this site about the problems associated with stepwise regression and why not to use it.  I've been reading into LASSO regression and its ability for feature selection and have been successful in implementing it with the use of the "caret" package and "glmnet".   I am able to extract the coefficient of the model with the optimal lambda and alpha from "caret"; however, I'm unfamiliar with how to interpret the coefficients.    Are the LASSO coefficients interpreted in the same method as logistic regression? Would it be appropriate to use the features selected from LASSO in logistic regression?   EDIT  Interpretation of the coefficients, as in the exponentiated coefficients from the LASSO regression as the log odds for a 1 unit change in the coefficient while holding all other coefficients constant. Bridge Rectifier Fails When AC Inputs are Shorted How do I include lines in resolv.conf that won't get lost on reboot? I have finally migrated to 12.04 from 7.10. I have one last part to complete but I am stumped. I am using Puppet on each server, and in the past I have included a nameserver address and a search domain name for the puppetmaster in resolv.conf.   search puppetmaster.com nameserver 192.168.1.XXX   In 12.04 resolv.conf gets overwritten when rebooted. I cannot use a static IP for these, so using the /etc/network/interfaces to help me out is a nill point.  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 127.0.0.1   Is there a way to get resolvconf to handle this either in the head, tail or base? If there is, are there any examples I can use to tweak on my server.   Any help is much appreciated. How to deal with factors with rare levels in cross-validation? Suppose in a regression analysis in R, I have a factor type independent variable with 3 levels in my train dataset. But in the test data set that same factor variable has 5 levels. Therefore I can not predict the response values for test dataset. What should be done in this case? How do I start Nautilus as root? How can I speed up combat with a large number of enemies? I'm DMing for a campaign where the player characters will sometimes face small squads of creatures, most recently six ground troops and two archers helping out. In this setting, these creatures dominate the land the PCs are in and have an organised military, hence squads of enemies.  Combat tends to go quite slowly, however. Eight enemies and three players means the players spend a lot of time waiting between their turns!  Without reducing the number of enemies in the encounter, how can I speed up combat when the players are fighting many enemies? Please explain the meaning of "otherwise than" in this sentence Please explain the meaning of the second part and explain "otherwise than" in part b     a person’s UK property business consists of:      (a) every business which the person carries on for generating income from land in the United Kingdom; and      (b) every transaction which the person enters into for that purpose otherwise than in the course of such a business. Are there rules about using "that" to join two clauses? He will understand that I was not joking.   He will understand I was not joking.  Which of the sentences is correct? Are there any specific rules about the use of &quot;that&quot; in the sentences I reported as example? How to combine array items with string substitution? Converting Degree Minutes to decimal degrees using Excel formula? I have location points collected from a garmin device stored in an excel sheet in Degree Minutes format --- W00208.172,N1046.977.  I am looking for an Excel formula to convert either to Decimal Degrees or Degrees Minutes seconds Format ? Is there any way to shorten URL in SMS in Marketing Cloud? I am trying to schedule an SMS in the journey to the subscribers who did not open their email. I want to redirect the subscribers to their hosted email page.  I am using the below code to populate hosted email link in email.  %%=RedirectTo(CloudPagesURL(383,'Id',@Id))=%%   In the message, it's showing up.        How can I shorten this URL? PostgreSQL CPU 100% after configure Wal log shipping hot standby I have configured Hight Avaliabily WAL Log Shipping Hot Standby (SSL) with one node. But after I configure, both hosts (primary and secondary) take 100% CPU usage. The most strange is because I have only one database called &quot;TESTE&quot; with one table called &quot;EXAMPLE&quot; to check if replication was OK. The replication worked perfectly but I don't understand why my CPU takes 100% usage because I don't have any application connect on my cluster. I ran HTOP command and get this results: Image 1 - Primary Server HTOP Info  Image 2 - Secondary Server HTOP info  S.O. version: No LSB modules are available. Distributor ID: Debian Description:    Debian GNU/Linux 10 (buster) Release:        10 Codename:       buster  PostgreSQL version: postgres (PostgreSQL) 12.3 (Debian 12.3-1.pgdg100+1)  Primary server postgres.conf file: max_connections = 100 SSL = on shared_buffers = 2GB work_mem = 10485kb maintenance_work_mem = 512MB dynamic_shared_memory_type = posix effective_io_concurrency = 200 max_worker_processes = 4 max_parallel_maintenance_workers = 2 max_parallel_workers_per_gather = 2 max_parallel_workers = 4 wal_level = replica wal_buffers = 16MB max_wal_size = 200MB min_wal_size = 80MB checkpoint_completion_target = 0.7 archive_mode = on max_wal_senders = 3 wal_keep_segments = 8 hot_standby = on hot_standby_feedback = on random_page_cost = 1.1 effective_cache_size = 6GB default_statistics_target = 100  pg_stat_activity info:  pg_stat_archiver info:  pg_stat_replication info:  If I stop postgres service in both servers the CPU still has 100% usage. Anyone can help me? For example,      I like chocolate, vanilla, and lemon and orange ice cream.    Indicating "lemon and orange" is a combined flavor, as an item in the list needing an initial and. When to spell out numbers Proving a basis for inner product space V when $||e_j-v_j||< \frac{1}{\sqrt{n}}$. Suppose $(e_1,e_2,...,e_n)$ is an orthonormal basis of the inner product space $V$ and $v_1,v_2,...,v_n$ are vectors of $V$ such that $$||e_j-v_j||&lt; \frac{1}{\sqrt{n}}$$ for each $j \in \left\{1,2,...,n \right \}$. Prove that $(v_1,v_2,...,v_n)$ is a basis of $V$.  I am completely lost and just starting to learn about inner product spaces. Could someone provide a proof with the explanation of how you got there? My regex is matching too much. How do I make it stop? I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}? I want to select the value from the dropdown I am testing www.paytm.com  In that I have filled in the mobile number but I am not able to focus and select the mobile operator which is present in the dropdown just after the phone number section.  I want to select 'vodafone' as the value from the dropdown.  How to do that using webdriver  Code I have written till now  `  public class MMT {   public static void main (String[] args)  {  System.setProperty("webdriver.chrome.driver","E:/som/chromedriver/chromedriver.exe");  WebDriver driver = new ChromeDriver();  driver.get("http://paytm.com");  driver.findElement(By.id("mobile-number")).sendKeys("9876543212");`   What should be my next steps? How do I use Conditional Formatting based on due dates in Excel 2013? I am trying to format cells in Excel 2013. I want the cells to get colored as green, yellow, and red based on how close they are with the target date (January 13, 2015 in this case).  I am unable to use conditional formatting as Excel says that relative formatting is not permitted within conditional formatting.   Target:   06-01-2015  01-01-2015 02-01-2015 03-01-2015 04-01-2015 05-01-2015 06-01-2015 07-01-2015 08-01-2015 09-01-2015 10-01-2015   If the date in the cell is more than 2 days of the target date, I want the cell to change color to Green. I used =DATEDIF($N12,$N$9,"d")&gt;=3 and the format changed to green.  If the date in the cell is exactly 2 days near the target date, I want the cell to change color to yellow. I used =DATEDIF($N12,$N$9,"d")=2 and the format changed to yellow.  If the date in the cell is within 2 days of the target date, I want the cell to change color to red. I used =DATEDIF($N12,$N$9,"d")&lt;2 and the format changed to red only for 5th and 6th January. Apparently, it does not recognize negative values.  How can I get this to match the required colors?