I happened to read a statement related to my question in Ferguson's A Course in Large Sample Theory, where he stated:     $$\left(1 + \frac{\lambda_n(e^{it} - 1)}{n}\right)^n \to \exp[\lambda(e^{it} - 1)],$$   as $n \to \infty$, where $\lambda_n \to \lambda$ as $n \to \infty$.   So it looks like he used the property      $$\left(1 + \frac{z}{n}\right)^n \to e^z \tag{*}$$   as $n \to \infty$ tacitly, even when $z$ is a complex variable.   I understand that under the real setting, the proof of $e^x = \lim_{n \to \infty}\left(1 + \frac{x}{n}\right)^n$ relies on the ordering property of $\mathbb{R}$, but it is unlikely the same technique can be transferred to the complex domain.  Nevertheless, I guess this relation $(*)$ should be correct, but how do we show it rigorously (probably by using some complex analysis tools)?

We are dealing with $z \in \mathbb{C}$. I know that $$ \left(1+ \frac{z}{n} \right)^n \to e^{z} $$ as $n \to \infty$. So intuitively if $z_n \to z$ then we should have $$ \left(1+ \frac{z_n}{n} \right)^n \to e^{z}. $$ If $z_n \in \mathbb{R}$ I would be happy writing $$ \exp \left(n \log\left(1+ \frac{z_n}{n} \right) \right) = \exp \left(z_n \frac{\log\left(1+ \frac{z_n}{n} \right)-\log(1+0)}{\frac{z_n}{n}-0} \right) \to \exp(z \cdot 1) $$ where here we are using the definition of derivative. But if $z \in \mathbb{C}$ the logarithm is multivalued and I'm not sure that the same calculation is allowed. Is there a different way to show this for complex $z$?


In macOS, I think pressing the spacebar lets you preview the file's contents before opening it. Is there a way to do the same in Ubuntu? (i.e. quickly open and close a preview of the file)  I've seen , but I'd like to use default software and not have my screen space permanently occupied by a preview bar.  Adding tags to this message, I see mention of Gnome Sushi and Gloobus-Preview. I will try to search more about these items.

Just upgraded from 11.04 to 11.10 and Nautilus no longer previews MP3 files when I hover over them.   Another PC that's been running 11.10 for a while also experienced this after the latest update  Nautilus preferences no longer show options for media / mp3 files, so how can I get this functionality back?


(This might be off-topic and/or not answerable, but I want to ask anyway.)  Recently, I am managing a lot of VPS server with Linux for my personal and professional projects.  However, I am kind of tired by the repetitive tasks. Let's say I have to do the following after installation of a VPS   add some users, add them to sudoers install the basic needed packages from apt-get find out that the package X is not in the basic repository, so I add some repositories do some basic configuration, both as a root and as a user, copy-pasting some stuff from the internet to some files and see what sticks finally start coding   Is there any way to automate the whole process? Basically to "seal" the whole configuration, so I can then do all this in somehow more simplier way.

Beside our internal IT infrastructure, we've got around 500 Linux machines hosting our services for the on-line world. They are grouped in a bunch of clusters like Database A-n, Product A-n, NFS, Backoffice and so on. Furthermore, they are administered by an external provider, according to our specifications and requirements.  However, we face a lot of trouble during (web-) software development, roll-out and deploy - especially because the dev- and staging-environments have almost nothing in common with the live systems (I spare out the nasty details..).  Thus, I've tried to create virtual machines, copied the various live-systems as exactly as possible and prepared them to connect to e.g. the development-databases instead of the "real" ones transparently for developers (they aren't root). This works pretty well, but...  I was wondering how one could administer those systems remotely and in bulk? Is there some software family I'm not aware of? Or, at least, some techniques or principles one should be familiar with?  We would provide every developer with a bunch of images to be run locally (VirtualBox). The QA dept. would get virtual clusters (XEN or Hyper-V). If I need to provide an additional server-module, re-route a new database connection or just want to update everything provided by the package manager... how could I possibly do that without being forced to log on to every system and/or ask my colleagues to download and run some fixture-script?  I believe there are plenty of solutions. Well, somehow I'm too stupid to enter the correct keywords into the search engines... Or isn't this issue as trivial as it sounds?  For the record:   Almost all systems are running Debian GNU/Linux 6.x "squeeze" No developer is forced to use a particular OS at his/her workstation The budget is limited, of course, but not too small to buy proprietary software A solution that would involve our aforementioned provider is preferred


Let $(a_n)$ be an unbounded strictly increasing sequence of positive real numbers and let $x_k=\frac{a_{k+1}-a_{k}}{a_{k+1}}$. Then I want to find the correct option (s).   For all $n\geq m, \sum\limits^{n}_{k=m}x_k>1-\frac{m}{n}$ For all $n\geq m, \sum\limits^{n}_{k=m}x_k>\frac{1}{2}$ $\sum\limits^{\infty}_{k=1}x_k$ converges to a finite limit $\sum\limits^{\infty}_{k=1}x_k$ diverges to $\infty$   My observation says that option 2 is false and so is 3. But I couldn't conclude anything for 1 and 4. Please help!

So I've been thinking through some test cases. If $a_n = n$ then $\sum_n \frac{a_{n+1} - a_n}{a_n}$ is the harmonic series which diverges. And if $a_n = \sum_{k=1}^n 1/k$ then $\sum_n \frac{a_{n+1} - a_n}{a_n}$ diverges like $\sum_n 1/(n \log n)$. So that got me thinking, if $a_n$ is a strictly increasing unbounded sequence, does $\sum_n \frac{a_{n+1} - a_n}{a_n}$ necessarily diverge?


Is it advisable to reapply to the French Embassy for Schengen visa after refusal? I got my refusal two days ago, for these reasons:   The information submitted regarding the justification for the purpose and the conditions of the intended stay was not reliable Your intention to leave the territory of the Member State before the expiry of the visa cannot be ascertained   I am a Philippine passport holder and work as a freelance video editor with clients locally and a main one from Australia. Is it possible to reapply immediately?

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


When quoting one person in a (long) multi-paragraph monologue (shortened here), should the ending quotation marks for one paragraph be omitted if the next paragraph starts with an attribution tag? I have not been able to find an answer to this anywhere.  "Everyone has to have a flag. <--- Quotation marks here, or not?  After a moment he added, "They were the only ones left."

The answer to  clearly explains the standard rule that when you have multiple quoted paragraphs, each new paragraph starts with an opening quotation mark, but only the final quoted paragraph has a closing quotation mark at its end.  This  agrees:     Quotation marks are used for multiple-paragraph quotations in some cases, especially in narratives. The convention in English is to give opening quotation marks to the first and each subsequent paragraph, using closing quotation marks only for the final paragraph of the quotation [ . . . ]   However, neither explains why this is the standard practice.  What good does it do? What is it trying to avoid?  What harm would occur if it were ignored and people put both opening and closing quotation marks on each adjacent quoted paragraph?


If sun is the source of light then is it possible that the speed of light might increase depending on the mediums its going through or its not possible.

I know that if we solve the Maxwell equation, we will end up with the phase velocity of light being related to the permeability and the permittivity of the material. But this is not what I'm interested in - I want to go deeper than that. We know that the real speed of light is actually not changing, the decrease in speed is just apparent. Material is mostly empty, the light will still travel with $c$ in the spacing. The rare atoms will disturb the light in some way. So I am interested in how the atoms affect the light. Photon absorption-emission theory Some textbooks that I read explain it in a way kind of like this: In a material the photons are absorbed by atom and then re-emitted a short time later, then they travel a short distance to the next atom and get absorbed&emitted again and so on. How quickly the atoms in a material can absorb and re-emit the photon and how dense the atoms decides the apparent speed of light in that material. So the light appears slower because it has a smaller “drift speed”. Interference theory But recently I realize an alternative explanation: Atoms respond to the light by radiating electromagnetic wave. This “new light” interferes with the “old light” in some way that results in delayed light (advanced in phase), this can easily be shown by using simple phasor diagram. Consequently effectively the light covers a smaller phase each second, which gives the impression of a lower phase velocity. However the group velocity is changing in a complicated way. I think that the first explanation does not explain the change in phase velocity of light. if we consider light travelling into a slab of negative refractive index non-dispersive material, let’s say the light is directed perpendicular to the slab. The phase velocity’s direction will be flipped, but group velocity’s direction in the material will not change. Only the second explanation can explain the flipped phase velocity direction. I guess that the velocity that we get in the first explanation is actually belongs to the group velocity. It makes sense to me that the front most of the photon stream determines the first information that the light delivers. So the question is What really cause the phase velocity of light to be decreased?  "drift velocity" of photons (they aren't the same photons, they are re-emitted all the time) phase difference between absorbed and emitted light something else  And also, I still don't really understand detailed explanation of the absorption-emission process for small light's wavelength (for large lambda compare to the atoms spacing, the photons will be absorbed by the phonons). The dispersion relation that we know is continuous and also some material is non-dispersive, therefore the absorption process must occur in all frequency for a certain range. So definitely it doesn't involve the atomic transition, otherwise it will be quantized. My guess is that the relevant absorption process gets smooth out by the dipole moment. What makes the spectrum continuous? EDIT: link for dispersion relation:


I want to sketch the following set:  Set of all those complex numbers which satisfy the following equation $$|z|=arg(z)$$  Efforts:  We are looking at those points in plane whose distance from origin is equal to the angle they subtends with respect to x axis.   arg(z) is multivalued   Points like $(\pi/2,0)$ , $(2\pi,0)$, $(-\pi,0)$ belongs to the set. But what are other points.  How to plot this set.   Thanks for any help.

Question: What points in the complex plane satisfies $|z|=arg(z)$.  Work thus far: Let $z=a+bi$ and $arg(z)$ is the angle between the vector $z$ and the axis. So $|z|=\sqrt{a^2+b^2}$ and $a=|z|\cos(\theta),b=|z|\sin(\theta)$. I would expect from intuition that the shape traced out by the points is a spiral. From here I don't how to proceed. Any hints would be appreciated.


Let (X, B, µ) be a measure space and M ∈ (0, ∞). Suppose that $\phi : X \to X$ is a map satisfying that $$\phi^{-1}(A) \in B$$ and $$\mu(\phi^{-1}(A)) \leq M\mu(A)$$ for all $A \in B$ Then I need to show that if f is $L^p$, then $f\circ \phi$ is in $L^p$ too for $p$ greater than or equal to 1. I already showed that $$\int_X f \circ\phi d\mu \leq M\int_X f d\mu$$ but I don't see how to conclude, I tried to split the integral into one part where $f\circ\phi \leq 1$ and the other where $f\circ\phi \geq 1$ but I'm at a dead end. Thank you. (Oh and I try not to use the pull-back measure since I haven't seen it in my lectures)

Let $(X, \mathbb{X}, \mu)$ be a finite measure space and let $1 \leq p< \infty$. Let $\phi$ be continuous on $\mathbb{R}$ to $\mathbb{R}$ and satisfy the condition: $(*)$ there esists $K>0$ such that $|\phi (t)|<K|t|$ for $t \geq K$. Show that $\phi \circ f$ belongs to $L_p$ for each $f \in L_p$ . Conversely , if $\phi$ does not satisfy $(*)$, then there is a function $f$ in $L_p$ on a finite measure space such that $\phi \circ f$ does not belong to $L_p$.  Any suggestion? I tried to use $|\phi (t)|<K|t|$ exchanging $t$ by $f(t)$ and I calculated $||\phi \circ f||_p$, but without success.


I tried everything including display block and margin auto and flexbox justify-content: center; but nothing seems to work.. I am new to css so if you're wiling to help you will mot probably find a minimal error that no one else does that changes everything.   .container {     width: 1024px;     min-height: 1000px;     background-color: red;     margin: 10px auto; }  header {     width: 100%;     height: 150px;     background-color: black; }  .logo {     margin: auto; }

How can I horizontally center a
 within another
 using CSS?

Foo foo


I don't know maybe it's a very stupid question I'm asking but that's the question which always disturbed me.

I know Newton's third law of motion might be the answer for this but still I am wondering how the rockets could thrust in the empty space and move in the opposite direction. I guess an astronaut wouldn't be able to push in the empty space with his hands or legs to move himself, but with a rocket engine it's possible. How? What might be the explanation for this in General Relativity?


I have an application running 24/7 which uses mysql. Different functions of it use mysql. One way to implement it is to create a global mysql instance in the application like this:  self.db = MySQLdb.connect(             host=self.settings.MYSQL_HOST_LOCAL,             user=self.settings.MYSQL_USER,             passwd=self.settings.MYSQL_PASS,             db=self.settings.MYSQL_DB,             use_unicode=True,             charset="utf8",         )   and execute commands using self.db.execute(...). By doing this, the application uses 1 connection. The other way is to create connection every time I need to execute a transaction.  Approach 1, prevents the application from creating and deleting connections over and over but it will face "mysql gone away" problem if it stays ideal. Approach 2, doesn't have a problem with "mysql gone away", but it has too much I/O.  I am pretty sure neither these approcaches are the right ones, but what is the right approach?

I came across PHP way of doing the trick:  my_bool reconnect = 1; mysql_options(&mysql, MYSQL_OPT_RECONNECT, &reconnect);   but no luck with MySQLdb (python-mysql).  Can anybody please give a clue? Thanks.


(a) Show that any two-dimensional vector can be expressed in the form $$s \begin{pmatrix} 3 \\ -1 \end{pmatrix} + t \begin{pmatrix} 2 \\ 7 \end{pmatrix},$$where $s$ and $t$ are real numbers.  (b) Let u and v be non-zero vectors. Show that any two-dimensional vector can be expressed in the form $$s u + t v,$$where $s$ and $t$ are real numbers, if and only if of the vectors $u$ and $v$, one vector is not a scalar multiple of the other vector.    I know that we have to prove that $$3s+2t=a$$ $$-s+7t=b$$ for any integers a and b.  But I don't know how to prove it.  As for part(b), I do not have a starting point.

(a) Show that any two-dimensional vector can be expressed in the form $s \begin{pmatrix} 3 \\ -1 \end{pmatrix} + t \begin{pmatrix} 2 \\ 7 \end{pmatrix},$ where $s$ and $t$ are real numbers.  (b) Let $\vec{u}$ and $\vec{v}$ be non-zero vectors. Show that any two-dimensional vector can be expressed in the form $s \vec{u} + t \vec{v},$ where $s$ and $t$ are real numbers, if and only if of the vectors $\vec{u}$ and $\vec{v}$, one vector is not a scalar multiple of the other vector.  I've already gotten part (a) but (b) is a challenge. I have solved part a hough:  Let's say that $ \begin{pmatrix} 3 \\ -1 \end{pmatrix} + t \begin{pmatrix} 2 \\ 7 \end{pmatrix}$ is equal to $\binom{a}{b}$. \begin{align*}  \begin{pmatrix} 3 \\ -1 \end{pmatrix} + t \begin{pmatrix} 2 \\ 7 \end{pmatrix} &= \binom{a}{b}\\ \binom{3s}{-s}+\binom{2t}{7t}&=\binom{a}{b}\\ \binom{3s+2t}{-s+7t}&=\binom{a}{b}\\ \Rightarrow 3s+2t&=a\\ -s+7t&=b \end{align*}


I am having trouble trying to solve this definite integral: $$\int_0^92\sqrt x\,\mathrm dx.$$  I already made this:   But I don't know how to proceed with this Riemann Summation. (I cant solve it using FTC, only Riemann Summation).

How to find the Riemann sums ( Lower and Upper) of $\sqrt{x}$ using only the uniform partition in $[0,1]$??  It's really hard to find some expression to calculate $\displaystyle\sum_{i=1}^{n}\sqrt{i}$


I would like to shape some paragraph (using KOMA-script scrbook class with two-column option) to make it look like a down triangle (cul de lampe in French, do not know how this is called in English sorry). Something like:   Some line here with full width but the width  will shrink below until its very narrow etc...   Bla Bla some useless words in this dummy input      To show eventually what I would like           to do etc... etc... and so               and so forth etc                  etc etc to                     end   I tried to use shapepar which comes with a down triangle or arrow shape but I cannot make it to limit the width to the column width. If the paragraph is long it overflows horizontally.  Perhaps it is duplicated but how then I can know (I mean automatically) the number of lines in the paragraph before it starts shrinking in width ? I mean in the example there are 3 full width lines but in real case I do not know how much there are. Only the triangle shape itself at the end is known.

I have found this in the cover of seminar(one tool to make slide) document.  The final result I have captured below:    The complete document can download .  I wonder how to make this. Is there any easy way?


I am working on a chat application where user have to fill the form before he/she begins the chat. Validation of each form field happens once user enters the value in respective form field. One of the form field is phone number and for which I wrote a regular expression as following. var phoneRegex = RegExp(/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,10}$/im);  Regex should return 'true' for following phone numbers  +11234567890 - 10 digits with area code 1234567890 - 10 digits 233445678912 - 12 digits 2334456789122222 - 16 digits  My chat application works for first 3 numbers but doesn't work for 16 digit phone number. I am not a huge fan of regex and have limited understanding of it hence I want to to know if my regex has any fault? And if yes then how can I fix it?

I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:   1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901   I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.


I have two files, file1 and file2.  The sample content of file1 is:  A B C D E F G H   and the content of file2 is like:  A B few other lines E F few more other lines A B C D E F G H few more other lines G H   So I want to search the whole block of file1 content in file2 only. This means the output should contain only these lines:  A B C D E F G H   please note that :- only the lines which are coming together , should be the part of output.

Does anyone know of any linux tool specifically designed to treat files as sets and perform set operations on them? Like difference, intersection, etc?


I am using Spring-Data and hibernate. I wanted to compare new value, but the object passed as the method param is the same as the one I got from DB. For my entity I created a listener. @EntityListeners(MyListener.class) public class MyClass{  My listener has hot @PreUpdate method @PreUpdate private void beforeAnyUpdate(MyClass newMyClass) {      MyClassRepo repo = (MyClassRepo )             BeanUtility.getBean("myClassRepo");     Optional<MyClass > previousEntity= repo .findById(newMyClass.getId());        System.out.println("previous : " + newMyClass.toString());     System.out.println("current : " + previousEntity.get().toString());  and well... I get the same object. No idea why as I used pre update not post update. previous : MyClass(id=1, variable1=test, variable2=test change) current : MyClass(id=1, variable1=test, variable2=test change)  No idea what is going one, could someone advice me how to get both objects?

I want to compare the current value of an in-memory Hibernate entity with the value in the database:  HibernateSession sess = HibernateSessionFactory.getSession(); MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id); newEntity.setProperty("new value"); MyEntity oldEntity = (MyEntity)sess.load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity sess.update(newEntity);       In CODEBLOCK#1 I get that newEntity.getProperty()="new value" AND oldEntity.getProperty()="new value" (while I expected oldEntity.getProperty()="old value", of course). In fact the two objects are exactly the same in memory.  I messed around with HibernateSessionFactory.getSession().evict(newEntity) and attempted to set oldEntity=null to get rid of it (I need it only for the comparison):  HibernateSession sess = HibernateSessionFactory.getSession(); MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id); newEntity.setProperty("new value"); HibernateSessionFactory.getSession().evict(newEntity); MyEntity oldEntity = (MyEntity)sess.load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity oldEntity = null; sess.update(newEntity);   and now the two entities are distinct, but of course I get the dreaded org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session.  Any idea?  EDIT: I tried the double session strategy; I modified my HibernateSessionFactory to implement a map of session and then...  Session session1 = HibernateSessionFactory.getSession(SessionKeys.DEFAULT); Session session2 = HibernateSessionFactory.getSession(SessionKeys.ALTERNATE); Entity newEntity = (Entity)entity; newEntity.setNote("edited note"); Entity oldEntity = (Entity)session1.load(Entity.class, id);  System.out.println("NEW:" + newEntity.getNote()); System.out.println("OLD: " + oldEntity.getNote()); // HANGS HERE!!!  HibernateSessionFactory.closeSession(SessionKeys.ALTERNATE);   My unit test hangs while attempting to print the oldEntity note... :-(


Should the first author be the one that worked the most? And then by the amount of work order (descending), but the last one the most-senior researcher?  Are there other ways? Which ones?  Does it vary from field to field? I've heard some areas or even some conferences always ask for alphabetical order. But then there are evaluation committees that count for how many first-author or last-author publications does a researcher have. Can someone provide exhaustive insight into how this is done across many fields?

When you look at a paper, what order to you assume the authors are in? Most important/most work done first or alphabetical? In my group we usually use alphabetic order, but I've been wondering if that might create a misleading impression with lots of people.  On a related note, would you expect the name of a PhD student to be always first on publications related to her/his work?


I have the number "159.82" and I need to get it to print just "82"  What I have been trying is something along the lines of   double total = 159.82; System.out.println(total - (int) total);    But that leaves me with 0.8199999999999 so clearly I am doing something wrong.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Which ones are correct:  May/can we go to the game?  and  May/can you do this for me?  can/may you come?

Which word to use when we ask for help?  Some conditions:     We know that the person asked is able to do it. We don't know if the person asked is able to do it.


Given the following string:  john<str> name2, doe<str>  name1   where str can be string of arbitrary length  I want to select and replace '< str >'  and '< str >'  with an empty character, such that I get:   john name1, doe name2   I have the following:  new_string = re.sub('<.*>', '', astring, flags=re.DOTALL)   However this is giving me:  john name1

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I'm using the Android App to access Stack Exchange and I have no idea where can I see questions I favorited by starring them⭐

I haven't been able to find my favorite questions in the official Stack Exchange Android app.  Looking at my accounts page gives nothing on them.


How do I find which layers has a specific font family in a PSD with many layers, groups and several different font families?

I'm doing front-end dev, so this question comes from that perspective.  When I receive a .psd I manually go through each font in the design, click on it, then use the character panel to get the font, color, size, kerning, etc.  Sometimes, I get a design that uses several different fonts (4+) with many variations of the same font (size, color, weight, etc.).  This is pretty tedious work... Is there anyway that Photoshop can export a list of all the used fonts and their variations? For example, a list like:     Arial bold 16px black    Arial regular 14px black    Arial regular 14px blue   Oswald 32px rgb(13,74,56) ...   Any suggestions for this?  Further, if there is a plugin of sorts that will just lay this information over the elements that would be fantastic!  Thanks.


How can I write output of a Node/Node Group in Cycles Render to the file (PNG or something else)? I saw a special File Output Node, but I can't find in Search ShiftA).

I have a sphere having a planet material MADE WITH NODES, and I want to convert this material into an image texture; because this material is made with nodes and only works in Blender, but I want to use in another software. This is my sphere material :   For Example : This is Jupiter :  And this is the texture :  In this case I used a downloaded image for Jupiter to be the material but I want the opposite, I want to change the material to image texture Like The shape of Jupiter texture. Is there anyway in Blender that can achieve my goal ? This is the file with my sphere material .  Textures Needed :  Albedo / Color / Diffuse Normal Map Roughness Glossines  I am using normal nodes and I am not useing the new Principled-shader


i have tried the below code to display login message every time i log into unix,  etc/motd welcome  but it didnt work, pls help me with your suggestions.

I have a CentOS 5.7 VPS using bash as its shell that displays a branded greeting immediately after logging in via SSH. I've been trying to modify it, but can't seem to find where it is in the usual places. So far I've looked in the motd file and checked sshd_config for banner file settings. A banner file is not set.  Where else can I look for where the login message might be?


Decide whether the following statement about a function f: R -> R is true. If |f| is periodic, then f is periodic. Give a proof or counterexample.

I can think of an example where this wouldn't hold.  Take 1,-1,1,-1,-1,1,-1,-1,-1,1,-1,-1,-1,-1.  But I can also prove that the statement holds.  Claim: $|f|$ is periodic then $f$ is periodic  Proof:  $|f(x+p)|=|f(x)|$  $f(x+p)=\pm f(x)$ if $f(x+p)=+f(x)$ then we are done, if $f(x+p)=-f(x)$ we get:  $f(x+2p)=-f(x+p)=f(x)$, so the period is twice bigger, but It still holds that $f$ is periodic.  Where is my mistake?


When: I recall seeing this when I was young so could have been early to mid 1990s. Setting: It is either based primarily in an aeroplane around the passengers and may also involve the airport but those details are a bit hazy. From what I can remember it wasn't futuristic but set at the current time. Details: the only real clear details I can recall are at the end the passengers need to go to sleep in their original positions on the plane to get out of their predicament (time loop?), however one passenger needs to stay awake in the cockpit and ends up disappearing once all the others wake up. I believe the problem facing the characters was either time travel or time loop related.

I thought it was The Tommyknockers by Stephen King, but after a check with Wikipedia, it appears that's not the case.  What I remember about the story (a TV movie I think, but definitely based on a book) was that the world is created anew every night, and that the old, used up, Earth was eaten nightly by some scary creatures.  The major plot point involved some protagonists not getting onto the new world at midnight, and having to escape from the monsters that were eating up yesterday's planet.  Does this ring a bell for anyone? I'm finding it very hard to Google for.


It might be a silly question, but to me it is not obvious why the following expression holds:  $$ \lim\limits_{x\rightarrow 0}\frac{0}{x}=0 ? $$

What is the limit of $0/x$ as x goes to $0$, without using L'Hopital's rule? Clearly it should be $0$, but I'm not sure how it is any different from something like the divergence of $1/r^2$ which yields a dirac delta.


I would like to specify a list of publications and find out which articles cited the ones in my list.  Is there such tool?

Finding the citations of any particular paper is straightforward.   But how do you identify the set of publications that cite two specific papers?  The reason I am asking this is because I am trying to write a review article to resolve an issue in the literature. There are 2 papers that adopt opposite views regarding that issue. To check if any similar study to mine has been attempted before, I am trying to look for any papers that cited those 2 papers together. Any way to do this?   Each paper has hundreds of citations, so looking for common citation is not practical!


What do I do with a question where it becomes clear the asker didn't give enough information in the first place? Scenario:  Asker asks, we answer. He won't accept any of our answers and says something like: "Well, I have conditions x and y that need to be filled also, so your solutions won't work". This he did not state in the question.  It only became clear in a comment a long way down the list, to one of the answers.   He has not updated his question after this became clear.   Flag it as    it should be closed for another reason... it is very low quality This question has severe formatting or content problems?   Update his problem for him?

I'm not sure if there's already an existing term for this, so I'm inventing my own. (tl;dr: I call them "chameleon questions" because they change every time you submit or edit an answer.  If you're already intimately familiar with the phenomenon, please skip past the first set of bullet points to where I ask for recommendations.)  I think many of us have experienced this on occasion:  You open up a narrow-looking question, usually dealing with some specific error message.  The question probably contains a snippet of sloppy but not quite awful code; code indicating that the author, typically a new/low-rep user, possibly a , doesn't really know what they're doing.  I'm not trying to be condescending here, they're probably very intelligent and hardworking, but in this specific case, they're clearly in way over their head.  However, as a question, it's not really too bad.  The goal and problem are both clearly stated.  The code is formatted (sort of).  Mort was polite and checked their spelling.  The question looks answerable, although from a rep perspective* it's an obvious dead-end, it's had maybe 3 views in the past 30 minutes.  So you decide, you know what, this person took the time to write up the question properly, they deserve an answer, put on your good citizen hat and throw them a bone.  You slog through the ugly code, find the offending line, direct their attention to it and explain why it's wrong and how it needs to be fixed.  Later, they leave a comment saying that yes, that was indeed the problem and your answer helped them fix it (great!).  Oh, but, now there's another problem (uh-oh...). Something else is broken.  After letting out a long sigh, you read the comment and/or edited question, roll up your sleeves, and write up Take 2, hoping that's the end of it.  And of course it's not the end.  Now maybe the error is gone, but it's not doing what it's supposed to.  If you're anything like me, your patience is now starting to wear thin. It's lousy code and you didn't volunteer to help them rewrite their whole app.  And of course, the question still only has 12 views, and nobody has upvoted either the question or your answer, including the person you're helping, so this is turning out to be a genuinely thankless task in all respects.  Welcome to "Family Tech Support", Web 2.0 Edition.   * Which is of course just an arbitrary number that none of us care about. Not really, anyway. Not very much, at least.  So, here's where I get to my question.  At this point, do you:  Leave a comment, stating as politely as possible that you've done your best to help them answer the original question they asked, and if they have a new problem then they should start a new question?  (I did this once, and actually ended up with an accept, but I felt kind of guilty afterwards, I don't think anybody answered their 2nd question).  Bite the bullet and edit your answer a 3rd, 4th, 5th time, however many times it takes to resolve their issue, knowing full well that they may not even remember to accept the answer once you're done? (I may work for free on SO, but that doesn't mean my time is worthless.)  Just abandon the question, hoping that it will force Mort to start thinking for himself?  Something else?   I've tried all three of the above and none of them ever quite feel right. I do want to help, but at the same time there are a lot more "lucrative" questions I could be answering. And I don't mind spending a lot of time on an answer either, if the question is interesting or important to me, but debugging is dull work. I'd prefer not to reference specific questions here; I'm pretty sure that this is a shared experience, and my objective isn't to point fingers at "misbehaving" members.  I'm more looking for some practical advice on how to dig myself out of these pits of despair. Anybody have any other ideas?


I need to convert JSON data string to a JavaScript array. This my JSON data:  [["Claim","1"],["issue","4"]]   And i want to get   var data = new google.visualization.DataTable(jsonData);          data.addColumn('string' , 'category');         data.addColumn('number' , 'count');         data.addRows([             ['Claim', 1],             ['Issue', 4]         ]);

Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval.


I want to find a regex that selects a specific string that is defined by it's beginning & ending characters, through multilines, to be replaced by empty string. suppose that I have the following string for example:  I want to select every string that begins with -- and ends with ;  $str = 'some text --text_to_be_replaced; and another text -- text to be replaced; and some text...;';   what I've tried:  $str = preg_replace('/--(.*);/s', '', $str);   but the returned result is: some text while the expected result is some text and another text and some text...;

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


When I click in a text field, the number 5 gets typed on its own and it keeps repeating until I press ESC. This also impacts Thunderbird, by auto tagging messages (hot key 5.) This problem is intermittent.  I've changed keyboard to rule out a hardware issue, but the problem still persists.  I am running Lubuntu 16.04, with the latest updates.   I recognize that this question was . Unfortunately, I am new on here, so I could not comment, nor does the original question offer a suitable answer to this issue.  Could this be a bug?

I am running Ubuntu 15.10, with the latest updates.  When I type in a text field (google search, type name of file, etc..) the number 5 gets typed on its own and it keeps repeating until I press ESC and when I try to continue typing the number 5 resumes filling in the text field.  I have tried to set the keyboard repeat to zero, but does not help.  This does not happen all the time, sometimes if I shut down the computer it then behaves normally when I restart it, other times the computer becomes useless because I cannot type in any of the text fields.  Thanks Sal


I have look here in order to find an answer why the orthogonal group $O(n)$ has two path-components, given by $\det =1$ and $\det =-1$.   But what is a possible proof for that fact? I can easily show that there are at least two components (not path-components) by using the determinant-function.

It is well know that $SO(n)$ is connected and $O(n)$ has two connected components: $O^+(n)=\{A\in O(n):\det A=+1\}$ and $O^-(n)=\{A\in O(n):\det A=-1\}$.   In what book can I find this property?


I've been having trouble trying to get the complete file path for this program. This is just one file of many, but the only one that accesses files on the computer. It's weird because the program works fine on some computers, but not on others. Any help is appreciated. Thanks!      import java.awt.Font; import java.awt.image.BufferedImage;  public class Assets {  private static final int width = 32, height = 32;  public static Font font28;  public static BufferedImage dirt, grass, stone, tree, rock; public static BufferedImage wood; public static BufferedImage[] player_down, player_up, player_left, player_right; public static BufferedImage[] zombie_down, zombie_up, zombie_left, zombie_right; public static BufferedImage[] btn_start; public static BufferedImage inventoryScreen;  public static void init(){     font28 = FontLoader.loadFont(“/Users/student/Desktop/TileGame/res/fonts/slkscr.ttf", 28);      SpriteSheet sheet = new SpriteSheet(ImageLoader.loadImage(“/Users/student/Desktop/TileGame/res/textures/sheet.png"));      inventoryScreen = ImageLoader.loadImage(“/Users/student/Desktop/TileGame/res/textures/inventoryScreen.png");      wood = sheet.crop(width, height, width, height); //ERROR HERE      btn_start = new BufferedImage[2];     btn_start[0] = sheet.crop(width * 6, height * 4, width * 2, height);     btn_start[1] = sheet.crop(width * 6, height * 5, width * 2, height);      player_down = new BufferedImage[2];     player_up = new BufferedImage[2];     player_left = new BufferedImage[2];     player_right = new BufferedImage[2];      player_down[0] = sheet.crop(width * 4, 0, width, height);     player_down[1] = sheet.crop(width * 5, 0, width, height);     player_up[0] = sheet.crop(width * 6, 0, width, height);     player_up[1] = sheet.crop(width * 7, 0, width, height);     player_right[0] = sheet.crop(width * 4, height, width, height);     player_right[1] = sheet.crop(width * 5, height, width, height);     player_left[0] = sheet.crop(width * 6, height, width, height);     player_left[1] = sheet.crop(width * 7, height, width, height);      zombie_down = new BufferedImage[2];     zombie_up = new BufferedImage[2];     zombie_left = new BufferedImage[2];     zombie_right = new BufferedImage[2];      zombie_down[0] = sheet.crop(width * 4, height * 2, width, height);     zombie_down[1] = sheet.crop(width * 5, height * 2, width, height);     zombie_up[0] = sheet.crop(width * 6, height * 2, width, height);     zombie_up[1] = sheet.crop(width * 7, height * 2, width, height);     zombie_right[0] = sheet.crop(width * 4, height * 3, width, height);     zombie_right[1] = sheet.crop(width * 5, height * 3, width, height);     zombie_left[0] = sheet.crop(width * 6, height * 3, width, height);     zombie_left[1] = sheet.crop(width * 7, height * 3, width, height);      dirt = sheet.crop(width, 0, width, height);     grass = sheet.crop(width * 2, 0, width, height);     stone = sheet.crop(width * 3, 0, width, height);     tree = sheet.crop(0, 0, width, height * 2);     rock = sheet.crop(0, height * 2, width, height); }  }

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I recently acquired a Lantronix UDS1100 telnet-> serial converter. It came without a wall wart / power supply.  I have an extra power supply from an old modem that I think might work, but I want to be certain.  The Lantronix's stated specs are 9-30VDC, 9-24VAC, 1.5 watt max. It doesn't mention current.  My potential replacement lists output of +12V, 2.2A.  How does one determine if this is okay or not?

Power supplies are available in a wide range of voltage and current ratings.  If I have a device that has specific voltage and current ratings, how do those relate to the power ratings I need to specify?  What if I don't know the device's specs, but am replacing a previous power supply with particular ratings?  Is it OK to go lower voltage, or should it always be higher?  What about current?  I don't want a 10 A supply to damage my 1 A device.


Not much context to it.  export essential='/Users/mac/Desktop/AP\ Prep/javatest/essentials'  cd "$essential"   Yields this error:   -bash: cd: /Users/mac/Desktop/AP\ Prep/javatest/essentials: No such file or directory   The cd command is correct :   cd /Users/mac/Desktop/AP\ Prep/javatest/essentials works.   It looks fine ...I've tried it with double quotes and no quotes as well. Help please???

I'm trying to escape the space char for a path in Bash, but neither using a  or  works.  .sh script:  ROOT="/home/hogar/Documents/files/" FILE=${ROOT}"bdd.encrypted" DESTINATION="/home/hogar/Ubuntu\ One/folder"  mv ${FILE} ${DESTINATION}   After execute the script (./file) this is the result:  mv: target 'One/folder' is not a directory   Why does the mv command split the string, and how do I stop this from happening?


There is a hotkey mentioned by Gleb in the Blender Guru podcast that allows the camera view to be flipped on the x/y axis, I can't remember it for the world, nor find it anywhere in google.  The episode is like 3hs long so I'd prefer not to go through it again trying to find the moment he mentions it.  What is this hotkey?

Many Photoshop concept artists flip their canvas horizontally from time to time during painting for a few seconds to better judge the composition. Is it possible in Blender's viewport, using the camera settings maybe?  Of course I could render the image first and then flip it in compositor or any external image editor, but it would be much slower solution than flipping the viewport live.


I'm using an Amazon EC2 instance of Ubuntu 18.04. I installed Tomcat, experimented with it, and messed up the configuration. I wanted to remove tomcat completely and start over, so I did: sudo apt remove tomcat8 sudo apt remove tomcat8-admin  And manually deleted the tomcat8 directories: sudo rm -r /var/lib/tomcat8 sudo rm -r /usr/share/tomcat8  And manually deleted the start/stop script: sudo rm -r /etc/init.d/tomcat8  Then I figured I had a "clean" system and I could reinstall from scratch, so I did: sudo apt install tomcat8 sudo apt install tomcat8-admin  No errors, but it did not recreate the /etc/init.d/tomcat8 script for stop/start/restart the service. Why did it not recreate it, and how do I get it back?

I would like to restore LightDM to its default state, because for some reason /etc/lightdm/unity-greeter.conf is now an empty file.  Deleting /etc/lightdm/unity-greeter.conf and then running sudo apt-get install --reinstall unity-greeter doesn't create a new config file as you might expect.   How can I restore a missing config file?


I'm trying to find explicit form of volume of "deformed torus":  Suppose we have a curve $\gamma(t)$ in $\mathbb{R}^n$, $t\in[0,1]$. The curve closed and smooth : $\gamma(0)=\gamma(1)$,$\gamma'(0)=\gamma'(1)$. I'm defining "deformed torus" as $T_r=\{x\in\mathbb{R}^n \mid |\gamma(t)-x|\leq r\}$ for some $t$.  I guess that volume must be something like $\approx A r^{n-1}$.   So I understand that I need to integrate volume form. I always do it by pullback volume form in parameter space and integrate then. But here I have difficulties with entering any parametrization. Could you help me here?

Let $\gamma:[0,1] \to \mathbb R^n$ be a smooth closed curve, such that $\gamma(0)=\gamma(1), \gamma'(0)=\gamma'(1), |\gamma'(a)|=1$ and let $B_r=\{x| \exists t, |\gamma(t)-x|<r\}$. How can i show that the volume of $B_r$ is equal to $br^{(n-1)}$ for $r <\varepsilon$ for some $\varepsilon>0$. And how can I find $b$? It is intuitively obvious. But how can one prove it? I have no idea.


I have a 5V/10A power supply (with a 2.1mm DC plug) and want to use it to power four or five 5V/2A devices. But I see that no barrel jacks are rated for 10A (they're all around 5A max - see this ). Is this really an issue? I would have thought parts likes jacks, that are basically little more than a metal conductor, would be rated for e.g. a max wattage. But I see on places like Digikey that instead they're rated for a max voltage and a max current (12V and 5A seem typical values). It seems odd to have a power supply with a 2.1mm DC plug if you can't actually get a jack that can handle the supply's current. So is it OK to use a 12V/5A rated jack with a 10A power supply as long as the voltage is half the max rated? If it's not OK then what are my options and if it is OK is there anything else I need to watch out for? I was planning to just twist the wires of my various power cables together and screw them down in a 2.1mm jack-to-screw terminal block. Or solder down a barrel jack on a proto board and then solder each power cable on separately to the same board. These kinds of setups have always worked out for toying around with typical 5V/2A setups but will there be issues once I start dealing with higher currents? Parts I'm using:      (source: )

I need a butt splice connector that can handle up to 150A, which is really hard to find. What would happen if I connect it to a 12-10AWG butt splice connector?   Other type of connectors are not desirable because this is an automotive connection.


Show $\sum\limits_{d|n}\phi(d) = n$.   Example : $\sum\limits_{d|4}\phi(d) = \phi(1) + \phi(2) + \phi(4) = 1 + 1 + 2 = 4$  I was told this has a simple proof. Problem is, I can not think of a way to show this in a very simple and straightforward way.

If $k$ is a positive natural number then $\phi(k)$ denotes the number of natural numbers less than $k$ which are prime to $k$. I have seen proofs that $n = \sum_{k|n} \phi(k)$ which basically partitions $\mathbb{Z}/n\mathbb{Z}$ into subsets of elements of order $k$ (of which there are $\phi(k)$-many) as $k$ ranges over divisors of $n$.  But everything we know about $\mathbb{Z}/n\mathbb{Z}$ comes from elementary number theory (division with remainder, bezout relations, divisibility), so the above relation should be provable without invoking the structure of the group $\mathbb{Z}/n\mathbb{Z}$. Does anyone have a nice, clear, proof which avoids $\mathbb{Z}/n\mathbb{Z}$?


My code is here,  \documentclass{article} \usepackage{listings,xcolor} \lstnewenvironment{code} {\lstset{language={Matlab},     lineskip=-1pt,     belowskip=3pt,     breaklines=true,     xleftmargin=2.2em,%     showstringspaces=false,     showspaces=false,%     basicstyle=\bf\tt\color{black},%     keywordstyle=\bf\tt\color{black},%     identifierstyle=\bf\tt\color{black},%     commentstyle=\bf\tt\color{black},%     %backgroundcolor=\color{gray!3},     tabsize=2,     columns=flexible}} {}  \begin{document} This is example of listings. \begin{code}     / sqrt(5)   1 \     | ------- + - |     |   2       2 |     |             |     | 1   sqrt(5) |     | - - ------- |     \ 2      2    / \end{code}  This is verbatim example. \begin{verbatim}     / sqrt(5)   1 \     | ------- + - |     |   2       2 |     |             |     | 1   sqrt(5) |     | - - ------- |     \ 2      2    / \end{verbatim}  \end{document}   Using XelaTeX but the result is    I want to get the same result. How to do?

I like the way the verbatim environment looks, and I want to make my lstlistings look like it.  I've tried setting the basic style to \ttfamily, but the letter kerning and line spacing seem to be different.  Is there any way in getting it look like verbatim?  Here is a complete example:  \documentclass[a4paper]{report} \usepackage{listings} \lstset{basicstyle=\ttfamily}  \begin{document}  This is lstlisting:  \begin{lstlisting} : paxos.learn ( addr n v -- Ethernet packet )       2 paxos.pack32          ( addr n v -- addr payload )       paxos.eth_type.learn    ( addr payload -- addr payload ethtype )       swap paxos.eth_packet ; ( addr payload ethtype -- ethernet_packet ) \end{lstlisting}  This is verbatim (and what I want):  \begin{verbatim} : paxos.learn ( addr n v -- Ethernet packet )       2 paxos.pack32          ( addr n v -- addr payload )       paxos.eth_type.learn    ( addr payload -- addr payload ethtype )       swap paxos.eth_packet ; ( addr payload ethtype -- ethernet_packet ) \end{verbatim}  \end{document}   which looks like:    Edit  I tried setting the option columns=flexible, but then listings will ignore important spaces in the source code.


Pointer variables are confusing to me. Consider the code below:  int main() {double* grade; double *grade;}  double* fn() {}   What is the difference between double* grade and double *grade? What is the difference between double, double* in int main(), and double* of fn()?

I've recently decided that I just have to finally learn C/C++, and there is one thing I do not really understand about pointers or more precisely, their definition.  How about these examples:   int* test; int *test; int * test; int* test,test2; int *test,test2; int * test,test2;   Now, to my understanding, the first three cases are all doing the same: Test is not an int, but a pointer to one.  The second set of examples is a bit more tricky. In case 4, both test and test2 will be pointers to an int, whereas in case 5, only test is a pointer, whereas test2 is a "real" int. What about case 6? Same as case 5?


This is a bug. It ain't April Fools Day or is a new update to the SE sites. For some reason, I can't comment on a duplicate question on a closed question on the Samsung Galaxy 2, browser is Google. The situation is that I can't find the "Add Comment" button:   I understand that you can't answer but you should be able to/can comment on that post. You can still edit, share, etc. as usual but can't comment. So why can't I comment on a duplicate post, whether it is an answer or question?  Note:      Never, Never Ever argue with Oded. Learned that the hard way...   And I can comment on closed posts. Just not duplicates

In the Android App, if a question is closed, I won't be able to leave comments on either the question or any of its answers. There are simply no "Add Comment" buttons available anywhere if the question is closed.  See the screenshot below. The comment adding interface is simply removed on closed questions and their answers — no Reply button in the toolbar, and no Add Comment button under the question.        Occurs on Android app v1.0.50 and v1.0.51, on a HTC One running Android 4.4.3.


Ubuntu 20.04 The lines in question are: deb http://mirror.fsf.org/trisquel/toutatis-updates main # deb-src http://mirror.fsf.org/trisquel/toutatis-updates main  What are these? I am pretty sure they're either Librewolf or Icecat because that was what I was messing with before everything went wrong. Also, can you help me remove LibreWolf, it won't even start up? I click on it the I get the loading icon and then it stops.

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I want to insert a command button called Edit in my view page. All fields are in output mode, and when I click on the Edit button I want to type on them or make changes. (In my Scenario inlineEdit does not work). Can anybody please help me. Thanks

I have a output view page, and i want to insert a edit command button. when user click on edit button it will enable them to type on output field and save. Can anybody tell me how to do that? Thanks  <apex:page standardController="Product_Brief__c" sidebar="true" showHeader="true" extensions="gibco" >
 <apex:form >
             <apex:pageBlock mode="inlineEdit">
             <apex:pageBlockSection collapsible="false" title="Section 1: Custom Media Information (Required)">
                 <apex:outputField value="{!Product_Brief__c.Opportunity__r.Account.Name}"  Label="Company Name"/>
                 <apex:outputField value="{!Product_Brief__c.Customer_Number__c}" label="Customer Number"/>
                 <apex:outputField value="{!Product_Brief__c.Billing_Address__c}" />
                 <apex:outputField value="{!Product_Brief__c.CreatedBy.Name}"  Label="Contact Name"/>
                 <apex:outputField value="{!Product_Brief__c.Shipping_Address__c}"/>             </apex:pageBlockSection>
  <apex:pageblockButtons >
                 <apex:commandButton action="{!save&view}" value="SAVE"/>
                 <apex:commandButton value="PRINT" onclick="window.print();"/>
                 <apex:commandButton value="Cancel" action="{!Cancel}"/>
             </apex:pageblockButtons>
 </apex:form>


I'm trying to load a custom form into a div, but when I do, the entire page markup (menu, header, footer, etc) is being output in the div. Is there a way I can only output the form? This is my javascript call: jQuery('#tile-form-container .content').load('/tile/edit/2');  This is my route: tiles.edit:   path: 'tile/edit/{id}'   defaults:     _title: 'Edit tile'     _form: '\Drupal\tiles\Form\TileForm'   options:     _admin_route: true   requirements:     _permission: 'administer tiles'  In my buildForm function I have added this line: $form['theme'] = 'tile_form';  And that file looks like this:

             {{ form }}

  Any help is greatly appreciated.

By adding use-ajax to a link we can open a modal using the Drupal ajax library as per the . E.g. <a class="use-ajax"      data-dialog-options="{&quot;width&quot;:400}"      data-dialog-type="modal"      href="/node/1">     First article displayed in modal dialog. </a>  This will use the ajax library to fetch node/1 and then display it in a modal. There is also a  which allows opening modals using JavaScript. E.g. var myDialog  = Drupal.dialog(ADOMElement, settings); myDialog.show();  The problem with this API is you need to pass in a existing DOM element. My question is can I trigger opening a modal with JavaScript and utalise the internal Drupal ajax library to actually fetch the content? E.g Can I do something like this? var myDialog  = Drupal.dialog('/node/1', {useAjax: true}); myDialog.show();  I could just create an html link as per my first code block, hide it with css, and then trigger a click on it with JS but this seems a bit hacky - there must be a way to trigger this action using pure JS.


I just had some help here on Stackoverflow and got the correct query. However he didn't know any PHP so now I need help with that as well.  Here's the query and the PHP:  if($do_resync) {     $sql = "         with MY_VIEW as         (         SELECT             room_user.*,             user.username AS user_name,             user.group_id AS group_id, USER.USER_ID         FROM {$x7->dbprefix}room_users room_user         INNER JOIN {$x7->dbprefix}users user ON             user.id = room_user.user_id         WHERE             room_id IN ({$rooms})         )         SELECT COUNT(id) AS block FROM             blocks AS B, MY_VIEW AS M         WHERE             B.user_id = M.user_id         AND B.blocked_id = B.user_id     ";     $st = $db->prepare($sql);     $st->execute(); (THIS IS LINE 230 that the error points at)     $users = $st->fetchAll();     $output['users'] = $users; }  echo json_encode($output);   And here's the error I get:  Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MY_VIEW as ( SELECT room_user.*, user.username AS user_name, u' at line 6' in pages/sync.php:230 Stack trace: #0 pages/sync.php(230): PDOStatement->execute() #1 index.php(50): require('/home/vol5_3/by...') #2 {main} thrown in pages/sync.php on line 230   EDIT:  SELECT COUNT(id) AS block FROM     blocks AS B,  (     SELECT         room_user.*,         user.username AS user_name,         user.group_id AS group_id, USER.USER_ID     FROM {$x7->dbprefix}room_users room_user     INNER JOIN {$x7->dbprefix}users user ON         user.id = room_user.user_id     WHERE         room_id IN ({$rooms}) ) AS M WHERE     B.user_id = M.user_id AND B.blocked_id = B.user_id

I'm trying to use MySQL to create a view with the "WITH" clause  WITH authorRating(aname, rating) AS    SELECT aname, AVG(quantity)    FROM book    GROUP BY aname   But it doesn't seem like MySQL supports this.  I thought this was pretty standard and I'm sure Oracle supports this. Is there anyway to force MySQL to use the "WITH" clause?  I've tried it with the MyISAM and innoDB engine.  Both of these don't work.


I have a list of git commits in a .txt file and I want to iterate over the commits. For each COMMIT_ID I want check them using a git command whose exit code is 0 or 1.  Depending on the result I want to echo true or false.  But when running the script, I get this error:  line 5: [: 0: unary operator expected   The script is as follows:  #!/usr/bin/env bash input="./commits.txt" while IFS= read -r COMMIT_ID do   if [ 0 -eq $(git merge-base --is-ancestor $COMMIT_ID HEAD) ];      then        echo "true";      else        echo "false";      fi done < "$input"

I started learning Bash a couple of days ago.  I'm trying to obtain an exit status of grep expression into a variable like this:  check=grep -ci 'text' file.sh   and the output that I got is   No command '-ic' found   Should I do it with a pipe command?


I checked out this novel, probably young adult, from my hometown library sometime in the late 80s or early 90s.    The plot follows a human looking race of aliens that come to earth to investigate why our race "only" lives 70-80 years (the aliens have a lifespan of several centuries, and have to use personal journals to remember the details of their lives).   Someone decides the moon is involved in determining our lifespan since no other humanoid race lives on a planet with such a massive satellite so close.  The climax involves one of the aliens going crazy and deciding to destroy the moon to "save the humans".  Another member of the research team thinks destroying the moon will horribly damage the earth and also envies humans for savoring our short lives so s/he attempts to stop the first.

I read this maybe fifteen years ago but got the impression it was a few years older (well thumbed in an English library).  Plot details I remember:  She lives on another planet (or parallel dimension) and is part of a team who somehow teleport to Earth to do surveys and such.  Her people have bred for genetic perfection for so long that the women are all knock out and the men are like Mr Swoon types. Sadly she never lucked out in this good looks thing, so although on our world she is like the hottest babe ever, back on her own world she is an object of pity.   On the other world there is some back story about a conflict but details escape me.  Back on Earth our male has some kind of Stephen Hawkins type issues and is in a wheelchair. He ends up with some friends on a country day out but (can't recall how) he gets separated. He rolls into a forest clearing and espies "the most beautiful girl ever" She looks alarmed, waves her hand about while muttering, and disappears.  Being a brainiac he realises what he has just witnessed and the implications of other world contact, he noted she moved her finger in a graceful arc and that means maths. Back at university he specialises in exotic mathematics and gradually becomes an expert.  On the alien world the conflict and power intrigues deepen and the girl returns to Earth looking for an edge. She learns of this genius and makes contact, recognition on both sides. She takes him to her world where his looks revolt the perfect people but his brain impresses them.   Somehow he helps them to prevail (I think this also helps our Earth's survival in a hostile galaxy) and becomes a hero to them. I want to say they end up as a couple with homes on both worlds but am a bit unsure on that. Also I can't recall if the Earth setting was America or England.  All memories drained now, I'm out.


Following a simple apt-get upgrade, I find my Ubuntu 16.10 installation booting to a blank display regardless of selecting normal boot or recovery from GrUB, with the various kernels installed. How could I approach fixing this? Are there some logs that could help me diagnose what is going wrong?

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


The insect pictured below just flown into my room. I live in Central Europe (Poland), it is about evening now. The thing is about 1,5 cm in length (not sure about this, I was too focused on driving it out). Its white stripe on abdomen seemed to be translucent. What is this insect?

I observed this beautiful insect near a forest in northern Switzerland. What is it?


I am facing a weird problem. If I have just installed python 2.7.6 in addition to already present python 2.7.3.  But this is giving me some weird issues. Such as even though my system has pyqt4, python is complaining I don't have pyqt. When I am trying to run the following command in terminal, it is saying:   sudo apt-get install python-qt4   The module is already present. When I am typing the following command:  $which python /usr/local/bin/python   Which is python 2.7.6. I am really struggling now. Kindly help.

I am totally aware a question of similar nature is asked before. But the answer there is not doing any good for me.  I have installed python 2.7.6 in addition to system default 2.7.3. And now my system is screwed up completely. Now I want to remove the 2.7.6 and get back to my system default. update-alternatives command on python is not working!  I have installed the 2.7.6 by downloading source and triggering "config, make, sudo make install" commands.  Please help.


Answers to similar questions don't work for me. I left an unallocated 200 GB from my windows partition. I'm dual booting with Ubuntu. And when I try to give the 200 GB of unallocated space to the Ubuntu partition, I can't. The partition of 200 GB is named "free space" in Spanish, because I don't use it in English.  How can I add it? I'm using the partition tool from the USB installation of Ubuntu 19.10.

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I'm trying to set up an SPF record for my domain. I've read the RFC, been to Wikipedia, openspf.org, etc. but I'm still confused.  What is the difference between 'a' and 'mx'? When do I use 'mx: rather than 'a:' or 'include:'?  What's the point of '?all' (Neutral result) except for debugging? Why do so many people use '~all' (Softfail) instead of '-all' ?  I've been to the Wizard () but I don't understand the questions.

This is a  about setting up .     I have an office with many computers that share a single external ip (I'm unsure if the address is static or dynamic). Each computer connects to our mail server via IMAP using outlook. Email is sent and received by those computers, and some users send and receive email on their mobile phones as well.  I am using  to generate an SPF record and I'm unsure about some of the fields in the wizard, specifically:   Enter any other domains who may send or relay mail for this domain Enter any IP addresses in CIDR format for netblocks that originate or relay mail for this domain Enter any other hosts which can send or relay mail for this domain How stringent should SPF-aware MTA's treat this?   the first few questions i'm fairly certain about... hope i have given enough info.


I've recently updated Ubuntu 16 to Ubuntu 18.  I like the new GUI, but I would like to know how to move the workspace selector to the left of the screen, just below the Activities button.  I installed and use the gnome-tweaks GUI, but I wasn't able to find the solution to this problem.

Is there any way of moving the workspace overview in Activities to the left side of the screen? I've tried looking for extensions and going through the GNOME Tweak tool, but without success.    Having used other DEs in the past (Unity, Xfce, KDE), I am used to efficiently moving the pointer around the top left corner of the screen only, and find it quite annoying to have to move all the way to the middle right to select a workspace, after launching Activities using the hot corner on the top left.


So I want to find all of the following in a .cs file   driver.FindElementByXPath("XPathHere").SendKeys(keys);   Where XPathHere is different each time. I've tried using the following in Visual studio find and Replace.  driver.FindElementByXPath("[^"]+").SendKeys(keys);   But that is unable to find the whole thing I believe it is an issue with the parentheses in regex how can I fix this?  Thank you!

I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


Consider the case when $x = \pi/4$.   $\cos \pi/4 = 1 = \sin \pi/4$.   Now, if $a = 1$ and $b = -1$, $a\cos x + b\sin x = 0 $(for non-zero a and b).   Does this imply that $\cos x$ and $\sin x$ ARE NOT linearly independent?

In the vector space of $f:\mathbb R \to \mathbb R$, how do I prove that functions $\sin(x)$ and $\cos(x)$ are linearly independent. By def., two elements of a vector space are linearly independent if $0 = a\cos(x) + b\sin(x)$ implies that $a=b=0$, but how can I formalize that? Giving $x$ different values? Thanks in advance.


I am rather new to exceptions. In a part of my program if a specific variable goes beyond a certain value I want to manually throw an exception which will say that the variable has gone outside of accepted range. The variable being 16 bits can still hold the "invalid" values but under normal program operation it will only hold a subset of the possible values it can hold.  How do I generate this specific type of exception?

I was writing a program in C++ to find all solutions of ab = c, where a, b and c together use all the digits 0-9 exactly once. The program looped over values of a and b, and it ran a digit-counting routine each time on a, b and ab to check if the digits condition was satisfied.  However, spurious solutions can be generated when ab overflows the integer limit. I ended up checking for this using code like:  unsigned long b, c, c_test; ... c_test=c*b;         // Possible overflow if (c_test/b != c) {/* There has been an overflow*/} else c=c_test;      // No overflow   Is there a better way of testing for overflow? I know that some chips have an internal flag that is set when overflow occurs, but I've never seen it accessed through C or C++.    Beware that signed int overflow is undefined behaviour in C and C++, and thus you have to detect it without actually causing it. For signed int overflow before addition, see .


I need help solving this task, if anyone had a similar problem, it would help me. The task is: Determine all solutions of the equation in the set of complex numbers. $(1-z)^5=z^5$ I thought I could include it $z=x+iy$, but I see that it leads nowhere. Thanks in advance !

The question says to solve this equation: $(z+1)^5 = z^5$  I did. Just want to find out if I did it properly and if my run-around logic makes sense.  First I begin my writing the equations as:  $$ (z+1)^5 = z^5$$ $$ \mathbf{e}^{5 \mathbf{Log}(z+1)} = \mathbf{e}^{5 \mathbf{Log}(z)} $$ So $$  \mathbf{Log}(z+1) = \ln|z+1| + \mathbf{Arg}(z+1)i $$   $$  \mathbf{Log}(z) = \ln|z| + \mathbf{Arg}(z)i $$   Now, because the natural logarithm is one-to-one, I write:  $$ \ln |z| = \ln |z+1| \Rightarrow |z| = |z+1|$$   So assign $ z = a +bi$   So that $|z| = \sqrt{a^2 +b^2} = |z+1| = \sqrt{(a+1)^2 +b^2} \Rightarrow a^2 +b^2 = (a+1)^2 +b^2 \Rightarrow a^2 = (a+1)^2 \Rightarrow a = -\frac12 $  So, $z = -\frac12 + bi$ and $z+1 = \frac12 + bi$ for some $b \in \mathbb R$  Now to find $b$  $$ \mathbf{Arg}(z+1) = \mathbf{Arg}(z)$$ $$ \tan^{-1} \frac{b}{\frac12} = \pi - \tan^{-1}\frac{b}{-\frac12}$$  I have a feeling this last part isn't quite right, so I just want to find out if I'm approaching this question properly?  Ultimately, I get $ z = -\frac12$ which upon inspection...is wrong...


getting NullPointerException while setting custom adapter to listview. my ListView is in Fragment. ............................................................................................................................................  Class 1:  public class Fragment_chats extends Fragment { ListView lv;     String[] namem={"Gauri","Jayesh","Nitya","Rupali","Lalit","Poonam"};     Integer[] imgm=    {R.mipmap.a,R.mipmap.b,R.mipmap.c,R.mipmap.d,R.mipmap.e,R.mipmap.f};  public Fragment_chats() {     // Required empty public constructor } @Override public void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);      }   @Override public View onCreateView(LayoutInflater inflater, ViewGroup container,                          Bundle savedInstanceState) {     // Inflate the layout for this fragment super.onCreate(savedInstanceState);    View v= inflater.inflate(R.layout.fragment_fragment_chats, container, false);     lv=(ListView)getActivity().findViewById(R.id.lv);     customList cl=new customList(getActivity(),imgm,namem);     lv.setAdapter(cl);     return v; }  }   Class 2:  class customList extends ArrayAdapter {     Activity act;     String[] na;     Integer[] img; public customList(Activity context, Integer[] resource, String[] objects) {     super(context, R.layout.chats, objects);     act=context;     na=objects;     img=resource;  } @Override public View getView(int position, View convertView, ViewGroup parent) {     if (convertView == null)     {         convertView = View.inflate (act,R.layout.chats, null);     }     ImageView iv= (ImageView) convertView.findViewById(R.id.imageView);     TextView name=(TextView)convertView.findViewById(R.id.textView1);     TextView chat=(TextView)convertView.findViewById(R.id.textView2);     iv.setImageResource(img[position]);     name.setText(na[position]);     chat.setText("chat");      return convertView; } }   Custom layout is R.layout.chats and  fragment layout is R.layout.fragment_fragment_chats

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I just downloaded and installed 14.04 to replace a xubuntu 14.10 that has been crashing on every reboot. Now, with nothing else installed, Software updates crashes when it gets to the nvidia driver.  Any hints on where to start to fix this would be appreciated.  mobo: M4A89GTD-PRO  Bios: 2101  cpu: AMD Athlon(tm) II X4 645 Processor  ram: 6111188 kB  hdd: ATA OCZ-VERTEX3  gpu: GeForce GT 440 Mouse / keyboard: M510, K350 single unifying receiver  Linux 3.13.0-43-generic (x86_64) Ubuntu 14.04.1 LTS   edit - based on a recommendation below, I've completely wiped the proprietary driver and replaced it with the xorg.edgers driver. Technically, it corrected the problem, so this is solved.

Well, this is new.  In the middle of troubleshooting all of the other issues with Ubuntu 14.04.1 LTS, I rebooted and it now comes up with a resolution of 800 X 600, and there are no other resolutions available.  I've already re-installed the nvidia-current driver twice.  mobo: M4A89GTD-PRO  Bios: 2101  cpu:  AMD Athlon(tm) II X4 645 Processor  ram:  6111188 kB  hdd:  ATA OCZ-VERTEX3  gpu:  GeForce GT 440  Mouse / keyboard: M510, K350 single unifying receiver  Linux 3.13.0-43-generic (x86_64) Ubuntu 14.04.1 LTS   edit - I should point out, this is a brand new installation from a fresh download.  I have not changed or altered or installed anything at all beyond running software updater a few times, installing the latest nvidia-current driver, and doing a sudo-apt update a few times.  But everything is exactly as it was installed with all of the defaults.  edit - based on a recommendation below, I've completely wiped the proprietary driver and replaced it with the xorg.edgers driver.  Technically, it corrected the problem, so this is solved.


I was using the mapbox sdk 6.3.0. I can add a polygon to the map and I am enabling the user to drag it by changing the feature and then updating the Featurecollection as follows:  features.set(features.indexOf(oldFeature), newFeature); symbolsSource.setGeoJson(symbolsCollection);   Everything was working fine.  Then I tried to update the SDK from 6.3.0 to 7.3.0 Then all of a sudden while dragging I am getting the following crash(its intermittent but it is frequent)     2019-04-29 17:58:03.119 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542] JNI DETECTED ERROR IN APPLICATION: can't call java.lang.String com.mapbox.geojson.Feature.id() on null object   2019-04-29 17:58:03.119 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542]     in call to CallObjectMethodV   2019-04-29 17:58:03.119 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542] "Thread-2368" prio=10 tid=65 Runnable   2019-04-29 17:58:03.119 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542]   | group="main" sCount=0 dsCount=0 flags=0 obj=0x1b740000 self=0x763d1b6800   2019-04-29 17:58:03.119 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542]   | sysTid=24204 nice=-10 cgrp=default sched=0/0 handle=0x76385da4f0   2019-04-29 17:58:03.120 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542]   | state=R schedstat=( 1253639661 195250540 1454 ) utm=117 stm=8 core=7 HZ=100   2019-04-29 17:58:03.120 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542]   | stack=0x76384df000-0x76384e1000 stackSize=1009KB   2019-04-29 17:58:03.120 24115-24204/com.app.fr.dev A/stresponder.de: java_vm_ext.cc:542]   | held mutexes= "mutator lock"(shared held)....   There is no log which points to any point in my code. I am hoping this might be a problem with Mapbox SDK, because when I revert back to 6.3.0 its working fine. I am not able to pinpoint the actual issue. Can someone tell me how to actually debug such a crash?   Please let me know if I should provide more info.   Thanks in advance.  Edit: This is not a duplicate of , because this is not happening to my code. It is happening inside the Mapbox sdk as you can see from the log. Also please note that the error thrown is JNI error.


EDIT: I've tried running the code linked in the duplicate flag, it's posted here for reference, and it doesn't run. I had already referred to that answer in my initial post.   My problem  Downloaded shapefile is missing .shx file and trying to use pyshp to build it on a mac.*  I've tried this code that I've picked up from the . When checking the r.shapes and r.records, it looks like all of the info is there.   myshp = open("Stockton/Stockton.shp", "rb") mydbf = open("Stockton/Stockton.dbf", "rb") r = shapefile.Reader(shp=myshp, dbf=mydbf, shx=None)   In the documentation, it looks like each record and shape is being added one at a time. Is there a method I'm missing? Or could a list comprehension be used here to loop through everything?**   Data and References  I've downloaded the Microsoft Building Data for Stockton CA from . I've tried to follow the code from the answer        # Build a new shx index file     #Code by Joel Lawhead http://geospatialpython.com/2011/11/generating-shapefile-shx-files.html     import shapefile     # Explicitly name the shp and dbf file objects     # so pyshp ignores the missing/corrupt shx     myshp = open("Stockton/Stockton.shp", "rb")     mydbf = open("Stockton/Stockton.dbf", "rb")     r = shapefile.Reader(shp=myshp, shx=None, dbf=mydbf)     w = shapefile.Writer(r.shapeType)     # Copy everything from reader object to writer object     w._shapes = r.shapes()     w.records = r.records()     w.fields = list(r.fields)     # saving will generate the shx     w.save("myshape")   but get this error:  TypeError                                 Traceback (most recent call last) <ipython-input-94-345df1656b96> in <module>       7 mydbf = open("Stockton/Stockton.dbf", "rb")       8 r = shapefile.Reader(shp=myshp, shx=None, dbf=mydbf) ----> 9 w = shapefile.Writer(r.shapeType)      10 # Copy everything from reader object to writer object      11 w._shapes = r.shapes()  ...  TypeError: expected str, bytes or os.PathLike object, not int   *Because I'm using a Mac, none of the solutions  seem like they would work.   **Still fairly new to Python so please forgive wrong/confusing terminology.

I am using ArcGIS Desktop to view one shapefile.   Only a select number of features are being displayed. The same number are showing in the attribute table even though the database file (.dbf) has a complete list with many more features.   I then tried opening the shapefile in QGIS and it informs me that the file is invalid. Upon inspection of the shapefile, I found that the .shx file is missing.  Can I recreate the missing .shx file so that all the attributes/features can be loaded?


I am using python (version 2.7) and I have a variable called characters ('abc123'). I would like to be able to split it so that I have a list of the characters in the variable (['a', 'b', 'c', '1', '2', '3']). Does anyone know how to do this?

Is there a function in python to split a word into a list of single letters? e.g:  s="Word to Split"   to get  wordlist=['W','o','r','d','','t','o' ....]


This is the issue I have.   Given that $34! = 295,232,799,**cd**9,604,140,847,618,609,643,5**ab**,000,000$ determine the digits $a$, $b$, $c$, $d$.   As far as I've gotten is $34!$ contains these multiples of $5$. $5$, $10$, $15$, $20$, $25$, $30$. So $34!$ is divisible by $5^7$ ($25$ has two powers of $5$), and since there's at least that power of $2$, the last $7$ digits are $0$, so b is $0$.

Find the values of $a,b,c,d\in\mathbb{N}$ such that      $$ 34!=295232799cd9604140847618609643ab0000000 $$   My Attempt:  The factorial of $34$ contains a $3$, so the RHS must be divisible by  $3$. Similarly, it must be divisible by $7$, $11$, $13$, $19$ etc.  But I do not understand how can I calculate $a,b,c,d$ in this equation.


We have developed a couple of webforms on a development environment, which we now want to transfer to test. How can I tackle this other than retyping the form?

I have created a few webforms on our development server and would like to move them over to a production installation. Can I do this with node export?   I'm not concerned with migrate any user responses (as we were only testing).


For power saving reasons I want to turn off a second hard drive. When the secondary HDD is needed I want to turn it on. I found a  but I need to be able to turn off and turn on. How can I turn a secondary HDD on and off from a bash script? Thank you very much for your help.

I have 2 HDDs in my PC. Ubuntu is turning off the secondary HDD very quickly after about 15 minutes, which is short for me. I need to control this time. How can I do it?  I tried GNOME power management but did not find it useful.


I would like to install Linux on a MacBook but Linux won't be able to detect the Chipset T2 and interact with it. And the SSD is behind so that'd required. I am talking about installing it in the bare metal, i.e. no virtual machines.  Anyone knows a workaround for that?

I have tried      nvme_load=yes in place of      quiet --- with Ubuntu 18.04.1 and Xubuntu 18.04. df -h results in only the system generated mounts and the installation media. The weekly live including firmware image of Debian also fails to discover the ssd.  I have located more information on the SSD. I found this information in the system profiler on OS X High Sierra.   Apple SSD Controller: APPLE SSD AP1024M: Capacity:   1 TB (1,000,555,581,440 bytes) TRIM Support:   Yes Model:  APPLE SSD AP1024M Revision:   177.77.7 Serial Number:  C02829600M9JPD216 Link Width: x4 Link Speed: 8.0 GT/s Detachable Drive:   No BSD Name:   disk0 Partition Map Type: GPT (GUID Partition Table) .  Removable Media:    No S.M.A.R.T. status:  Verified    lsblk from a xubuntu 18.04.1 live installer does not show any pcie or nvme devices.  Note: the installer and Gparted fail to list it. Typically these both require an unmounted drive to work with. So, it simply does not see the SSD. I read that this system uses a PCIE SSD , though im not sure how to send a kernel module to allow use of it.


I have this column in a SQL Server table of type nvarchar that has Id numbers of another table separated by semicolon (bad design, can't change it).      The query I am trying to run works when there is only one value in the GroupIds column however with multiple groups it fails with an error     Conversion failed when converting the nvarchar value '2;5' to data type int.   Code:  SELECT      i.Name,     i.Channel,     g.Name AS 'Group Name',     io.Name AS 'Logger Name',     io.ModuleType,     io.IpAddress FROM      Input i JOIN      [dbo].[Group] g ON i.GroupIds = g.Id JOIN      [dbo].[IoModule] io ON i.IoModuleId = io.Id ORDER BY     i.Channel, io.Name;   I have exhausted my Google skills with a few things half working but nothing giving the results I need. Ideally, I would like to see a result with the Group Names separated by commas.   Note: I need this as a one-off report from a production database. I can't create temp tables, functions or anything of that nature. The answer that this question has been tagged as duplicate is not any help. There are 42 answers from the past 10 years in that question. None of those had anything about selecting that data from a join. It may be my general lack of knowledge of joins but I am searching for an answer of basically getting my group ids in one column by group name separated by a comma.

Using SQL Server, how do I split a string so I can access item x?  Take a string "Hello John Smith". How can I split the string by space and access the item at index 1 which should return "John"?


I have Ubuntu 13.10 installed as a dual boot and I no longer want Windows Vista on my laptop. What is the easiest way to remove Vista from Ubuntu?

I want to keep Ubuntu but remove Windows.


I am trying to identify which usage is correct or most common in American English: lock picking, lockpicking, or lock-picking.  I found no results in Merriam-Webster online, and data from  and  was inconclusive. There is an international association, , that treats the phrase as a single word, and the Wikipedia article on this subject actually formats the phrase in two different ways.

Some compound words are written without hyphens (nonaggression, nonbeliever), some with hyphens (well-intentioned), and others with spaces (post office).  Is there a rule or good guide as to which option should be used?


as everybody know, when you put two spheres close to each other  they intersect other like this :     How do I flatten the spheres at the region where they intersect each, I tried to illustrate this with a quickdraw :  I don't know if it's possible with physics like soft body or collision. does anyone know how to get this result,  i need this for a still image not for animation.   I'm more looking for something like this:

I am making an animation where a person sits down on sofa. I need to make it such that when the person sits on the sofa or presses it with his hand, it deforms. However in my case, when he presses on the sofa, his hands goes trough the sofa. How can I fix this problem?


There is this problem in my text book. Now, they answer it   $$\frac{(365)!}{(365^n)(365-n)!}$$   That is, they used ordered sampling with replacement to obtain the sample space and ordered sampling without replacement to obtain the event that no two people share the same birthday.  But I thought about it in another way: I used unordered sampling with replacement $ {365+n-1 \choose n} $to obtain the sample space, and unordered sampling without replacement $ {365 \choose n} $ to obtain the particular event at hand.   Briefly, my line of thought was like this: let $x_1, x_2, ...x_{365}$ be the days people could be born on. We want the sum of these x’s (that is, the number of people born on day x) to be n, this is the sample space. For the event, let n of the x’s be 1 and the rest zero; thus we only want to compute the number of different arrangements of ones.  My answer and the one in the textbook are clearly different. I don’t understand why order matters in this question. Besides, shouldn’t it not matter whether I use ordered or unordered sampling because, put informally, the factors cancel out? Thanks in advance.

This question is about the birthday problem: the probability that in a group of n people, at least two of them have the same birthday ().  An easy way to calculate the probability is to calculate first the probability that no two people have the same birthday.  Let's say that I want to calculate the probability that in a group of 20 people, NO two people have the same birthday.  So, for 20 people with different birthdays, I can choose the first birthday in 365 ways, the second in 364 ways and so on, while for 20 people who can have the same birthday, I can choose the first birthday in 365 ways, the second also in 365 ways, and so on. At the end:  $p={365 \cdot 364 \cdot 363 \cdot ... \cdot 346 \over 365 \cdot 365 \cdot 365 \cdot ... \cdot 365}\approx 0.59$  This is the right method and I understand it. I don't understand why the following method is wrong:  The probability that in a group of 20 people NO two people have the same birthday is the ratio between the combination without repetition of 20 birthdays and the combination with repetition of 20 birthdays:  $$p={C_{365,20} \over C'_{365,20}}={\binom{365}{20} \over \left(\binom{365}{20}\right)}={\binom{365}{20} \over \binom{365+20-1}{20}}=\frac{{{365!}\over {20!\cdot(365-20)!}}}{{(365+20-1)!}\over{20!\cdot{(365-1)!}}}\approx 0.35$$  I understand the mistake is in the denominator (as the numerator is the same of the other method, after simplifying that 20!), but why? Isn't it right to calculate the k-combination with repetition of 20 birthdays?  Thanks for helping!


Tonight I will be leaving Rome to go to Boston, with a stop in Frankfurt. Both legs are operated by Lufthansa, and I already checked-in online and have both boarding passes, but will my checked-in baggage be directly delivered to Boston after I leave it at a drop-off counter or will I have to check it in again at Frankfurt?

I'll be leaving Morocco within the next week, and I'm wondering whether I'll need to re-check my luggage after my connecting flights. I fly from Casablanca to Frankfurt and Frankfurt to London via Lufthansa. From London I fly to Newark, this time with United Airlines. Will my luggage automatically be put onto all of my connecting flights, or will I be responsible for handling this?  I'm somewhat nervous about the Casablanca and Frankfurt airports. In Casablanca, I don't know how easy it will be to check in since I speak no French and only a little Arabic. In Frankfurt, I only have 54 minutes between my flight to London. And that's if the flight is perfectly on schedule. Will things at the Casablanca airport be fine? And is 54 minutes (potentially less) enough time to go through security and board my next flight?


I have recently received an email from a stranger that says she wants to send me a big deal of money for some specific reason and she said that she has talked to the bank (Banque Atlantique Groupe Lome Togo) and she gave me a phone number and an email address so that I contact the bank and follow the procedure that is required for the money to be transferred to me. Now after I emailed the bank, they replied with this:     To enable us process and transfer the fund to the bank account you   will be sending to us, the pdf attachment file contain copy of   Identification/Transfer Processing Form E-27. Which you have to   carefully fill and return to this bank with the required processing   fee US$1,750.00 (One Thousand, Seven Hundred & Fifty United States   Dollars).      Upon the receipt of the required fee, we shall appoint one of our bank   accredited attorney to stand as your legal representative here since   you are not here in person, so that he can help you to secure the   transfer approval from the authorized ministry here before we shall   process and transfer the fund to the bank account you will be   submitting to this bank.   How can I make sure this is not a fraud and how can I be secure?

I have someone that wants to bless me with a large amount of money. I am working on a project. But I see some red flags they want to send me cash in a package. They have been trying to send it for 3 weeks.   But they said I had to pay for it when it comes. So much is going on I do not know what to think or feel. It's coming out of Africa. I ask them did I have to pay the money back they said no its a gift. But I am feeling something my family says its a scam I do not know what to do.   I ask them to put the money on my pay pal account but for the amount, they can not do it. I do not know what to do. And I need it for the project I am working on


Citizen of Russian Federation, permanent resident of the USA needs to travel through Schengen 3 times in a short time span (3 weeks), each time with a different purpose. is traveling on the following itinerary.    USA -> Denmark -> Finland (flight) immediate transfer to a train to Russia. Purpose: Transit. Total presence in Schengen 1 long day. Departing to Schengen for a self guided tour of Europe: Russia -> Finland -> Stockholm -> Copenhagen -> Somewhere north Germany -> Belgium -> France -> Germany, then Germany - Poland - Belarus - Russia by train. Total duration about 8 days. Out of those 8, about 3 days are in France, 3 days are in Germany. You can assume main destination is Germany. Then: Russia -> Finland (train); Finland -> Denmark -> USA (air). Purpose: Transit. Total time in Schengen zone 2 days.   Questions:   Can the said individual obtain single multi-entry visa from a single  country for the entire itinerary? Is it advisable to do so, or is it advisable to obtain separate visa for 1 and 3 and another one for 2. If it is possible, what country should he apply to? The choices seem to be limited to Denmark (first entry) or by the time spent: Finland (3 incomplete days - in transit), Germany (about 3 days, main destination)?   The question is different from another question linked in the following respect: It is asking about the possibility doing two close-spaced journeys with different purpose on the same multi-entry visa from the same country.

My port of entry and exit is Frankfurt, Germany. However i will only be spending a day or two there. I am visiting Spain and Portugal for a week each. So should I be applying to Spain embassy or German embassy? I am an Indian citizen.


What should I do when I think I have an answer to my question, but to me feels at best a guess?  For example, in the question body I might include the guess as part of the background or assumption,      [...] I think that the answer to this question is blah blah blah. Please prove me wrong.   If I'm wrong I've added an explicitly erroneous solution that other answers can skip, helping them clearly see what is right and what is wrong and understand the bigger picture.   On the other hand if my guess is correct there might be answers like "I think you answered your question", or answers adding just a tiny bit to my own guess.   In such cases, what answer should I accept when none of the answers fully answer the question and the correct answer is my initial guess?  I could refrain from posting my own guess and let people try to answer the question. But then am not saving others time by answering (well, actually guessing an answer) my question? The time that could be better spent on something else.  Is it a good strategy at all to post my guess as to what the answer is in the question body, or should I refrain from it?  I could also probably post my guess as an answer along with my question right away. But that'll be just a guess, not an actual answer. How appropriate would that be? I wouldn't have asked if I had surely known the correct answer in the first place.

While browsing through some questions, I was reminded of a problem I encountered in an earlier point in work. I came up with something that could be technically called a solution to the problem, but I can't really say I am satisfied with it. I thought about asking the question on SO.  In effect, the question would read something like a more detailed version of "This was my problem. This is how I currently solved it. Is there a more appropriate/efficient method of accomplishing this goal?" I'm a bit unsure as to whether it'd be an appropriate question since it technically already has an accepted answer, especially if there is no "more appropriate/efficient method", then it seems questionable why I would even ask in the first place.  So, should I ask this kind question? On a related note, would it be better etiquette to include my current solution as part of the question body, or should it be appended as an answer?  Update  I am accepting quack's because . But I find all of the answers given to have been satisfactory, and a good learning. Thanks to everyone!