Which is correct?  I wish everything was as easy OR I wish everything were as easy
had declared the sentence below as follow: 1) STAR TURN, 2) BEST LINES.      I wish Bernard Cribbins was my grandad. Perhaps he would be willing to   adopt?     Rattigan: “If only that was possible.” The Doctor: “If only that were   possible. Conditional clause.”    Is 'was' after 'I wish', 'if only' and 'if' (in conditional clauses) colloquial?  Does it be used in formal speech and writing?
Can we apply for a Schengen tourist visa while visiting another country on a short-stay visa? "Baggage" versus "luggage" Plotting data seems "noisy" Ubuntu 12.04 on Amilo LA1703 after istalling graphics doesn't start? How to construct a relative path in Java from two absolute paths (or URLs)? Flash drive .docx disappeared files My client wants me to write a formula field to return the duration(in months and days) between two date fields.  For ex:    If start date is "January 1st 2016" and end date as "December 31st 2016" then it should return value as "12". If start date is "January 1st 2016" and end date as "November 20th 2016" then it should return value as "11.67".   From the sample formulas given on the salesforce , I see that there is a formula date_1 — date_2 to calculate number of days between two dates.  But should I update the formula to (date_1 — date_2)/30 or (date_1 — date_2)/31 to get what I need?  Is this something really doable using formula or am I better off solving this using Apex? Idiom or expression that would imply "someone is a habitual liar" I'm looking for an idiom or expression for describing people who tell lies out of habit (so you cannot trust them at all).   I know that these people are called , but I'm not looking for psychological terms.  Is there any idiom or expression for describing such people?   For example:     "Did X tell that to you?! Come on, don't believe him/her. Don't you know he/she ___ (=is a habitual liar)?" In other words, what is the Drupal 8 equivalent of ?  Drupal 8 still uses hook_menu(), but for what I can see, the information returned by the hook is different from what the hook returned in Drupal 7. For example, the definition given in user_menu() for user is the following.    $items['user'] = array(     'title' =&gt; 'User account',     'title callback' =&gt; 'user_menu_title',     'weight' =&gt; -10,     'route_name' =&gt; 'user_page',     'menu_name' =&gt; 'account',   );   The route_name property links to an entry in the  file.  user_page:   pattern: '/user'   defaults:     _content: '\Drupal\user\Controller\UserController::userPage'   requirements:     _access: 'TRUE'   This is different from what done with Symphony, and it confuses me about how a module can alter the route defined from another user.  The only function that is still invoking hook_menu_alter() is menu_router_build(), but that function still contains code that needs to be updated, since it is still using the now deprecated drupal_alter().    // Alter the menu as defined in modules, keys are like user/%user.   drupal_alter('menu', $callbacks);   foreach ($callbacks as $path =&gt; $router_item) {     // If the menu item is a default local task and incorrectly references a     // route, remove it.     // @todo This may be removed later depending on the outcome of     // http://drupal.org/node/1889790     if (isset($router_item['type']) &amp;&amp; $router_item['type'] == MENU_DEFAULT_LOCAL_TASK) {       unset($callbacks[$path]['route_name']);     }     // If the menu item references a route, normalize the route information     // into the old structure. Note that routes are keyed by name, not path,     // so the path of the route takes precedence.     if (isset($router_item['route_name'])) {       $router_item['page callback'] = 'USES_ROUTE';       $router_item['access callback'] = TRUE;       $new_path = _menu_router_translate_route($router_item['route_name']);        unset($callbacks[$path]);       $callbacks[$new_path] = $router_item;     }   } How do I install drivers for the RTL8821CE Network Controller on Ubuntu 20.04? My Laptop (HP Laptop 14-ck1xxx) came with the RTL8821CE Network Controller. When I run lspci | grep Network I get: 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter  I‘m unable to get the Wi-Fi to work. What I did so far:  Download the repo at . Unzip the file and rename the folder from rtl8821ce-master to rtl8821ce. Run the following commands in the terminal:  cd Downloads/rtl8821ce/ sudo apt install bc module-assistant build-essential dkms sudo m-a prepare sudo ./dkms-install.sh    Everything seemed to install and execute successfully. Then, I rebooted my laptop and made sure secure boot is disabled. However, Ubuntu still displays: No Wi-Fi Adapter Found - make sure you have a Wi-Fi adapter plugged in and turned on  The command uname -r returns: 5.4.0-7634-generic  The command sudo lshw -C network returns: *-network                         description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:02:00.0        logical name: eno1        version: 15        serial: c4:65:16:08:52:bf        size: 1Gbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 ip=192.168.178.37 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s        resources: irq:16 ioport:4000(size=256) memory:a1204000-a1204fff memory:a1200000-a1203fff   *-network UNCLAIMED        description: Network controller        product: RTL8821CE 802.11ac PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:3000(size=256) memory:a1100000-a110ffff  What am I doing wrong? How can this be solved? Is it possible to have f.lux (software that adjusts display's color temperature) on Ubuntu 14.04? f.lux is software which adjusts temperature of your display according to time of the day. Is it possible to make f.lux work in Ubuntu 14.04? If so, maybe you can share your knowledge or point me to a guide. Mint 18 will boot only to a black screen Why do heavier objects fall faster in air? Use Outgoing SSH to receive incoming SSH My ISP does not allow me to have a static IP address. As such I am unable to remotely SSH in my home machine. Is there a way I could SSH from my home machine to a server and SSH into the server from my remote laptop and bridge the two connections?  Cheers! Best way to get last identity inserted in a table Turning separate lines into a comma separated list with quoted entries I have the following data (a list of R packages parsed from a Rmarkdown file), that I want to turn into a list I can pass to R to install:  d3heatmap data.table ggplot2 htmltools htmlwidgets metricsgraphics networkD3 plotly reshape2 scales stringr   I want to turn the list into a list of the form:  'd3heatmap', 'data.table', 'ggplot2', 'htmltools', 'htmlwidgets', 'metricsgraphics', 'networkD3', 'plotly', 'reshape2', 'scales', 'stringr'   I currently have a bash pipeline that goes from the raw file to the list above:  grep 'library(' Presentation.Rmd \ | grep -v '#' \ | cut -f2 -d\( \ | tr -d ')'  \ | sort | uniq   I want to add a step on to turn the new lines into the comma separated list. I've tried adding tr '\n' '","', which fails. I've also tried a number of the following Stack Overflow answers, which also fail:      This produces library(stringr)))phics) as the result.      This produces ,% as the result.      This answer (with the -i flag removed), produces output identical to the input. Suggested Edits Dashboard doesn't agree with Suggested Edits view How can I remove duplicate values from an array in PHP? Are Complex Substitutions Legal in Integration? This question has been irritating me for awhile so I thought I'd ask here.  Are complex substitutions in integration okay?  Can the following substitution used to evaluate the Fresnel integrals:  $$\int_{0}^{\infty} \sin x^2\, dx=\operatorname {Im}\left( \int_0^\infty\cos x^2\, dx + i\int_0^\infty\sin x^2\, dx\right)=\operatorname {Im}\left(\int_0^\infty \exp(ix^2)\, dx\right)$$  Letting $ix^2=-z^2 \implies x=\pm\sqrt{iz^2}=\pm \sqrt{i}z \implies z=\pm \sqrt{-i} x \implies dx = \pm\sqrt{i}\, dz$  Thus the integral becomes  $$\operatorname {Im}\left(\pm \sqrt{i}\int_0^{\pm\sqrt{-i}\infty} \exp(z^2)\, dz\right)$$  This step requires some justification, and I am hoping someone can help me justify this step as well: $$\pm \sqrt{i}\int_0^{\pm\sqrt{-i}\infty} \exp(z^2)\, dz=\pm\sqrt{i}\int^\infty_0\exp(z^2)\, dz=\pm\sqrt{i}\left(\frac{\sqrt{\pi}}{2}\right)$$  Thus  $$\operatorname {Im}\left(\int_0^\infty \exp(ix^2)\, dx\right)=\operatorname {Im}\left(\pm\frac{\sqrt{i\pi}}{2}\right)=\operatorname {Im}\left(\pm\frac{(1+i)\sqrt{\pi}}{2\sqrt{2}}\right)=\pm\frac{1}{2}\sqrt{\frac{\pi}{2}}$$  We find that the correct answer is the positive part (simply prove the integral is positive, perhaps by showing the integral can be written as an alternating sum of integrals).  Can someone help justify this substitution?  Is this legal? Group of order $8p$ is solvable, for any prime $p$ Consider the following question:     Show that a group $G$ of order $8p$ is solvable, for any prime $p$.   I am kind of stuck, but here are my first attempts:  I chose the series of subroups $G&gt;H_8&gt;H_4&gt;H_2&gt;H_1=\{e\}$ where $H_k$ has order $k$. All of these subgroups exist due to Sylow's Theorems. We have the quotients $H_8/H_4\cong H_4/H_2 \cong H_2/H_1 \cong \mathbb Z/2\mathbb Z$, so $G&gt;H_8\rhd H_4\rhd H_2\rhd H_1=\{e\}$. Only the factor $G/H_8 \cong \mathbb Z/p\mathbb Z$ is causing me a headache, because although its of prime order (and hence abelian) I don't know whether $H_8$ is normal in $G$ (unless $p=2$).  If $p\ne 2$, then the number $k$ of Sylow $2$-subgroups is $1$ mod $2$. Since $k$ divides $|G|$ we might have $k=1$ or $k=p$. If we had $k=1$ then $H_8$ would be the only Sylow $2$-subgroup (and hence normal in $G$). But how could we show this?  Or is there even an easier way to approach this problem?  $\ $  edit: I am going to try a different approach: The case $p=2$ is clear. When $p=3$ or $p=7$ the group has order 24 or 56 and since the smallest simple non-abelian group has order 60, the group must also be solvable in these exceptional cases (as Mariano pointed out).  In any other case we get a Sylow $p$-subgroup $H_p$ of order $p$, which is is normal in $G$. The quotient $G/H_p$ has order $8=2^3$; and prime power order implies solvable. So $G/H_p$ is solvable and $H_p$ is also solvable. And since the composition factors of $G$ are those of $H_p$ together with those of $G/H_p$, we conclude that $G$ is solvable iff $H_p$ and $G/H_p$ are solvable, which is the case. Hence $G$ is solvable if $|G|=8p$.