best practice to import bulk custom labels in LWC

I want to import 20 to 25 custom labels in Lightning component. I am currently using approach below which is available in documentation.   import customLabel1 from '@salesforce/label/c.Custom_Label_1'; import customLabel2 from '@salesforce/label/c.Custom_Label_2'; import customLabel3 from '@salesforce/label/c.Custom_Label_3';     ...     ...     ... import customLabel20 from '@salesforce/label/c.Custom_Label_20';   export default class MyLwcComponent extends LightningElement {     /*other logic*/      // Expose the labels to use in the template.     label = {         customLabel1,         customLabel2,         customLabel3         ....,         customLabel20     }; }   It is working fine, but writing these many import statements is the only way? Is there any modular way to do the same?


Legality of publishing a homebrew campaign

A friend and I are collaborating on designing a campaign setting for D&D 5e. We'd like to eventually publish it on drivethrurpg. I'm wondering about legality concerns with this. We're going to have things like Tiefling and Drow that would be part of this campaign.  I'm wondering about the legal concerns of this. It seems like I've heard a lot of horror stories about WOTC using their huge team of lawyers to step all over independent publishers.  Is there anything I need to keep in mind, or should I just follow the OGL? In the case of just following the OGL, how does one normally go about this? Do I need annotations on every single thing that comes from the OGL? I know little to nothing about legal matters. Any advice would be appreciated.  I suppose I'm asking more about the format of things and what exactly I'd have to include in the document to make it acceptable.


If $\phi$ : $F_2[X]/(X^3+X+1)$ $\rightarrow$ $F_2[X]/(X^3+X^2+1)$ is an isomorphism, then prove that $\phi(a)=b+1$, with $a$, $b$ the classes of $X$

Consider two fields:  $K: $ $F_2[X]/(X^3+X+1)$. Let $a$ be the class of $X$ (so $a=X+(X^3+X+1))$  $L: $ $F_2[X]/(X^3+X^2+1)$. Let $b$ be the class of $X$ (so $b=X+(X^3+X^2+1))$  $F_2$ denotes the field with $2$ elements. Field $L$ is ismorphic with $K$.   If $\phi$ : $F_2[X]/(X^3+X+1)$ $\rightarrow$ $F_2[X]/(X^3+X^2+1)$ is an isomorphism, then prove that $\phi(a)=b+1$.  They give as a hint: $b+1$ is a root of $Y^3+Y+1$.  I came up with the following:  Fill in $a$ in $K$, so you get $a^3+a+1$.  Fill in $b+1$ in $L$, so you get $(b+1)^3+(b+1)^2+1 = b^3+b^2+b+1+b^2+1= b^3+b+1$, which is equal to the $a$ part above.  But I don't know if this is a way to actually prove that $\phi(a)=b+1$. How can I do this?


How to prove this decomposition of sum of squares?

I am reading a paper   It has a mathematical step shown as  $$\sum_{i=1}^{n}(x_i-\mu)^2=n(\mu-\overline x)+\sum_{i=1}^n(x_i-\overline x)^2$$  Here the $\mu$ is unknown parameter and $\overline x$ is the known mean of $\mathbf x=(x_1, x_2, x_3, \dots,x_n)$  How do I demonstrate this identity?


How does a step-up voltage converter work? I am talking about DC amplified to DC.


Will I keep my progress if I change account?

I have been playing for almost 2 days, and today it is asking me to sign up again.  I have all my game saved in my google account, but I wonder if I just log in from a trainer account will I keep my progress?


How to post successfully with large code

I have some issues in my html code. but unable to post question as it said "it looks like your post is mostly code. please add some more details".  how can we overcome this issue.  Thank you...


Let $(G,*)$ be a group with $(a*b)^3=a^3*b^3$ and $(a*b)^5=a^5*b^5\forall a,b∈G$. Show that $(G,*)$ is abelian.


calculation of $\int\frac{1}{\sin^3 x+\cos^3 x}dx$ and $\int\frac{1}{\sin^5 x+\cos^5x}dx$

Solve the following indefinite integrals:      $$ \begin{align} &(1)\;\;\int\frac{1}{\sin^3 x+\cos^3 x}dx\\ &(2)\;\;\int\frac{1}{\sin^5 x+\cos^5 x}dx \end{align} $$   My Attempt for $(1)$:  $$ \begin{align} I &= \int\frac{1}{\sin^3 x+\cos ^3 x}\;dx\\ &= \int\frac{1}{\left(\sin x+\cos x\right)\left(\sin^2 x+\cos ^2 x-\sin x \cos x\right)}\;dx\\ &= \int\frac{1}{\left(\sin x+\cos x\right)\left(1-\sin x\cos x\right)}\;dx\\ &= \frac{1}{3}\int \left(\frac{2}{\left(\sin x+\cos x\right)}+\frac{\left(\sin x+\cos x \right)}{\left(1-\sin x\cos x\right)}\right)\;dx\\ &= \frac{2}{3}\int\frac{1}{\sin x+\cos x}\;dx + \frac{1}{3}\int\frac{\sin x+\cos x}{1-\sin x\cos x}\;dx \end{align} $$  Using the identities  $$ \sin x = \frac{2\tan \frac{x}{2}}{1+\tan ^2 \frac{x}{2}},\;\cos x = \frac{1-\tan ^2 \frac{x}{2}}{1+\tan^2 \frac{x}{2}} $$  we can transform the integral to  $$I = \frac{1}{3}\int\frac{\left(\tan \frac{x}{2}\right)^{'}}{1-\tan^2 \frac{x}{2}+2\tan \frac{x}{2}}\;dx+\frac{2}{3}\int\frac{\left(\sin x- \cos x\right)^{'}}{1+(\sin x-\cos x)^2}\;dx $$  The integral is easy to calculate from here.  My Attempt for $(2)$:  $$ \begin{align} J &= \int\frac{1}{\sin^5 x+\cos ^5 x}\;dx\\ &= \int\frac{1}{\left(\sin x+\cos x\right)\left(\sin^4 x -\sin^3 x\cos x+\sin^2 x\cos^2 x-\sin x\cos^3 x+\cos^4 x\right)}\;dx\\ &= \int\frac{1}{(\sin x+\cos x)(1-2\sin^2 x\cos^2 x-\sin x\cos x+\sin^2 x\cos^2 x)}\;dx\\ &= \int\frac{1}{\left(\sin x+\cos x\right)\left(1-\sin x\cos x-\left(\sin x\cos x\right)^2\right)}\;dx \end{align} $$  How can I solve $(2)$ from this point?


java.lang.reflect.InvocationTargetException in javafx program

I am currently trying to code a simple MediaPlayer to explore javafx. (beginner here) I want to open a mp3 file and simply play it but when i launch it there is an exception ive never seen.  Heres the code:   @Override public void start(Stage primaryStage) {     Media pick = new Media("file:///" + System.getProperty("Benutzer.dir").replace('\\', '/') + "/" + "oof.mp3");     MediaPlayer player = new MediaPlayer(pick);      MediaView mediaView = new MediaView(player);      Group root = new Group(mediaView);     Scene scene = new Scene(root, 500, 200);      primaryStage.setTitle("MediaPlayerTest");     primaryStage.setScene(scene);     primaryStage.show();      player.play(); }  public static void main(String[] args) {     launch(); }   And the exception:  Exception in Application start method java.lang.reflect.InvocationTargetException  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)     at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.lang.reflect.Method.invoke(Unknown Source)     at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source) Caused by: java.lang.RuntimeException: Exception in Application start method  at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:917)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$154(LauncherImpl.java:182)     at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException  at soundEdit.start(soundEdit.java:13)     at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$161(LauncherImpl.java:863)     at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$174(PlatformImpl.java:326)     at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)     at java.security.AccessController.doPrivileged(Native Method)     at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)     at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)     at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)     at com.sun.glass.ui.win.WinApplication.lambda$null$147(WinApplication.java:177)   Already tried to find a solution but cant really find anything. Thanks for the help.


Why doesn't the directory stack persist from inside a script?

I was working on a script to set up a project-specific environment.  I created a script to set up the directory stack as suggested in the first comment to .  Console output provided evidence that the stack was being created as designed, but as the script completed, the stack did not exist when I was returned to the console. I suspect that this is a design feature to allow the script writer an independent environment, and that this touches on a question of broader scope concerning how the environment is handled inside and outside of a script.  What is going on and where can I learn more?


converting a string of number to byte array keeping display value with 2 digits

I have a string which i would need to convert back to its original byte array. byte[] frame = new frame[64];  //Frame has values : 0x01,0x04,0x00,0x00,0x00,0x0A,0x70,0x0D  //TotalLengthofRecivedPackage = 8   string Payload ;   StringBuilder builder = new StringBuilder(); for ( int i = 0; i < TotalLengthofRecivedPackage; i++ ) {     builder.Append(frame[i].ToString("x2")); } this.Payload = builder.ToString();  after this I was able to get this.Payload set as 01040000000A700D NOw i would like to recreate back this byte array with contents as 0x01,0x04,0x00,0x00,0x00,0x0A,0x70,0x0D    is this possible, I have tried to use  byte[] recreatedbytesarray = payload.Select(c => ( byte ) ( c - '0' )).ToArray(); but with this the bytes i get is 0x00,0x01,0x00,0x04,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0A,0x70,0x0D which is literraly each character changed to a number but i need 2 digits to be considered as a number. Any help would be appreciated.Thank you.


Prove by Combinatorial Argument that $\binom{n}{k}= \frac{n}{k} \binom{n-1}{k-1}$

This is a question from my first proofs homework and I am confused about the combinatorial argument aspect. I already did the algebraic proof. I think I am supposed to put into words what both sides represent? So the LHS would be the number of ways of picking a committee of $k$ members from $n$ people, or number of subsets of size $k$ from a total of $n$, but I don't know how to articulate what is happening on the RHS.


From 2013-2015, I had an old Minecraft account that I migrated on a computer I don't have anymore using an email that I don't remember. I sort of forgot about it until pretty recently, where I now struggle in trying to get it back.  I checked and made sure that my account has not been compromised and I've tried every method that I could, from trial and error to sending password change requests to every email I can remember. I can't get into the account but I'm opposed to buying it again. I've even looked up hacking programs among other things to no avail because they're randomized and meant for attacking random accounts. Anything I could do would be appreciated.  Note: As I do not remember the email, I do not have the transaction ID.


What is the equivalent of bitfields in Delphi?

How can I convert this record definition from C to Delphi?  usb_enable, InMetaMode, escape, close_com_port, protocol, channel_type  typedef struct {    int                    com_port;    META_COMM_BAUDRATE     baudrate[12];        META_FLOWCTRL          flowctrl;         FBOOT_META_ARG         boot_meta_arg;        unsigned int           ms_connect_timeout;     unsigned int           usb_enable: 1;      unsigned int           InMetaMode: 1;        unsigned int           escape: 1;           unsigned int           close_com_port: 1;     META_MODE_TRACE_PARA_T trace_para;        unsigned int           channel_type: 4;      META_COMM_TRACE_PARA_T commTrace;     } Req;


How to keep vehicles upgrades equipped in Jetpack Joyride?

I have Jetpack Joyride for Android, but every time I start the game I have to equip the magnetic upgrades to all vehicles, except the teleporter, which is the only one already equipped.  I had once a game crash that undid my last 2 magnets purchases, so I ended up with only the teleporter and 20k less in cash. After that, I've bought every vehicle magnet, but still the only one that will remain equipped is the teleport.  Anyone already found some similar bug? How could I fix this, it's kinda annoying have to mannually enable 5 different upgrades every time I want to play.


Why still use decibels in the 21st century?

I understand what a decibel is, the spirit of the question is different: why do we still use decibels (and with at least two different, context-specific definitions), if we have the feat of scientific notation? I dare to claim that the change of 5e-1 (which is a half) is much more readable than 3dB (voltage? power?). 1e6 is more clear than 120dB, etc. Just for the joy of adding? 3dB + 7dB is 10dB, but 2e5+3e6 is errrm... I see many new datasheets from the top vendors (LTC, for example) use the V/V convention, which is closer to the scientific notation than to the decibels. An upcoming paradigm change?


Register A records for my Linux box on my Windows 2008 DNS/DHCP server

I've a network which is mainly Windows: Windows 2008 server (with DNS/DHCP as well as AD), and various mainly Windows machines (servers, XP, 7). I know trying to add few Linux boxes, and can't make them appear on the DNS server.  I'm using Ubuntu 11.04 (both client and server). The Ubuntu boxes are NOT part of the Domain though Samba or anything.  I've seen many conflicting answers on the Internet, including this site: is the registration done by the Linux box or by the DHCP server?  I've tried on the following:   On the Linux box, on /etc/dhcp/dhclient.conf, I had: send host-name "ubuntubox". Also tried fully qualified domains i.e. send host-name "ubuntubox.mydomain.local (side question: which one is correct?) On the Windows Server, in the DHCP configuration, right click on the zone -> properties -> DNS tab -> ticked the last checkbox (Dynamically update ...).   Anyway ... nothing helped.   Another side question: Why do I have both /etc/dhcp3 AND /etc/dhcp on my Linux box? Only the latter folder has dhclient.conf (despite common remarks on the web).  Also, is sudo dhclient -r really the equivalent of ipconfig /renew? As far as I can say it does nothing.


As we approach the age of artificial intelligence, I was curious about whole brain emulation. If a brain and consciousnesses is uploaded to a computer, is it still the same person, even if it was programmed to be the same person. I.e. if a personality is uploaded to a computer and trained to think it is the same brain, is it?


In film reviews/essays about a book or film, does the title of the movie/book always have to be highlighted/put in italics?  I know that at the start you have to put the title in italics, e.g.:     Director Tim Burton brings us Edward Scissorhands, which is about...   But do I need to put the title in italics in subsequent paragraphs too? E.g.:     The film techniques used in Edward Scissorhands are....


What is the effect of increasing your ram in blender?  Especially in the speed of rendering


Are there any official rules for the exact meaning of the phrase "when the target willingly moves" in Booming Blade?

The Booming Blade cantrip's secondary effect states that "[the target] becomes sheathed in booming energy until the start of your next turn. If the target willingly moves before then, it immediately takes 1d8 thunder damage, and the spell ends". We can deduce, then:   That the damage does not trigger when the target is dragged or pushed around via physical means (grappling, shoving, scenario effects, etc.) That the damage does not trigger when the target is dragged or pushed around via magical means (Gust, Eldritch Blast with Grasp of Hadar, Graviturgist's Gravity Well, etc.)   This seems pretty clear. However, what happens when the following cases arise?   The target is ordered to move via the use of Command (assuming they don't know yet that the thunderous aura is damaging). The target is forced to move via the use of Compulsion. The target is invited to move via the use of Suggestion. The target is Turned. The target is Frightened and forced to run via Dissonant Whispers. The target has a Geas that prohibits them from ending a turn next to an enemy if they can avoid it. The target is threatened into leaving the area or else. This one seems "willingly", but are they truly willing if they are panicking because you are telling them you will cut their heads off if they don't run?    seems to suggest that forcing people to move via mind control spells doesn't count as willing. However, , so I was looking for something more solid to make a RAW judgement of this interaction.


LaTeX - including .bib file not working properly

I am using a simple LaTeX file main.tex where am including a bib file and referring to its references, but reference numbers and references are not displayed, instead there is symbol ?. I want to print references whom I have referred to under the section Bibliography and reference number such as [1]. How can I make this code work as I want? Am using Windows 8, Texmaker 4.0.4 and MiKTeX 2.9. Here is the code. main.tex  \documentclass[11pt]{article} \usepackage{cite} \usepackage[german, english]{babel}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliographystyle{plain}  \bibliography{local}  \end{document}   local.bib  @misc{ Nobody06,        author = "Nobody Jr",        title = "My Article",        year = "2006" }


Magnetic field and electric field induce one another forever

A changing electric field produces magnetic field and vice versa. Does that mean that this process will carry on forever? Think of a circuit with a capacitor. The magnetic field due to the current at a point on the wire (by the Ampere-Maxwell law). But the current was changing with time, so it also meant that the magnetic field changed. And a changing magnetic field produces an electric field, so we have to go back again from the start by Ampere's law. It seems that this will go on forever. What is the final magnetic and electric field that I have to calculate?


Why aren't all photons virtual particles even in the "vacuum" of empty space?

I'm thoroughly confused about the nature of electromagnetic radiation. Light is supposed to exhibit both wave and particle characteristics. But does that mean that it is both a wave and a particle or neither a wave nor a particle? If the latter, then it is not a "real" particle at all, but only occasionally behaves as one (hence, a "virtual" particle). And if the former, then it is, depending on the experimental setup being used to detect it, a "real" particle, but one that only exists (as a particle) for a limited time, which again, corresponds to the definition of a virtual particle ("a transient fluctuation that exhibits many of the characteristics of an ordinary particle, but that exists for a limited time" - Wikipedia).  So, if photons invariably appear to exhibit the characteristics of virtual particles, why are they not actually virtual particles (even in a vacuum)?


Find processes reacting to a given keybinding

Is there a way to know which processes are listening to a given key binding?  For example, suppose I want to know which programs will do something when I press Ctrl+g. I guess the X server manages this, but how can I view the listening events?  To be clear, I'm not asking for how to set key bindings on X, but for how to find all processes which will do something when some combination of key presses (or mouse events for that matter) is used, possibly using command line tools.


I am trying to find the expected value of the number of even numbers rolled before the first odd number when rolling a fair die until an odd number comes up.  I arrived at $\sum\limits_{n=1}^\infty n(\frac{1}{2})^{n+1}$, then I factored out a $\frac{1}{2}$ to give me $\sum\limits_{n=1}^\infty n(\frac{1}{2})^{n}$. What I now lack is knowledge of infinite series.  I know it converges to 2; what I want to know is why?


Create alias with `>& /dev/null &` for GUI apps

Every time I run audacious from terminal, I have to type this: audacious my_song.mp3 >& /dev/null &  Is there an alias for this, so that if I only type audacious my_song.mp3 it will become audacious my_song.mp3 >& /dev/null &.  P/S: & is to make audacious run in background and >& /dev/null is to ignore some infomation from stdout and stderr.    My short answer:  $ cd # to go to home directory $ # make directory where you save your aliases $ mkdir alias.d && cd alias.d $ cat << EOF > audacious.sh #!/bin/bash audacious "$@" > /dev/null 2>&1 & EOF $ chmod u+x audacious.sh $ cd # to go to home directory $ echo "alias audacious='~/alias.d/audacious.sh'" >> .bash_aliases $ source .bash_aliases # make sure your .bashrc source .bash_aliases


Preposition dilemma: "new to me" or "new for me"

Very soon I realised that the task was new to OR  for me.   Which is the correct  preposition to use in this sentence:  to or for ?


Finding the dimension of real symmetric matrices with trace zero

What is the dimension of the vector space of all symmetric matrices of order $n\times n$ $(n\geq 2)$ with real entries and trace equal to zero?


I'm not familiar with diophantine equations. At most my approaches doesn't give results. I need to solve the following equation $$x^3-2y^3=1$$ Where $x,y,z\in\mathbb{Z}$ I know $x=-1,y=-1.x=1,y=0,$ Aware of any other integer solutions. Prove


I'm having trouble understanding why this machine doesn't work. Part of a ring, half of which is uniformly charged, is located between two oppositely charged plates, attracting to the negative one and pushing away from the positive one, thus gaining angular momentum.   I understand that perpetuum mobile is impossible, however, I'm interested why in terms of electrostatics and mechanics this machine can't accelerate infinitely.


Why is this command not working: "ps aux | grep xscreensaver"

I didn't see any hits about this on google, so I'm asking you:  I just tried to run this command in an ssh session, local is Debian Wheezy KDE, remote is Fedora 21 Gnome:  ps aux | grep xscreensaver   and this is the output:  bash:  grep: command not found...   I never seen this before, what is the cause?  I just few hours before updated the system, but didn't see any packages marked for removal. There are only two users on the system, and only me installs or removes software on it.  EDIT #1  Here is the commands and output copied,notice that the space is not there the second time:  [root@Hostname ~]# ps aux |  grep xscreensaver bash:  : command not found... [root@Hostname ~]# ps aux | grep xscreensaver bash:  grep: command not found...


Show that $a_n>0$ and $\lim_{n\to\infty} \frac{a_{n+1}}{a_n}=L$ implies that $\lim_{n\to\infty} a_{n}^{1/n}=L$

Let $(a_n)$ be a real sequence.   Show that $a_n>0$ and $\lim_{n\to\infty} \frac{a_{n+1}}{a_n}=L$ implies that $\lim_{n\to\infty} a_{n}^{1/n}=L $.  Is it legitimate to use $$\lim_{n\to\infty} \frac{a_{n+1}}{a_n}=\frac{\lim_{n\to\infty} a_{n+1}}{\lim_{n\to\infty} {a_n}}=L $$  which would imply that $$\lim_{n\to\infty} a_{n+1}=L \lim_{n\to\infty} {a_n}$$  which, used recursively would lead to  $$\lim_{n\to\infty} a_{n}= \lim_{n\to\infty} L^n  a_0$$  and thus using $\lim_{n\to\infty} a^{1/n}=1$ for all $a \in \mathbb{R}$ with $a>0$  $$\lim_{n\to\infty} a_{n}^{1/n}= \lim_{n\to\infty} L  a_0^{1/n}=L$$  The steps I am most unsure about are the first and the last step.


Given two functions $f(x) = \frac{1}{2}(e^x+e^{-x})$ and $g(x) = \frac{1}{2}(e^x - e^{-x})$, calculate $$ \int\frac{g(x)}{f(x)} \, dx. $$  Observing that $f'(x) = g(x)$, this is very easy to do. Just take $u = f(x)$ and therefore $du = f'(x)\,dx$. Now we have $$ \int \frac{f'(x)}{f(x)} \, dx = \int \frac{du}{u} = \ln |u| + C = \ln\left|\frac{1}{2}(e^x+e^{-x})\right|+C. $$ However, this solution is wrong. The correct one is $\ln|e^x+e^{-x}| + C$. I see how we could get that, just plug in $g(x)$ and $f(x)$ directly, and we get $$ \int \frac{\frac{1}{2}(e^x - e^{-x})}{\frac{1}{2}(e^x+e^{-x})} \, dx. $$ Cancelling the $\frac{1}{2}$'s and taking $u = e^x+e^{-x}$ and $du = (e^x-e^{-x}) dx$ gives us $$ \int \frac{du}{u} = \ln|u| + C = \ln|e^x+e^{-x}| + C. $$ I can't see where I made a mistake in my approach, and I'd be really grateful if you pointed it out.


How do I install Python 3.6 using apt-get?

I've tried the normal way, sudo apt-get install python3.6, but... well... that didn't work.   So, how would I go about it? (I'd preferably not build it on my own)  I'm using Ubuntu 16.04.


What do z${variable} and zfalse in bash script mean?

I have an existing script in my Linux host with these statements:  local variable=$1 if [ "z${variable}" != "zfalse" ]; then   local flag="--some_flag" fi   I haven't found an explanation of these "z${variable}" and "zfalse" notation or syntax in my Shell Scripting book. Hope someone can help explain what they mean. Thanks in advance.


build argument lists containing whitespace

In bash one can escape arguments that contain whitespace.  foo "a string"   This also works for arguments to a command or function:  bar() {     foo "$@" }  bar "a string"   So far so good, but what if I want to manipulate the arguments before calling foo?  This does not work:  bar() {     for arg in "$@"     do         args="$args \"prefix $arg\""     done      # Everything looks good ...     echo $args      # ... but it isn't.     foo $args      # foo "$args" would just be silly }  bar a b c   So how do you build argument lists when the arguments contain whitespace?


What is grid in Unity and how can I implement it?

I'm a beginner. I need to place a grid on my map in Unity and would like to access it to place a simple object on mouse click. How can I achieve this ?  I am unable to understand the grid functionality, should I have to write code for a 2D array or is there something in Unity that I can access, and what is basically the grid like something when I click my background image ?


Polarr Photo Editor will not install 18.04

I have tried to install the Polarr photo editor 1/2 dz times either from the software or snap all have failed. Software center looks like it has installed but will not launch. Using snap it fails to even install with this error message:  sudo snap install polarr error: cannot perform the following tasks: - Fetch and check assertions for snap "polarr" (9) (Get https://api.snapcraft.io/api/v1/snaps/assertions/snap-revision/7Gj-KkZig4Fq41jE0onllCWjATUViyNVmRySSFi1xpQlTiLQZQgK_iQleURBAOTY?max-format=0: net/http: request canceled (Client.Timeout exceeded while awaiting headers))   The link is no help. I tried emailing support and get this;//support@polarr.co (after RCPT TO): 550-5.1.1 The email account that you tried to reach does not exist.


What is the order and cofactor of a base point? Is it possible to deduct the order and cofactor, given just the basepoint. What about the other way around from order and cofactor to basepoint?


In my paper I wish to go for a two column style to "save pages" (there is an artificial limit of 8 pages, yet even by the prof said silliness of "prepared to wear glasses as long as it looks good").  So to have a good text we decided to go for a two column format "" as we found it best looking. However there are some major problems we found.  Most pressing is that the columns overlap, creating sometimes unreadable text.  In the following example:  \documentclass{paper}  \usepackage{lipsum} \usepackage{comment} \usepackage{amsmath,amssymb,amstext,graphicx,caption,subcaption} \usepackage[margin=2.5cm]{geometry}   \begin{document} \twocolumn  \section{Fluid dynamics}  \subsection{Prediction models} The accuracy with which parameters influence boundary-layer transition ranges from good to very low \cite{Tirtey}. Small changes in the shape and size of a roughness element has major influence on the hypersonic flow behavior \cite{Schneider}, and in combination with the very low accuracy of some paramaters, accurate prediction models are difficult to build. For hypersonic isolated 3D roughness-induced transition, three criteria named the Shuttle, Van Driest-Blumer and Potter-Whitfield are the most used correlations for predictions. However, all these criteria have used an certain assumption and therefore do not consider all aspects \cite{Tirtey}. In hypersonic wind tunnel experiments, the effect of a single roughness element on the flow can be investigated by changing a single parameter. It is important for hypersonic wind tunnel experiments to ensure other possible noise factors to be as low as possible since many will affect the results. Then, using the measurements results from the experiment, the physics behind a hypersonic flow becoming turbulent due to a roughness element can better be understand.  \subsection{test} \lipsum{500}  \end{document}   Te first line "The accuracy with which parameters influence boundary-" shows the problem. This line doesn't fit and it overlaps the lipsum. How can I make sure this is prevented?


Array to string conversion problem in PHP7

I'm making a technical evaluation system for the company I worked. when I uploaded it to online host there's some error "Array string conversion".     Notice: Array to string conversion in /storage/ssd5/805/10576805/public_html/UI/data.php on line 4 Notice: Undefined property: UserData::$Array in /storage/ssd5/805/10576805/public_html/UI/data.php on line 4 Fatal error: Uncaught Error: Function name must be a string in /storage/ssd5/805/10576805/public_html/UI/data.php:4 Stack trace: #0 {main} thrown in /storage/ssd5/805/10576805/public_html/UI/data.php on line 4    I tried to run the program in PHP5 down to an older version of PHP it is worked. But in PHP7 to newest version doesn't work. I think there is the new syntax for array conversion of PHP7. can you help me please to fix this problem? Thanks a lot.  Data.php  <?php $process = new UserData();  if(isset($_GET['q'])){      $process->$_GET['q'](); //this line have an error  }  class UserData {      function deletePending(){         require '../config.php';          $trans_no = $_GET['trans_no'];         $q = $connection->query("delete from tevaluation where TRANS_NO='$trans_no'");          return $q;     }  } ?>   View.php    <title>  Technical Evaluation </title>   <?php include 'data.php'; $data = $process->pendingEvaluation(); ?>

     TE #	     QUANTITY	     UNIT	     DESCRIPTION	     DEPARTMENT	     DATE EVALUATED	     STATUS	     ACTION

     <?php if($data->num_rows > 0): ?>         <?php while($row = mysqli_fetch_array($data)): ?>         <?php if($row['STATUS'] == 2):          $stat = "
 For Approval
";                     ?>
 <?php echo $row['TRANS_NO']; ?>	 <?php echo $row['QTY']; ?>	 <?php echo $row['UNIT']; ?>	 <?php echo $row['DESCRIP']; ?>	 <?php echo $row['DEPT']; ?>	 <?php echo $row['E_DATE']; ?>	 <?php echo $stat; ?>	   <a href="data.php?q=deletePending&trans_no=<?php echo $row['TRANS_NO']; ?>" class="btn btn-danger btn-sm" title="Click to Delete">                                      Delete
 <?php endif; ?> <?php endwhile; ?> <?php endif; ?>


Include API key as a URL query parameter via a Named Credential

HttpRequest req = new HttpRequest();  req.setEndpoint('callout:Google/maps/api/place/findplacefromtext/json?');         req.setHeader('key', '{!$Credential.Password}');         req.setMethod('GET');         Http res = new Http();         HTTPResponse res = res.send(req);          Since Google API allowsing us to use ApiKey and we do not need to do Outh2 in that case. I am using APIKEY in password option in Named Credential. I have checked Allow Merge Fields in HTTP Header option.  Error I am getting:  "error_message" : "You must use an API key to authenticate each request to Google Maps Platform APIs.


I need to forward a zip file to Yahoo Mail, but Yahoo is returning the email because of its size. The compressed file is 45 MB. How can I compress via the command line so that each file has a maximum of 10 MB?


Can I make a joint UK visitor's visa for my son and my mother

I am applying for my son and my mother to bring him on a visit to the UK. Do I make separate applications or a joint application, please?


Script to delete folder with time condition

I wrote a command to create a folder named with day's date and copy some file and folders to it.  @echo off for /f "tokens=1,2,3,4 delims=/ " %%a in ("%date%") do set wday=%%a&set month=%%b&set day=%%c&set year=%%d set tmpname="%day%_%month%_%year%" mkdir %tmpname%  xcopy /e \\192.168.0.11\bkup x:%tmpname%   Now, I want a command line that will delete folders that are 10 days old. How can I do this?


Hexadecimal format and storage on a computer hard drive: Does it store in half the bytes?

Allow me to preface that I am not a computer specialist. More than anything, I am curious as to the information.    In a conversation with a computer science specialist, I was told that a string of decimal numerical values, such 73829182093, could be stored on a hard drive occupying only half of the needed bytes by utilizing a hexadecimal system.  As said by the specialist, a string of six decimal numbers could be stored as 3-bytes, because each number could be represented by a hex digit, which is only 4-bits in size. Is this correct with regard to storage on a hard drive?  Note, I am referencing storage on a hard drive, not the required memory needed to display.    My previous understanding is that all information was stored in a binary form (0s and 1s) on hard drives, and in blocks of 8-bits, in modern computer hard drives. And that hexadecimal is utilized to facilitate the display of information, so humans aren't required to read through long blocks of bits.      If this is true, does this mean that in a given scenario, a block of 8 bits on a hard drive, under a hexadecimal storage, would instead be encoding for two half-bytes of data, instead of 8 full bits for a character, like the letter "M"?  Or on a hard drive, is the half-byte actually represented with the full 8 bits and then just omitted when displayed?  Thank you.


Table doesn't appear at the top of the page

My table doesn't appear at the top of the page despite using \begin{table}[tp].  \begin{table}[t] \flushleft \caption{Spectral parameters and comparision with McClintock et al.,   2009}     \label{tab:table1} \begin{tabular}       \hline \textbf{S.}&\textbf{Day} &\textbf{MJD}  & \textbf{T\textsubscript{in}(Mcl)} & \textbf{T\textsubscript{in}}&  \textbf{$\gamma$} & \textbf{$\gamma$}&\textbf{Power law  norm}&\textbf{Power law norm}\\ \textbf{No.}&&&(KeV)&(KeV)&(Mcl)&&(Mcl)&\\ \hline   How do I place it at the top of the page?


Did anyone notice that some sites seem to be scraping/republishing SO's posts?

Such as:  http://tech.e freedom.com/Question/1-2837475/Jetty-offline-documentation


My spacebar is broken, want help remapping it to my Option key

I recently broke my space-key I've copied the space and I paste it to get the space when I'm typing. Can I get help mapping my key with Karabiner for Mac or any other key-mapping software?


If $\,\gcd(a,b) = {\rm lcm}(a,b)\,$ then prove $a=b$

Show that for $ a,b ∈ Z^+,\,$ if $[a,b]=(a,b),\,$ then $a=b$.                    Prove if GCD if a and b is equal to LCM of a AND b then  $a=b$


I have many issues on my Linux server, a lot of malicious files have been added.  Can you advise a good Virus Software to install on Plesk , that is free of charge? Or that at least is VERY cheap?!  Thanks!!!


Animation Nodes - How to make text gallop like horses and next stumble like drunks?

At first, I attempted to make text stumble slowly into scene like drunken sailors, but I ended up with the galloping text that runs like horses; nonetheless, I like the effect.  In all three examples below, all letters are individually done on separate layers and all have same animation. In second & third examples, I've spaced out letters by only shifting frames to the right on timeline, without ever changing animation of letters or their speeds.   Now how do I mimic the galloping examples below with Animation Nodes?  And next, how do I slow down their speed so to make them seem drunken and clumsy? This is for future projects with motion graphics.   Assistance appreciated. Thanks in advance.


evaluating Polar Integrals. Cartesian to Polar?

I can't for the life of me figure out this problem. There's not example in my textbook.  I'm suppose to convert this into a polar integral and evaluate it  $$\int_0^6 \int_0^y x \;dx \;dy$$  I have my graph for this, but the upper bound of the y-axis I have no clue on how to convert that into polar


If $\gcd(a,b)=1$ and $a$ and $b$ divide $c$, then so does $ab$

Using divisibility theorems, prove that if $\gcd(a,b)=1$ and $a|c$ and $b|c$, then $ab|c$.   This is pretty clear by UPF, but I'm having some trouble proving it using divisibility theorems. I was looking at , and if this could be proven, then the solution would follow immediately.


What if my iPad didn't turn on after battery drain? I did all the steps but it still didn't work. Is it already damaged or can I recover it on an Apple Store?


What is the relationship between field of view and focal length for fisheye?

What is the relationship between the focal length and field of view for an equal-area ("equisolid") projection fisheye lens?  Alternatively, what is the relationship between the 180-degree image circle size and the focal length for such a lens?  Ultimately I want to find the field of view of a Tokina 10-17 mm fisheye zoom at focal lengths other than 10 mm on APS-C ().


How to remove Ubuntu w/ Gnome and put on Windows 7?

It saddens me to even have to ask this. But I'm getting serious about making music and Linux doesn't support the music softwares I'm familiar with.   My laptop previously had Windows 8 on it, but I wiped it of Windows and installed Ubuntu with Gnome desktop environment. I'd like to have Windows 7? But I'm not sure how to get it nor how to wipe my computer of Linux. I wouldn't be opposed to duel booting!


We should make it obvious what meta.stackexchange is for

When I go to a subreddit on Reddit, I see immediately in the sidebar what its scope is. When I go to stackexchange.com and click "Feedback always welcome", I get this place where I can ask questions.  Bug reports and feature proposals are not questions, and users should get reinforced that they are in the right place here.  The purpose of meta.stackexchange is explained on the help pages, but they are hard to reach: there is a miniature  button on the bottom of each page. Clicking help in the top bar shows Tour (which seems useless), Help Center (which discourages me further), and What's Meta?, a link to an essay about the purpose of meta.  Guys (m/f), it can be really easy to show purpose in simple language. For inspiration, check out , , , , , .  What do you think?


I have a Dell notebook that originally had only Windows 10 (~800 GB partition). Then, I've installed Ubuntu 16.04 (200 GB partition) in dual boot with windows. So far so good.  Now, I'd like to remove completely the Windows and the dual boot and add that space to my current Ubuntu partition.  So, what I need, is a way to remove the windows from the HD and make my hd only Ubuntu WITHOUT messing with the current Ubuntu installation (only increase the HD space), so that I don't have to install/configure all my work tool's again.  Is it possible?  Thanks


Has Robert Kirkman ever commented on whether humans can safely consume zombie meat?

I want to know if there's word of god to be had here. What I did find is close, but not quite definitive:  Animals can eat zombies  Animals can drink zombie-contaminated water  Kirkman says people can safely eat other humans who have been bitten, but haven't turned yet (but doesn't say you can eat actual zombie flesh)  Kirkman says that drinking a bit of zombie blood isn't the end of the world (no pun intended)   So I'm looking for the missing piece of the puzzle: Has Robert Kirkman himself ever commented on what would happen if a human ate zombie meat? Note: I'm not interested in eating bitten people, or drinking a little zombie blood, because I have already read his comments on those subjects; I'm also not interested in what anyone other than Kirkman himself has said.


How do I check if a given object is nullable in other words how to implement the following method... bool IsNullableValueType(object o) {     ... }  I am looking for nullable value types. I didn't have reference types in mind. //Note: This is just a sample. The code has been simplified  //to fit in a post.  public class BoolContainer {     bool? myBool = true; }  var bc = new BoolContainer();  const BindingFlags bindingFlags = BindingFlags.Public                         | BindingFlags.NonPublic                         | BindingFlags.Instance                         ;   object obj; object o = (object)bc;  foreach (var fieldInfo in o.GetType().GetFields(bindingFlags)) {     obj = (object)fieldInfo.GetValue(o); }  obj now refers to an object of type bool (System.Boolean) with value equal to true. What I really wanted was an object of type Nullable<bool> So now as a work around I decided to check if o is nullable and create a nullable wrapper around obj.


Monotonic function satisfying darboux property $\Rightarrow$ continuous

Assume  $f : I \rightarrow \mathbb{R}$ is a non-decreasing on an open interval $I$ and that $f$ satisfies the Intermediate value property or  on $I$ (that is, for any $a < b$ in $I$ and any $L$ between $f(a)$ and $f(b)$, there exists $c \in [a, b]$ such that $ f (c) = L)$. Then, prove that $f$ is continuous.  However, I know that a function can be discontinuous and also satisfy the IVT at the same time. Could someone point me in the right direction?


ExecuteQuery Error When Trying to Do Anything

I'm a global admin on my O365 tenant. I get the below error when I try to access anything:  Exception calling "ExecuteQuery" with "0" argument(s): "Cannot contact web site 'https://domain.sharepoint.com/' or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'. The response headers are 'X-SharePointHealthScore=0, SPRequestGuid=664da69d-002a-2000-15b5-db84f0677cb9, request-id=664da69d-002a-2000-15b5-db84f0677cb9, X-MSDAVEXT_Error=917656; Access+denied.+Before+opening+files+in+this+location%2c+you+must+first+browse+to+the+web+site+ and+select+the+option+to+login+automatically., MicrosoftSharePointTeamServices=16.0.0.5708, X-Content-Type-Options=nosniff, X-MS-InvokeApp=1; RequireReadOnly, Content-Length=0, Content-Type=text/plain; charset=utf-8, Date=Thu, 22 Sep 2016 16:10:24 GMT, P3P=CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI", Server=Microsoft-IIS/8.5, X-Powered-By=ASP.NET'." At line:1 char:1 + $Context.ExecuteQuery() + ~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException     + FullyQualifiedErrorId : NotSupportedException


Testing for linear dependence among the columns of a matrix

I have a correlation matrix of security returns whose determinant is zero. (This is a bit surprising since the sample correlation matrix and the corresponding covariance matrix should theoretically be positive definite.)  My hypothesis is that at least one security is linearly dependent on other securities. Is there a function in R that sequentially tests each column a matrix for linear dependence?  For example, one approach would be to build up a correlation matrix one security at a time and calculate the determinant at each step. When the determinant = 0 then stop as you have identified the security who is a linear combination of other securities.  Any other techniques to identify linear dependence in such a matrix are appreciated.


What's the role of "if" in these sentences

His style, if simple, is pleasant to read.      The profits, if a little lower than last year's, are still extremely   healthy.   I'm curious, what's the function of "if" in these sentences.  Does it mean 'although'?  If it does, do these sentences sound native?  Thank you!


Email subscription to a given question answers *and* comments?

I could not find a solid documentation to this question.  Is there a way to subscribe by email to a given question's answers and comments?  For example, this is a question which I answered:    People are adding comments to my answer.  Is there a way to get email notifications about new comments so I can read and relate to them quickly?


Replacing given letter with a specific number value in Java

I wanted to pass a letter as a String to this method and it should give back the corresponding number (as String) stored in the same index as in the letterDispari array but in the numberDispari array. I thought using strings would be easier than creating a HUGE switch statement. But I don't understand why this is not returning anything. private static String toNumberDispari2(String letter) {         String result= "";         String[] letterDispari = {"0","1","2","3","4","5","6","7","8","9",                 "A","B","C","D","E","F","G","H","I","J","K","L","M",                 "N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};         String[] numberDispari = {"1","0","5","7","9","13","15","17","19","21",                 "1","0","5","7","9","13","15","17","19","21",                 "2","4","18","20","11","3","6","8","12","14","16","10","22","25","24","23"};                  for(int i=0; i<=35; i++) {             if (letter != letterDispari[i])                 continue;             else if (letter == letterDispari[i])                 result = numberDispari[i];         }         return result;     }


Is “ ’s ” ever correct for pluralization?

A relatively modern dictionary (I don’t know which one, because we’ve cut out the pages and used them as wallpaper in our bathroom, but I know it’s less than 20 years old) indicates that R’s is one correct pluralization of R, as is Rs, but whichever dictionary this is, it’s kind of a no-name brand, so I’m not sure I trust it.  I’ve always wondered what the best way was to pluralize single letters or numerals, like 2’s or 2s.  What’s correct?


Can we detect gravitational waves generated from inside the event horizon of a black hole?

General relativity prevents light from escaping a black hole, but does it also apply to gravitational waves?


Cannot shrink and create new partition with single Ubuntu OS installed Partition

I have installed Ubuntu on my device and forgot to create a portion and kept it with the default option. Now I have two partitions one is boot/EFI and the other with an operating system installed on it which is ext4 type. I want to shrink the partition that has OS installed but cannot do that using the Gparted. Can anyone guide me on how to shrink the portion and create a new one to store files etc.  Thanks


Trying to find a werewolf movie with a teenage boy and family hiding in a cabin

For years I've been trying to find this movie I saw on TV once.  I only saw the end.  It featured a teenage boy (about 18 years old) and his family hiding out in a cabin.  The kid is making molotov cocktails and preparing for something.  Sure enough two bad guys show up and I think one of them had a golden pistol.  They start fighting and one of the guys turns into a werewolf type creature.  The kid wounds it and tracks it through the woods to finish it off with his lever action rifle.  Anyone know the name of this movie?  I saw this probably mid to late 90s.  I'm guessing it was an 80's American film. It was live action.


I am afraid that listing doesn't support javascript.  \begin{lstlisting}[language=javascript] ... \end{lstlisting}   What am I doing wrong?


Ubuntu terminal scroll through suggestions

I'm trying to find a way to scroll through the suggestions made by the auto-complete feature in the gnome terminal.  For example if I type   sudo apt-get install xserver-   and use double tab, there are large amounts of suggetions going over a page.  Is there a set of keys to scroll back and forth though these suggestions?


Why is the triangle inequality property of a metric space important?

From my understanding, when we use metric spaces, we are trying to measure how "different" certain elements in a metric space are from one another.  We all know that a metric space $(S,d)$ satisfies:   $d(x,x) = 0$ $\forall x \in S$  $d(x,y) = d(y,x)$$ \forall x,y \in S$ $d(x,y) \leq d(x,z) + d(z,y)$$\forall x,y,z \in S$   The first two make perfect sense to me. If we are trying to measure how different two points are, then the difference between x and x should be nothing. Furthermore, the difference between x and y shouldn't depend on their order.  Now, I'm trying to make sense of why number 3 is a fundamental property of distance. My only guess is that if 3 didn't hold, then there's another "path" that can be taken between x and y that is "shorter" than our metric assigned to x and y. But why is this a fundamental property of measuring distance? Of course, you can give me the euclidian metric as an example, to why this is important, and I would agree...but why must it be fundamental for ALL metrics?  I hope this question isn't too silly. Thank you!


photoshop - cut and move part of a shape layer

In photoshop, i have a "speech bubble" of sorts.  I need to be able to move the little triangle bit of the bubble left, right, and to the side.  Then "rejoin" it with the rectangle, and apply all the gradent/bevel effects of the original.  photoshop has a selector tool, but i cannot seem to cut, coppy, delete with it - actually, i do not understand why the rectangle selector exists (unless maybe there is a market for people who like pretty transient rectangles?)  So, for pictures -   this is the intial image i want to move around:   this is the image with all the  stuff removed, i just want to move that triangle around!!   And then of course reapply the effects that i disabled. I imagine this is a super simple job - how do i do this?


Shouldn't My Google Account have the Same Reputation on all StackExchange Sites?

When i Logged in into  i used my Google Account and it told me to Create it to all Stack Exchange Sites and i Accepted  Now when i opened Ask Ubuntu i had the Same Log in message  Same for Stack Over Flow, is this normal? also my Reputations are not Shared Across the accounts and it looks like this is the first time i login.


Do the effects of spells granted by items require concentration?

Casting or duplicating an entire spell from an item requires concentration; this makes sense, no confusion there. However, concentration for gaining or duplicating the effect of a spell that normally would require concentration appears unclear. This is not to be confused with a spell-like effect, such as the potion of flying which grants flying independent of the fly spell. In that example you are not gaining the effect of a spell, it is a spell-like effect. The potion of speed explicitly says you don't need to concentrate despite haste normally needing concentration:  When you drink this potion, you gain the effect of the haste spell for 1 minute (no concentration required).  The potion of mind reading does not have the same concentration clause seen in the potion of speed, even though detect thoughts also requires concentration:  When you drink this potion, you gain the effect of the detect thoughts spell (save DC 13).  If an item grants/duplicates a spells effect and not a spell-like effect, does the spell effect require concentration?


How to show that $\lim\limits_{n\to\infty}\left(1+\frac{1}{n}\right)^{n^2}=\infty$

Let's say I need to find the limit: $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{n^2}$$ So I know that the limit is $\infty$, but I'm not sure how to show it in situations like this. $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{n^2}=\lim_{n\to\infty}\left(\left(1+\frac{1}{n}\right)^{n}\right)^n=e^{\infty}=\infty$$ I'm pretty sure this one is wrong, because I can't just have the power of infinity. How do I write it down properly?  Also, is $\lim_{n\to\infty}1^n=1$? I know I can't just write $\lim_{n\to\infty}1^n=1^{\infty}$, how should I do it properly?


Unable to link OpenID on Stack Overflow with SourceForge

The SourceForge signon page says I can associate an OpenID with my existing SourceForge account:    I enter my currently-signed-in SourceForge account password I select the custom OpenID URL and enter https://openid.stackexchange.com I'm redirected to https://openid.stackexchange.com/account/login?<session key bits> I enter my openid.stackexchange.com login information there I get the error message:     Cannot Complete Login      Detected an attempt to send an assertion when the identifier () is not owned by the logged in user.    I don't understand what that means.


$X$ and $Y$ are independent rv having pdf $f(t)=\frac{1}{\pi} \frac{1}{1+t^2}$ determine pdf of $Z=\frac{X+Y}{3}$

Suppose $X$ and $Y$ are independent random variables on $\mathbb{R}$ having pdf $f(t)=\frac{1}{\pi} \frac{1}{1+t^2}$. Define $Z=\frac{X+Y}{3}$ determine the pdf of $Z$.   So the pdf of $(X,Y)$ is $f(x,y)=\frac{1}{\pi^2 (1+x^2)(1+y^2)}$.   We shall find the CDF of $Z$ and then differentiate it.  $F(z)=P(Z \leq z) = \int_{-\infty}^{\infty} \int_{-\infty}^{3z-x} \ \frac{1}{\pi^2 (1+x^2)(1+y^2)} \  dy \ dx= \int_{-\infty}^{\infty} \frac{1}{\pi^2}\left(\frac{\pi}{2(1+x^2)}- \frac{\tan^{-1}(x-3z)}{1+x^2}\right) \ dx$.  At this stage I am having trouble evaluating $\int_{-\infty}^{\infty} \left(\frac{\tan^{-1}(x-3z)}{1+x^2}\right) \ dx$.  How do I do this? Or otherwise is there different more elegant way to get the required pdf?


I hope this qualifies as a programming question, as in any programming tutorial, you eventually come across 'foo' in the code examples. (yeah, right?)  what does 'foo' really mean?  If it is meant to mean nothing, when did it begin to be used so?


How to solve "Fatal error: Class 'MySQLi' not found"?

I am doing a tutorial and am getting this error:     Fatal error: Class 'MySQLi' not found (LONG URL) on line 8   The code on line 8 is:  $mysqli = new MySQLi($db_server, $db_user, $db_pass, $db_name);   I saw online someone said to see if it was turned on in my phpinfo(), but there wasn't anything listed in there under for "mysqli".  Also, I am running PHP version 5.2.5


What to do about the same question on multiple sites?

There have been many questions that ask if a user is allowed to cross-post a question on multiple sites, and the general conclusion is that they are not allowed to do so. However, sometimes there are questions which are asked on multiple sites by different users not knowing another SE site had an answer already, where it is on topic on both sites, that have some overlap. What is the policy for such questions? Should they be closed on one site, migrated, or is each site independent enough to allow the question to remain on both sites?


A non-trivial, non-negative, function bounded below by its derivative with $f(0)=0$?

I did not know what to search to see if this existed elsewhere. But, I could not find it. Here's the question:  Does there exist a continuously differentiable function, $f: [0,1] \rightarrow [0, \infty)$, such that the following hold? (i) $f(0) = 0$ (ii) $f'(x) \le c f(x)$ for all $x$ ($c$ is a fixed constant) (iii) $f \not\equiv 0$  This was a fun problem someone asked me a long time ago. I have always been convinced there is no such function, but I cannot prove it. I have mainly tried using the mean value theorem (in multiple forms), and re-wording the problem in terms of the integral of a continuous function to no avail. I spent some time trying to use (ii), the definition of derivative, and squeeze theorem, but no luck. After much time trying to prove non-existence, I spent a little time trying to find such a function... also with no luck. This problems ability to avoid being solved has since taken away the original fun and replaced it with a twinge of annoyance.


Evaluating the integral $\int_{-\infty}^\infty \frac{\sin^2(x)}{x^2}e^{i t x} dx$

I want to evaluate the integral   $$\int_{-\infty}^\infty \frac{\sin^2(x)}{x^2}e^{i t x} dx$$   for all $t \in \mathbb{R}$. I would preferably do it using the tools of complex analysis, but since I haven't found any other thread dealing with this integral at all so far, I'd be open to any approach.  I must admit that I haven't really found a way to start. The function $f(z) := \frac{\sin^2(z)}{z^2}e^{i t z}$ has an isolated singularity (a removable singularity, with continuation $f(0) = 1$, to be precice) at $z = 0$. I think a clever way would be to integrate over the edge of rectangle, semicircle or "slice of cake" (the edges of which we then would let go against $-∞$ and $∞$), then maybe somehow apply the Cauchy theorem or Residue theorem. But I don't know how to concretely do that, or how to even get started with that.  On a more general note, I'm having trouble understanding how to transform a "normal" integral over a real interval into one where we integrate over the edges of a geometric shape; and I also don't know, based on which pattern one can see with geometric shape fits best. Are there any tips or hints on how to get more intuition for that? (Apart from, obviously, dealing with these integrals regularly, what I'm trying to do but where I'm still failing a lot of times.)  I also noticed that the above integrals looks strikingly similar to the Fourier transformed of $f$ (or, even more similar to the formula for the inverse transformed). So maybe this could help us with this integral? I'm not really sure though.


HP probook - Unable to boot into Windows after setting up dual boot Windows 10 and Ubuntu 18

Laptop: HP probook 450 G   Main Hard drive: SSD 120 GB  (Windows 10)  Secondary hard drive: 1TB (Ubuntu installed recently)  My laptop had Windows 10 on C drive and I tried to install Ubuntu on the other hard drive where I had created an extended partition for it (/, swap, home and root). After installation I could not boot into any operating system and it just goes into an infinite loop of restarting.   After some trial and error, I figured out I can select custom file from boot options and I managed to boot into Ubuntu by selecting the /EFI/Ubuntu/shimx64.efi file and it is working and booting me into Ubuntu directly, but there's no GRUB menu so I cannot get into my Windows.   GRUB menu entry  I have already tried updating my /etc/grub/40_custom and no luck. Also tried boot repair with MBR and without it (not relevant but tried).    Boot Repair  I have run boot repair multiple times with different configs, including to update the Windows files. You can access the boot repair report .  Re-installing Windows  Finally I was trying to repair Windows again and it says drive is locked.    Windows is installed and configured to boot via UEFI. Ubuntu is installed and configured to boot via UEFI.   So currently following is situation of HD   HD0   Partition1 - 800 MB reserved and contains /EFI/Microsoft/Boot file  Partition2 - 110 GB windows installation with other programs  HD1   Partition 5,6,7,8 - ubuntu Partition 2 - ntfs windows file drive with my personal data    I have used a USB to boot into Windows troubleshoot command prompt and tried -/fixmbr, rebuildOS but it is not working; even scanOS can find the Windows installation folder.   Currently I have only UEFI is enabled in my BIOS settings  Can someone help me to boot into my windows installation?    Just to add if I don't select the Ubuntu shim file manually, my computer doesn't boot at all and it throws the following error only when I have my HD1 enabled as boot drive as well  System boot order not found. Initializing defaults Creating boot entry "Boot0010" with label ubuntu for file "EFI\Ubuntu\shimx64.efi"  Reset System


I have a virtual machine host running Centos 6. It is serving an android application with apache/php/mysql.  When online users gets high in number , the server responds very slowly. Even ssh connection to the server becomes slow.  So how can I find what is the bottleneck for this and how to fix it? Is it low RAM or a lot of hard disk write/read , high cpu usage , and which program is causing this?  This is the output of free -m in normal situations:               total       used       free     shared    buffers     cached Mem:          1877       1714        162          0         16        202 -/+ buffers/cache:       1495        381 Swap:         1023        231        792   Output of htop in normal situation:


What is second-curtain or rear-curtain technique?

I have a Nikon D80 I seem to remember having read somewhere that it should be possible to take photos in it using something called a second curtain technique. My question is does anybody know if this is so and how to go about it with the D80 (instructions for other camera models would be cool too)?   Also what kind of photos would this technique be best for?


Why the lowest order of matrices in Dirac equation are 4x4 matrices?

Why the lowest order of matrices in Dirac equation (Relativistic Quantums) are 4x4 matrices (and can not be 2x2 matrices)?  How to prove it?


Add a 2000ms delay to the following javascript

I need to add a 2000ms delay to the following javascript. How do I do so.  <script type="text/javascript"> $(document).ready(function() {   $("#container_main").hide(); }); $(window).load(function() {   $("#container_main").show(); }); </script>


Java compiler warning caused by generics when saving ArrayLists

This seems like a pretty standard problem, but it's just so simple I don't know what to do about it. From what I've read elsewhere on SO, this is caused by Generics when ArrayLists are initialized without specifying parameters. I also know that the warning does not come up when I comment out ArrayList<Integer> p = (ArrayList<Integer>)is.readObject();, so I'm pretty sure there is a generics safety issue with the compiler by me trying to cast the Object to an ArrayList<Integer>. How can I save the ArrayList without causing this?  Here's the code:  import java.util.*; import java.io.*;  public class FileTest {     public static void main(String[] args)     {         String fileName = "fred.txt";         ArrayList<Integer> a = new ArrayList<Integer>();         a.add(2);         a.add(3);         a.add(4);         try         {             ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(fileName));             os.writeObject(a);             os.close();         }         catch(FileNotFoundException e){e.printStackTrace();}         catch(IOException e){e.printStackTrace();}         try         {             ObjectInputStream is = new ObjectInputStream(new FileInputStream(fileName));             ArrayList<Integer> p = (ArrayList<Integer>)is.readObject();             //for(int i : p) System.out.println(i);         }         catch(FileNotFoundException e){e.printStackTrace();}         catch(IOException e){e.printStackTrace();}         catch(ClassNotFoundException e){e.printStackTrace();}     } }


Hi this is actually a pretty simple question but not sure if there’s a simple answer.   But is it possible for a webpage to trigger a key press on a machine. Like hitting the A key or maybe the shift?


Replace a few math symbols in the newtxmath font

I use the \newtxmath as the math font in my document and \newtxtext for the text. This seems to work fine, but I need to replace some math symbols which seem to me not as nice as their default Latin Modern Math counterpart. The symbols I need to replace, e.g., are:   \int and \sum: they look so high and big,  \infty: looks too small, and  \partial and \pi: looks strange too.   I have searched for similar or near question like this one (), but I haven't been very successful in reusing the answer therein in my case.   My MWE is:  \documentclass{scrartcl} \usepackage{amsmath,amssymb} \usepackage{newtxtext,newtxmath} \begin{document}  \noindent ABCDEFGHIJKLMNOPQRSTUVWXYZ \\ abcdefghijklmnopqrstuvwxyz \\ $abcdefghijklmnopqrstuvwxyz$ \\ $ABCDEFGHIJKLMNOPQRSTUVWXYZ$ \\ $a\alpha\beta\gamma\delta\epsilon\varepsilon\zeta\eta\theta\vartheta\iota\kappa\varkappa\lambda\mu\nu\xi o\pi\varpi\rho\varrho\sigma\varsigma\tau\upsilon\phi\varphi\chi\psi\omega$ \\ $\Gamma\Delta\Theta\Lambda\Xi\Pi\Sigma\Upsilon\Phi\Psi\Omega$ \\ $\mathbb{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \[   \frac{1}{2\pi i}\int_\gamma f(x) = \sum_{k=1}^m n(\gamma;a_k) \cdot \text{Res}(f;a_k). \] \[ G(\omega)=\int_{-\infty}^{\infty}g(t)e^{-j\omega t} dt \] And this is nonmath text.  \end{document}   I appreciate your help.


apt-get update: "GPG error: Clearsigned file isn't valid, got 'NODATA'"

after running 'sudo apt-get update' I see this in terminal:


I have heard of many different ways to make easy gold, hacks, glitches, and rare items. But is there a way where I don't have to glitch, sell one of a kind items, and etc.?


In a group of order $m p^n$ for $p$ prime, if $k<n$, is there an element of order $p^k$?

Let $G$ a group of order $mp^n$ where $p$ is prime. Let $k\leq n$. Is there an element of order $p^k$ ?    Since $p$ divide $|G|$, by Cauchy theorem, there is $g\in G$ s.t. $g$ has order $p$. I can't do better. I tried to use the fact that there is a $p-$Sylow group, but it just confirm the fact that there is an element of order $p$, not of order $p^k$.


Prove that $n^{31} \equiv n$ mod $77$ for all integers $n$

I've read  but I don't know how to use the same method to prove my example. Induction seems very long and unnecessary. I tried to come up with something using:  $n^7 \equiv n \mod{7}$ and $n^{11} \equiv n \mod{11}$  but I am not sure that's useful. I am now assuming I have to show that $n^{31} - n$ is a multiple of 7 and 11 and thus a multiple of 77. How do I arrive in this conclusion?


How can I check if a package is installed (no superuser privileges)?

At our university we can get almost any ubuntu package installed we want, but we are not superusers ourselves (we need to request packages being installed).  With some libraries it is not always easy to know whether the package is already installed or not. Is there a simple way/command to check this?


Operation Chimera in Rainbow 6: Siege was just released and I saw a lot of posts about getting Ash's elite skin and 4 outbreak packs for free.  The thing is, after I logged in and got into the game, I didn't get any of them. I restarted the game and tried everything, still no answer.  What is wrong with my game?


Is it possible/legal to somehow encode CR/LF characters into a CSV file?  (as part of a CSV standard?)  If so how should i encode CR/LF?


Convert a Pair of Integers to a Integer, Optimally?

What's the best algorithm that takes in two positive integers $a,b$   and returns a positive integer $c$, such that all $c$'s are unique and   $(a,b)$ is distinguishable from $(b,a)$; where the best means that the   length of $c$ in terms of digits is shortest possible, on average?      This implies that we can work out $a,b$ from $c$ with the same algorithm. (reversing it)   If we have a bound $x$ such that $a,b\le x$, then $f(a,b)$ has $x^2$ unique values which means our $c$ needs to take values from $[1,x^2]$ to have the least amount of digits, which can be achieved with the following function:  $$f(a,b)=(a-1)x+b$$  If $x$ does not exist, what's the optimal algorithm then?   (To make sense which algorithm is the shortest, I was comparing the length of the $c$ with the sum of lengths of $a,b$ and calculating the average which is more precise the more values we consider.)    I had two ideas so far;   $(1)$ Factorization  Take the factors of $a$ and $b$. Now you can use the second longest sequence of $0$s as a separator between factors, and the longest sequence of $0$s as a separator between the factors of the two numbers.   Example: $f(123,1007)=(3\times41 ),( 19\times53)=30410019053$  Example: $f(30,1006)=(2\times3\times5),(2\times503)=2003005000200503$  But this can be optimized, for cases such as $f(2^{64},3^{64})$, and even then, seems like it is too much extra digits.   $(2)$ Trailing zeroes  Take $a$, reverse its digits and put a random digit in front of the first digit. That way, the result does not have trailing zeroes. Then use the longest sequence of $0$s as a separator from $b$.   Example: $f(123,456)=93210456$  Example: $f(123,10100)=932100010100$  Example: $f(420,314)=902400314$  This also has room for optimization if we look at individual cases and add more specific rules. But it feels like it won't be optimal even then.   I suppose the optimal solution would need to look at couple or more cases individually?


Find the sum of the series $$1^2-2^2+3^2-4^2+...-(2n)^2$$  I tried rewriting it as $$\sum_{r=1}^{2n}-1^{n+1}(r^2)$$ but it didn't help.  Also, looked at re-arranging as $$1^2+3^2+5^2+7^2+...+(2n-1)^2$$ and $$-2^2-4-6^2-8^2-...-(2n)^2$$  Still couldn't get to the given answer of $-n(2n+1)$


How to precisly sample a sensor-signal in Python

I want to write a Python program that will sample a sensor at a fixed sampling rate. Is there any elegant way of doing this?  Currently, I am using the time.time and time.sleep commands to enforce this manually. While this does work, it is creating a small drift. Also, it seems to be a not very nice way of doing so, and I hope there is a more pythonic way of doing this:  def mock_signal(x):     # Just a random number as the sensor signal     return np.random.random()*x   def sampling(fs=1, x=1):     T = 1/fs # sampling period     t_ground = time.time()     while True:         t_start = time.time()         y = mock_signal(x)         print('%.5f | Sensor Value %.2f' % (t_start - t_ground, y))         t_duration = time.time()         # Sleeping for the remaining period         time.sleep(T - (t_duration-t_start))   Ideally, I would like to have a function or class that would sample the sensor (basically call the 'mock_signal' function) and append the new sample to a list or array. The latest entry in said array should than be accessible by a call similar to the multiprocessings Connection.recv()  Thanks in advance :)


I have a Windows 7 computer (I am typing this on it). I put Ubuntu on a USB flash drive, and installed it as I was instructed. After rebooting, it booted back into Windows without asking me if I wanted to boot into Windows or Ubuntu. I booted from the USB drive, and it acted as if I had never installed Ubuntu. Please help!


What is the mass density distribution of an electron?

I am wondering if the mass density profile $\rho(\vec{r})$ has been characterized for atomic particles such as quarks and electrons. I am currently taking an intro class in quantum mechanics, and I have run this question by several professors. It is my understanding from the viewpoint of quantum physics a particle's position is given by a probability density function $\Psi(\vec{r},t)$. I also understand that when books quote the "radius" of an electron they are typically referring to some approximate range into which an electron is "likely" to fall, say, one standard deviation from the expectation value of its position or maybe $10^{-15}$ meters.  However it is my impression that, in this viewpoint, wherever the particle "is" or even whether or not the particle "had" any position to begin with (via the Bell Inequalities), it is assumed that if it were (somehow) found, it would be a point mass. This has been verified by my professors and GSIs. I am wondering if its really true.  If the particle was truly a point mass then wherever it is, it would presumably have an infinite mass density. Wouldn't that make electrons and quarks indistinguishable from very tiny black holes? Is there any practical difference between saying that subatomic particles are black holes and that they are point masses? I am aware of such problems as Hawking Radiation although at the scales of the Schwarchild radius of an electron (back of the envelope calculation yields $\tilde{}10^{-57}$ meters), would it really make any more sense to use quantum mechanics as opposed to general relativity?  If anyone knows of an upper bound on the volume over which an electron/quark/gluon/anything else is distributed I would be interested to know. A quick Google Search has yielded nothing but the "classical" electron radius, which is not what I am referring to.  Thanks in advance; look forward to the responses.


What are the advantages of a custom ROM over rooted stock?

What can a custom ROM provide beyond rooting that I can't get by downloading an application?


Executing C programs from HDD or PenDrive

So lately I've been in C programming. On trial and Error and Basis I tried Compiling(GCC) and Executing(./a.out) from my Windows' partition and Pen-drive i.e. precisely I tried executing on NTFS and FAT. I'm currently using Ubuntu 14.04(32bit) and executing via Terminal.     PROBLEM:- When I tried executing C program in Terminal (in Pendrive), It returns a following error   bash: ./a.out: Permission denied   Here's what I tried:  (1)WITHOUT ROOT-  tj@tj-HP-Pavilion-dv4-Notebook-PC:/media/tj/HP/TJbin$ gcc phil.c -pthread -o dine tj@tj-HP-Pavilion-dv4-Notebook-PC:/media/tj/HP/TJbin$ ./dine bash: ./dine: Permission denied   (2)WITH ROOT-  root@tj-HP-Pavilion-dv4-Notebook-PC:/media/tj/HP/TJbin# gcc phil.c -pthread -o dine root@tj-HP-Pavilion-dv4-Notebook-PC:/media/tj/HP/TJbin# ./dine   bash: ./dine: Permission denied   Explanation- Since without root, it returned an error "Permission denied"; I tried it with root, but no success.  Question-   Is it necessary that an C program must reside on EXT partition? Is there any command that will grant the permission? Does it need .exe for NTFS or FAT and if so can it be executed in Terminal?


What mechanism gives mass to gluon balls?

are hypothetical, real (non-virtual) particles made up of gluons, the particle of the gluon field that interacts with quarks. The gluons have a color charge themselves and they can form a bound state (the ball). According to lattice computations in Quantum Chromodynamics, they have a mass that varies from . This mean that a bound state of massless particles can form a massive particle. Is the mass of the glueball non-zero only because the constituting gluons interact strongly? Don't massless particles stay massless, even when they form a bound state? Has the glueball a velocity less than c, while the gluons themselves speed with c (which would mean that it has mass)?


After some manipulations (i don't know, which excatly did it) i unexpectedly broke terminal autocomplete feature. Each time i try yo use it i get:  nimga@ubuntu17:~$ sudo systemctl res-bash: /dev/null: Permission denied bash: _upvars: `-a4': invalid number specifier -bash: /dev/null: Permission denied bash: _upvars: `-a0': invalid number specifier   According to text above i tried to autocomplete "sudo systemctl restart" but got an error. What can i do with it?


What is a partially trusted assembly/application/code/etc in .NET?

Could someone please explain? I couldn't find anything on the internet, everything talks about how to go about it in some way, but nothing says exactly what it is.   Also, what is a fully trusted assembly and how do they differ from one another?  I have a MS certification exam and this is the only topic that I just don't understand.  EDIT: Thanks guys. Now I have a better understanding of security in .NET. I was able to pass my certification exam.


If all members of a class (except for the indexer) are static, should I make the class static?

Assume that I have a class in which all members (excluding the indexer) are set to static, should I make the class static?


How do I remove a MATLAB program running on Ubuntu 14.04

I have installed MATLAB 2012 on Ubuntu 14.04, and I want to uninstall it. According to the support instructions, I should type in a command as rm -rf matlabroot. Howeever, this does not help. In fact, it does nothing.  What could be the problem? and how can I uninstall MATLAB.


Is it "policy(ies)" or policy(s)" for an optional, parenthetical plural suffix?

When writing a noun that shows a parenthetical plural suffix option, which is acceptable, "policy(ies)" or policy(s)"?


Why is the display resolution not exactly 16:9 or 4:3?

Most displays get advertised with either 16:9 or 4:3 display ratio. However, if you compare the resolution with the display ratio, it's most often neither of both.   For example, the resolution of my notebook display is 1366x768. But 1366/768 = 683/384 != 688/387 = 16/9 Another common resolution is 1920/1200 = 8/5  But for some resolutions it's correct:   1024/768 = 4/3 800/600 = 4/3   Is there a technical reason / user experience reason for this? Why do displays have other ratios than what they get advertised?  (I assume that every pixel is a perfect square. Is this assumption wrong?)


I know that a universal quantifier can be distributed over conjunction and not disjunction, but I'm having a hard time wrap my head around it. Why is this the case? Is there an example of a statement that would demonstrate this principle?


Is there a way to pick up glass after placing it?

After placing glass in Minecraft, I cannot pick it back up. I can break it but it does not go back into my inventory.  Is there any way I can pick it back up?


Most monitors I use come with a driver. These drivers usually have an .icm file. When I install the driver, the icm is also installed and associated to that monitor. What I notice is that these icm files always causes the color to seem "washed-out". Vibrant colors become noticeably unsaturated. For example, I have Dell S3220DGF. The monitor can display 90% DCI-P3, but it looks as if the  forces the monitor to only display the limited colors in sRGB colorspace. In contrast, if I calibrate the monitor with DisplayCAL and apply that icm, there is no such problem. So what does these driver icm do at all? Should I use them or not? S3220DGF icm profile information:


Is there a way to read input directly from the keyboard in standard C++?

And I know there's std::cin, but that requires the user to enter a string, then press ENTER.  Is there a way to simply get the next key that is pushed without needing to press ENTER to confirm


Can you help me? I write command line script in php. I need to read char from file , which i open by fopen. I use fgetc, but letter like á, ž, é, ř etc. are incorrect.   $this->inputFile=fopen(arguments::$input, "r"); $char=fgetc($this->inputFile); echo "char: ".$char."\n";   output of á or ř is �


Is this correct? "One of the things that makes him great is..."

One of the things that makes him great is he brings it every night.   I'm pretty sure it should be that make him in the plural, because one of the things is referring to a lot of things and a lot of things should take a plural verb. But I always hear native speakers in America say it in the singular, so with an s.  Another example:     This is one of the responsibilities that comes with greatness and he understands that.   Native speakers always use the verb in the singular (here, comes) even though [I believe] it is grammatically incorrect to use the singular form of the verb there.


Yesterday I encountered a problem with printing an A6 pdf document (which I created using LaTeX). The Printing shop did not have A6 sheets, so they took the print out on an A4, which turned out different than what I expected it to – it was magnified in the print.  I have few questions to ask, please help me out:   Is it possible to put A6 page with border, so I could get printout of any sized paper, and then cut it using the border? Can I put multiple (x,y) on (a,b) paper? Here paper size is mention with this convention (width, height) and (a,b) bigger than (x,y). As show in the image below. Ex: 6 orange-size sheets on one green-size sheet, with border for cutting the paper into A6 after the printing? Is it possible to arrange smaller sheets in any order on a bigger sheet? Like consecutive sheets row wise or column wise? Below I have mentioned the page numbers and arrangement.    (1, 2, 3)      (1, 4, 7) (4, 5, 6)  or  (2, 5, 8) (7, 8, 9)      (3, 6, 9)


does the word PERSONS exist? Should I only use it for singular? PERSON

I need to know the correct use of this word, I am quiet confused about the plural form and singular form due to some people use it as plural persons and I was taught that the plural is people1


Suppose you have a webpage requires you to input your username and password for authentication.   The username name "abs" and the password is "1234abcd" - you gain entry to the your profile.   But my question is, why is that if I input "abs' --" in the username field and no password, it still returns my profile page?   What is happening behind the scenes with the server, SQL and user?  I just cant seem to understand this. Thanks guys for any help.


There is a well known phrase: "I'm not gay but 20 dollars is 20 dollars".  Why do we say that '$20 is $20', and not '$20 are $20'?


Would Voldemort have won the first Wizarding War?

Looking at , it looks like the OotP and the Aurors had the odds stacked against them. Did the OotP have any chance of defeating Voldemort, either by permanent restraint, or death and finding his horcruxes? Is there anything to indicate that anything but The Boy Who Lived would have stopped him?


I know this must be a common question but I have a problem with my site.  Its been up for about four months and its working fine on other search engines but not on Google. Its a very unique name so not much competition. And I have a dashboard component to this product and this shows up on the first page without any content or effort.  I have done the following to resolve the issue.     1. Used google webmaster to check that its being indexed and fixed all errors.  2. Added google site verification  3. Checked the domain is not blacklisted 4. Changed content regularly. 5. Moved the hosting from AWS S3 to normal Apache hosted site. 6. Ensured no duplicate content, did redirect to main domain from ip and dns addresses 7. Created a google add campaign  8. Linked all social sites including google+ business 9. Used seo sites to test for errors. The score is 65 so still working on some issues. There are some issues like only 12% content to html. 10. Removed animation from the site 11. Checked it is being indexed using site:fiskl.com   I am looking for some pointers to where I can go from here.  It so strange that it doesn't appear at all and that my dashboard without any links or effort is on or near page 1 with a search for fiskl The only way I can have any google presence is to run an add campaign.   --EDIT--   Improved the page speed to 90% using google  Check different regions using googles ncr (Non country redirect). So if you want to see what your results are in the .com you can load  or to check in the Neterlands for example     Still 100% omission from results for an exact company search although my dashboard login page is on page 1.


We had our samba server (ubuntu 8.04 ltr) share fill up the other day but when I went to look at it I cant see any of the shares have to much on them  we have 5 group shares and then each users has an individual share  one users has 22gigs of stuff a few others have 10-20mb of stuff and everyone else is empty  so maybe like 26gigs total  I deleted a few files yesterday and freed up about 250mb of space today when i checked it it was completely full again and i deleted some older files and freed up about 170mb of stuff but i can watch it slowly creep down in free space.  I keep running a df -h  Filesystem           1K-blocks      Used Available Use% Mounted on /dev/sda1            241690180 229340500    169200 100% / varrun                  257632       260    257372   1% /var/run varlock                 257632         0    257632   0% /var/lock udev                    257632        72    257560   1% /dev devshm                  257632        52    257580   1% /dev/shm lrm                     257632     40000    217632  16% /lib/modules/2.6.24-28-generic   /volatile  what can I do to try to hunt down whats taking up so much of my hdd? (im fairly new to unix in general so i apologize if this is not well explained)


xspdf is polluting Google search results using Stack Overflow content

More and more lately I am getting a lot of Google results from xspdf when searching for programming questions. e.g.  The problem is these are copy pasted Stack Overflow questions and answers, unformatted, apparently randomly fragmented and jumbled together. I don't know what kind of SEO they are using to get so high on the search results but the results are worse than useless. Is there anything Stack Exchange can do about this? I realise the answer is probably no as they aren't breaching any licensing rules, but this is driving me crazy.


How to prevent a user from having multiple instances of the Same Web application

I'm wondering if it is possible to determine if a user already has a web browser open to the web application I'm working on. It seems that they can open several instances of the same web app and click on buttons to read information that they have used before to enter into an input screen that they're currently working on.  What happens though is that it seems to screw up Session variables and then the user will update their previous work with their new work. Or they will delete their previous work all together or who knows...  EDIT I have seen this done before with online banking web applications. If you are already logged in, the new window will kindly tell you that you already have the app open. In my case, the user does not need to log in.  Is there a simple way to determine if they already have a browser window open to the web application and if so, just close the browser or display a different page to let them know they can only have 1 open at a time?  Thanks


I am a beginner in LaTeX. I used the LaTeX example to insert a figure in my thesis. Here is the code:  \begin{figure}[ht] \centering \includegraphics[width=\textwidth]{figs/#####.jpg} \vspace{0in} \caption{#####} \end{figure}   I think the code should only generate one caption below the figure.   However, I got two captions with my figure. The form is like:     #####.jpg      (The figure itself looks fine)      Fig1.1 #####   Anyone had this problem in the past? How could I get rid of the top #####.jpg?


This is what I've come up with as a method on a class inherited by many of my other classes. The idea is that it allows the simple comparison between properties of Objects of the same Type.  Now, this does work - but in the interest of improving the quality of my code I thought I'd throw it out for scrutiny. How can it be better/more efficient/etc.?  /// <summary> /// Compare property values (as strings) /// </summary> /// <param name="obj"></param> /// <returns></returns> public bool PropertiesEqual(object comparisonObject) {      Type sourceType = this.GetType();     Type destinationType = comparisonObject.GetType();      if (sourceType == destinationType)     {         PropertyInfo[] sourceProperties = sourceType.GetProperties();         foreach (PropertyInfo pi in sourceProperties)         {             if ((sourceType.GetProperty(pi.Name).GetValue(this, null) == null && destinationType.GetProperty(pi.Name).GetValue(comparisonObject, null) == null))             {                 // if both are null, don't try to compare  (throws exception)             }             else if (!(sourceType.GetProperty(pi.Name).GetValue(this, null).ToString() == destinationType.GetProperty(pi.Name).GetValue(comparisonObject, null).ToString()))             {                 // only need one property to be different to fail Equals.                 return false;             }         }     }     else     {         throw new ArgumentException("Comparison object must be of the same type.","comparisonObject");     }      return true; }


I use my own domain for email, so that I can use multiple email addresses when shopping online, subscribing, etc.  These are all redirected to Gmail.  I have created some addresses under that domain for use when sending in Gmail.  What I would like to do is send mail without the need to register each address separately, or create a new email address in "Google Apps for your domain".  Is there a method to register the whole domain with Gmail so that I can send email in this way without needing to verify a new address?  [Original answers suggested Google Apps for your domain.  I didn't known about this, and I think it will be useful for me, but it doesn't obviously allow this feature.]


How to host a Minecraft server (not on the same LAN and without using Realms)?

My friends want to play Minecraft together, but they don't want to pay for a Realm. Is there any way to get around that?


exchanging initial consonants: name that spooneristic practice

Recently I came across the expression "dain-bramaged".  I assume that there are other seemingly flippant instances of the exchange of initial consonants of words, but is there a general term for such a practice?  Edit:  Please note, this refers specifically to (a) initial consonants only, and not to whole syllables, and (b) intentional, not accidental or ignorant, exchange of consonants.  Second edit:  By popular (and quite reasonable) demand, I am emphasizing that, yes, these are spoonerims.  So what I'm looking for is a name for the paricular activity of deliberately creating a spoonerism by changing only initial consonants or consonant groups, and changing only that.


I want to decrease the length of margins, which are denoted on the picture (because i fint them too long). How can i do that?     \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage[T1]{fontenc} \usepackage{graphicx, graphics} \usepackage{epsfig} \usepackage{stmaryrd} \usepackage{amssymb} \usepackage{amsthm} \usepackage{amsmath} \pagestyle{empty}  \begin{document} \title{ticket9} \author{myname}  \section{introduction} \vskip 0.1 cm Some text  \end{document}


How do I manage multiple ubuntuone accounts?

I have 2 ubuntuone accounts. I am logged it to the first I created, and my ubuntu natty pc folders are synced with that account.  I want to switch my ubuntu pc to the second account, but I can't find the way. If I disconnect from the first account, the client should give me the possibility to choose another account; on the contrary, I can't see any way to change the account data.  Am I blind?


Library calls used to install signal-handling in C?

I know there are two system calls that can be used for this, but which one is preferred for portable code?


Alternatives to "break a butterfly on a wheel"

The phrase "to break a butterfly on a wheel" is very evocative, but I can't bring myself to use it: I find the "wheel" too disturbing.  So: what are some good alternatives?  (For those who are unfamiliar with this expression, Brewer's Dictionary of Phrase and Fable defines it as "to employ superabundant effort in the accomplishment of a small matter". [])


Can not connect to servers following file modifications

Every time I try to connect to any server, Minecraft gives an error stating:     Failed to login: The authentication servers are currently down for   maintenance   I accidentally renamed the Servers file while deleting old screen shots.  I have been unable to connect to any server for several days following.  Can the servers file cause this error?


I found several other questions on SO regarding the JavaMail API and sending mail through an SMTP server, but none of them discussed using TLS security. I'm trying to use JavaMail to send status updates to myself through my work SMTP mail server, but it requires TLS, and I can't find any examples online of how to use JavaMail to access an SMTP server that requires TLS encryption. Can anyone help with this?


In Hagrid's hut, how did Dumbledore know Harry and Ron were there?

In Chamber of Secrets, how did Dumbledore know Harry and Ron were there?  ‘However,’ said Dumbledore, speaking very slowly and clearly, so that none of them could miss a word, ‘you will find that I will only truly have left this school when none here are loyal to me. You will also find that help will always be given at Hogwarts to those who ask for it.’ For a second, Harry was almost sure Dumbledore’s eyes flickered towards the corner where he and Ron stood hidden. Chamber of Secrets - page 195 - Bloomsbury - chapter fourteen, Cornelius Fudge


Sphere inside a conical vessel touches the lid

A conical vessel with semi-vertical angle 30 degrees and height 10.5 cm has a thin lid. A sphere kept in the vessel touches the lid. The radius of the sphere in cm is ...


Generating a random number between 1-7 by rand(5)

I want to write an algo to generate a random number between 1-7 given a method that generates a random number between 1-5.  I thought of one solution as rand(5)/5*7 ??  I think this should work.  Can anybody tell me an optimal solution ?  I read this solution somewhere, but I do not know how they thought of keeping " int num = 5 * (rand5() - 1) + (rand5() - 1);" . I understand that it generates a random number between 1-7 but how they thought of this logic or what they trying to convey is not getting into my head. Can anybody please throw a light on this.  public static int rand7() { while (true) {     int num = 5 * (rand5() - 1) + (rand5() - 1);     if (num < 21)          return (num % 7 + 1); } }


Proof of the definition of cardinal exponentiation

I really cannot seem to get my head around the definition of cardinal exponentiation with regards to finite sets:  $|X|^{|Y|}=|X^Y|$  How would one even begin to prove this? Isn't $X^Y$ the set of all functions with the domain $Y$ and the codomain $X$?


How to check to see if file exists and reprompt in python?

I'm fairly new to python. I'm trying to create a function called updates. One of its arguments is a file name, called countryFileName. In my main.py I would prompt the user to enter the file name, but here in this function I need to make sure that the file name given by the user exists. If it does exist, it should then proceed to process the file. If the country file does not exist, then updates should give the user the option to quit or not, prompting y or n. If the user does not wish to quit (responds with “n”), then the function should prompt the user for the name of a new file. If the user wishes to quit (responds with a “y” or anything other than a “n”, then the method should exit and return False. The method should continue to prompt for file names until a valid file is found or the user quits. Here's what I got so far: def updates(countryFileName): file3 = open(countryFileName, "r") output = open("output.txt", "w") if file3 == None:     # Run the loop until the user enters correct file name     while True:         # Prompt the user to enter the choice         quitchoice = input("Quit? Press y for yes or y for no: ")         if quitchoice.lower() != "n":             output.write("The update is unsuccessful, sorry\n")             output.close()             return False          elif quitchoice.lower() == "n":             countryFileName = input("Enter new name of file: ")             # Open the file and check status             file2 = open(countryFileName, "r")             if file2 != None:                 break  Right now if the user enters the wrong file name, I just get an error "No such file or directory". I'm not sure why, but I think when python gets an error at the second line file = open(countryFileName, "r") it doesn't continue to my loop. How would I solve this?


Laptop (Asus x555u) screen turns off as soon as you remove the power cord

Asus x555u Intel Core i5-6500U 2.30 GHz, x64. Windows 10 NVIDIA GeForce 920M It turns back on with no issues when you plug the power back in. Keyboard and mouse input is processed while the screen is off. When connected to TV via HDMI I can see that the computer is on and everything works on the TV even when unplugged, but the laptop screen is off without the cord.  Replaced battery. Changed all the sleep mode settings up and down. Changed windows. Changed the display brightness when on battery up and down. Changed power options. Edited plan settings of the active plan for both battery and plugged in. Updated drivers.  Any other options?


What are the main differences between Basic red box D&D (any version) and 5e?

I'm getting back into the hobby and I've re-read Moldvay's red book and Cook's Blue book and it's all come back to me.   I've read the question ""  What I need is a list of equivalents from one edition to the other.     Most everything is the same; race, class, HP, ability scores, etc.     Saving throws seem to be replaced completely with ability checks? Or have they become something else with ability modifiers added in?   THACO is out and d20 rolls are in.   There is something called BAB?    AC flipped and higher is better.   Is there a link that lists all the factors and their equivalents?    I need just these two but if there is a place with a table for all of the editions that I can cross reference that would help.


a) Determine the number of ways to colour a 1 by n grid using the colours red and white if an even number of squares are to be coloured red.   Note that n is greater than or equal to 1 and the number of red squares could be 0.  I know I must consider the cases of n being even and odd, and determine the sum, from zero to n of the squares being red, where the number of red squares is even. But I just want to make sure I haven’t missed any arrangements by saying a) is $2^{n-1}$ when n is even and $2^{n-1}-1$ when n is odd.  b) Determine the number of ways to colour the squares using red, white and blue if an even number of squares are to be coloured red.  For this case, I can have arrangements including red only, white only, blue only, white and blue only, red and white only, red and blue only, and finally all three colours.  Thank you for any help provided.


Why is this character sitting in the iron throne at the end of S06E10

At the end of the TV episode The Winds of Winter, we see       Cersei sitting and crowned on the iron throne.   What makes them sit there given that      She isn't a Baratheon. Remaining Baratheons, by blood, should then have priority, even if all Robert's, Stannis' and Renly's lines are cut. Cousins probably?  She isn't male, while the series told us for years that women don't sit in that throne (books might say otherwise, though). Season 6 changed that, but there were several hints through the series that this is true. Jaime would be fitting better on the throne than Cersei. It seems to me that in the sexist world of Westerns, they'd better forgive a man some promise rather than let a woman take the lead. See Jon / Sansa in the very same episode.  Even though she killed her accusers, the rumours and reasons why her trial had to take place haven't disappeared with the High Sparrow.  Some people can still see her game. She has The Mountain to fix that but he only stops individuals, not the entire system, doesn't he?   At best she'd be a regent, not a queen...