Entering into PhD program after having dropped out of bachelor's

When I was 23, I quit my computer science undergraduate studies at USC with only one semester worth of units left and a low (less than 3.0) GPA due to personal reasons.  I just turned 30 and have rekindled a desire to pursue research in computational neuroscience.  Is there any realistic hope of eventually getting into a PhD program and pursuing a career in academia, or is it too much of a long shot given my personal circumstances and the job market?    Basically, what I want to know is, if I were to finish my BS, kick ass in a master's program (applied mathematics), and have great GRE scores, would that overcome my abysmal undergraduate record and gap in years away from school?  The biggest obstacle in my view is getting into a terminal master's program with my undergraduate record.  If I were to get into a 1-year terminal master's program in mathematics at a sub-par university and do great, would I have a chance at a higher ranked university for my PhD?


Finding an independent set given partition of a cycle - Lovasz Local Lemma (Alon, Spencer)

Let $G = (V,E)$ be a cycle of length $4n$ and let $V = V_1 \cup V_2 \cup ... \cup V_n$ be a partition of its $4n$ vertices into $n$ pairwise disjoint subsets, each of cardinality 4. Is it true that there must be an independent set of $G$ containing precisely one vertex from each $V_i$? (Prove or supply a counter example.)  --  This problem appears in Alon, Spencer. After working for a long time, I am starting to believe that the statement is false. However, I have not been able to construct a counter example.   If we replace 4 with 11, the problem can be proven by symmetric Lovasz Local Lemma: for each $V_i$, randomly pick a vertex to be $v_i$ with probability $1/11$ and place it in some set $H$. For $xy \in E(G)$,  define $A_{xy}$ to be the event that $x$ and $y$ are chosen to be in $H$. $Pr(A_{xy}) = 1/11^2$ if $x$ and $y$ are in different $V_i$'s. Otherwise, $Pr(A_{xy}) = 0$ because they cannot both be picked. Let $x \in V_i$, $y \in V_j$ where $i\neq j$. Events $A_{xy}$ and $A_{uv}$ are dependent if $u$ or $v$ are in $V_i \cup V_j$. Consider $V_i$. We have 11-1 choices for vertices that are not $x$. Each of these vertices has 2 neighbors (because $G$ is a cycle). Also, if $u$ = $x$ then there is one choice for $v \neq y$. Therefore, by symmetry, the number of dependent events is at most $d = 2(2(10) + 1)=42$. Then $e p (d+1) = e 43/121 = 0.966... < 1$. And so there is a choice of $v_i$'s such that no edges have both endpoints in $H$, i.e., $H$ is an independent set.   --  I might've calculated some things incorrectly, but I think in general this idea works. Any ideas/counterexamples for $4n$ in the original question?


I have the old iphone 3GS LATEST IOS  I used to open Itunes to put songs on the phone etc and if I wanted to I would (manually)sync my phone. Syncing the phone enacts whatever your options are set to. In my setup that meant, hitting "sync" would cause:   1  Backup- iphone backed up to the PC,    2  Calendar - iphone calendar synced with Oulook calendar on my computer  3  Contacts, that is the iphone contacts (phone nums, and any other info like street address, email address)  - synced with gmail contacts. NOTE: In 2 & 3 syncing meant that any new contacts put in the iphone since the last sync, would be added to my gmail contacts and any new contacts in my gmail contacts that were not in my iphone were added to the iphone. So the syncing worked both ways. Handy, as if I ever lost my phone (apart from having the backup on the PC) my phone contacts would be in my gmail.   I did not do the above sync for some months and when I went to do it recently I find that Apple has changed things. The dropdown list that had gmail on it for selecting which email application you wanted your iphone contacts to sync to, no longer had gmail on it and it had to defaulted to Outlook. Certainly don't want contacts to go there. So I unselected the contacts sync so now when I sync only my calendar gets done.  Apple apparently wants to be less connectable to non apple entities, so wants people to sync contacts with icloud. Useless for my purposes. :(  My question: HOW TO sync, if possible, my iphone contacts with my gmail contacts even if it is a 2 step process. There are a lot of questions similar to this on the site but none seem to deal with the fact that I want to be sure that I do not cause any iphone contacts to be wiped in favour of what is in my gmail contacts or vice versa  ( Back a few years, I thought I would make a new start with a clean slate on my gmail contacts so wiped them all and then synced, thinking all my iphone contacts would appear in my gmail contacts. Because the syncing process updates the other entity with the latest actions from and to each other, the iphone was updated by the latest actions which were in gmail contacts, so wiped the iphone contacts clean!  Was not happy)  With all this in mind, can anyone tell me how to do a 2 way update (sync) or if this is no longer possible to at least update my gmail contacts with any changes in my iphone contacts?  HELP is appreciated.


The product of all the elements of a finite abelian group

I'm trying to prove the following statements.  Let $G$ be a finite abelian group $G = \{a_{1}, a_{2}, ..., a_{n}\}$.   If there is no element $x \neq e$ in $G$ such that $x = x^{-1}$, then $a_{1}a_{2} \cdot \cdot \cdot a_{n} = e$.   Since the only element in $G$ that is an inverse of itself is the identity element $e$, for every other element $k$, it must have an inverse $a_{k}^{-1} = a_{j}$ where $k \neq j$. Thus $a_{1}a_{1}^{-1}a_{2}a_{2}^{-1} \cdot \cdot \cdot a_{n}a_{n}^{-1} = e$.   If there is exactly one $x \neq e$ in $G$ such that $x = x^{-1}$, then $a_{1}a_{2} \cdot \cdot \cdot a_{n} = x$.   This is stating that $x$ is not the identity element but is its own inverse. Then every other element $p$ must also have an inverse $a_{p}^{-1} = a_{w}$ where $p \neq w$. Similarly to the first question, a rearrangement can be done: $a_{1}a_{1}^{-1}a_{2}a_{2}^{-1} \cdot \cdot \cdot xx^{-1} \cdot \cdot \cdot  a_{n}a_{n}^{-1} = xx^{-1} = e$. And this is where I am stuck since I proved another statement.    Any comments would be appreciated for both problems.


How will several Cs and one F affect my chances of gettting into a PhD program?

I'm a junior chemical engineering major who is interested in getting a PhD in chemical engineering. However, my grades in nearly all of my chemical engineering courses have been about a C and I've also made a D in one of my chemical  engineering courses. I've made Cs in one of intro chemical engineering courses focusing on mass and energy balances as well as statics,quantitative methods, and physical chemistry. I've made a D and have to retake my Properties of Materials class. Ive made As and Bs in Im planning on retaking some of these classes to improve my grades but I'm  still worried about how these grades will be precieved by a graduate admissions committee in the long run. How badly do these grades affect my chances to get into a PhD program? Do I have a chance at this point? What should someone in my situation do going forward to become a more competitive applicant for graduate school?


I would like to top align an image with a text. The problem is that the text is aligned with the baseline of the image.  The current code I have is this:  \documentclass[margin,line]{res} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{graphicx} \usepackage{hyperref}      \begin{document}  \begin{resume}  \section{\sc Section X} Lorem ipsum dolor sit amet, sit phaedrum qualisque at. Elit honestatis interesset ut vim, tota dicunt mnesarchum te his. Vim partem voluptua maiestatis te. Vel ea diam alia inciderint, vix ad quot scribentur. Ponderum phaedrum eum ad, affert expetendis eum ne. Ei vis dictas maluisset, est volutpat contentiones ne.  \section{\sc Projects}  \begin{tabular}[t]{@{} lr}     \vspace{0pt}     \begin{tabular}[t]{@{} ll}         Name: & --Name-- \\         Type: & --Type-- \\         Webpage: & \href{}{www.example.com}     \end{tabular}     &     \vspace{0pt}      \includegraphics[width=1.618cm, height=1.618cm]{logo.png} \end{tabular}  \section{\sc Section Z} Quis zril epicurei et mel, usu soleat luptatum cu. Est ut veri convenire gubergren. Sed ad liber appareat erroribus, cum id porro error posidonium. Et eius perfecto has, mei phaedrum aliquando in, vel ponderum salutandi te. Suscipit ocurreret principes ad vis, vim id tale clita vivendum. Sale debitis persecuti pri ex.  \end{resume}  \end{document}   Generated ouput:    Desired output:    I tried doing the tabular in line #18 like this: \begin{tabular*}{\textwidth}[t]{@{} lr} but gives me an error. Also tried inserting \hfill between lines #25 and #26 but didn't do anything.  My approach is based on  previous answer.  How can achieve the desired output?


Public key encryption without ciphertext expansion

Say I have a database column that is defined as VARCHAR(255) that stores names.  I can assume that names can be up to 255 chars.   I need a public key encryption so that I can replace names with their ciphertexts. However the DB structure cannot be changed. In other words I need a public key encryption method that ensures ciphertexts are the same range as plaintexts. (i.e., a permutation).  RSA permutation is no good as it expands ciphertexts to the key size.   surely something like this must exist in the literature. ("format preserving public key encryption" or something like that).


There were a set of extra steps I needed to take with Ubuntu 14.04 that got Japanese text input working, but the same steps seem to not apply to 16.04.  The system toggles between "En" and "Ja", but all it's doing (functionally) is switching from an English keyboard layout to a Japanese keyboard layout.  I installed in English with my location in Japan, which triggered Japanese language support (which isn't working).  I also tried a clean install in Japanese that installed all menus, etc. in Japanese, but also had non-functional Japanese input, so I did a third install in English again - with Japan as the local - which is where I stand now with it.  Any help with this issue greatly appreciated, as I need to be able to input Japanese text.


How can I enter name as author(even after work)in a govt level research without affiliation with an institution?

This question is particularly aimed to target researchers with many years experience in this field.I have done bachelors in Bioinformatics and got an unofficial/voluntary opportunity to work with United nations on a research via local government organization.Although I would be doing the work myself and even document the paper but my superviser says that as I am not affiliated with any institution right now so I cant be put into authors section.But I have heard people work and write papers even after graduation.I want to know how is that done and what am I supposed to write in affiliation part if I want to get the research published.please tell the process in detail.Also, is it possible if I can be associated with thay phd scholar or something without being affiliated with institution?Any information regarding it will be helpful with details please.


Why won't the program run into the 0.01 section?

Hello for this program that is meant to return the number of coins needed to give the change it works fine until the value goes between 0 and 0.05. When I input 0.01, the program does not go into the while loop at all (I checked by making something print at the start of the while loop). Why does it not run?      #include <stdio.h>     #include <cs50.h>     #include <math.h>      int main(void)     {         float change;         do {             change = get_float("Change owed: ");         }         while (change < 0);         int no = 0;         while (change >= 0.01) {             if (change >=  0.25) {                 change = change - 0.25;                 no = no + 1;                 printf("a %f\n", change);             }             else if (change >= 0.1) {                 change = change - 0.1;                 no = no + 1;                printf("b %f\n", change);             }             else if (change >= 0.05) {                 change = change - 0.05;                 no = no + 1;                 printf("c %f\n", change);             }             else if (change >= 0.01) {                 change = change - 0.01;                 no = no + 1;                 printf("c %f\n", change);             }         };         printf("%i", no);     }


Export a private key associated with a self-signed certificate

As part of our CI/CD with Azure, we were able to successfully authorize an Org using the JWT-Based Flow AS LONG AS we follow the steps   Every time we refresh our sandboxes, we have to go through the whole process again, which is a bit of a pain.  Question is, do you guys know if I can generate a server.key file (which is requried by the JWT Flow) from a self-signed certificate created within Salesforce, and not openssl?  Thanks.


Maximum concurrent users on linux server

I have a dedicated server with these info:  128G RAM 6 cores/12 threads CPU, 3.4GHz 512 SSD storage WHM/Cpanel latest Apache/MySQL Centos 7.x   I have a single website on this server which have heavy traffic at specific times of each day for less than one hour. At the peak traffic about 6000 users according to google analytics real time stats.  The average page load time by the server at about 500 users is about 0.15 seconds and the website code is very optimized for mysql.  The problem the server until 2000 concurrent users never have problem. After that number of users the Server load sometimes becomes 100% and above and mysql load becomes 600-900% and the website takes forever to load and displays server busy page and most of the time I have to restart mysql and apache servers.  These are my current settings in WHM for Apache:  Start Servers = 5 Minimum Spare Servers = 5 Maximum Spare Servers =10 Server Limit (Maximum: 20,000) = 5000 Max Request Workers = 5000 Max Connections Per Child = 10000 Max Keep-Alive Requests = unlimited Timeout = 300   These are my settings for mysql in my.cnf which is default by WHM:  # This group is read both both by the client and the server # use it for options that affect everything # [client-server]  # # include all files from the config directory # !includedir /etc/my.cnf.d  [mysqld] log-error=/var/lib/mysql/hosting.hostrose.com.err performance-schema=0 default-storage-engine=MyISAM innodb_file_per_table=1 innodb_buffer_pool_size=134217728 max_allowed_packet=268435456 open_files_limit=10000 max_connections=151   My question, what is the best values for these vars to serve that number of users without overloading or hanging the server specially for apache and mysql connections numbers.


Illustrator CS6 - Cannot scale text over ~19.5in. Instead, Illustrator moves the entire text box down and left

I have no problems scaling text between 0in to ~19.5 inches, but above that, Illustrator moves the text box down and left (no scaling occurs). The larger my scale attempt, the further the text box is moved. For example, if I try to scale the text to 100in, it moves much further than attempting 20in. I've tried different fonts, numbers, letters, etc. and have the same issue. I'm not leaving the canvas or anything like that, there's plenty of room on the artboard. Shapes scale just fine, so converting to outlines is my current work-around. This makes editing the text a huge hassle, though, so I'd like to get this resolved. Googling around only brought up similar, but ultimately irrelevant, issues.  This problem occurred when I opened a file from another person. I feel like my settings got changed in the process, and I have no idea how to change it back. I'd like to avoid reinstalling, as I have lots of settings, addons, etc. that are exactly how I need them. I hope it's something small that I'm just overlooking, any help would be great!


Sound stopped working on Dell laptop Ubuntu 18.04

For a few days now, I can get no sound out of my Dell laptop on Ubuntu 18.04.4. The 'Sounds' settings only shop the option 'Dummy output'. I have checked with headsets, it is the same. I have a Windows on my laptop in dual-boot, and the sound is just fine there, so I believe it is not the fault of the hardware.  In the last few days I've been Googling all possible ways to fix this issue, and I've found the followings:   Disabling the sound in BIOS the re-enabling it does nothing Force-reloading alsa in various ways (e.g. pulseaudio --kill; sleep 2s; sudo alsa force-reload ; pulseaudio --start) does nothing Reinstalling all soundbases e.g. with sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils && sudo apt-get install linux-sound-base alsa-base alsa-utils also with sudo apt install --reinstall pulseaudio pulseaudio-module-x11 does nothing   For the troubleshooting :   The command lsmod | grep snd_hda_intel shows that I indeed have the intel module:   snd_intel_nhlt         20480  2 snd_hda_intel,snd_soc_skl snd_hda_codec         131072  5 snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek,snd_soc_hdac_hda,snd_soc_skl_hda_dsp snd_hda_core           90112  11 snd_hda_codec_generic,snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_hda_codec_realtek,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_hdac_hda,snd_soc_skl,snd_sof_intel_hda,snd_soc_skl_hda_dsp snd_pcm               102400  10 snd_hda_intel,snd_hda_ext_core,snd_hda_codec,snd_sof,snd_sof_intel_hda_common,snd_soc_hdac_hdmi,snd_soc_core,snd_soc_skl,snd_hda_core,snd_pcm_dmaengine snd                    86016  12 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_compress,snd_soc_core,snd_pcm,snd_rawmidi````  lspci -nnk shows nothing related to audio aplay -l and pacmd list-cards both fail to find any sound card The sudo lshw -c sound command finds the card alright:   multimedia description: Multimedia audio controller product: Cannon Lake PCH cAVS vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 10 width: 64 bits clock: 33MHz capabilities: pm msi bus_master cap_list configuration: driver=snd_soc_skl latency=32 resources: irq:17 memory:ed318000-ed31bfff memory:ed100000-ed1fffff     Now I also tried to open alsamixer with sudo alsamixer, however I get the result cannot open mixer: No such file or directory. I do not know if this is a normal error message or is it because I've been messing up a few things during trying everything in the last few days.   Maybe somebody can help me out how to get my Ubuntu to find my sound card again?


I am going to use RemoteAPP to publish a few administration tools but I ran into a problem with Remote Desktop Licensing which made me confused. Currently I am stuck at a windows saying that it want to connect to Microsoft Clearinghouse.     What is Microsoft Clearinghouse?   Is remote desktop licenses free?   Do I need to have remote desktop licenses for what I want to do?   My current set up is Windows Server 2012 R2 Datacenter (activated with Windows license).  Thank you for your help!


Schengen area visa: flying to Switzerland via Germany

I am flying to Switzerland via Germany (transit).   Which embassy should I contact to get a Schengen visa? Where will I need to pass through the Schengen immigration?


How can I use my Blender models in WebGL

I would like to create WebGL applications and use Blender as a modelling tool. I don't necessarily need to translate game engine functionality to WebGL but I would like to retain as much of the UV mapping, vertex colors, materials, etc. info as possible.  I already know I should keep the polygon count low. What are the other things I should keep an eye on? (Such as don't use feature X because you won't be able to export it)  What tools do I need to learn? (WebGL framework specific plugins, generic tools like OBJ exporter)


If I file an amendment to my taxes, do I pay the difference or just the base amount?

I filed a 1040 a few weeks ago and, per that form, was due a refund. I put in the routing information for my bank information to receive the refund deposit, but I haven't received it yet.  I just received a K-1 and am filing an amendment to my return, a 1040X. Now, per the 1040X, I owe the government money. Do I write them a check for the amount I owe plus the original refund? Or just the amount I owe?  To use fake concrete numbers, let's say my original refund was $1000 and now, per the amendment, I owe $1500. Do I write a check for $2500 or $1500? I have not yet received the refund, but it could be sent before my amended return is processed. Since it's an electronic refund I can't just not cash the check.


If $f:\overline D\to\mathbb{C}$, where $D=\{z:|z|<1\}$, is continuous on $\overline D$ and holomorphic on $D$ is it true that $f$ extends to a holomorphic function on $\overline D$?   Since $f$ is continuous on $\overline D$ then it has no poles, so it intuitively should extend to a holomorphic function on closed disc, but I don't know how to prove it.


Find the real number $x$ represented by continued fraction $[12;2,2,12,2,2,12,2,2,12\dots]$

I need to fins the real vlaue of x for the continued fraction (Image attached)  I have tried partial coefficient method, but didn't get  the exact answer.  I there any way where we can identify the value of x algebrically?


How to access upper scope value in python3?

In JavaScript this code returns 4:   let x = 3;  let foo = () => {   console.log(x); }  let bar = () => {   x = 4;   foo(); }  bar();    But same code in Python3 returns 3: x = 3  def foo():   print(x)  def bar():   x = 4   foo()  bar()   Why and how it works?


While loop does not wait for if statement's completion

I am working on a school project for Intro to CS and I can't post my code because our teacher fails us for getting code checked from StackOverflow. My issue is that in my code with the format :  while (condition){ Do something;  if (new condition){ Do something else; Wait for input; Depending on input make while's condition false; }   This code should wait for input when the if statement is evaluated and it does something else. However, my code does not wait for "Wait for input" step and goes directly to the "Do something" step. Here's a bit of the code. Thank you for your help.  while (inum != 102) { System.out.println("Enter a number between 1 and 100: "); inum = input.nextInt(); else if (inum == 101) {                 System.out.println("Are you sure you want to quit?");                 confirm = input.nextLine();                 if (confirm == "yes") {                     inum = 102;                 } }   Here the code gives me this when I type in 101: Are you sure you want to quit? Enter a number between 1 and 100:  *The code does not wait for   confirm = input.nextLine();                 if (confirm == "yes") {                     inum = 102;                 }    step.


I play world of tanks (a Game) in windows. Will it work on ubuntu? Better, worse, same? I would like to try Ubuntu but not if w.o.t won't work.


This is a person who can talk about any topic related to any field; for example,  medical, politics, history, engineering, etc. and not just in a boasting way, this person actually posses knowledge in these fields mainly by reading books, magazines etc. Also, this word is not used in a sarcastic way, it's actually a deferential word.   The person is not necessary to posses 'deep knowledge' of the subject, just enough to converse with people.


Why don't we consider internal forces for motion?

I read an example in my physics book and was not satisfied with that.  Suppose there is a car initially at rest. If the car accelerates then my book says that it is the friction force only which caused this acceleration since it is the only external force acting on the car. But I was not satisfied with that.  What I think is that the motion of the car was the result of both friction as well as the force exerted by the engine on the wheels. If there was no friction then the wheels would rotate only and will not move forward. But what if there was no engine and no external force was given except friction. The car would not move in both the cases. Doesn't it mean that for acceleration both internal as well as external force is needed?   If it is correct then why don't we count the internal force?  If I am wrong, then correct me.


How to change Gsettings via remote shell?

I need to automate desktop configuration via Puppet, virtual terminal  or ssh.  Unfortunately, invocation of gsettings via ssh or virtual terminal gives:  gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ hsize "4"  (process:29520): dconf-WARNING **: failed to commit changes to dconf: Cannot autolaunch D-Bus without X11 $DISPLAY   When I set the $DISPLAY with export DISPLAY=:0.0 it gives another error:  (process:29862): dconf-WARNING **: failed to commit changes to dconf: Could not connect: Connection refused   What can I do?


$P$ is a prime ideal of $R$ iff $R/P$ is an integral domain. : $P≠R$

Here is the theorem and proof in my textbook.     Thm.  Let $P$ be an ideal of a commutative ring $R$ with identity $1$.  Then $P$ is a prime ideal of $R$ if and only if $R/P$ is an integral domain.   Proof.   Suppose that $P$ is a prime ideal of a commutative ring $R$ with $1$.  Then $P$≠$R$ implies $1+P≠0+P$. Hence $R/P$ is a commutative ring $R$ with identity.  Assume that $(a+P)(b+P)=0+P$.  Then $ab+P=0+P$ and $ab∈P$.  By the definition of a prime ideal P we get $a∈P$ or $b∈P$.  That is, $a+P=0+P$ or $b+P=0+P$.  Thus $R/P$ is an integral domain.   Conversely, if $R/P$ is an integral domain, then $1+P≠0+P$ and $R/P$ is a commutative ring $R$ which has no zero divisors.  Hence $P≠R$.  Assume $ab∈P$.  Then $ab+P=0+P$ and $(a+P)(b+P)=0+P$.  Since $R/P$ is an integral domain, we get $a+P=0+P$ or $b+P=0+P$.  So $a∈P$ or $b∈P$.  Thus $P$ is a prime ideal.    I am having problems understanding proof with "Conversely, if $R/P$ is an integral domain, then $1+P≠0+P$.".  I know that $R/P$ has an identity. (cause it is ID)  But, why doesn't "$P$" have an identity?  Isn't there a case $P=R$?  Please help me understanding. I think $P≠R$ should be with condition of Thm..  Thank you in advance.


Similarity of matrix over field extension

Let $E/F$ be a field extension and let $A, B$ be $n\times n$ matrices over $F$. Assume that $A, B$ are similar over $E$, i.e. there exists $P\in \mathrm{GL}_{n}(E)$ s.t. $B = PAP^{-1}$. Are $A, B$ also similar over $F$, i.e. can we find $Q\in \mathrm{GL}_{n}(F)$ s.t $B = QAQ^{-1}$?  This statement is true when $E=\mathbb{C}$ and $F = \mathbb{Q}$. More generally, the statement is true for characteristic 0 fields, and the proof can be found in . However, the proof doesn't work for the char $p$ case, since there exists nonzero polynomials over a characteristic $p$ field (for example, over $\mathbb{F}_{p}$) which became zero for any evaluation. (For example, $f(x) = x^{p}-x\in \mathbb{F}_{p}[x]$ is a nonzero polynomial, but $f(a)=0$ for any $a\in \mathbb{F}_{p}$.) So I want to know whether the theorem is also true for characteristic $p$ case of there's a counterexample. Thanks in advance.


Why do we theorize that the Big Bang created space?

I just asked  about how far away the light is that would show us the beginning of time, the Big Bang.   Some answers claim that the light I ask about doesn't exist, because "The Big Bang created space and time."  The way I see it, space, true "space" is literally nothing. You can't create nothing. So I would argue that the BB didn't create space, but only filled it.   Can someone please explain why we theorize that space itself was created by the Big Bang?


If $ \sum\limits_{n=1}^{\infty} a_n $ with $a_n >0$ is convergent, then is $ \sum\limits_{n=1}^{\infty} \sqrt {a_n a_{n+1}} $ always convergent?

Given that $ \sum\limits_{n=1}^{\infty} a_n $ with $a_n >0$ is convergent. I am claiming that $\sqrt {a_n a_{n+1}} < a_n $ if possible let $\sqrt {a_n a_{n+1}} > a_n $ then $ a_n a_{n+1} > {a_n}^2 $ implies $ a_{n+1} > a_n $ implies $a_n$ is increasing,  a contradiction since $ a_n > 0 $ and $ \lim a_n =0$, so our assumption is wrong now using comparison test we can conclude that $\sqrt {a_n a_{n+1}} $ is always convergent.  Is my proof OK if not can you  give me a hint.


UPDATE  I would like to know which is the recommend way of running GUI applications as root, mainly because what I'm trying isn't running smoothly. I get some annoying warnings that makes me think whether I'm doing something wrong or not. I'm using gksudo and sudo -i, which I understand, are doing the same thing. Please let me know if there is some slight differences between them. Regarding the problems I'm experiencing, I would like to start with nautilus (run as root). I can't edit the preferences file maybe because the program couldn't create its own configuration files. A warning says that the folder /root/.config/nautilus must be created. When you start an application for the first time, the program is responsible for creating the configuration files it will potentially need. So, when you are running as root, it should happen the same, shouldn't it? Furthermore, in the shell appears some strange warnings while running this application, such as the followings:  (nautilus:3406): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files Nautilus-Share-Message: Called "net usershare info" but it failed: The "shared network" returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error It doesn't exist the file or the folder Please ask your system administrator to enable user sharing.  Other applications like gedit or firefox complained in this way:  (gedit:3444): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files (gedit:3444): GLib-GIO-WARNING **: Failed to parse translated string ''Monospace 12'' for key 'editor-font' in schema 'org.gnome.gedit.preferences.editor': 0:expected value (gedit:3444): GLib-GIO-WARNING **: Using untranslated default instead. (firefox:2719): Gtk-CRITICAL **: IA__gtk_clipboard_set_with_data: assertion 'targets != NULL  I want to make a clean install of the system soon, but before that, I would like to understand how it works in case I need this stuff in the future for specific things. Though I know it's safer to use the straight sudo in the command line instead. Why this is happening? Thanks in advance


What USB drive filesystem works out of the box on Windows, Linux, and OS X?

What USB drive filesystem works out of the box on Windows, Linux, and OS X so that, when I give a 64GB USB drive to my dad, I don't have to tell him to first type in sudo apt-get install exfat-fuse exfat-utils ntfs-3g in the terminal, for example?


Please Let me know.How to write TEST class for the following code?  trigger TriggerForACC on Account (before insert) {     List<Contact> conUpdatedList=new List<Contact>();      List<Contact> ExistingList=[Select Id,Name FROM Contact];     for(Account acc: Trigger.New){         acc.Name='MyAccount';         acc.BillingCity='Bangalore';         acc.BillingCountry='India';     }     for(Contact cont:ExistingList){         cont.FirstName='Kavya';         conUpdatedList.add(cont);     }     update conUpdatedList;  }


what are the drawbacks of implementing `dropout` in neural network training?

What are the possible drawbacks of implementing "dropout" in neural network training? (if there is any)? Thank you,


What about rewarding users that flagged a question with some reputation if the flag was accepted?    So, for example, user A sees a question that is spam (an advertisement) and a moderator accepts this flag, wouldn't it be nice to give the user that flagged the question some reputation (maybe +2 or so).    On the other hand, if user B flaggs a question and the flag was not helpful, and this happens some more time, the user could lose some reputation (-1).


I've been trying to troubleshoot a Wi-Fi issue (with a specific network) and have Wi-Fi verbose logging on, but I can't find any documentation on what any of the fields in the network selection menu are. The network in question has the full info of: Connected [ UN UN UN ] f=2462 00:00:b1:6b:00:b5 standard=4 rssi=-75 score=59 tx=23.3,27.9,1.0 rx=20.9 4G STAs:8[(2)  I understand rssi and STAs (although, I have no idea for the second number for STAs) and f fits the channel frequency, but the rest (UN, tx/rx, standard, score, and 4G) have me stumped. Does anyone have any idea for these or a pointer to the relevant documentation?


What is the formula for determine heating produce by a lens?

When I put a lens along the the sun it convert the sun energy to heat and maybe fire the substance beyond the lens. How could I determine the heat produced and what is the formula?


Can I calculate my phone's sensor size from f-stop, focal length, max aperture, or other metadata?

Could I work out sensor size of my phone from these info: F-stop= f/2.6 , focal length = 3mm, max aperture = 2.8 and others info like: resolution unit, exposure time?


Is there a way to report drive-by downvotes?

I'm a bit new to SO and I'm trying to build some points. I noticed some .  Could someone point me to a reporting tool for situations like this?  NOTE: This is not about serial downvotes.    Update: It looks like someone (a good samaritan, perhaps?) upvoted the answer in the referenced SO question. I'll have to make the situation more clear here.  I provided an answer to a SO question, an answer which was downvoted. When I noticed that many people were competing for the answer spot, and that another user had the exact same answer as I had, I felt my answer may have been downvoted by a careless or possibly jealous user wanting to bubble up his own answer and hide competing answers.  I wanted to know if it was possible to have mods look into cases of unfair downvotes, as a long-term concern for me if I wanted to get involved on SO, especially when some of my answers took me more than 2 hours to provide.  Luckily enough, Bart provided some reassurance below.


I have following MWE:  \documentclass[12pt,a4paper]{article}  \usepackage[utf8]{inputenc} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{hyperref} \usepackage{indentfirst} \usepackage{caption} \usepackage{listings} \usepackage{tcolorbox} \usepackage[slovene]{babel} \usepackage{titlesec} \usepackage{float}  \setcounter{secnumdepth}{4}  \titleformat{\paragraph} {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} \titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}  \author{Marko Frelih \\ Company \\ \texttt{email}} \title{Title} \date{Ljubljana, Marec 2015}  \begin{document}  \subsection{Prvi zagon} Pred prvim zagonom moramo na Raspberry Pi B+ priklopiti monitor ali televizijski sprejemnik preko HDMI kabla, tipkovnico preko USB vrat ter kabel za internet preko ethernet vrat. Ko to storimo, pri\v{z}gemo Raspberry Pi B+ z vklopom napajalnika preko micro USB kabla v micro USB re\v{z}o in Rasbperry Pi B+ se pri\v{z}ge, aktivnost nalaganja linux operacijskega sistema vidimo na ekranu/televizorju. Najprej se prika\v{z}e predstavitveno okno: \begin{figure} \centering \includegraphics[scale=1.0]{slike/image_rPiBPlusSplashScreen.png} \caption{Rasperry Pi B+ predstavitveno okno} \end{figure} \pagebreak  \end{document}   which produces result, described in . Obvisously, the inserted image is in wrong position, it should be placed in the centre (which is), but UNDER the text, not ABOVE It. What am I missing?


What exactly is execution time limit of 10 minutes?

documentation says that      Maximum execution time for each Apex transaction is 10 minutes for   both Synchronous and Asynchronous   To understand this I executed the below code in anonymous apex window :  Long startTime = System.now().getTime(); Long maxLimit = 9*60*1000; //I am taking max limit as 9 mins. while(System.now().getTime() - startTime <= maxLimit ){   }   I get this error :    What is one use case where we don't run into CPU time limit(or other limits) but reach execution time limit?


Is it possible to restart the whole human species with less than 10 individual. let say that the whole human species was wipe out of the surface of the earth by a catastrophe only 8 different couple survive the catastrophe could they restart the human species?


Expected Value Of Number of Removals From Urn

Here's the question: "An urn contains b blue balls and r red balls. You repeatedly and independently remove balls from urn (without returning them) until the first blue ball is drawn. All balls currently in the urn have an equal probability of being selected each time a ball is removed. Define the random variable X as the number of balls that are drawn (number of red balls that are removed plus the first blue ball that is removed). Find E[X], the expected value of random variable X."  I'm having trouble finding a closed form expression for the expected value. Here's the work I've done:


What do we call the front part of a decimal number?

I have the following number.  23.45   There are two parts of this number. 23 and 45. What is the mathematical name of the 23 part?


Booting into text mode - how can I fix it?

I upgrade my Ubuntu to 11.10. I restarted and it worked perfectly until now when I restarted again and it is now in text mode after I login. Can somebody please provided some suggestions on what I should do? I do not understand what happened.    I tried restarting lightdm but it is already running.


Accuracy, Sensitivity, Specificity, & ROC AUC

In the context of predictive modeling, when comparing clasification models, What statistic should be considered more important over the others: Accuracy, sensitivity, specificity, or area under ROC curve? Would you suggest other statistics?  Thanks & regards.


Player offering other characters advice during combat

How do you keep the one very experienced player from offering advice during  encounters, combat, etc.? Hes a great player, knows his stuff extremely well, but can't seem to keep his mouth shut, even when his character is not present for meetings, combat, etc.  I have found giving him gummy bears works to keep his mouth occupied, but would like other options.


Why doesn't a service block the app if it runs in the main thread?

From this link:      Service runs in the main thread of its hosting process; the service   does not create its own thread and does not run in a separate process   unless you specify otherwise.   This means that the service runs in the main thread of the app that starts it. If so, why doesn't the app get blocked when the service is running?  Any help will be appreciated.


How do I stop Windows Defender in Windows 10?

I turned off all Windows Defender settings on my Windows 10 VM, but real-time protection kept re-enabling itself.  I then found a registry setting to turn it off for good, but now Windows Defender Antivirus Service consumes tons of memory (>3GB).  I reverted the change, but it's still taking tons of memory (>800MB).  I think the drop is related to reverting the registry change, and re-enabling real-time protection, but it would be great to actually turn it off.


Dropping main effect while retaining interaction effect

There has been a lot of discussion on interaction terms on this site but I'm looking at a specific situation:  I have 3 groups and a continuous independent variable X;Group1, Group2 are represented by indicators G1 and G2 and Group 3 is the baseline group. The regression   Y = m + b1X + b2(X*G1) + b3(X*G2)    shows the interaction terms alone to be significant and that the main effect X is not. The trouble is I think that this has something to do with the way the underlying data were grouped into the 3 groups (different customer segments; X can be something like Unemployment rate). While there is strong reason to expect that X influences groups 1 and 2, for business reasons it is not possible to change the way the customer segmentation is done. But it is very important to capture the effect of X on G1 and G2 ( we need the slopes b2 and b3 for further analysis). In this situation, is it okay to drop the main effect X from the model? Edit : according to some of the discussion below,   ...they say it's ok to drop the main effect sometimes...just want to clarify if it's okay in the situation I have described. Thanks for any advice!


Why light coming from distant stars is not discrete?

Imaging the light racing out from distant  sun, as beam of light shoots aways is a circular pattern (spherical actually), remembering  that, light comes in photons or packets of energy. so how come is that we do not see "gaps" in the light coming from distant stars as these "rays" should have gaps that are getting farther apart as distance grows


Postfix - How to prevent external clients from using my server as a relay?

I have a postfix server installed on Ubuntu 14.04. A PHP script running on the machine uses it to send outgoing email. Additionally, I use postfix to receive mail sent to a local account, which is then forwarded to my personal gmail.  However, this means that anyone can connect to my server and use it as an open relay for spam. How can I  prevent remote connections from relaying email?  This is my main.cf:  smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = aviacao.pt virtual_alias_maps = hash:/etc/postfix/virtual alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = aviacao.pt, localhost.localdomain, localhost relayhost =  mynetworks = 0.0.0.0/0 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = ipv4   If I change mynetworks to 127.0.0.0/8 then people won't be able to send email to the local account.


I've always wondered about certain kinds of nouns, a particular example is worth. As in: It is worth 100 dollars, It is worth it, It is not worth anything.  In which they handle direct objects, like transitive verbs. This isn't applicable for nouns like, say, 'cat' or 'monster'.  Worth can also be used in embeds. Eg: The car worth ten thousand finally sold.   I can't think of any use alone apart from the idiomatic 'It has some worth'.  Am I misled? Or is this a thing like I think it is? Is there any information and other examples?


Proving: $x = a_0 + \sum_{n=1}^{\infty}(a_n \cos nx + b_n \sin nx)$

How can one expand the function $f_1(x) = x$ on $(−π, π)$in terms of the functions $\cos nx, n = 0, 1, 2, ...$ and $\sin nx, n = 1, 2, ...,$ in a way so that $$f_2(x) = a_0 + \sum_{n=1}^{\infty}(a_n \cos nx + b_n \sin nx)$$ is the expansion of the $f_1$, how is that? I have asked  related to the same issue but didn't get full answer, I have been told that this is a standard application of Fourier series, $f_1$ and $f_2$ are equivalent in the sense that $f_1(x)=f_2(x)$ for all $x∈(−π,π)$. For any $x$ in this interval, the Fourier series will converge to $f(x)$, but I didn't get any rigorous proof  with elaborate explanation. So, plz provide rigorous proof of $f_1=f_2$ with elaborate explanation as I am new to the subject. Thanks You. I have attached the excerpt below -


Is the word "mechanics" singular or plural? For example, should I say that the skin mechanics vary or varies?


I have read and heard in a number of places that extra dimension might be as big as $x$ mm. What I'm wondering is the following: How is length assigned to these extra dimensions?   I mean you can probably not get your ruler out and compare with the extent of an extra-dimension directly, can you? So if not how can you compare one dimension with the other? Does one have some sort of canonical metric? Could one also assign a length (in meters) to time in this way?


Can I dismiss an ongoing spell that was cast on me if I decide to be unwilling later?

With spells like Water Walk, with a duration of one hour, if I have been willing at the moment of casting it, (I am not the caster), and then I decide to be unwilling, does that make me an invalid target and finish the spell on me?  about the interaction between charm beast and the druid reverting to human to end it got me confused about this particular case.


What is this flying animal that hovers like a hummingbird?

What is this animal?    Characteristics:   Has a long curved bill. Has green upper body and a dark black lower body. Likes petunias. Hovers like a hummingbird but is a bit smaller. Has small rear feather-like tufts and is very odd shaped. Moved quickly from flower to flower.


Hi I am trying to run the below code with TestNG but all it gives me is java.lang.NullPointerException error. The Before method gets worked. After that, it shows the below error .What's going wrong. Please help!   ERROR :  java.lang.NullPointerException at lokbo.Login.afterMethod(Login.java:50) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)     at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)     at java.base/java.lang.reflect.Method.invoke(Unknown Source)     at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:108)     at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:523)     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:224)     at org.testng.internal.Invoker.invokeMethod(Invoker.java:731)     at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:877)     at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1201)     at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)     at org.testng.TestRunner.privateRun(TestRunner.java:776)     at org.testng.TestRunner.run(TestRunner.java:634)     at org.testng.SuiteRunner.runTest(SuiteRunner.java:425)     at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:420)     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:385)     at org.testng.SuiteRunner.run(SuiteRunner.java:334)     at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)     at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)     at org.testng.TestNG.runSuitesSequentially(TestNG.java:1318)     at org.testng.TestNG.runSuitesLocally(TestNG.java:1243)     at org.testng.TestNG.runSuites(TestNG.java:1161)     at org.testng.TestNG.run(TestNG.java:1129)     at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)     at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)     at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)   Code :    package lokbo;  import java.util.concurrent.TimeUnit;  import org.testng.annotations.Test;   import org.openqa.selenium.By;  import org.openqa.selenium.WebDriver;  import org.openqa.selenium.chrome.ChromeDriver;  import org.testng.annotations.AfterMethod;   import org.testng.annotations.BeforeMethod;     public class Login  {   public  WebDriver driver;   @BeforeMethod  public void beforeMethod()  {  System.setProperty("webdriver.chrome.driver", "E:\\RF   AUTOMATION\\chromedriver_win32\\chromedriver.exe");     WebDriver driver=new ChromeDriver();     String baseurl= "http://dev.idrottonline.se/";     driver.get(baseurl);     driver.manage().timeouts().implicitlyWait(300, TimeUnit.SECONDS);       String expectedTitle = "Idrottonline2 - Svenskidrott";     String actualTitle="";     actualTitle=driver.getTitle();     if(actualTitle.contentEquals(expectedTitle))     //if(expectedTitle.isDisplayed())        {         System.out.println("Test pass");     }     else     {         System.out.println("Test Fail");     } }   @Test   public void login() {    driver.findElement(By.id("IdrottOnline-LoginBoxTarget")).click();     driver.findElement(By.id("ioui-access-username")).sendKeys("lagorf01");     driver.findElement(By.id("ioui-access-password")).sendKeys("Dumbo753");     driver.findElement(By.xpath(".//*[@id='ioui-access-login']/fieldset/div[5]/div/button")).click();  }  @AfterMethod  public void afterMethod() {   driver.manage().deleteAllCookies();   driver.quit(); }  }


My question concerns this statement in Tex Live Quick Install:  "... we recommend installing it as a normal user... Of course, you need to have permission to write into the destination directory, but TeX Live itself does not care if you are root or not."   I assume this refers to the directory /usr/share. Should I chmod that directory and grant write privileges to the user who will install Tex Live? A specific linux command would be appreciated. Thanks!


Formular Derivation - Expected Value Truncated Normal Distribution

i want to derive the following expected value formular for $p(x)= N(\mu,\sigma^2)$ (see ):  $$E[X|a<X<b]=\mu+\sigma\frac{\phi(\alpha)-\phi(\beta)}{\Phi(\alpha)-\Phi(\beta)}$$  with $\phi(y):=\frac{1}{\sqrt{2\pi}}e^{-\frac{y^2}{2}}, \Phi(y):=\frac{1+erf(y/\sqrt(2))}{2}$ and  $\alpha:=\frac{a-\mu}{\sigma}, \beta:=\frac{b-\mu}{\sigma}$ .  here's what i got so far: $$E:=\int_a^b xp(x)dx=\int_a^b (x-\mu)p(x)dx+\int_a^b \mu p(x)dx$$  the last integral simplifies to: $$\int_a^b \mu p(x)dx=\mu(\bar\Phi(b)-\bar\Phi(a))$$ with $$\bar\Phi(y):=\frac{1+erf((x-\mu)/\sqrt{2\sigma^2})}{2}$$  for the middle integral i got: $$\int_a^b(x-\mu)\frac{1}{\sqrt{2\pi\sigma^2}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}dx=\frac{\sigma}{\sqrt{2\pi}}\int_{(a-\mu)/\sigma}^{(b-\mu)/\sigma}ze^{-\frac{z^2}{2}}dz=\sigma(-\phi(\beta)+\phi(\alpha))$$  resulting in: $$E=\sigma(-\phi(\beta)+\phi(\alpha))+\mu(\bar\Phi(b)-\bar\Phi(a))$$.  not quite what i was looking for, somebody sees where i did a mistake?


Why do producers translate some anime titles?

A lot of producers these days seem to change the original Japanese name to English alternatives. Why do they do this? Does this add any value to the name of the anime in other countries or is it just that it is easier to read for people outside of japan/otaku society?  Because some of the cases are really weird and in my opinion not necessary. An example of this would be "Ace of Diamond" also known as "Diamond no Ace".  Is there anything to gain from translating the title? Also, why don't all series do this?


How can I find out the name of user who has asked the most questions on Stack Overflow

I would like to know who has asked the most number of questions and how many they asked.


It's very likely that I will be spending most of my life in front of a computer monitor. This is necessary for my profession and the fact that improving technology requires us to look at screens more. My eyesight is near perfect and I never needed any glasses or lenses. However, I notice that all the staring at screens takes a toll on my energy during the day and I want to protect my eyes.  I have already altered the brightness/contrast and colour of my monitor. I also installed  software on my computer.  My question is this: I came across computer glasses but opinions are divided and I wonder what is true. As far as I know there are two types: tinted glasses and glasses with a correction (I'm Dutch and I don't know the perfect translation for glasses with a certain "focus" or "correction". Edits more than welcome) I'm not really interested in the tinted version since I covered that with adjusting the settings of my monitor. My interest is in glasses with a low correction that cancels out or reduce staring. Is it safe to assume that glasses like these will reduce the strain on my eyes because they don't have to focus so much anymore?  As I already said, the opinions are a little divided. One website is positive, another isn't. Even the answers to  say different things. One person recommends special glasses another thinks they're not helpful.


What is the point of 5 minutes comment edit window, if we can delete and re-post?

I am aware of the "comment-timeout" which prevents the user to edit comments after 5 minutes edit window.  But, it doesn't prevent the user from deleting and posting a new comment with modified content after 5 minutes.  So, what's the use of that 5-minute comment editing timeout if users can delete and post modified comment, ?


terminal commands for brave browser after install

0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,692 B of archives. After this operation, 153 kB of additional disk space will be used. Do you want to continue? [Y/n]  Yes, I do want to continue......how do I confirm this? What is the command please? New to Linux. Thank you.


I'm looking for a bijection from the closed interval [0,1] to the real line. I have already thought of $\tan(x-\frac{\pi}{2})$ and $-\cot\pi x$, but these functions aren't defined on 0 and 1.   Does anyone know how to find such a function and/or if it even exists?   Thanks in advance!


What is it called when you use something in a sentence that will be replaced?

For example say I have this sentence:     The following sentence uses ________:   You can find the program in [DOWNLOAD_DIRECTORY] where   [DOWNLOAD_DIRECTORY] is your default download directory.   What is is called when I used something like [DOWNLOAD_DIRECTORY]?   What would I put in the blank?  Normally I would say a Macro, but is this correct?


but he'd had his good luck too.   What are those two had(s) representing?


Custom blocks created as a plugin in a module not showing for Block::load()

I have a couple of blocks that have been created using the ... extends BlockBase syntax in my module. They work perfectly fine, and I can add them on the blocks layout page, can add them into DS as a field, etc. They definitely exist fine.  However, when I try and render them using Block::load(), they won't show up, unlike other blocks that work fine.  For example, if I have the following docblock:  /**  * Provides a 'Cute Cats' Block.  *  * @Block(  *   id = "cute_cats",  *   admin_label = @Translation("Cute cats yo"),  * )  */  class CuteCats extends BlockBase { ... }   ... and then try and call it like this:  $block = \Drupal\block\Entity\Block::load('cute_cats'); return render(\Drupal::entityTypeManager()   ->getViewBuilder('block')   ->view($block));   Any idea why? Thanks in advance.


How can one add inline JavaScript in the validation function for the Form API?

I found that there is a way to add javascript files in the form validation function as stated in "".   However, I would like to know how to add javascript using the drupal_add_js function with the inline option. I would just like to execute some javascript code while I am in the validation function of the Drupal Form API.


Flag dialog for faded offensive posts appears below answer editor

Similar to , but containing more bugginess.  Take a look at this:    The post was grayed out because it received (presumably) 3 offensive flags.  was simply a random string of profanities.  Grayed out? Good. Grayed out flag dialog? Not good, but . The editor has a higher z-index than the flag dialog. Definite original . Please fix.  Update: In some situations, it can even appear below other answers making selecting a flag option impossible. The only workaround is to drag the box -- using the top right corner -- to whitespace on the right side. Then the post may be flagged.


How to ensure all data has been physically written to disk?

I understand that .NET FileStream's Flush method only writes the current buffer to disk, but dependent on Windows' disk driver and the hard disk firmware this is no guarantee that the data is actually physically written to disk.  Is there a .NET or Win32 method that can give me this guarantee? So if there is power loss one nanosecond after the call to this method comes back, I can still be sure that everything is OK?


Transit through Vancouver International (Round trip US-India-US)

I would like to fly round-trip from USA to India via Vancouver International and back, on a flight operated by Air Canada (code sharing with United Airlines) in Oct-Nov 2019. I hold a passport from India and a valid multiple entry Canadian Visitor's visa.    Would I also need to apply for a Canadian Transit Visa in addition to the Canadian Multiple entry Visitor's visa I already have in order to transit via YVR (layover less than 48 hours)? Or is the Canadian Multiple entry Visitor's visa enough for the transit? Is a layover time of 1h 35m typically enough to go through Canadian immigration at YVR and board the onwards Air Canada flight back to USA?   Thanks


Good Textbooks for Real Analysis and Topology.

I'm currently in my 3rd year of my undergrad in Mathematics and moving onto my 4th year next year. I took a course in Real Analysis I, but the professor was very confusing and we didn't use a textbook for the class (it was his lecture notes) which was also very confusing as well. Although I got a good mark in the course, I don't think I learned anything from the class since I felt like I memorized how to do the questions rather than actually understood the questions.   So I was wondering what would be a good textbook for real analysis. I'm okay with a textbook with rigorous proofs, as long as everything is explained in good detail.  At the same time, I also want to teach myself Topology. I wanted to take it this year, but there was a conflict and hence I could not take the course. So I was also looking for a textbook for an introduction to Topology.  Any kind of recommendations would be great! I really do want to learn analysis and topology.


I am trying to find all the Sylow 2 subgroups of S4 using Sylow’s theorems. Now, I know that a Sylow 2 subgroup of S4 has size 8, and that there are either 1 or 3 of them (as the number of of Sylow 2-subgroups has form 1+2k and divides 3, the index).  Now my lecturer states “stabilisers of the 3 different bisections of {1,2,3,4} yield 3 distinct Sylow 2 subgroups”  Now my questions are:  1) What does it mean by stabilisers of 3 different bijections of {1,2,3,4}? Is that to say the elements of S4 which send {1,2} and {3,4} to {1,2},{3,4} i.e. by (12)(34)?  2) How does he know that there are 8 elements of this set? Perhaps this will become clearer after the 1st question is answered.  Many thanks, group theory is hard.


How to make sure that something hasn't been done in the literature and can be studied by me

Before starting a new research project/paper, one needs to make sure that this project is new and nobody has done it. I'm still not confident about whether sth really hasn't been done in the literature by doing the following search: 1.google scholar, 2.researchgate, 3.related papers, their reference lists and what papers cited them. Is there a foolproof approach?


I want to create an PDF Editor. Following is my requirement 1- Create a visual force page which can edit PDF lets call it is as an PDFEditor. 2- I am having another VF page called ContractPage which is rendered as PDF.  My functionality is to get all the content of “ContractPage” to PDFEditor where I can change / add or delete the content. And on save this changes should be saved to VF PDF page.   I want to edit content of PDF without using any 3 rd party software. Thanks, Swapnil


I was wondering how to create a theorem environment similar to the following example:   Specifically, the environment should resemble the box that contains "Claim -- The function g is linear".  This comes from a , who has his style files uploaded  I have tried to mimic what I believed to be the relevant code (as there's a lot of stuff there that isn't related to this), to no avail. I have attached my attempt below, but it may be better to ignore it.  \usepackage{amsmath} \usepackage{amsthm} \usepackage{mdframed} \usepackage{thmtools} \usepackage{tikz} \usepackage{xcolor} \usepackage[framemethod=TikZ]{mdframed}     \mdfdefinestyle{mdgreenbox}{%         linewidth=0.5pt,         skipabove=12pt,         frametitleaboveskip=5pt,         frametitlebelowskip=0pt,         skipbelow=2pt,         frametitlefont=\bfseries,         innertopmargin=4pt,         innerbottommargin=8pt,         nobreak=true,         backgroundcolor=SpringGreen!15,         rightline=false,         leftline=false,         topline=false,         bottomline=false,         linecolor=green,     }     \declaretheoremstyle[         headfont=\bfseries\color{OliveGreen},         mdframed={style=mdgreenbox},         headpunct={\\[3pt]},         postheadspace={0pt},     ]{thmgreenbox} \declaretheorem[style=thmgreenbox]{thrm1}   This returns an error, one for xcolor not recognizing the colors, and the following.  l.17        \mdfdefinestyle                       {mdgreenbox}{% The package mdframed has already been loaded with options:   [] There has now been an attempt to load it with options   [framemethod=TikZ] Adding the global options:   ,framemethod=TikZ to your \documentclass declaration may fix this. Try typing  <return>  to proceed.  Package thmtools Info: Key `mdframed' (with value `style=mdgreenbox') (thmtools)             is not a known style key. (thmtools)             Will pass this to every \declaretheorem (thmtools)             that uses `style=thmgreenbox' on input line 39. Package thmtools Info: Automatically pulling in `thmdef-mdframed' on input line 40. (/usr/local/texlive/2017/texmf-dist/tex/latex/thmtools/thmdef-mdframed.sty Package: thmdef-mdframed 2014/04/21 v66 ) \c@thrm1=\count282 (/compile/output.aux) \openout1 = `output.aux'.   I am looking for a way to mimic the environment more than to fix my methods.  Thank you in advance!


Is is possible to change a View's table in PostgreSQL?

I have the following scenario. I have 2 views - view1 & view2 both reading data from table1. Is it possible to change view1 and view2's table from table1 to table2 if both table1 and table2 share the same schema? Or I will have to drop the 2 views and recreate them so that they query table2?


How do you count the number of times a source has been cited in a document?

Say you have a document with many citations and you want to see the number of times each one is cited. This could be implemented without much effort in a programming language, but I have a feeling this might be possible with biblatex. The ideal solution would add the number of times a source is referenced as an extra column in the bibliography. Can this be done?


I'm looking for a relatively easy way for doing custom keyboard shortcuts on Ubuntu. Coming from OS X, there was an amazing tool called Karabiner that allowed me to easily remap keys to predefined shortcuts, and even add custom ones. I was wondering if there is a similar tool for Ubuntu.


I was wondering if linear function is convex or concave? For example f(x)=x, is function whose second derivate is 0 so we cant tell anything using this criteria. Can someone help?


Which current Canon APS-C cameras can use older EOS EF lenses?

I have a Canon EOS 100 film camera, and I would like to change to a Canon digital, but I'm concerned that the lenses I have:   28-80mm 80-200mm 100-300mm 100mm Macro   will not work on the new digital Canon cameras. [It doesn't matter if all of them work, as long as some do]. Could you please advise me as to what digital Canon cameras will not render the list of lenses above useless, or what adjustments I may have to make to still be able to use those lenses?


I am currently trying to create a ResourceDictionary. I have 2 projects (The main project with App.xaml & MainPage.xaml and another project which contains only subpages) and want to define a ResourceDictionary with different styles for specific elements in my subpages. E.g. I have a ListView with some TextBlocks and Images and want every TextBlock to have the same style. How do I achieve that? Is it correct to save the ResourceDictionary in the main project and implement it in the App.xaml? If so, how can my subproject use these Resources?   Some more information on how my project looks like:  MainProject  MyResourceDictionary.XAML  <ResourceDictionary     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     xmlns:local="using:MainProject">      <Style x:Key="ListViewTextBlock" TargetType="TextBlock">         <Setter Property="FontSize" Value="24"/>         <Setter Property="Foreground" Value="White"/>     </Style>     </ResourceDictionary>   App.xaml  <Application.Resources>     <ResourceDictionary Source="ResourceDictionary/MyResourceDictionary.xaml"/> </Application.Resources>   SubProject  MySubPage.xaml  <ListViewItem ...>     <Grid...>         <Grid.ColumnDefinitions.../>             <TextBlock Grid.Column="0" Style={?} Text="Give me style!"/>             <Image...>     </Grid> </ListViewItem>


How to show that two matrices have same eigenvalues?

Consider $4$ square matrices $A_{i,j}$ for $i,j\in \{1,2\}$. Suppose $A_{1,1}$ and $A_{2,2}$ are invertible.   Consider  $$ B:=A_{2,1}A^{-1}_{1,1}A_{1,2} A_{2,2}^{-1} $$ and  $$ C:=A_{1,2}A^{-1}_{2,2}A_{2,1} A_{1,1}^{-1} $$ I have done some checks and it seems to me that $B$ and $C$ have the same eigenvalues (even if in different orders). How can I show this?


First of all please accept my apologize for this basic question If It was. I have a real coding issue but just for the example I'd like to show you the code above. I'd like to understand why the first code is acting asboardI and board were pointing on the same reference and how to make the first code only modify boardI ?  board = []  board.append(["0"] * 10)  boardI = list(board) boardI[0].append("1") print board print boardI  >>[['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1']] >>[['0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '1']]     board = []  board.append(["0"] * 10)  boardI = list(board) boardI.append("1") print board print boardI  >>[['0', '0', '0', '0', '0', '0', '0', '0', '0', '0']] >>[['0', '0', '0', '0', '0', '0', '0', '0', '0', '0'], '1']   If I had declared boardI as boardI = board I'd have undertood but since boardI = list(board) it seems I missed something


Does Pascal's Wager contain any logical flaws or fallacies?

Blaise Pascal's famous wager was that even if the existence of God cannot be determined through reason, a rational person should wager as though God exists, because living life accordingly has everything to gain, and nothing to lose.  What logical flaws and/or fallacies (if any) are committed in making this argument?


$C(X)$ is separable when $X$ is compact?

$X$ is a compact metric space, $C(X)$ is separable when $X$  is compact where $C(X)$ denotes the space of continuous functions on $X$. How to prove it?  And if $X$ is just a compact Hausdorff space, then $C(X)$ is still separable? Or if $X$ is just a compact (not necessarily Hausdorff) space, then $C(X)$ is still separable?  Please help me. Thanks in advance.


How to configure a preboot execution environment in ubuntu 14.04?

I want to configure a ubuntu linux system to act as a preboot execution environment that serves multiple clients to access the boot images from pxe and boot into network. How to configure the ubuntu system as pxe?


Archive listing of posts by publish year (multiple years)

I have an archive page showing all blog posts (in a specific category). With a growing number of posts, I want to separate these by publish year. For example (simplified), I'd like the following:  2012   post post post   2011   post    I'm testing this system by changing my oldest post's publish date to mid-2011. Currently the structure appears to be mostly working, but all posts are showing up under 2012, and none under 2011, despite the oldest post's publish date being set to 2011. To illustrate, I'm getting this:  2012   post post post post (2011 post)   2011    I'm using the code below (some extra stuff has been removed to simplify, but it doesn't affect the result). Can anyone see why the old post is showing up under 2012 and not inside the 2011
? Thanks for your help.  <?php global $query_string; query_posts($query_string . '&posts_per_page=-1'); // Show all posts ?> <?php if (have_posts() { if (is_category('210')) { ?>
     <?php $firstyear = '2011';     $currentyear = date('Y');     $postyear = get_the_time('Y', $post->ID);     for ($i = $currentyear; $i >= $firstyear; $i--) { ?>
<?php echo $i ?>

             <?php while (have_posts() && $postyear == $i) {                 the_post(); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?><?php the_time(get_option('date_format')); ?>
             <?php } // end while ?>
         <?php } // end for ?>
 <?php } // end if (category) } // end if (have_posts) wp_reset_query() ?>


The density of the law of cosines applied on two normally distributed random variables

Let $A$ and $B$ be independent and normally distributed variables where $A \sim \mathcal{N}(\mu_1,\sigma_1^2)$ and $B \sim \mathcal{N}(\mu_2,\sigma_2^2)$.    What will be the density of $A^2 + B^2 -2AB\cos(\phi)$, where $\phi$ is a constant?  I read the answer in  , applying the same trick will result in the sum of two scaled non-central and dependent chi-squares.


"Next Song" function key (Mac) on Ubuntu

I have installed Ubuntu 12.04 on my iMac 2011. I want to use the function keys on the keyboard to skip to the next song, but I get this splash when I press the key:    Can you help me?


Find the value of expression $\frac{1}{\cos 290^{\circ}} + \frac{1}{\sqrt3 \sin250^{\circ}}$.   Though this question seems easy, I just seem to get stuck somewhere. This is what I have tried so far: $$\frac{1}{\cos70^{\circ}}-\frac{1}{\sqrt3\sin70^{\circ}}$$ $$=\frac{\sqrt3\sin70^{\circ}-\cos70^{\circ}}{\sqrt3\sin70^{\circ}\cos70^{\circ}}$$  From here, I do not know how to continue. Pls help. Thank you :)


Freeze row and columns in Excel (at the same time)

How can I lock both column and rows at the same time using the 'freeze panes' in Excel?     I can manage to freeze either columns or rows, but not both. I can do a similar thing with "split panes",  but this isn't quite what I want.


If I have a group $G$ and a complex irreducible representation $g:G\rightarrow GL_n(\mathbb{C})$.  I am trying to use schur's lemma to show that for $x\in Z(G)$ we have that $g(z)=\lambda_z I_n$.  Now if we define a map $f_z:\mathbb{C}\rightarrow \mathbb{C}$ to be a homomorphism of represenations from $(g,\mathbb{C})$ to $(g,\mathbb{C})$ given by $f(c)=g(z)c$  Then from Schur's Lemma we have that this is an isomorphism.  Am I on the right track? Where do I go from here?


Arabic characters is not save into mysql table why?

I have checked that Mysql Database,Table, and Column Collation is set to utf8_general_ci.   The mysqli connection is set the utf8  Here is the code:   private function __construct () {     if(! $this->mysqli =  new mysqli('localhost', 'root', '', 'game') ) {             $this->errors = $this->mysqli->connect_error;             mysqli_set_charset($this->mysqli, "utf8");     } }   But when I insert some arabic characters then it's showing me this: Ø Its should be arabic character. How can I solve it?


Ubuntu 18.04 - The following packages have been kept back

I updated my server from 16.04 to 18.04 a few days ago, today I found this:  19 packages can be updated. 18 updates are security updates.   I did:  sudo apt-get update sudo apt-get upgrade  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   libapache2-mod-php7.2 php7.2-bcmath php7.2-bz2 php7.2-cgi php7.2-cli php7.2-common php7.2-fpm php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-xml php7.2-xmlrpc php7.2-zip The following packages will be upgraded:   php7.2 snap-confine snapd ubuntu-core-launcher 4 upgraded, 0 newly installed, 0 to remove and 17 not upgraded. Need to get 12.2 MB of archives. After this operation, 21.5 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 ubuntu-core-launcher amd64 2.32.8+18.04 [1,644 B] Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 snapd amd64 2.32.8+18.04 [12.2 MB] Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 snap-confine amd64 2.32.8+18.04 [1,792 B] Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 php7.2 all 7.2.5-0ubuntu0.18.04.1 [9,240 B] Fetched 12.2 MB in 2s (6,527 kB/s) (Reading database ... 81195 files and directories currently installed.) Preparing to unpack .../ubuntu-core-launcher_2.32.8+18.04_amd64.deb ... Unpacking ubuntu-core-launcher (2.32.8+18.04) over (2.32.5+18.04) ... Preparing to unpack .../snapd_2.32.8+18.04_amd64.deb ... Unpacking snapd (2.32.8+18.04) over (2.32.5+18.04) ... Preparing to unpack .../snap-confine_2.32.8+18.04_amd64.deb ... Unpacking snap-confine (2.32.8+18.04) over (2.32.5+18.04) ... Preparing to unpack .../php7.2_7.2.5-0ubuntu0.18.04.1_all.deb ... Unpacking php7.2 (7.2.5-0ubuntu0.18.04.1) over (7.2.4-1+ubuntu16.04.1+deb.sury.org+1) ... Setting up snapd (2.32.8+18.04) ... Created symlink /etc/systemd/system/multi-user.target.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. Created symlink /etc/systemd/system/cloud-final.service.wants/snapd.seeded.service → /lib/systemd/system/snapd.seeded.service. snapd.snap-repair.service is a disabled or a static unit, not starting it. Setting up php7.2 (7.2.5-0ubuntu0.18.04.1) ... Processing triggers for man-db (2.8.3-2) ... Setting up ubuntu-core-launcher (2.32.8+18.04) ... Setting up snap-confine (2.32.8+18.04) ...   Now:  18 packages can be updated. 17 updates are security updates.  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done The following packages have been kept back:   libapache2-mod-php7.2 php7.2-bcmath php7.2-bz2 php7.2-cgi php7.2-cli php7.2-common php7.2-fpm php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-readline php7.2-xml php7.2-xmlrpc php7.2-zip 0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.   How is that possible? What did I miss? Is a web server updated a few days ago, the update is about PHP which is very important for a web server. What can I do?  What should I do?  Will they update later along with other updates? Is this behavior normal after a few days from the version update? My server is in Vultr, maybe something is missing in Vultr?


Here is the question. Given any $\alpha>0$ and $u\in H^1(\Omega)$, $\Omega=B(0,1)$ in $n$ dimensions. Then we have $$\int_\Omega |u|^2 dx\leq C(\alpha)\int_\Omega |\nabla u|^2dx $$ provided that the set $M:=\{x\in \Omega, \,\, u(x)=0\}$ has measure more then $\alpha$, i.e., $|M|>\alpha$.  I have a solution  but my solution requires that $\alpha$ large enough, i.e., I need $\alpha\geq c>0$ for some constant $c$ and I don't know how to remove this additional assumption...  Anyhow, here is my approach: Let $$u_\Omega:= \frac{1}{|\Omega|} \int_\Omega u dx$$ i.e., the mean value of $u$ in $\Omega$.  Then I have $$|u_\Omega|^2 =   \frac{1}{|\Omega|^2} \left(\int_{\Omega\setminus M} u dx\right)^2\leq \frac{|\Omega\setminus M|}{|\Omega|^2} \left(\int_{\Omega\setminus M} u^2 dx\right)\leq \frac{|\Omega\setminus M|}{|\Omega|^2} \left(\int_{\Omega} u^2 dx\right)$$ The Last inequality is by Holder.  Thus I have $$\int_\Omega |u|^2 dx\leq 2\int_\Omega |u-u_\Omega|^2dx + 2\int_\Omega |u_\Omega|^2dx \leq 2\int_\Omega |\nabla u|^2dx + 2\frac{|\Omega\setminus M|}{|\Omega|} \left(\int_{\Omega} u^2 dx\right)$$ and hence I need to make  $$2\frac{|\Omega\setminus M|}{|\Omega|} <1$$ which require $\alpha$ large enough... But question state that this is true for any $\alpha>0$. Where am I missing?  Edit: The below answer is really nice. But here let me point out a more generally Poincare inequality which I learned recently. Actually the Poincare inequality hold for any $E\subset \Omega$ such that $|E|>0$, then $$ \int_\Omega |u-u_E|^2 dx\leq C\int_\Omega |\nabla u|^2dx  $$ Hence we could take $E$ to be the $0$ set of $u$.


We have $n,n+1, n+2 \in \mathbb Z^+$  Their product can't be a whole exponentiation. Why?    I noticed that $gcd(n,n+1)=1$ and $gcd(n+1,n+2)=1$ This could be a good starting point in the proof. But how do I proceed? Thanks


I currently have those locales:  locale -a  C en_AG en_AG.utf8 en_AU.utf8 en_BW.utf8 en_CA.utf8 en_DK.utf8 en_GB.utf8 en_HK.utf8 en_IE.utf8 en_IN en_IN.utf8 en_NG en_NG.utf8 en_NZ.utf8 en_PH.utf8 en_SG.utf8 en_US.utf8 en_ZA.utf8 en_ZW.utf8 POSIX   How can I install ru_RU locale to my server?


Why "being stripped" was used in this example ? Why not "to be stripped"?

The warning from the European commission could lead to that country being stripped of its European rights.


can the pronoun I be use alone to answer a question who?

If I am asked, who is going to the wedding? can I just say "I"?


durbinWatsonTest() in R for non time-series data

I am trying to understand whether the Durbin-Watson test is meaningful at all when applied to regression data that have no temporal order (eg. blood pressure ~ bodyMassIndex + exercise).   I would say no, as the autocorrelation should obviously vary with the order of the subjects (which is random), but I wonder whether the durbinWatsonTest in R involves a bootstrapping of the data, where order of the bootstrapping data is shuffled each time, and then perhaps an average autocorrelation is computed over the bootstrapping samples (but then again, shouldn't this average autocorrelation be zero for randomly sampled data?).  On the other hand, the value of the statistics seems to be quite stable over multiple runs of the function, so I am even more confused...  I came across it in Andy Field's book "Discovering Statistics with R", where it is used is an example with non-time series data, although in another, more recent book of the same author ("Adventures in Statistics") it does say that the test is applicable only to time series data.


Copy certain file endings keeping folders with rsync

I want to use rsync to copy all files from subfolders with a specific file ending, keeping the folder structure at the destination. Given a folder structure, for example foo  | bar     | file1.txt     | file2.gz     | file3.py  | baz     | file4.txt  I then want to copy all files with the endings *.txt and *.py which would give me at the destination foo  | bar     | file1.txt     | file3.py  | baz     | file4.txt  I have tried using find as input to the rsync command, but this doesn't retain the folder structure. Is there some input to rsync that can do this?


Every time I run a command I get this back.  E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? christopher@christopher:~$   This didn't start happening until I changed my device name.


I'm having problem with my verilog code when I synthesize it. It shows multiple drivers error. I think may be it's because of multiple always blocks I'm using in it. So how can I fix it!!? Here it is:  module check(csx,dcx,wrx,rdx,clk,d_out,res); input wire clk,res; output reg csx,dcx,wrx,rdx; output reg [7:0]d_out; reg [2:0]count;  always @ (res) begin   if (res==1)   begin     csx=1;     wrx=0;     rdx=1;     dcx=0;     count=0;     d_out=0;   end end  always @ (posedge clk) begin   count=count+1; end  always @ (count) begin   repeat(3'h5)   begin     if((count+res)==3'h2)     begin       d_out=8'h28;     end     else if(count==3'h3)     begin       csx=0;       wrx=1;     end     else if (count==3'h4)     begin       wrx=0;       csx=1;       d_out=8'h11;     end     else if (count==3'h5)     begin       csx=0;       wrx=1;     end   end end  endmodule


I'm now in search for a Java Text to Speech (TTS) framework. During my investigations I've found several JSAPI1.0-(partially)-compatible frameworks listed on , as well as a pair of Java TTS frameworks which do not appear to follow JSAPI spec (, ). I've also noted that currently no reference implementation exists for JSAPI.  Brief tests I've done for FreeTTS (first one listed in JSAPI impls page) show that it is far from reading simple and obvious words (examples: ABC, blackboard). Other tests are currently in progress.  And here goes the question (6, actually):   Which of the Java-based TTS frameworks have you used? Which ones, by your opinion, are capable of reading the largest wordbase? What about their voice quality? What about their performance? Which non-Java frameworks with Java bindings are there on the scene? Which of them would you recommend?   Thank you in advance for your comments and suggestions.


How can I limit the area in which players spawn?

In the latest vanilla Minecraft server, spawn-protection and the radius in which players first spawn are identical. If, for example, I want to protect a 100-block-wide village around spawn, players without personally set spawn points will spawn anywhere in that 100x100 area. This is different from all of the documentation I see, which states spawning only occurs in a 20x20 area. Is there any way in the latest version to limit the area in which players spawn so that it is less than my spawn-protection area?


What is the cause of voltage drop across a resistor?

We always assign a voltage drop to a resistor when a current goes through it in a closed circuit. I was wondering if this voltage drop is due to dissipated heat from the resistor or is there another reason?


How to separate out a long list of verbs that then merges in with long list of objects?

Imagine the following example:     Feminists destroy, reduce, decimate, deconstruct, defame, destabilize, and fragment the female culture, history, sexuality, identity, reality, and truth.   In the above example, after "fragment" the author is done using verbs and has started a long list of words (objects, subjects?) that are the things that the previous verbs will be acting on.    The actual sentence that I read somewhere is quite similar to the above but in that case the author is using even a more complex sentence where she groups several words together, like she writes in the second part, "culture, history, and tradition" separated by semi-colon and then "body, sexuality, and gender", etc.  But I decided to keep it simple for my question here.    Please assume one is interested in keeping the sentence long and don't break it up into small parts.  Thanks for your help.


Why not to extend the set of natural numbers to make it closed under division by zero?

We add negative numbers and zero to natural sequence to make it closed under subtraction, the same thing happens with division (rational numbers) and root of -1 (complex numbers).  Why this trick isn't performed with division by zero?


Story about the Earth being appraised as a work of art

I'm looking for the title and author of a short story I read sometime between the late '70s and the '80s. It's about a young couple who are curious about a neighbor with a peculiar behavior. I don't recall the specifics of this behavior. But the neighbor ends up being an alien that is appraising the Earth as a work of art. Before leaving, the alien notes that the Earth is not a particularly inspired piece. But it is not completely worthless either and, hence, it will be spared destruction. One of the positives is the way living creatures get their energy (eating).


Let $F \subset G_i \subset E, (i=1,2)$ where $E$ is normal and finite dimensional over $F$.  Assume $E$ is separable over $G_1$ and $G_2$.  Prove $E$ is separable over $G_1 \cap G_2$  There is a hint to use this theorem that states that a finite dimensional field extension is Galois iff it is normal and separable. I think that this means we need to show that $G_i \subset E$ are Galois, which in this case is equivalent to showing that the extensions are normal.  I have a proposition that states that any intermediate field extension is normal so these extensions are normal and therefore Galois since we are given separable.  I do not see how $G_1, G_2 \subset E$ being Galois implies that their intersection is separable.  Is the intersection of two Galois extensions Galois or am I supposed to just use the definition of separable (in which case, why did I even find they are Galois), to show  that $E$ is separable over $G_1 \cap G_2$?


Ubuntu 16.04 Wi-Fi problem after Suspend

I have this problem, after my laptop wakes up from suspend, my wifi connection is treated and shown as wired.Internet still works but no wifi connection is detected just a wired one. Running sudo systemctl enable wifi-resume.service seems to work, but only the after the first suspend. If the laptop goes to sleep once more the only solution is a reboot. I am using the default ubuntu network manager.  lshw:  *-network    description: Wireless interface    product: Centrino Wireless-N 2230    vendor: Intel Corporation    physical id: 0    bus info: pci@0000:06:00.0    logical name: wlp6s0    version: c4    serial: 00:c2:c6:85:45:2b    width: 64 bits    clock: 33MHz    capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless    configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-47-generic firmware=18.168.6.1 ip=192.168.0.5 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn    resources: irq:35 memory:f7800000-f7801fff     Thanks in advance.


How can I reinstall and reset my Ubuntu just as if I've just installed it for the first time? I'm having issues, for example when I try to update it (I'm using Lubuntu) it does not let me do so and it says it's experiencing an internal error. I'm not sure about what to do:  Ign http://ppa.launchpad.net trusty/main Translation-en_US                      Ign http://ppa.launchpad.net trusty/main Translation-en                         Fetched 3,641 kB in 12s (284 kB/s)                                              W: Failed to fetch /openshot.developers/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found W: Failed to fetch /openshot.developers/ppa/ubuntu/dists/trusty/main/binary-i386/Packages  404  Not Found E: Some index files failed to download. They have been ignored, or old ones used instead.


Im having trouble believing this T/F Question: if $\mathrm A^2=I$ then $\mathrm A = \pm \mathrm I$  The answer is False but why?  If the matrix is $\mathrm A = \mathrm I,$ say   \begin{bmatrix}1& 0\\      0 & 1 \end{bmatrix}  then $\mathrm A^2$ is also that. And if $\mathrm A = -\mathrm I,$ then it is   \begin{bmatrix}-1 & 0\\                    0 &-1  \end{bmatrix}  and that squared is also the same? Where am i going wrong?


unable to connect to mysql using php connection error: Can't connect to MySQL server on 'localhost' (10061)

Unable to connect to mysql through php. Gives an error,      Can't connect to MySQL server on 'localhost' (10061).    I'm using MAMP on Windows   <?php    $host_name="localhost";    $db_name="baby_names";    $username="root"; $password=""; $con=mysql_connect($host_name,$username,$password);   if (!$con) {     echo "Connection failed: " ;     die(mysql_error()); } else echo "connected successfully";  ?>


I have a collection of folders that I want to be backed up to OneDrive. As files in these folders change - I want the new files to be uploaded/synced to OneDrive. As the size of these folders is significant, I do not want to physically copy the files to OneDrive folder. Nor do I have an option to install OneDrive folder to be a parent for all the folders that have to be backed up. Essentially I am looking for a basic functionality of any backup product where you just select the folders to backup. Unfortunately the current answers on SuperUser did not answer my question.


Is there a command that allows me to set a prefered IP Address for an adapter?

I've got some customers who should use a specific IP in their network adapter, but manually setting it is a pain sometimes. So I would like to know if there's a shell command / batch that allows me to set it without having to open "Network" -> "Adapter Setting" -> "Ipv4" -> "Ip Address".


By default outer join is bidirectional ? or only left join or only right join?


Let $$A = \begin{pmatrix}a & b\\c & d\end{pmatrix}.$$  Show that   1) $A$ is diagonalisable if $(a - d)^2  + 4 bc > 0$  2) $A$ is not diagonalisable if $(a - d)^2 + 4 bc < 0$


Can I join the Dark Brotherhood if I've killed Grelod the Kind prematurely?

I accidentally killed the orphanage lady before I started the quest. She just pissed me off, sadly it will not acknowledge that I have finished the quest and I haven't been contacted. Is there another way to join the Dark Brotherhood?


Why is it such a good idea to plot the logarithm of the form factor vs $Q^2$ in . It seems arbitrary to me.


Computing the order of $\mathrm{SL}_2(\mathbb F_p)$ as the kernel of $\mathrm{GL}_2(\mathbb F_p)$

The question at hand:  The group $\mathrm{GL}_2(\mathbb F_p)$ of all $2\times 2$ invertible matrices with coefficients in the finite field $\mathbb F_p$ has order $(p^2 − 1)(p^2 − p)$. Let $\mathrm{SL}_2(\mathbb F_p)$ be the subgroup consisting of all matrices of determinant $1$, i.e. $\mathrm{SL}_2(\mathbb F_p)$ is the kernel of the group homomorphism $\det : \mathrm{GL}_2(\mathbb F_p) → \mathbb F_p$. Compute the order of $\mathrm{SL}_2(\mathbb F_p)$. Hint: $\mathrm{GL}_2(\mathbb F_p)$ is a disjoint union of fibers of $\det$.  I am feeling a little lost on this problem. I understand via my professor that $\mathrm{GL}_2(F_p)$ is the union of the fibres of det, that each fibre is a coset of $\mathrm{SL}_2(F_p)$, and that $\mathrm{GL}_2(F_p)$ is the order of $\mathrm{SL}_2(F_p)$ times the number of fibres. However, I am not sure how to show that the order is $(p^2-1)(p^2-p)$. Does anyone have any insight into this problem?


How to make a time buffer in between iterations

I am using bs4 and the request library to scrape some information from an api/xml page and I know the host doesn't like me to ping the site more than once per second.   I am using a for loop to iterate over certain sites, I was just wondering if there is a way to make sure that my iterations have a "time buffer" in between so that I don't upset the host.  example:  A = [1,2,3,4,5]  for x in A:     print(x)  >>> 1, >>> wait 1 second >>> 2, >>> wait 1 second >>> 3 >>> etc


Change environment variable value during execution

Consider the following Ruby code  sleep 10 puts "Foo is #{ENV['foo']}"   Saving this file to envtest.rb  Running this from the shell:  export foo=bar ruby envtest.rb & export foo=baz ( ... 10 seconds later ... ) => Foo is bar   It appears that the environment is evaluated when the ruby interpreter is launched. Is it possible to update environment variables during execution and have those changes reflected in running processes? If so, how?


Is there a substring equivalent for an array?  Input new char[] foo = {'a', 'b', 'c', 'd', 'e', 'f'}  If this was a String abcdef I would use .Substring(0, 2) and get ab  Is there a built in method that would give me char[] {'a', 'b'} if the input indexes were 0, 2?  Code Example  char[] foo = {'a', 'b', 'c', 'd', 'e', 'f'}; char[] bar = foo.**Method**(0, 2); //what can I do here?  Console.WriteLine(bar); //Output would be` **ab**   I know I could just convert the Char array back to a String, use Substring and back to a Char Array. But that would take some extra lines of Code and I want to know, if it is possible with only 1 built-in Method.


Why is multi dimensional array not initialized correctly with * operator in Python?

I'm trying to initialize a multi dimensional array in Python:  SIZE=3  onedimarray=[None]*SIZE  for i in range(0,SIZE):     onedimarray[i]="{0:d}".format(i)  print(onedimarray)  multdimarray=[[None]*SIZE]*SIZE  for i in range(0,SIZE):     for j in range(0,SIZE):         multdimarray[i][j]="{0:d},{1:d}".format(i,j)  print(multdimarray)   This code when run prints:  ['0', '1', '2'] [['2,0', '2,1', '2,2'], ['2,0', '2,1', '2,2'], ['2,0', '2,1', '2,2']]   So in the one dimensional case the * operator initialized the array correctly. In the multi dimensional case each row of the array is the same.  I'm fairly new to Python and don't understand this behavior. Can anyone explain what is going on?


How do I make a USB flash drive writable on Linux?

I want to reformat a SanDisk Cruzer Edge USB flash drive but it appears read-only:  $ sudo dd if=/dev/zero of=/dev/sdg dd: failed to open ‘/dev/sdg’: Read-only file system   I checked the readonly status with hdparm:  $ sudo /usr/sbin/hdparm /dev/sdg SG_IO: bad/missing sense data, sb[]:  70 00 05 00 00 00 00 14 00 00 00 00 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  multcount     =  0 (off)  readonly      =  0 (off)  readahead     = 256 (on)  geometry      = 1017/124/62, sectors = 7821312, start = 0   The readonly flag displays off but that I still cannot write to the drive. How do I solve this?    After running dosfsck on the device I get this output:  $ sudo /usr/sbin/dosfsck /dev/sdg fsck.fat 3.0.22 (2013-07-19) Logical sector size (1766 bytes) is not a multiple of the physical sector size.


java.lang.NullPointerException when accessing data from table in MS Access database

When trying to select data from a table in Access, I get a java.lang.NullPointerException errror. The code works for other tables though. This is the code that works: //cun is passed as a parameter          try {             ResultSet rs = db.queryTbl("SELECT * FROM tblCustomer WHERE CustomerUName = '" + cun + "';");             while (rs.next()) {                 cusFName = rs.getString("CustomerFName");                 cusSName = rs.getString("CustomerSName");             }             rs.close();         } catch (SQLException ex) {             Logger.getLogger(Customer.class.getName()).log(Level.SEVERE, null, ex);         }  This is the code that doesn't work: //dun is passed as a parameter          try {             ResultSet rsDri = db.queryTbl("SELECT * FROM tblDriver WHERE DriverUName = '" + dun + "';");             while (rsDri.next()) {                 driFName = rsDri.getString("DriverFName");                 driSName = rsDri.getString("DriverSName");             }         } catch (SQLException ex) {             Logger.getLogger(Driver.class.getName()).log(Level.SEVERE, null, ex);         }  The error takes me to the line: ResultSet rsDri = db.queryTbl("SELECT * FROM tblDriver WHERE DriverUName = '" + dun + "';");  Please can you help?


Number of injective maps from one finite set to another

$m\le n$  be  natural  numbers. What  is  the  number  of  injective  maps  from  a  set of  cardinality  $m$  to  a  set  of  cardinality  $n$ $?$   I  think  it  is  the  number  of  ways $m$  distinct elements  can  be  chosen  from  $n$  elements  and  permuted  i.e. ${n!}\over {(n-m)!}$  Is  my  formula  correct?


In general I know that if we rotate $(x, y)$  about origin through $180^\circ$ we  will get new image $(-x, -y)$, but suppose that we make rotation not about origin but some other point $(a, b)$ does your result be rotation  around origin + or -  $(a, b)$? Suppose we have point $A(3, 27)$ and we want  turn it by $180$   around the point $(2, -1)$,  if  we rotate $(3, 27)$ about origin by $180$ we get $(-3, -27)$ but how  to connect $(2, -1)$ to this result?


In Superman #11 the cover reads:   Now I know covers have a tendency to be a little... misrepresentative of what is actually contained in the issue, but I've read the issue twice. There doesn't seem to be any secret about it.


I want to convert current Date to simple Date format

Can anyone please help me converting current date to this format:      "2017-06-15T05:15:31.158Z".   I need this format only, another format is not acceptable to my backend.  Friend, please help me here.


Why static friction does work on rolling bodies?

I'm studying the rolling motion, but, Why the torque by static friction does work? If the point of application is at rest relative to the inclined plane, therefore, the point of application doesn't move.


When to use linear discriminant function and when logistic regression?

I am trying to find out when for creating classification rule to use linear discriminant function and when to use logistic regression? I need to help to find information sources to this topic. Any clue?


I hold a position in , an ETF tied to the S&P 500 traded on the LSE. The closing price of CSPX was 262.68USD at a gain of 0.2%. The S&P 500 itself closed higher at at 1.6%. There are a couple of reasons I can think of as to why they are not equal:   The S&P 500, or rather the underlying assets, continued to be traded for several hours after the LSE ceased trading. If this is the case should I expect the value of the fund to rise on Monday morning? The fund manager for CSPX has elected to place more funds in some companies than others. In this case perhaps a higher tranche has gone into a company which has done poorly compared to the rest of the stocks in the index.   Generally speaking if a stock is bought a lot, the price goes up. Does the same ring true for ETFs? If a lot of people buy into the ETF will that affect the price at all or does the value of the ETF depend absolutely on the NAV of the underlying assets?


How do I show that $\mathbb{Q}$ and $\mathbb{Q}\times\mathbb{Q}$ are not group isomorphic?

It's easy to show that $\mathbb{Q}$ and $\mathbb{Q}\times\mathbb{Q}$ are not ring isomorphic as the first one has no zero divisors where as the second one has zero divisors. But I can't find any solution in case of group isomorphism.


So I have an acer c7 chromebook and I have chrubuntu 13.10 I think and its 64 bit and I installed steam from the software center but when I open it up it tell me I have to install a package and when I type in my pass word and hit enter it says:   You are missing the following 32-bit libraries, and Steam may not run: libc.so.6


If one wanted to say something like     no commas: Hello Pete, how are you?    or      commas: Thanks, Julia, this will be helpful!    would he need commas separating the different elements in the interjection or just the comma separating the interjection from the rest of the sentence/clause?


I build a primitive pool table model with holes where the pockets would be but cutting the holes via the Boolean modifier left me with really bad looking lines in the table surface.    I could very well take the time to smooth them out but I'd like to prevent them in the first place. How would I go about this?