I have researched so much in the last few days and have given my enough head in that issue. What I'm trying to achieve is to print directly from web using a print button. I don't want to browser print popup to appear. There will be 2 printers attached to my web application and I want the printer selection automatically.  I know that it is not possible with PHP or without any browser extension or active x plugin.   I also thought a solution to send the print request using web sockets while a java socket client application installation over the user system.   Please suggest me any time saving solution to my problem
I'm working on a web application that needs to prints silently -- that is without user involvement.  What's the best way to accomplish this?  It doesn't like it can be done with strictly with Javascript, nor Flash and/or AIR.  The closest I've seen involves a Java applet.  I can understand why it would a Bad Idea for just any website to be able to do this.  This specific instance is for an internal application, and it's perfectly acceptable if the user needs to add the URL to a trusted site list, install an addon, etc.
So yesterday I dropped my iPhone into the toilet, it was literally submerged for less than 15 seconds and after taking it out I left it in my airing cupboard overnight to dry. Today the phone seems to be completely functional other than a very dark screen (changing brightness won't help).   Was wondering what the best course of action would be and if this is fixable. I get a "serious errors while checking the disk drives for /boot" error while booting I have just set up my new system by creating three partitions on a whole hard disk (/boot, /home, swap and /). I saw  article and now I am getting those errors and the system provide me with some options: (I to ignore, S to skip mounting or M for manual recovery).   I am forced to choose skip mounting because I don't know what manual recovery is. Despite the error I get I think that the system boots okay because I can use the system but this error is very annoying. How to schedule jobs in Sql server 2008 for less than 10 sec? I want to run a job every 3 seconds, however in SQL Server 2008 we cannot define an interval of less than 10 seconds.  The job is used to insert/update visitor information, and segmentation information into a database which is tracked by google search.   There are up to about 100 rows inserted in a 2 or 3 seconds. That job inserts and update the table in a database. Is there any way to schedule it using sp job scheduling configuration? How can I convert timestamps in a column to a date? I have a file containing this:  1415602803,LOGIN SUCCESS,AUTH,user2,192.168.203.63,10.146.124.73,59996,22 1415602807,LOGIN SUCCESS,AUTH,user1,172.24.31.10,172.32.1.1,48191,22 1415602811,LOGIN FAILED,AUTH,root,172.24.166.153,10.146.124.73,52506,22 1415602815,LOGIN FAILED,AUTH,user3,192.168.123.55,10.146.32.99,55750,22   I want to convert the timestamp to a date in this format:  2014-11-10 02:00:03,LOGIN SUCCESS,AUTH,user2,192.168.203.63,10.146.124.73,59996,22 2014-11-10 02:00:07,LOGIN SUCCESS,AUTH,user1,172.24.31.10,172.32.1.1,48191,22 2014-11-10 02:00:11,LOGIN FAILED,AUTH,root,172.24.166.153,10.146.124.73,52506,22 2014-11-10 02:00:15,LOGIN FAILED,AUTH,user3,192.168.123.55,10.146.32.99,55750,22   How can I do that?  I know this works: perl -pe 's/(\d+)/localtime($1)/e' (from ) but the output format is Mon Nov 10 02:00:03 2014.  I know this command can convert timestamps into my desired output: date -d@1415602803 +"%F %H:%M:%S", but I couldn't make it work with awk using system("cmd") because of all the quotations and whatnot. Problem:  Let $A_{n.n}$ be square complex matrix. Prove the following: $$\left \| A \right \|=\left \| A \right \|_{HS}\Leftrightarrow  rank(A)\leqslant 1$$. Where $\left \| . \right \|_{HS} $ is the Hilbert Schmidt Norm.  Please read my solution and tell me whether it is correct. If not, let me know where the mistake is.  Proof of the implication $\Leftarrow $:   If $rank(A)=0$, then in this case $A=0$. It follows that $\left \| A \right \|=\left \| A \right \|_{HS}=0$ If $rank(A)=1$, than: $ A=\begin{pmatrix} A_{1}\\  \alpha _{2}A_{1}\\  ...\\  \alpha _{n}A_{1} \end{pmatrix}$ where $A_{1}$ is the first row of $A$   and in this case: $\left \| A \right \|=\left \| A \right \|_{HS}=\left \| A_{1} \right \|\sqrt{1+\alpha _{1}^{2}+...+\alpha _{n}^{2}}$  Proof of the implication $\Rightarrow $   We know that $\left \| A \right \|=max_{\left \| x \right \|=1}\left \| Ax \right \|$  On the other hand: $ A=\begin{pmatrix} A_{1}\\  A_{2}\\  ... \\ A_{n}  \end{pmatrix}$. So, $$\left \| Ax \right \|=\left \| \begin{pmatrix} \left \langle A_{1},x \right \rangle\\  \left \langle A_{2},x \right \rangle\\  ...\\   \left \langle A_{n},x \right \rangle\end{pmatrix} \right \|=\sqrt{\left \langle A_{1},x \right \rangle^{2}+\left \langle A_{2},x \right \rangle^{2}+...+\left \langle A_{n},x \right \rangle^{2}} $$  Where $ \left \langle A_{i},x \right \rangle$ is the inner product of $A_{i}$ and $x$  Using the Cauchy-Schwarz inequality: $\left \langle A_{i},x \right \rangle^{2}\leq \left \| A_{i} \right \|^{2}\left \| x \right \|^{2}$, we get: $\left \| A \right \|=max_{\left \| x \right \|=1}\left \| Ax \right \|\leq max_{\left \| x \right \|=1}\left \| x \right \|\left \| A \right \|_{HS}=\left \| A \right \|_{HS}$. In order to have the equality: $\left \| A \right \|=\left \| A \right \|_{HS}$, we should have: $\left \langle A_{i},x \right \rangle^{2}=\left \| A_{i} \right \|^{2}\left \| x \right \|^{2} $ which occurs only if $A_{i}=\lambda _{i} x$. So, the rows of A are dependent, which implies that $rank(A)=1$. Note that the case $rank(A)=0$ happens when $A=0$  Please let me know if my solution makes sense. Inverse of function is continuous or not? If $f:I\subseteq \Bbb R \rightarrow \Bbb R$ is injective and everywhere continuous in its domain then $f^{-1}$ is also continuous everywhere. Here  $I$ cannot be discrete set and $f$ is single variable function The above statement is always correct or not? I thought it is always correct. Am I correct or not? The basic 6T structure used for storing data is same as one used in "Positive Feedback Differential Voltage Sense Amplifier", then how come while the data is stored in SRAM memory cell it doesn't get amplified? Movie about gene therapy and genetics-based jobs I saw a movie several years ago and I have not been able to find it since.  It was about a dystopian society where parents could modify the genes of their children before birth.  Some individuals, including the protagonist, had not had this done, and so had a somewhat inferior genetic makeup.  Jobs are based on the results of genetic tests, and the protagonist, a male, was slated for a less than ideal job. In the movie, he fakes his identity and has major surgery to make him a little taller to match his ID. He is trying to get his dream job (astronaut?).  The only other parts I remember are   the protagonist, to keep up the ruse, managing to run on a treadmill faster than his  genetic limit a very suspicious character pulling the protagonist's DNA from a hair left in a comb How do I refresh the package list? Writing a list to a file with Python How small does a land-mass have to be before you live "on" it, rather than "in" it? I'm sure virtually everyone agrees that people live on the Isle of Wight, but in Ireland.  Apparently the usage depends somewhat on physical size, but that can't be the whole story. How exactly do we decide which form to use? And are there any really glaring 'outliers' that don't fit the normal pattern?  LATER - I must just add that the most uncertain case I've found so far is The Falklands. Most people go for in there, but a substantial minority (about 1 in 3) opt for on. Why don't I hear any sound after calling the Beep function in Windows 7? I have taken three fields from case object called AccountName, IntegrationTo__c and SfType__c (checkbox).  I have created one case record with a specific combination of three fields.  For the second time I create a record with that combination, then  display error message only if SfType__c is true in first record otherwise allow  for record creation.  trigger AvoidDuplicate on Case(before insert)  {          set&lt;string&gt; newNameSet = new set&lt;string&gt;();     newNameSet = new set&lt;string&gt;();      set&lt;string&gt; newEmailSet = new set&lt;string&gt;();      set&lt;string&gt; dbNameSet = new set&lt;string&gt;();      set&lt;string&gt; dbEmailSet = new set&lt;string&gt;();      for(Case newLead : trigger.new){          newNameSet.add(newLead.Account.Name);          newEmailSet.add(newLead.IntegrationTo__c);      }      for(Case dbLead : [select id, Case.Account.Name, IntegrationTo__c from Case where IntegrationTo__c IN: newEmailSet OR Case.Account.Name IN: newNameSet]){          dbNameSet.add(dbLead.Account.Name);          dbEmailSet.add(dbLead.IntegrationTo__c);      }      for(Case newLead : trigger.new){          if(dbNameSet.contains(newLead.Account.Name) &amp;&amp; dbEmailSet.Contains(newLead.IntegrationTo__c))              newLead.addError('You are inserting Duplicate Case');      }  }   i wrote this this not checking the account field name and integration__c values only with combination of account and integration__c shows error How does mission progress work in multiplayer? Studying for CISSP these choices seemed limited:     What is the advantage of digital signatures over message authentication codes?         Digital Signature provides integrity verification while message authentication code does not   Digital Signature provides confidentiality while message authentication code does not   Digital Signatures provide authenticity while message authentication code does not   Digital Signatures works faster than message authentication codes      Using the following chart as a reference, I'm leaning towards #2, but none of the choices really fit properly…  Cryptographic primitive | Hash |    MAC    | Digital Security Goal           |      |           | signature ------------------------+------+-----------+------------- Integrity               |  Yes |    Yes    |   Yes Authentication          |  No  |    Yes    |   Yes Non-repudiation         |  No  |    No     |   Yes ------------------------+------+-----------+------------- Kind of keys            | none | symmetric | asymmetric                         |      |    keys   |    keys   Hopefully an expert here can clarify. How to directly prove that $M$ is maximal ideal of $A$ iff $A/M$ is a field? An ideal $M$ of a commutative ring $A$ (with unity) is maximal iff $A/M$ is a field.  This is easy with the correspondence of ideals of $A/I$ with ideals of $A$ containing $I$, but how can you prove it directly?  Take $x + M \in A/M$.  How can you construct $y + M \in A/M$ such that $xy - 1 \in M$?  All I can deduce from the maximality of $M$ is that $(M,x) = A$. Show that $\mu (E \setminus A)>0$ if $A$ is a nonmeasurable subset of $X$ and $A \subseteq E$, $E$ is measurable. This question was asked , but the question wasn't asking for an answer, just a clarification on the proof by contradiction they already had, so I'm reposting it to ask for help arriving at the answer.  Because the asker above said they proved it by contradiction, that is what I'm attempting. But I'm having issues wrapping my brain around the concept of set measurability. So let's give it a good college try with what I can understand.  For clarity, $\mu$ is an outer measure.  A is nonmeasurable, so $\exists B \subseteq X$ such that $\mu (B) \ne \mu (B \bigcap A) + (B \bigcap A^c)$.  E is measurable, so $\mu (B) = \mu (B \bigcap E) + (B \bigcap E^c)$.  This essentially means $\mu (B) \ge \mu (B \bigcap E) + (B \bigcap E^c)$ (Since monotonicity is alredy implied by the definition of outer measure).  So we can attempt a proof (or the start of one) by contradiction.  Assume $\mu (E \setminus A)=0$. So $E \setminus A$ is a null set.  So $\mu (B) \ge \mu (B \bigcap E) + (B \bigcap E^c)$. I assume I'm supposed to show a contradiction using that A is nonmeasurable. I'm unsure how.  Another way I think could work would be to use: $\mu (E \setminus A)= \mu (E \bigcap A^c) = 0$ and arrive at a contradiction given that A is nonmeasurable, but again, I'm unsure how.  I just need some direction from here. Thank you in advance for any advice. How to completely remove Notepad++ in Ubuntu 18.04 terminal?  I can't find it in Synaptic package manager, and don't know where is on system, but I can see an icon in Activity. It is probably not completely installed, because I can't open it. Which statistical test to analyse? I am trying to find out how inflammatory markers change in response to a mechanical device change. I have daily readings for the 5 days before the event and for the 5 days after the event. I am expecting a rise in inflammatory markers in the pre readings followed by a fall after the device change. I also need to find out how the change differs in two subgroups (sample sizes of the subgroups are n=21 and n=88). The aim is to find out if the change is significant, to consider these markers as predictors of the device failing and hence needing to be changed.    I would like to know what test would be appropriate to analyse this. I need to keep things simple as I and the people reading the results are non-statisticians. Reference — frequently asked questions about PDO