Most Westerners do not only need a visa to visit Iran, they first need a "Letter of Invitation" to be able to apply for the visa.  Most people get this through travel or special visa agencies, some of them are online only.  What are any trustworthy agencies that do this? Experiences in quality and duration?


Missing shutdown icon in Ubuntu 17.04 menu

How can I add a shutdown button to this menu?  In mine it is missing and I am only able to shut down through terminal. My menu only has lock and logout options, and even the logout option doesn't respond when I click it. I want it to appear like this:


I know there have been a few similar questions asked, this is not a duplicate though, those people got personalized help and their situation is not mine. I have ubuntu 14.04 and the wifi has never worked right. I have followed a few posts but nothing has fixed the issue. I recently got some great help from one of my previous questions:   After installing the 3rd party driver and rebooting I have not had a wifi signal in my network manager.   I have a Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter  What should I do? I just tried this post:   which led me to this:   ...where I followed the update outlined in the first answer.  I'm at loss right now, any guidance would be appreciated.  edit: Thanks pilot6 but his problem is loss of connection, my problem right now is that I cant see my wifi networks to connect to on the desktop. I installed the driver from that post though  ifconfig  eth0      Link encap:Ethernet  HWaddr 80:3f:5d:06:23:c3             inet addr:192.168.10.73  Bcast:192.168.10.255  Mask:255.255.255.0           inet6 addr: fe80::823f:5dff:fe06:23c3/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:3122 errors:0 dropped:0 overruns:0 frame:0           TX packets:1628 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:715906 (715.9 KB)  TX bytes:345684 (345.6 KB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:624 errors:0 dropped:0 overruns:0 frame:0           TX packets:624 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1            RX bytes:67561 (67.5 KB)  TX bytes:67561 (67.5 KB)   rfkill list:  0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no  maxbisesi@Slacktop:~$ iwconfig lo        no wireless extensions.  eth0      no wireless extensions.


Similar to the \dotfill command, but with your own text, rather than dots.  If the string was: kitty!  The entire line would look like the following: kitty!kitty!kitty!kitty!kitty!kitty!kitty!kitty!kitty!  Is there any way to do this?


Is there a way to fill the area between two circles?

There's a way to fill with faces only the area between the larger circle and the the smaller one? I mean.. It's a wheel and I'm trying to fill the rubber part of it.  Using the fill function F it fills everything inside the bigger circle.


The latest xelatex update make the beamer ball disappeared

I update the texlive update to date, and find the ball type outlines of beamer disappeared when using xelatex to compile, but lualatex work(the un-updated xelatex also work). But lualatex is so slow, I'd like to use xelatex than it. Here are the compile results of the beamer conference talk example. The first is xelatex and the other is the original pdf from texlive.


Multiple object instances represented by two slightly shifted rectangles

In a software diagram, I'd like to be able to represent multiple instances of an object by two rectangles with one of them slightly shifted. I recently learned about the pic style so I'm using it with two nodes to achieve what I want.  The following example does work, but I'd like to know if I can do the same without using the fill=white. My hack kind of assumes the entire picture background is white and that may not always hold. I'd like to be able to crop the unwanted picture part out.  \documentclass[crop,border=3pt]{standalone}  \usepackage{pgf,tikz} \usetikzlibrary{positioning}  \begin{document} \begin{tikzpicture}[     every node/.style={font=\sffamily\small},     block/.style={         rectangle, draw, align=center, minimum width=2cm,         minimum height=1.4cm, font=\sffamily\small     },     multinode/.pic={         \node [block] at (0.1,0.1) {};         \node [block, \tikzpictextoptions, fill=white] at (0,0) {\tikzpictext};% <-- FILL WHITE     } ]     \node [block] (STG) at (2,5) {single\\instance};     \pic [pic text={multi\\instance}] at (5,5) {multinode}; \end{tikzpicture} \end{document}   The following images show first one version with the fill white hack, and then one version without it.


Installing a Theme with the Gnome Tweak Tool?

I just installed ubuntu gnome 17.04.  I'm trying to install this theme:    It says just extract the theme into the .themes folder and use the tweak tool to select the gtk and shell themes.  So here's what I have:  ole@mkIV:~$ pwd /home/ole ole@mkIV:~$ ls .themes Gnome-OSX-2.6   I then reboot and attempt to find the new themes.  However they do not show up even though I have User Themes turned on under extensions.  Any ideas on how to fix this?


This would be an old science fiction short story, probably 90's or before... possibly decently before. It tells of a prince (or equivelant) who, before he can be confirmed as a prince, has to undergo a test on some primitive planet, or a primitive area of their planet. He has a servant or someone who goes with him for the test. The boy ends up dying on the test, or otherwise failing, and the servant, when he comes back to the king, is forced to say 'he was a coward'.


How do you use version control with Access development?

I'm involved with updating an Access solution.  It has a good amount of VBA, a number of queries, a small amount of tables, and a few forms for data entry & report generation.  It's an ideal candidate for Access.  I want to make changes to the table design, the VBA, the queries, and the forms.  How can I track my changes with version control? (we use Subversion, but this goes for any flavor) I can stick the entire mdb in subversion, but that will be storing a binary file, and I won't be able to tell that I just changed one line of VBA code.  I thought about copying the VBA code to separate files, and saving those, but I could see those quickly getting out of sync with what's in the database.


What is the problem when I use \partial with package garamond

Here is the source   \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amsfonts,amssymb,mathrsfs,mathtools} \usepackage{ebgaramond,newtxmath,ebgaramond-maths} \begin{document}  $\partial$  \end{document}


Proving that $\mathbb{Z}[\sqrt{2}]$ is a Euclidean domain

We're proving that $\mathbb{Z}[\sqrt{2}]$ is a Euclidean domain, using the norm function $$\nu (a + b\sqrt{2} ) = |a^2 - 2b^2|$$ and the first part says that since $\nu (a + b\sqrt{2} ) = |(a + b\sqrt{2})(a - b\sqrt{2})|$ it's clear that $\nu (xy) = \nu(x) \nu(y)$? ... Can someone please explain to me how this is clear?


UK visit visa refusal; any possible solutions?

I have tickets for the Wimbledon final, scheduled on 15 July, obtained through the online ballot. I am a government employee (since 28-6-2016), working as an assistant engineer with a net salary of 41000 INR. I had been refused a visa, even after submitting bank statements (8 months), my Wimbledon ticket offer, pay slips (7 months), Form 16 for the last two years, NOC and leave sanction, appointment letter, accommodation proofs. What are my chances if I apply again as the date of travel is closer? Is it better if I opt for Premium Service?  If you look at the refusal letter they have miscalculated the closing balance 3,75,000 is roughly 4175 pounds.I have paid for the wimbledon finals and received conformation i have provided all the evidence in support.I have a genuine reason but still refused..


Windows 10 want duplicate-ish start menu items

I'm trying to pin multiple shortcuts to the same program (exe) but different arguments to the start menu and Windows refuses to show more than 1 item.  Is there a way to trick windows into showing my shortcuts?  using windows 10.


CJK: blank output for Japanese characters

I have just started using latex and I am trying to display Japanese characters on a beamer presentation.  I use Miktex on a Windows 7 OS. I have tried every possible example file and tutorial that I found using xelatex of pdflatex, installed all sorts of packages to enable Japanese support and downloaded dozens of japanese fonts. After hours of bug-fixing, I always end up with obscure errors leading to unanswered posts on forgotten threads... In my most successful attempt, I used xelatex with this file ->  \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{CJKutf8} \begin{document}  \begin{CJK}{UTF8}{min}abc 因子の部屋\end{CJK} \end{document}   This file doesn't give me error messages, but the output on the pdf file is just "abc" (the japanese is not displayed). I also get this warning:  LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available (Font) size <5> substituted on input line 8.   And nothing else that looks like an error. As I said before, I failed all other foolproof methods/tutorials found here an there on the web (I even crashed my whole PC just by updating a Miktex package), so please be patient with me...  Thank you!  EDIT: I don't think this is a duplicate because I tried all that was written in the "duplicate" question and a dozen others before I posted mine, and it did not solve the problem. For the liked "duplicate" example, I got this error message:  Font shape `C70/min/m/n' undefined   Which is apparently because Miktex for windows 7 lacks some font files for ms mincho that  I already downloaded and are still not recognized.


I've got a problem with Nautilus in Ubuntu 12.04 LTS.  When I run the command gksu nautilus /, the password ask box appears and I type my super-user password, then the password box disappears and Nautilus is not opened.  When I try to open Nautilus as a normal user in with the command nautilus, the folder is opened.  When I try in terminal   $ sudo nautilus   I got the following error  $ sudo nautilus /  ** (nautilus:8523): WARNING **: Command line `dbus-launch --autolaunch=2c8ce9b7da2257c2609b749700000007 --binary-syntax --close-stderr' exited with non-zero exit status 1: Autolaunch error: X11 initialization failed.\n Could not parse arguments: Cannot open display:   How can I fix this error?


What's it called when someone starts a well-known saying but doesn't finish it?

Often times in a TV show that I watch and love, Supernatural, the big bads use quotes and sayings to further their point. For example, Crowley, the current King of Hell at the time, replied to Dean, the protagonist, (in response to an insult)     Sticks and stones...   It's implied that he was telling Dean that his words cannot hurt him, but I would like to know if this type of speech or writing has an actual name to it?  In another moment, also by Crowley to Dean, he says     What's the line? Saving people, hunting things...   This is a saying directly related to the show, as their family motto is     Saving people, hunting things, the family business   At first, I thought the reason for them not saying the full quote was due to copyright and legal issues, as it wasn't only Crowley that spoke like this. But now, I'm thinking that in the writers' heads, maybe it's just a speech technique centered around inference, and I could be overthinking this... I'm asking if it has a name because I'd like to research it a little and flawlessly incorporate this technique into my writing.


Windows 7 sp1 stuck checking for updates

I am asking here because I have tried everything I can and it wont fix. I restored to different restore points, returned to factory three times, and ran the auto fix utilities.  It updated Saturday but the updates failed and since then it hangs on checking for updates.


Export SharePoint online List all data to excel Programmatically using csom code

I want to export SharePoint Online List data programmatically using CSOM code in console application.  Can anyone send me CSOM code for the same.


Divergence of $\sum\limits_{n=1}^{\infty} \frac{\cos(\log(n))}{n}$

I'm struggling to prove that $$\sum \limits_{n=1}^{\infty} \frac{\cos(\log(n))}{n}$$ diverges.   Does anyone have any idea how to prove it? Breaking it into smaller pieces din't work. Maybe I should bound it with another series? But how?


Selecting a MOSFET for driving load from logic

I'm looking to drive a  from an Arduino. I've found a question about , which includes a circuit that looks perfect for this kind of situtation:    What I don't understand is how to select a MOSFET for the job. What properties should I look for, if I know my logic level, device voltage and device current?  In this case it's 5V logic, and the load runs at 12V / 500mA, but it'd be nice to know the general rule.


No access with notepadqq on /opt/lampp/htdocs

I'm new to Ubuntu and already have my first problem I just cant understand. I've set chmod 777 on /opt/lampp/htdocs (also set me as owner). When I open index.php, which is located in the htdocs directory via gedit, it works perfect. But when I try to open that file with notepadqq, I don't see its content and I'm also unable to save that file there.  What could be the problem?


PDF Printing ask for filename Ubuntu 20.04

How do I set up a PDF printer that will as for a filename ?  Thanks  Ubuntu 20.04 Mate


If $p, q$ are prime integers, then $\mathbb{Q}(\sqrt{p})$ is not isomorphic (as a field) to $\mathbb{Q}(\sqrt{q})$

My strategy is something like this: suppose $\phi: \mathbb{Q}(\sqrt{p}) \to \mathbb{Q}(\sqrt{q})$ is a isomophism such that $\phi(x) = x$ for all $x \in \mathbb{Q}$ and let $\phi(\sqrt{p}) = a + b \sqrt{q}$. Then $p = \phi(p) = \phi(\sqrt{p}^2) = \phi(\sqrt{p})^2 = (a + b \sqrt{q})^2 = a^2 + 2ab \sqrt{q} + b^2 p$. I feel like '$\phi(x) = x$ for all $x \in \mathbb{Q}$' can be proved from the supposition that $\phi: \mathbb{Q}(\sqrt{p}) \to \mathbb{Q}(\sqrt{q})$ is an isomorphism, but I am not sure how to prove it. Can anyone help me?


Expressions of Inverse Hyperbolic functions

I have been trying to understand hyperbolic functions for some time now. I have a problem concerning the expressions of inverse hyperbolic functions. The text( G.B. Thomas ) mentions nothing about their expressions.   While plotting the Hyperbolic Sine was easy, plotting its inverse was not. By definition we have, $$\sinh(x) = \frac{e^x - e^{-x}}{2}$$  I plotted its graph below-    The dotted lines are the function's asymptotes. I then looked at the graph of inverse hyperbolic Sine and decided to obtain its expression. I tried by finding the inverses of the asymptotes because I knew that the inverse function would get close to them eventually. I plotted a graph.    I was happy. But not for long. It turned out that I cannot have an algebraic combination of these two asymptotes. This was my second approach, to be honest. A holy approach to finding inverses is, express $x$ in terms of $y$.  I got stuck at the very beginning and could never proceed. Is there a way around this? If there indeed is a way to express $x$ in terms of $y$, could anyone give me a few hints to do it? If there isn't, how do we obtain an expression for the inverse hyperbolic Sine?


I am not entirely sure if this is unique to the beamer class, but I am running into a plethora of errors with a variety of biblatex commands when I use the ieee style (I am relatively sure that it's a feature of the ieee style because many (including authoryear-comp) seem to work fine).    Some commands I can't seem to get working with the aforementioned combination of ieee, and beamer biblatex:     \cite{} works intermittently (depending on my theme) adding \printbibliography breaks the success of cite when it was part of a compatible theme *** parencite compile fails *** fullcite compile fails *** there was a redefinition of some commands in the answer to this question:   that I tried to implement because fullcite was one of the first commands I recognized wasn't working under the ieee style and i thought the custom chicago style might have had a similar underlying problem, but I don't think thats the case.   *** only worked with  authoryear-comp, beamer, and biblatex  Skeleton MWE:  \documentclass{beamer}  \usepackage{filecontents}  \begin{filecontents}{\jobname.bib}     @misc{A01,         author = {Author, A. and Buthor, B. and Cuthor, C. and Duthor, D.},         year = {2001},         title = {Alpha},         url = {https://tex.stackexchange.com/q/12806/510},     } \end{filecontents}  \usepackage[backend=biber,style=ieee]{biblatex}  \addbibresource{\jobname.bib}  %\AtEveryCitekey{\clearfield{title}} %\AtEveryCitekey{\clearfield{url}} %\AtEveryCitekey{\clearfield{doi}}   \setbeamertemplate{bibliography item}{}% remove article icon:  https://tex.stackexchange.com/questions/53127/removing-document-icons-from-a-bibtex-bibliography-in-beamer  \begin{document}  \begin{frame}      Text \cite{A01}      %Text \fullcite{A01}  \end{frame}  \begin{frame}      \printbibliography  \end{frame}  \end{document}   This question is likely the first in what will be a series of questions as I endeavor to create a biblatex solution to implement custom compressed-full inline text citation in a beamer presentation.


explain why my method is not taking the following args

So I have this method that takes an (ArrayList, int n, int r), let's just say that the method is supposed to print something if given those args. but for some reasons, if my main is like this: public static void main(String[] args) {          ArrayList<Double> array = new ArrayList<Double>();     int r = 2;     int n = array.size();          array.add(4.0);     array.add(5.0);     array.add(7.0);     array.add(8.0);     array.add(10.0);          print(array, n, r); }  it doesn't work, or at least it doesn't do what it's supposed to do. BUT if my main method is like this: public static void main(String[] args) {          ArrayList<Double> array = new ArrayList<Double>();     array.add(4.0);     array.add(5.0);     array.add(7.0);     array.add(8.0);     array.add(10.0);          int r = 2;     int n = array.size();          print(array, n, r); }  it works perfectly fine. Does the location of where I created those integers have any effect on my code? Any explanation on why this happens? ps: I'm fairly new on programming, so if this is actually really simple... I apologize for not knowing.


Dualboot Windows 10 and Ubuntu: GRUB Problems

I tried to Dual-Boot Windows 10 and Ubuntu 15.10. But I can not choose to start Windows, when I turn on my Computer (Lenovo ThinkPad E330).  I can access all my files of Windows from Ubuntu, because they are shown in the file manager as a separate Volume.   I already tried to run Boot-Repair, but that did not help. This is my Boot-Repair Report:   I hope the issue can be resolved.  Thanks.  -


In Fraleigh, an exercise asks to prove the following theorem: Suppose $H$ and $K$ are subgroups of a group $G$ such that $K \le H \le G$, and suppose $(H:K)$ and $(G:H)$ are both finite. Then $(G:K)$ is finite and $(G:K)=(G:H)(H:K)$.  If we let $\{a_iH\mid i=1,\dots,r\}$ be the collection of distinct left cosets of $H$ in $G$ and $\{b_jK\mid j=1,\dots,s\}$ be the collection of distinct left cosets of $K$ in $H$, then the set of left cosets of $K$ in $G$ is $\{(a_ib_j)K\mid i=1,\dots,r; j=1,\dots,s\}$.  My question is how do we show that these are distinct? If we suppose $a_ib_jK=a_pb_qK$, then $a_ib_jk_1=a_pb_qk_2$ for some $k_1,k_2$ in $K$. Then since $b_jk_1,b_qk_2 \in H$, it follows that $a_i$ and $a_p$ are in the same coset.  Now, where do I go from here? Just because they are in the same coset does not mean that $a_i=a_p$, right?


Where to find description of all "/system/bin/service" calls?

In  I was adviced to use service call phone 2 s16 "$number". It works, but in service list I see other useful things I don't know how to use and can't easily find the information on the Internet.  I don't see any introspection in service apart from service list to findout myself...  Where to find more complete description of "service" calls and their parameters?


I am doing multivariable calculus, and specifically double integrals. I am facing difficulties finding the domain of the integal, however i am given the following equations: $$1 ≤ 2x+y ≤ 2$$ $$0 ≤ x-2y ≤ 1$$  Through these two equations i am supposed to find the area of integrals for each of the variables i.e $x$ and $y$  I set them as simultaneous inequalities but it doesn't seem to help because i get the boundary for $x$ to be $2/5 ≤ x ≤ 1 $ and for $y$ to be $4/5 ≤ y ≤ 0 $ which is obviously WRONG because how can the lowest boundary for possibly have higher value than that in the higher.   Guys, I really appreciate you help, it means the world to me.


Can't show bibliography, citations undefined

I'm trying to add a bibliography, using biblatex, but when I compile with texmaker I just get many warnings saying all the citations are undefined.  Briefly, here is how my project is structured:  Dissertate.cls  ... \usepackage[backend=biber,style=numeric]{biblatex} \addbibresource{references.bib} ... \renewcommand{\backmatter}{      \bibpage } ... \newcommand{\bibpage}{       ...        \printbibliography }   references.bib  @inbook{Wilson001,    author    = {Wilson J.},    title     = {Some title},    ... }   dissertation.tex   \documentclass{Dissertate} \begin{document} ... \include{mainmatter/chapters/chapter1}  \backmatter ... \end{document}   chapter1.tex  \chapter{First Chapter} Here I'm going to add a citation \cite{Wilson001}. ...   The warning I get is, for example: Citation 'Wilson001' on page 1 undefined. What am I missing?


Python regular expression how to Extract substrings between delimiter into dictionary

I have a string like this: row = '000000002|APPLE |237277309|BOWNE GOOD (LIST)       |WEGRZYN, ED                   |21925142|5021 NIMTZ PKWY|A|B|C|D|'   How can I put them each 3 '|' of them into a dictionary like: {'first':'000000002','second':'APPLE','third':'237277309'}  {'first':'BOWNE GOOD (LIST)','second':'WEGRZYN, ED','third':'21925142'}      code: from collections import Counter import re counts = Counter('|')  vowel_count = 0 for letter in counts:    if letter in row:       vowel_count += 1       if vowel_count == 3:               row.slice


Mirroring a web site having pages that uses simple JavaScript

There are simple and great web site download tools that allow to create a local mirror of simple sites having no JavaScript infrastructure behind. However, sometimes there cases when a site looks simple (and even is old enough to be a real "web 1.0" site), but none of such download tools are able to make a mirror of it. I've tried to make a local mirror for  (for example, it has some transcriptions that cannot be found elsewhere, and some more rare stuff) using HTTrack Site Copier, Free Download Manager, and wget. All of them made simple mirrors lacking a lot of content. I saw some scripts at those pages, and probably that prevents from mirroring.  How can I mirror a web site with simple JS enabled? Perhaps, there's a web browser-driven solution that could support JS out of box (any browser extension, etc)?  Thanks in advance.


Jquery Equivalent to php $token = md5(uniqid($customerId))

Is there a jquery/javascript code equivalent to this php one? I want to generate a unique 32 character token.  $token = md5(uniqid($customerId))


Compiling a file with two document classes

Just out of curiosity: Is there a way to compile latex document with two document classes at once?  Suppose that I have a paper which start with line: \documentclass[preprint,authoryear,12pt]{elsarticle}  But finally I would like to compile it with such line: \documentclass[final,5p,times,twocolumn]{elsarticle}  Obviously I can replace these lines and compile file twice, but I wonder if there is any trick to avoid double compilation?


Having 2 sets, and only this data for each one, the running variance, the sum, the running mean and the count. How can I get the merged variance of the 2 sets?  EDIT:  The values of the sets are being updated each time with new ocurrences this ocurrences are not being stored.  The values of the sets are not equal.  I need to merge this 2 sets and get the new variance of this merged set.  EDIT 2:  I think that what I need is the pooled variance, am I correct?  In java would be something like this  Double variance = (((firstAggregate.count - 1) * firstAggregate.variance) + ((secondAggregate.count - 1) * secondAggregate.variance)) / ((otherAggregate.count + secondAggregate.count) - 2);


How to append character to the end of line using SED?

I have the following text:  serverName: NZRC222 total: 8.46 GB serverId: 259695  serverName: NZRC333 total: 50.13 TB serverId: 260582  serverName: NZRC555 total: 9.31 TB serverId: 260956   My desired output would be:   serverName: NZRC222, total: 8.46 GB, serverId: 259695,  serverName: NZRC333, total: 50.13 TB, serverId: 260582,  serverName: NZRC555, total: 9.31 TB, serverId: 260956,   Basically, I want to generate a csv file which can be imported to the Excel.  When I go with : sed '/\w.*/ a ,' file I get this:  serverName: NZRC222 , total: 50.13 TB , serverId: 260582 ,  serverName: NZRC333 , total: 9.31 TB , serverId: 260956 ,   Any suggestions? Thank you in advance!


Why are journals telling me that my article is plagiarized even though I wrote it by myself?

Recently, I wrote an article, and I'm trying to submit it somewhere, but two journals told me that my article is plagiarized even up to 70%!    I'm 100% sure that it's not plagiarized because I wrote it by myself. The only thing that I suspect caused this problem is that I posted the pre-print online in ECSarxiv, and I think they found my pre-print and think my paper is plagiarized! My name on the pre-print is exactly the same as in the submitted paper. I checked the pre-print policy of these journals, and they clearly stated that they don't have a problem with pre-prints. I checked it with Turnitin, and it says there is no plagiarism in my article. I also searched the Internet for random sentences from my article and it just shows my pre-print. I complained after I received the rejection, pointed out to my pre-print, and asked them to name the paper I allegedly plagiarized from. However, they did not respond back to me. I now sent an email to editor-in-chief and I'm waiting for response. I am confident that the journals are reputable (Elsevier and Springer).   Any ideas or suggestions?


is a real-coefficients fourth degree polynomial always factorizable in real-coefficients polynomials?

I want to restrict myself to polynomials with real-valued coefficients and consider only real-valued roots (so, in this context, for instance, a 2nd degree polynomials sometimes cannot be factorized).  In this context, can a 4th degree polynomial always be factorized in two 2nd-degree polynomials ?  Or is it possible to come up with a 4th degree polynomials which could not be factorized into any real-coefficients polynomials ?  (and - this maybe should be the object of a further question - but could we extend this property to all even degree polynomials ?)


It is easy to prove: in a finite semigroup if for all $a$ and $b$, $ax=b$ and $ya=b$ has unique solution. then it is group. But if in a finite semigroup, if for all $a$ and $b$, $ax=b$ and $ya=b$ has solution(not necessarily unique given) would it be a group?


In later versions of C#, there is the concept of , such as this:  static int CalculateBMI(int weight, int height) {     return (weight * 703) / (height * height); } . . . var a = CalculateBMI(weight:100, height:60);   Does such a concept exist in C++, and if so, how is it used?  Researched thus far: Kernighan & Ritche, "C Programming Language" 2nd ed (okay, I know it's C, but still a good starting point)   SO search


Hash symbol when binding variables in URL

I'm trying to populate the Contact lookup when a User creates a new related list object from the Contact page.  I am storing the Contact parameter in a Custom Setting so it can be changed when deploying to Production.  For some reason, whenever I try to bind this custom setting to the URL I get a leading '#' and none of the bindings work correctly.  This is despite using the URLENCODE function in the Visualforce  So when I put this (contactParameterId is != null)  <apex:outputLink value="/{!relList.keyPrefixObject}/e?{!IF(relList.contactParameterId != null, 'CF{!URLENCODE(relList.contactParameterId)}={!URLENCODE(contact.Id)}&', '')}retURL=/{!contact.Id}&saveURL=/{!contact.Id}"></apex:outputLink>   I get the URL      {URLENCODE(relList.contactParameterId)}={!URLENCODE(contact.Id)}&retURL=/003U000000PL9LNIA1&saveURL=/003U000000PL9LNIA1   What am I doing wrong?


Tagging multiple questions at the same time?

Is it possible to tag multiple questions at the same time? If not, should this feature be added?  I've wanted to do this several times when I do a search for a topic, and many of the matches do not have a certain important tag, but should.  For example, a search for "boost asio -[boost-asio]" returns a lot of questions that are extremely specific (not just perpherially related) to boost::asio, and should have the [boost-asio] tag. Adding the tag to each of them individually is possible, but it would be less daunting if there was a way to mark the appropriate questions from the search results and tag them all at once. (Even if this is a bad example for some reason, hopefully you get the idea).  I'm anticipating arguments that this shouldn't be possible because it would make it too easy for people to mistag things in batch. In that case, I'd argue that it similarly also makes it easier for people to fix things in batch, and should only be available for folks with high enough privileges that we should trust them anyway.


How to get column values in one comma separated values

I have a table which contains rows like below  ASETTYPEID  ASETTYPE 1           SYSTEM 2           PRINTER 3           PROJECTOR 4           SCANNER 5           AUDIO VISUAL AIDS 6           TAB 7           LAPTOPS 8           ALL IN ONE PC 9           OTHERS   I need a select query and inserting a comma separated values in new table which results following format  ASETTYPEID  ASETTYPE 1,2,3,4,5,7,8,9 SYSTEM,PRINTER,PROJECTOR,SCANNER,AUDIO VISUAL              AIDS,TAB,LAPTOPS,ALL IN ONE PC,OTHERS 1,3,5,8        SYSTEM,PRINTER,PROJECTOR


The dictionary definition is     ten times as great or as much   I believe that this is a misnomer. The word seems to describe a process of folding something ten times; for example, a piece of paper. If you fold a piece of paper ten times you will get 210 or 1024 different rectangles.   I don't understand how the definition of this word came to be and how is it different from the phrase ten times?


I want to add an string to a LPTSTR.  The code is:  hSourceFile = CreateFile(     pszSourceFile,     FILE_READ_DATA,     FILE_SHARE_READ,     NULL,     OPEN_EXISTING,     FILE_ATTRIBUTE_NORMAL,     NULL); if (INVALID_HANDLE_VALUE != hSourceFile) {     _tprintf(         TEXT("The source plaintext file, %s, is open. \n"),         pszSourceFile); }   The pszSourceFile is a type of LPTSTR, but i want to add some extra text.  Like (not working)     pszSourceFile + ".txt"   What is the best way to do this?


How can I set sleep mode in ubuntu18.04 LTS and what is the short cut key to do so?

as a new user in ubuntu I cannot find the sleep mode in my ubuntu 18.04 so please tell me how can I do it!!!!!


Replacing backslashes with forward slash within double quotes

I have some C source code which was originally developed on Windows. Now I want to work on it in Linux. There are tons of include directives that should be changed to Linux format, e.g:  #include "..\includes\common.h"   I am looking for a command-line to go through all .h and .c files, find the include directives and replace any backslash with a forward slash.


When I make any data transfer process (from computer to usb), after a couple of seconds file transfer process freezes. It be normal after a few minutes later but again freezes. If there would no problem, copy process will be fast. Unlikely my hard-disk works without any problem. Also Flash-disk hasn't got any problem. -I disgust to say that- USB works fine in other OSes.  Note: I am using 3.0 port and 3.0 USB-Driver. I have no 2.0 port on my laptop.


Does $x_0^4+x_1^4+x_2^4+x_3^4-ax_1x_2x_3x_4$ really define a surface?

I'm working through Shafarevich's Basic Algebraic Geometry book and in one of the exercises (number II.1.15 in my edition), he asks "for what values of $a$ does the surface $x_0^4+x_1^4+x_2^4+x_3^4-ax_1x_2x_3x_4=0$ have singular points?". From the definitions I'm working with, a surface is variety of dimension 2. (Note that Shafarevich's definition of a variety does not assume irreducibility.) If $X=V(F)\subseteq \mathbb P^4$, where $F$ is the polynomial above, why does $X$ have dimension 2? I feel like this is just not true: for example, if $a=0$ then $F$ is irreducible, so $X$ is an irreducible hypersurface, and therefore $X$ should have codimension 1 in $\mathbb P^4$ by Theorem 6.1.2 in Shafarevich ("every irreducible component of a hypersurface in $\mathbb P^n$ has codimension 1). Is Shafarevich just abusing the term "surface" here or am I making some mistake?


Somewhere I found the definition of expectation of random variable as $$E[X]=\int_{0}^{\infty}(1-F(x))\,dx-\int_{-\infty}^0F(x)\,dx$$  But the definition I know is $$E[X]=\int_{-\infty}^{\infty}xf(x)\,dx$$     My Question is  why $$\int_{-\infty}^{\infty}xf(x)\,dx=\int_{0}^{\infty}(1-F(x))\,dx-\int_{-\infty}^0F(x)\,dx$$


I have several hundred measurements. Now, I am considering utilizing some kind of software to correlate every measure with every measure. This means that there are thousands of correlations. Among these there should (statistically) be a high correlation, even if the data is completely random (each measure has only about 100 datapoints).  When I find a correlation, how do I include the information about how hard I looked for a correlation, into it?   I am not at a high level in statistics, so please bear with me.


in my mariadb i have replication, i tried to change the location of the binlogs by changing the configuration file as so: log-bin = /new/path/mysql-bin I also tried to change the index location as so: log_bin_index = /new/path/mysql-bin.index but every time when I restart I see that the location of the binlog files is /var/lib/mysql... i tried to check with mysqld --verbos --help | grep bin and I saw that the lob-bin parameter is mysql-bin and not what I wrote in the cnf... how to I make the MySQL to take the value of the log-bin from the cnf file? this is the cnf file of the MySQL for sure...


Do I run any risk in buying Xbox One games pre-owned?

Is it okay to buy preowned games (from stores such as JB Hifi in Australia)? Will the games run well? I am thinking about picking up Destiny 2 its $24 (preowned) the normal games $73 (not preowned) but I'm a bit scared that it wont be good. I thought that I should check with you guys first.


how do i redirect output from tailf & grep to a file

All I wanted is to grep for specific lines in an ongoing log and re-direct it to some file..  tailf log | grep "some words"   Now, I want the above command output to get re-directed to some file in on-going basis....  I tried,  tailf log | grep "some words" >> file   But that doesn't seem to work. What am I missing?


UK visit visa refused for alleged lack of funds. How can I remedy the situation in the future?

I applied for UK visit visa on the 23rd of Oct. I got the refusal letter today and I am shocked to see the ECO take an unbelievably strict stance on my application, rejecting my employment evidence, rejecting the affidavit signed by my sponsor and completely ignoring the bank statements of my sponsor (father). I attached my father's salary certificate, evidence of his employment, his bank statements and an affidavit signed by him stating that he would sponsor my trip. The ECO also stated I had no ties to my country when I had specifically mentioned in my cover letter that I am the only daughter of my parents and I live with my mother, while my father lives abroad. I had attached my bank statements only as proof that I worked and that I had access to amounts other than what my father was providing me with. I am at a loss as to what to do. Any help would be appreciated. EDIT: Rejection was from the Abu Dhabi consulate.


As it stands now, I'm a Java and C# developer. The more and more I look at Ruby on Rails, the more I really want to learn it.    What have you found to be the best route to learn RoR?  Would it be easier to develop on Windows, or should I just run a virtual machine with Linux?    Is there an IDE that can match the robustness of Visual Studio?  Any programs to develop that give a good overhead of what to do? Any good books?    Seriously, any tips/tricks/rants would be awesome.


Is there C language documentation on Linux?

Is there a package on Debian or some other Linux media that provides documentation for the C language? I mean in particular man pages. Eg. so that I can check docs for typedef or other basics (and possibly advanced concepts).


Travelling to Macedonia with German Resident Permit

Me and my wife traveling to Macedonia next week. I am an Indian, holding a Permanent Resident Permit in Germany but my wife still has a one year resident permit. Does she need to apply for visa?


Recently I changed my operating system to Ubuntu 16.04. Before I had Windows 10 and used Western Digital SmartWare to make backups on an external drive from my WD hard drive. Now Ubuntu recognizes the external drive but intended to do backups with some software instead of manually transfer to the external drive. Is there any Ubuntu application to replace  WD SmartWare? Thank you.


Recently I saw a lot of marketing clips built like .  Mostly I'm talking about the words that jumps and become vertical/horizontal etc. (I'm not talking about the pictures, only the words)  I thought that it's probably complicated, but I saw it a lot so I thought perhaps there is some easy tool for that.  Am I right?  Thanks a lot!


My question was incorrectly marked as duplicate

I was told by the support  team that I should post a support question here if I "feel" my question was incorrectly marked as duplicate.   Here's the question:   Can someone take a look at it and see what they can do?


Recently I read about Denial of Service attack on Amazon & PayPal. I am curious that how this is performed. These big companies must have huge servers, so DOS would require billions of bots to access it.   So my questions are   How DDOS attack performed at this level? How to know beforehand that this is attack is happening? How to prevent this (how to distinguish from bot vs user, apart from common captcha way that is done)


Logistical regression - very few 1's in response vector "Y"

I am trying to develop a model for prediction of retention. The problem is that the retention is very rare - aprox. 0.2 %. So far I have been using logistical regression. Without much success however. For example, in the interval of predicted probability above 70 % I am getting 4 true retention clients and 157 wrongly predicted retentions.  I have spent quite a lot of time deciding what covariates to choose and what transformation to apply. I don't think I can improve that.   The question could be formulated also as the following. How to use (or what to use instead of) logistical regression when the response vector "Y" contains very few 1's (0.2 % in my case)?  If you think you should know what data I have, tell me and I will provide you with this information. But I don't think it's important. Anyway, I have enough data. About 1.5 mil rows, so about 3000 of 1's.


I'm struggling to prove that a (dot product) b < |a| |b| . I have to prove this algebraically and I can't use the equation of dot product involving the cosine.  I wrote each side in terms of the vector components and then squared each side.  Any help would be amazing!  Thanks


I'm looking for a Drupal Commerce Shipping in-cart estimate

I am working on a Drupal Commerce site, we are trying to add a feature in the cart that would allow the user to input their zip/postal code or country and receive an estimate on shipping, before proceeding through the checkout. I'm new to Drupal Commerce, so maybe this functionality already exists?   a shove in the right direction would be greatly appreciated. Thanks.


How is (p ∧ q ∧ ¬r) ∨ (p ∧ ¬q ∧ ¬r) ≡ (p ∧ ¬r) ∨ (¬q ∧ q)? Is it really distributive property?

The distributive property is very simple and it says p ∧ ( q ∨ r ) ≡ ( p ∧ q ) ∨ ( p ∧ r ), but here how is (p ∧ q ∧ ¬r) ∨ (p ∧ ¬q ∧ ¬r) ≡ (p ∧ ¬r) ∨ (¬q ∧ q) which someone told me is according to the distributive property, but I didn't get it.    In simple words, can someone please tell me in parallel & exactly how this proposition (p ∧ q ∧ ¬r) ∨ (p ∧ ¬q ∧ ¬r) ≡ (p ∧ ¬r) ∨ (¬q ∧ q) matches the distributive property p ∧ ( q ∨ r ) ≡ ( p ∧ q ) ∨ ( p ∧ r )? What each variable in distributive property means in that proposition. Million Thanks!


Has Promotion and Relegation been used in North American Major Leagues

There are 4 major sports leagues in North America: NFL, MLB, NBA, and NHL. The teams, also known as the franchises, in the league don't change. The only exceptions are when a team moves to a different city (still the same franchise) and when the league expands by adding more teams.   This is very different to European football leagues where promotion and relegation is practiced. A small number of teams that finish last in a season are relegated to the lower league, and the top teams of the lower league are promoted to replace them.  Has there been a time where the North American major leagues practiced promotion and relegation?


What is the reasons of water causing electronics or electrical appliances "broken"

We always told to keep off the electronic devices from water with no explicit reasons. Or remedies to fix the thing when accidents happened.  So, what is the physical reasons behind that submerged electronic or electrial devices get damaged?  For example speaker, motor(high-voltage). Smart phone, headphone(low voltage). Is the effect same?  Generally, is it because extremely low resistivity of water allows abnormal high current flow instead of designed current and eventually "burns" the electronic components or wires. Then there's an open circuit which disable some parts of the circuit or the whole circuit.  Apart from the problems I mentioned ,is there any chance water directly change the physical behavior of some components? If it is the cause how?  Is only my pure guess. Please point out my mistakes if they exist.


Simple question, but I'm not sure where to look and google doesn't respond to periods and slashes.  I'm just trying to count the # of files & directories in the current directory (not including subfolders/files) and was trying to differentiate ls -1 | wc -l and ls | wc -l since they seem identical.  A site I was looking at said "Keep in mind that this is also counting the ./ and ../ directories." regarding the one with ls -1, and I'm not sure if that means it includes the directories before or something (which I don't want), but it didn't seem to do that from testing.  Could someone confirm which one of those would be most adequate for counting # of files & directories in the current directory only (not sub) and what they mean by ./ and ../ directories?


What is the fallacy that privileges one person over another?

I see this a lot, someone in a category of people attempts to shut down anyone with an opinion that is not from the same category. For example, people without children weighing in on parenting; the parent may say something like "well, since you don't have kids and I do, my position is of more validity than yours."  Another example: a drug user (of some kind) telling someone who has never done drugs and does not care to, "until you tried it, you have no right to judge me."  People frequently try to limit the consideration on opinions to those in their same group, while it is perfectly reasonable that the non-drug user, especially if they are a chemist or well read on the subject, may have an equally valid opinion, or even more valid. In fact some might even say that someone NOT in the category has a better chance of being objective and seeing the forest for the trees.  So what is the fallacy of trying to shut down opinions when the source of the opinion is not someone who has personally had the experience under discussion?


How can I use my custom sqlite database with android app?

I have a static sqlite db. How could I include it into the app? Where should i put it in my project folder? How should I access it from DatabaseHandler?  Everything I found on the web was using sqlite only for creating a new db and storing user or temp data in it, but not using existing db with predefined data.   does not tell how to do that.


Passing arguments from a file to a bash script

I've got this situation:  ./ ./myscript.sh ./arguments.txt ./test.sh   Inside myscript.sh, I have to run the file test.sh, passing to it the arguments contained inside arguments.txt.  myscript.sh is:  arguments=$(cat arguments.txt) source test.sh $arguments   This works well if if arguments.txt contains at most one argument:  firstargument    The substitution is:  ++ source test.sh 'firstargument'   But the problem is with two or more arguments. It does this:  ++ source test.sh 'firstargument secondargument'   Also, I don't know in advance the number of arguments inside arguments.txt. There can be zero or more.


Need help in remove a repository and uninstall its program

I just added a repository and installed a program by using the following commands in terminal:  $ sudo add-apt-repository ppa:indicator-brightness/ppa $ sudo apt-get update && sudo apt-get install indicator-brightness   But then I realized that I don't need this as I have certain shortcuts on my keyboard to control screen brightness. So I want to undo these actions. Please help me in removing the repository and uninstalling the program.  P.S. I am new to Ubuntu. So a general method of removing any repository and uninstalling a program will be helpful. Thanks in advance...


When crafting a magic item, do I need to be able to cast spells at the same level as the requirements?

This may be common knowledge but it seems unclear to me.  When crafting a magic item, do I need to be able to cast spells at the same level as the requirements, or is that a requirement I can disregard in exchange for a +5 to the crafting check?  For example I am level 4 and wish to craft a bag of holding with a caster level check of 9 - which requires me to be able to cast the spell secret chest, a level 5 spell, which I won't unlock until level 9. Am I able to craft the item in question early, or do I have to wait?


I use the -h flag to make ls report in M,K,G etc  Can I set the -h flag to be the defaul for ls so I don't need to write it every time ?


How to get String array from String with unknown punctuation/ word dividers?

I get random Strings as input and all I want is to get the ENGLISH words for keyword search app apart from the punctuation marks () or word dividers ( say, white space, multi-white spaces ). This issue is that I won't know the basis for spiting the Strings. For example, if I get a String "FLORENCE - FIRE/TOMORROW", I would like to get String array as {"FLORENCE", "FIRE", "TOMORROW" }. Besides, sometimes it also happen that a single word will come, say, "MELBOURNE" and just need to get the array as {"MELBOURNE"}. Capital letters has nothing to do with the question.  How can I do this ?


I flagged a post but don't have citizen patrol badge?

Consider:    Per the above I recently flagged a post on Stack Overflow, and yet I  the .  Is there something else I have to do to get that badge?


Is the Lebesgue measure of any open ball in Euclidean space zero?

Let $B(x,r)$ be an open ball in $\mathbb R^n$ , then is the Lebesgue measure of the boundary of $B(x,r)$ zero ?


How I can capture photos like SLR pictures using my iPhone?

Using my iPhone I am taking pictures of nature, heritage buildings and wildlife animals and things. Do anyone know how I can improve the picture quality of iPhone so I got a picture similar to clicked by SLR?


If you have:  $N\equiv 2\mod 3 ,\: N\equiv 3 \mod 4 , \: N\equiv 4 \mod 5 $  What is N?


Why was theory of cosmic aether discarded?

Can cosmic aether be considered analogous to higgs field? Higgs field remains (almost) consistent throughout.


Give some kind of warning before Community Wiki takes effect?

I  on Stack Overflow yesterday that's currently my most popular answer so far. Today I noticed that it had become part of the "community wiki" because I edited my answer over 10 times. I hadn't heard of the community wiki before and now I'm disappointed to learn that I'll no longer be getting any reputation from my answer.  I think it would be nice to get some kind of warning before this takes effect, at the very least the first time this happens so newer users are aware. I had no intention of making my question part of the community wiki.


What is the experimental evidence that light is an electromagnetic wave?

Do we have any experimental evidence to confirm that light is an electromagnetic wave? Or is it confirmed simply by Maxwell's equations showing a similarity in speed?


There cannot exist any non constant continuous function $f: \mathbb{R} \rightarrow \mathbb{Q}$

Prove that there cannot exist any non constant continuous function $f: \mathbb{R} \rightarrow \mathbb{Q}$.  If there exist such an continuous function , it will map interval to a connected subset  of $\mathbb{Q}$. I am unable to imagine connected subset of $\mathbb{Q}$ to for proving the above statement. Can anyone help me in this? Thanks.


the derivative of tangential vector is normal vector - can anyone please prove this?

I can see that, the derivative of tangential vector is normal vector i.e the second derivative is normal to the first derivative. but I couldn't derive a proof for it. can anyone please prove this? thanks in advance


Where can I find a list of all of the QA sites, and the topics they cover?

I am looking for the stuff above, so I can make non-duplicate proposals on area 51.


In the first episode of The Flash (2014), Barry's struck by lightning, some chemicals fall on him, and he enters a coma for 9 months.  This happens when the S.T.A.R. Labs particle accelerator is turned on for the first time.  9 months later, he wakes up and has powers.  He then starts fighting crime, especially other meta-humans who were created by the same particle accelerator accident.  However, this is all 9 months after the accident, where were the other meta-humans during those 9 months?  The S.T.A.R. Labs people make it sound like they hadn't seen any meta-humans active during the 9 months Barry was out.  Did all people granted powers by the particle accelerator accident also fall into comas?  Why weren't they active heroes/villains during the 9 month gap?


How can I show only unnamed faces in Mac photos

I was trying to show photos with unnamed faces so that I can annotate them. There is  but it requires you to mark all the pictures with no faces at all. Any suggestions?


Problem with citation style in biblatex and bullet lists beamer

Having updated to TeXLive 2020, I’m experiencing a really strange problem with biblatex and beamer: As soon as a citation style is specified in the biblatex options, text alignment with e.g. bullet lists, etc. is broken. Here is minimal working example: \documentclass{beamer}  \usepackage[     style=authoryear, % When a specific style is selected, bullet lists are not aligned     backend=biber,         natbib=true] {biblatex}   \begin{document}  \begin{frame}  \begin{itemize} \item This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. \item This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. \item This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. This is a text. \end{itemize}  \end{frame}  \end{document}


How to Create ISO Image of installed Ubuntu 16.10

I've recently updated my ubuntu to 16.10 from 16.04 . I've ISO image of Ubuntu 16.04 (ubuntu-16.04-desktop-amd64.iso) but I donot have iso image of Ubuntu 16.10. How can create it so that I can share Ubuntu 16.10 with my friends and also as a backup in case I need to install it again in the future.  Thank You in advance...!!


Can my son play Minecraft with his XBOX 360 friends with his XBOX One?

Since MS has introduced backward compatibility can my son connect with minecraft games being played on his friend's 360 with his XBOX one?  I purchased the gold membership solely for this purpose but my son gets a "Connection Lost" notice when attempting to join these games.  Before I chase my tail trying to resolve this, I want to make sure that what we are trying to do is even possible.  Thx


How to prevent browsers from caching an image?

I have one image on my website that I don't want cached. The image is used as a background in CSS so I can not change it's name dynamically. Any ideas ?


I have a dell laptop that recently "died" (It would get the blue screen of death upon starting) and the hard drive would make a weird cyclic clicking noises.  I wanted to see if I could use some tools on my linux machine to recover the data, so I plugged it into there.  If I run "fdisk" I get:  Disk /dev/sdb: 20.0 GB, 20003880960 bytes 64 heads, 32 sectors/track, 19077 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk identifier: 0x64651a0a  Disk /dev/sdb doesn't contain a valid partition table   Fine, the partition table is messed up.  However if I run "testdisk" in attempt to fix the table, it freezes at this point, making the same cyclical clicking noises:  Disk /dev/sdb - 20 GB / 18 GiB - CHS 19078 64 32 Analyse cylinder   158/19077: 00%   I don't really care about the hard drive working again, and just the data, so I ran "gpart" to figure out where the partitions used to be.  I got this:  dev(/dev/sdb) mss(512) chs(19077/64/32)(LBA) #s(39069696) size(19077mb)  * Warning: strange partition table magic 0x2A55. Primary partition(1)    type: 222(0xDE)(UNKNOWN)    size: 15mb #s(31429) s(63-31491)    chs:  (0/1/1)-(3/126/63)d (0/1/32)-(15/24/4)r    hex:  00 01 01 00 DE 7E 3F 03 3F 00 00 00 C5 7A 00 00  Primary partition(2)    type: 007(0x07)(OS/2 HPFS, NTFS, QNX or Advanced UNIX) (BOOT)    size: 19021mb #s(38956987) s(31492-38988478)    chs:  (4/0/1)-(895/126/63)d (15/24/5)-(19037/21/31)r    hex:  80 00 01 04 07 7E FF 7F 04 7B 00 00 BB 6F 52 02   So I tried to mount just to the old NTFS partition, but got an error:  sudo mount -o loop,ro,offset=16123904 -t ntfs /dev/sdb /mnt/usb NTFS signature is missing.   Ugh.  Okay.  But then I tried to get a raw data dump by running  dd if=/dev/sdb of=/home/erik/brokenhd skip=31492 count=38956987    But the file got up to 59885568 bytes, and made the same cyclical clicking noises.  Obviously there is a bad sector, but I don't know what to do about it!  The data is still there... if I view that 57MB file in textpad... I can see raw data from files.  How can I get my data back?  Thanks for any suggestions,  Solution:  I was able to recover about 90% of my data:   Froze harddrive in freezer Used Ddrescue to make a copy of the drive Since Ddrescue wasn't able to get enough of my drive to use testdisk to recover my partitions/file system, I ended up using photorec to recover most of my files


How best to determine if an argument is not sent to the JavaScript function

I have now seen 2 methods for determining if an argument has been passed to a JavaScript function. I'm wondering if one method is better than the other or if one is just bad to use?   function Test(argument1, argument2) {       if (Test.arguments.length == 1) argument2 = 'blah';        alert(argument2);  }   Test('test');   Or   function Test(argument1, argument2) {       argument2 = argument2 || 'blah';        alert(argument2);  }   Test('test');   As far as I can tell, they both result in the same thing, but I've only used the first one before in production.  Another Option as mentioned by :  function Test(argument1, argument2) {     if(argument2 === null) {         argument2 = 'blah';     }      alert(argument2); }   As per Juan's comment, it would be better to change Tom's suggestion to:  function Test(argument1, argument2) {     if(argument2 === undefined) {         argument2 = 'blah';     }      alert(argument2); }


Problem  Let $M_{n}(\mathbb{R})$ is a vector space of square matrix with size $n \times n$. Assume $V$ is a subspace of $M_{n}(\mathbb{R})$ such, that all its elements have zero determinant. What is the maximum dimension of space $V$?  Question  Can somebody give me a hint on how to tackle the problem above? Thanks.


Unable to locate package / apt-get command not found

Noob here, I've been researching on how to fix these problems for days now and I can't find exactly what I need to know, I need a walkthrough.  I'm trying to install Steam and here's what I get:  E: unable to locate package libgl1-mesa-dri:i386 E: Unable to locate package libgl1-mesa-glx:i386 E: Unable to locate package libc6:i386   Press return to continue:  After that, this pops up:`  You are missing the following 32-bit libraries, and Steam may not run: libc.so.6   So after doing lots of research I found I needed to download these packages or something, so i tried to, sudo apt-get , I got back that sudo apt-get command not found. So I've been researching and researching and I jut can't figure out what exactly I should do. Some people have gone into some details about different things to do but I'm completely lost.  If there's any information I should provide, let me know, I'm on chromebook running crouton, xfce4.


Completely defragmenting a FAT32 filesystem

Is there any Linux tool that allows defragmenting a FAT32 filesystem not on a best effort basis, but so that all files are guaranteed to be stored contiguously with no exceptions? Possibly writing the filesystem image in one go like mkisofs?  Background: I store songs on an SD card. Apparently, my car radio can't handle fragmented files at all and will stop playing after the first extent (typically a few seconds into the song). I verified this by running the filefrag util - only the files that occupy exactly one extent play completely.


Having problems seeing my wifi Ubuntu Gnome 16.04

Hello I having having issues seeing my wifi I bought my computer built from newegg and recently switched to Ubuntu it picks up my wired connection fine but doesn't even give my any options for my wifi dongle  would be grateful for some help if possible and thank you I have been trying to get it to work for days  I am not sure what type of device it is is says ac600 on the dongle which i look up and says it could be netgear or edimax  "lshw -C" *-network                       description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: enp3s0        version: 06        serial: 74:d4:35:b8:50:ac        size: 1Gbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168e-3_0.0.4 03/27/12 ip=192.168.0.2 latency=0 link=yes multicast=yes port=MII speed=1Gbit/s        resources: irq:28 ioport:ce00(size=256) memory:fdfff000-fdffffff memory:fdff8000-fdffbfff   "lsusb" Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 005: ID 0bda:0811 Realtek Semiconductor Corp.  Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 154b:fa05 PNY Flash Drive Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 002: ID 046d:c52b Logitech, Inc. Unifying Receiver Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 003: ID 093a:2521 Pixart Imaging, Inc. Optical Mouse Bus 003 Device 002: ID 1130:1620 Tenx Technology, Inc.  Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 009 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 008 Device 004: ID a012:b012   Bus 008 Device 003: ID 046d:0829 Logitech, Inc.  Bus 008 Device 002: ID 2109:3431 VIA Labs, Inc. Hub Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  "ifconfig" enp3s0    Link encap:Ethernet  HWaddr 74:d4:35:b8:50:ac             inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0           inet6 addr: ::355f:6ae4:a42a:7481/64 Scope:Global           inet6 addr: fe80::a92f:a3c8:1f6b:6322/64 Scope:Link           inet6 addr: ::cc28:f3c5:70b1:420f/64 Scope:Global           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:61536 errors:0 dropped:0 overruns:0 frame:0           TX packets:43687 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:55328319 (55.3 MB)  TX bytes:5679616 (5.6 MB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:5312 errors:0 dropped:0 overruns:0 frame:0           TX packets:5312 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1            RX bytes:536533 (536.5 KB)  TX bytes:536533 (536.5 KB)


Existence of orthogonal coordinates on a Riemannian manifold

This is probably a very naive question, but so far I could not find an answer:  Let $(M,g)$ be a Riemannian manifold. Can we always find "orthogonal coordinates" locally?  More precisely, I am asking if for every $p \in M$ there exists a neighbourhood $U$ and a diffeomorphism $\phi:\mathbb{R}^n \to U$, such that $g_{ij}=g(d\phi(e_i),d\phi(e_j))=0$ for $i \neq j$.  Clarification: Note that I want $g_{ij}=0$ on all $U$, not just at $p$. Also, I allow $g_{ii} \neq g_{jj}$ for $i \neq j$ (the special case where $g_{ii}$ is independent of $i$ is called isothermal coordinates-and corresponds to conformal flatness of $U$).  Of course, this is  weaker than requiring $M$ to be conformally flat, since a (linear) map which maps an orthogonal basis to an orthogonal basis does not need to be conformal.


Checking linux Kernel for RT-Preempt Patch

How to know whether a particular patch is applied to the kernel? Especially RT-Preempt Patch.


Need two excel windows side by side, on different monitors

Excel opens all workbooks in the same instance and as a result you cannot place them on different monitors (or side by side). You can extend one window across both screens and then split windows from within excel, but that is a horrible solution. This also merges the undo functionality, and you can no longer undo per document, but you have to undo all actions from all open documents sequentially.   Honestly I don't know what they were thinking and made this the default behavior.


Difference between process in background and daemon

What is technically the difference of a process that started in foreground and was manually put into background and a daemon? Do they have different properties?


What is the difference between RDIMM vs UDIMM

I don't quite understand the differences between the two besides the obvious price differences.  What does each offer over the other?


Let $V$ be a vector space over $\Bbb C$, $p$ is a polynomial over $\Bbb C$ and $a\in \Bbb C$ .     Prove that $a$ is an eigen value of $p(T)$ where $T$ is   a linear operator on $V$ $\iff$  $a=p(\lambda$ ) for some eigen value $\lambda$ of $T$.   Atempt:$a$ is an eigen value of $p(T)$ where $p(z)=(z-\lambda_1)(z-\lambda_2)\ldots (z-\lambda_n)$ say.  $\implies p(T)v=av\implies (z-\lambda_1)(z-\lambda_2)\ldots (z-\lambda_n)(v)=av$  But how to show that $a=p(\lambda)$.  Please help.


WiFi not working on laptop running Ubuntu 16.04

I'm having some issues with my laptop's onboard Wi-Fi running under Ubuntu 16.04 LTS. Previously it ran fine, but now it's having some issues and I'm a bit lost. The WiFi card seems to be unable to be used under the Linux environment, but is fully functional under Windows. I've added some screenshots at the end and would be grateful for any help.  The wireless card in question is a Broadcom BCM4352.  Steps taken so far:   Turning laptop off and on Disabling and enabling the Wi-Fi card under the Additional Drivers tab Testing connection with USB Wi-Fi dongle (Worked successfully) Testing internal Wi-Fi card under Windows (Worked successfully)   Here are some screenshots showing where I'm at:   I'd be very grateful for any help


Write $\frac {1}{1+z^2}$ as a power series centered at $z_0=1$

I'm trying to solve a question where I need to write $\frac {1}{1+z^2} $ as a power series centered at $z_0=1$  I'm not allowed to use taylor expansion. So my first thought was to rewrite the function in a form where I can apply the basic identity:  $$ \frac{1}{1-x} = \sum_{n=0}^\infty x^n $$  So let's rewrite the original function $f(z) = \frac {1}{1+z^2} $ and use above identity:  $$\frac {1}{1+z^2} = \frac {1}{1-(-z^2)} $$ But observe that I need to center it at $z_0=1$ so I rewrote it to:  $$\frac {1}{1-(-z^2)}=\frac {1}{2z-(-(z-1)^2)} $$  I can factor out $\frac {1}{2z}$ and use the basic identity to get : $$\frac {1}{2z}\frac {1}{1-\frac{(z-1)^2}{2z}} = \frac {1}{2z}\sum_{n=0}^\infty \left(\frac{-(z-1)^2}{2z}\right)^n =\frac {1}{2z}\sum_{n=0}^\infty \frac{(-1)^n(z-1)^{2n}}{(2z)^n} = \sum_{n=0}^\infty \frac{(-1)^n(z-1)^{2n}}{(2z)^{n+1}}$$  The problem is if I ask wolfram alpha: power series$ \frac{1}{1+z^2} $centered at z = 1 it will give me a different answer that doesn't match the sum I found.  Can anyone help me figure this one out? What am I doing wrong?


I very new to DSLR Photography. Now I'm in confusion that Sony alpha 58 or Cannon D600. both of them are nearly same cost. but I found that that for Sony there are less lens and accessories. but cannon have more lens and accessories are available.   I need camera that satisfy for a long period ( few Years )  Is sony alpha58 is pro than D600 in terms of Quality ? What are the pros and cons of Sony and Cannon.


command to create empty pages for all blank pages

Is there a simple command one can put in the preamble to treat all blank pages like empty pages (with no page number and no header)?


Site icons on stackexchange.com messed up again

I was searching for transcripts in a chatroom when I noticed this. The notifications in the FH circle have wrong icons. They're actually SO, MSE and Information Security, but the icon looks like Meta Cross Validated, Cross Validated and SF Meta.  Page refreshed, browser cache cleared, still same.  They look rather OK on any Q&A sites.


I'm using Blender Internal due to its object outline effect, and am trying to use a 1800 degree environment map for the reflections (not lighting). I'm trying what seems like should work, and am failing.   Most of the tutorials for this are in Cycles, which is handled easily, can anyone tell me how to do it in Blender 2.6+ Internal?  EDITS:   So my question is really just "How do I apply an environment map in Blender Internal?"; the perspective of the environment map is trivial to the question.


Accessing values of list by different indices

Hy, I am fairly new to python. I am stuck with problem which is below explained, We have two lists say A = [0,3,4,6,7]   #indices B = [1.2,5,1.3,0.5,7,0.6,0.43,5,3,6,4,1,5,7,4]   #values  where list A elements are actually indices of list B which I want to access and store in new list say C. so my list C should be C = [1.2,0.5,7,0.43 ,5]  And what if I have array instead of list? Thank you for your time.....


What does it mean if a regression model is not significant, but individual variables are?

With a logistic regression model of 3 independent variables, one of the variables is significant while the other two are not. The significant variable is my variable of interest while the other two are control variables (age and gender). The model is not significant either.  The aim is to answer whether or not my variable of interest increases the odds of outcome y independent of age and gender.  What does this mean for the interpretation of the model?


Can I convert a road frame to a mountain bike?

Some years ago, I picked up a Cannondale R3000 and moved all the components to my current bike as an exercise in bike building, never repeated (in fairness, the Cannondale fit me a little better but my beautiful 1998 Klein has such a sweet, sweet paint job...). I've been putting the frame on Craigslist off and on for a few years, but no one seems to want to pay what I'm asking. Regardless, my current MTB is an all-mountain beast that I bought before I knew my riding style, and I'm thinking of picking up a more cross-country steed.  Times being tight and all, is there anything preventing me from building out the Cannondale road frame as a mountain bike? Obvious [potential] answers (e.g., tire clearance) are good, more involved ones (e.g., frame robustness) are too. I'm trying to get a picture of what might lie ahead in this venture.


I just replaced my phone from water damage and forgot my Gmail and Facebook passwords.  How do I retrieve them?


How to express a symmetric polynomial in terms of elementary symmetric polynomials

Can someone explain how to express a polynomial in terms of elementary symmetric polynomial. (where there is possible) ? For example if i have the polynomials:  $t_1^3+t_2^3$  $t_1t_2^2+t_2t_3^2+t_3t_1^2$  $t_1^2+t_2^2+t_3^3$


Why can't I install this downloaded APK?

I downloaded an APK and when I try to install it, the "install" button is completely unresponsive.  I have gone into the settings and enabled "Unknown sources" in the security section.  Is there something else I need to do?  I'm using a Galaxy S5 with Kitkat 4.4.2, unrooted.


Software center doesn't open when i click its icon!

When i click the software center icon it blinks but doesnot open. Can anybody help me with this problem?


It has been pointed out to me that a female wanting to visit a male friend in Canada has to have at least $3,600.00 Canadian funds for a maximum visit of 90 days, plus they have to get a visitors visa from the federal migration service and now the bank and bailiff department can stop a person from leaving or getting their visa if they have a mortgage. what is happening to our world. Could anyone knowing that could clarify this I would appreciate. Thanks , Ray.


Why do ETFs that replicate the S&P 500 vary significantly in price?

From :     Exchange-traded funds (ETFs) that replicate the performance of the index are issued by The Vanguard Group (), iShares (), and State Street Corporation ().   If I look up the quote for each ETF, I get these prices:   VOO at $210.74 IVV at $231.16 SPY at $228.80   Why aren't prices closer to each other, if they all replicate the S&P 500 index? Is it because each ETF comes packaged with various non-S&P 500 stocks inside?


Is there any other episodes of Naruto after Episode 220 before Naruto Shippuden Episode 1?

I watched all Naruto episodes on Netflix. I want to know if episode 220 leads right into Naruto Shippuden. I only watched a few minutes of episode 1 in Shippuden, but just watching it, I feel like I'm missing more episodes that lead into Shippuden.  Is there anymore Naruto episodes after Episode 220? Like, do they show Pervy Sage actually training Naruto or does his path of training leads into Shippuden?


How can electrons spin if they have no volume?

My understanding of electrons is that they have no volume, eg they are point particles. If this is true, how can a point spin?


I have question on evaluating forecasting software with expert systems:  Are there any objective assessment (not from the manufacturer) on expert forecasting software in the literature?   I found two references, but both are old:   Principles of Forecasting (2001) Armstrong Forecasting methods and applications (1998) Makridakis et al.    and  seem to be two expert systems in the market, are there any comparisons made on these two software?  Are there any other software that have expert systems?


Java - For Loop stops after one iteration

I've been writing a simple JFrame program to solve basic math equations, the program takes 5 values, up to two of which may be null, identifies the correct equation and calculates the null values. This section of code below takes the 5 values in a hashmap, identified by a string (V,U,S,A,T), identifies which ones are null and adds them to a seperate array  (nullvalues), which is then iterated through (nullValueLoop) to identify a suitable equation and solve the unknown.  The problem arises in nullValueLoop, it only appears to iterate once, stopping abruptly after the first iteration.   I've added a lot of system.out's while trying to debug this, and have included the console output to hopefully show whats going on. The exception called is from another class (as the program continues) attempting to call the second null value and finding it to be null.  Hopefully i've explained this well, any help is much appreciated.      public void calculate() {      // Stores the keys to reference the null values in HashMap<Double> values;     ArrayList<String> nullvalues = new ArrayList<String>();       for(String tempKey : values.keySet()){         if(values.get(tempKey)==null){             nullvalues.add(tempKey);             System.out.print("Found null value " + tempKey + ", adding to array. \n");         }     }      System.out.print("Beginning loop of nullvalues, of size " + nullvalues.size() + "\n");      nullValueLoop:     for(String nullvalue : nullvalues){            System.out.print("Starting outerloop, iterating nullvalue " + nullvalue + "\n");          EquationLoop:         for(Equation e : registeredEquations){              // Flag to keep ` of if we have any unknowns yet             boolean foundUnknown = false;              // Iterate through the values required             // If the loop does not exit, the equation only requires one of our null values and the program continues.             for(String s : e.getRequiredChars()){                  // If we have a null value and havent yet had one, all is good                 if(nullvalues.contains(s) && foundUnknown == false){                     foundUnknown = true;                  // We have more than one null value, abort                 } else if(foundUnknown == true && nullvalues.contains(s)){                     continue EquationLoop;                 }             }               System.out.print("Using equation " + e.getIdentifier() + "\n");              System.out.print("Found suitable equation.\n");              Double returnValue = e.calculate(values, nullvalue);              System.out.print("Calculated return value.\n");              values.put(nullvalue, returnValue);              nullvalues.remove(nullvalue);              System.out.print("Added new value to values array\n");             System.out.print("Calculated value  " + nullvalue + " to " + values.get(nullvalue) + "\n");             break EquationLoop;         }         System.out.print("Ending outerloop iteration \n");     }     mainWindow.updateTextBoxes();  }   Console output:  Couldn't load value T | Assigning to null  Couldn't load value A | Assigning to null  Found null value T, adding to array.  Found null value A, adding to array.  Beginning loop of nullvalues, of size 2 Starting outerloop, iterating nullvalue T Using equation 3 Found suitable equation. Calculated return value. Added new value to values array Calculated value  T to 10.0 Ending outerloop iteration  Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at uk.co.ElliotPurvis.MainWindow.updateTextBoxes(MainWindow.java:143) at uk.co.ElliotPurvis.Main.calculate(Main.java:136) at uk.co.ElliotPurvis.MainWindow.actionPerformed(MainWindow.java:118) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) Process finished with exit code 0


What is the default value of LD_LIBRARY_PATH?

In my case, it seems as if LD_LIBRARY_PATH is set to the empty string. But all standard system tools still work fine, so I guess the dynamic linker checks for that case and uses some default for LD_LIBRARY_PATH in that case.  What is that default value? I guess it at least includes /usr/lib but what else? Is there any good systematic way in figuring out the standard locations where the dynamic linker would search?  This question is slightly different from what paths the dynamic linker will search in. Having a default value means, that it will use the value of LD_LIBRARY_PATH if given, or if not given, it will use the default value - which means, it will not use the default value if LD_LIBRARY_PATH is provided.


As I play the game, I notice that eventually tougher enemies show up. From what I've read, it sounds like this is based on elapsed time rather than "research checkpoints", but I haven't seen any specifics. What kind of time frames are we talking about for various enemy types to appear? Are there any fixed enemy events that happen after a certain number of days? Does difficulty level affect this?  I want to have an idea of when I can expect so that I can better plan my strategy.


I dropped my phone in the ocean never got it back .can I recover any photos or contacts from it if I have ISDN ESN meid info


Does Light (EM Signal) undergo accelration during reflection?

Since Average acceleration is defined as, Average acceleration over a period of time is the change in Velocity divided by the Duration of the Period.  Does Light (EM Wave) undergo acceleration during reflection from mirror or any other surface?


Restart a Windows service from the command line

Is there a way to restart a Windows service from the command prompt?


In the end of Miss Peregrine's Home for Peculiar Children we see Jake going to his grandfather's house. And he is alive even when he was killed in the very beginning of the movie.   Why was Abraham "Abe" Portman, the grandparent of Jake Portman alive when they destroyed Mr. Barron?   Does it mean that everyone killed by Mr. Barron returned to life or just the ones who lived in Miss Peregrine's loop?


As we delve into  literature, we get to identify other methods with neuromorphic topologies ("Neural-Network"-like architectures). And I'm not talking about the . Examples are given below.  Then, it makes me wonder: what is the definition of an artificial Neural Network? Its topology appears to cover everything.    Examples:  One of the first identifications we make is between PCA and a linear Autoencoder with tied-weights in the encoder and decoder and thresholded activations in the bottleneck layer.  Also, a common identification is done between linear models (logistic regression in special) and a Neural Network with no hidden layer and a single output layer. This identification opens several doors.  . ? ANN. Gaussian Process? ANN (with single hidden layer with infinite hidden units).  And so, just as easily, we can incorporate arbitrary regularized versions with specialized loss functions of these algorithms into a Neural Network framework.  But the more we dig, the more similarities appear. I just stumbled into , which makes the identification of a specific ANN architecture with decision trees, allowing these to be learned by ANN methods (such as Gradient Descent backpropagation). From this we can construct Random Forests and Gradient Boosted Decision Trees from solely Neural Network topologies.  If everything can be expressed as an Artificial Neural Network, what defines an Artificial Neural Network?


Including CJK seems to disable the effects of \bf and \it. For instance, the picture  is generated by the following code: \documentclass{article} \usepackage{CJK} \begin{document} One \bf{two} \it{three}. \end{document}  I am using macOS Big Sur 11.4 + TeX Live 2021 (with all packages updated to the latest versions via TeX Live Utility 1.49.) Commenting off the second line gets the following normal picture.


Am I right in thinking that black holes are not infinitely dense since they grow in size?

Something that is infinitely dense does not need to grow in size since they can pack an infinite amount of matter in a single point. So the fact that black holes grow in size means they are not infinitely dense right?


Image changing on same slide results in "image shifting"

To have text and images on the same slide, I use this kind of code:  \frametitle{My title} \begin{tabular}{l} \parbox{0.5\linewidth}{ \begin{itemize} \onslide<2->{\item Item 1} \onslide<3->{\item Item 2} \end{itemize}} \end{tabular} \begin{tabular}{c} \only<2>{\includegraphics[height=3cm]{Image1}} \only<3>{\includegraphics[height=3cm]{Image2}} \end{tabular}   I'm pretty happy with the output, except for this small detail: even if Image1 and Image2 are the same dimensions in pixels, Image2 is slightly shifted to the right compared to Image1. Any idea how to fix this ?


compiler error "undefined reference for a template function"

I'm a prof c# developper but I'm trying to write some code in C++ (for arduino purpose). When I compile my code I have this error message "undefined reference to `NEOPATTERNController<(unsigned char)3, (EOrder)66>::SetPattern(PatternEnum)'" this is my code: -cpp file #include <neopattern.h>  template<uint8_t DATA_PIN, EOrder RGB_ORDER > void NEOPATTERNController<DATA_PIN, RGB_ORDER>::SetPattern(PatternEnum pattern) { }  // No need to call this TemporaryFunction() function, // it's just to avoid link error. void TemporaryFunction () {     NEOPATTERNController<1, GRB> TempObj; }  -h file #ifndef __INC_NEOPATTERN_H #define __INC_NEOPATTERN_H  #include "FastLED.h"  // Pattern types supported:  typedef enum PatternEnum { NONE, RAINBOW_CYCLE, THEATER_CHASE, COLOR_WIPE, SCANNER, FADE, LIGHT, STROBE, NEWKITT };   template<uint8_t DATA_PIN, EOrder RGB_ORDER = GRB> class NEOPATTERNController : public WS2812Controller800Khz<DATA_PIN, RGB_ORDER> {  public: void SetPattern(PatternEnum pattern);      protected:  };  #endif   main code  ... NEOPATTERNController<DATA_PIN, GRB> patternController; patternController.SetPattern(PatternEnum::RAINBOW_CYCLE);  ... I hope somebody can help, thanks.


My table is not conforming to the IEEEtran caption table format

I have the following code which produces the first attached Table. But as you can see in the table, both the table label and the caption all fall on the same line: \documentclass[10pt,journal,compsoc]{IEEEtran}  % *** CITATION PACKAGES *** % \ifCLASSOPTIONcompsoc   % IEEE Computer Society needs nocompress option   % requires cite.sty v4.0 or later (November 2003)   \usepackage[nocompress]{cite} \else   % normal IEEE   \usepackage{cite} \fi  \usepackage{subcaption} %\usepackage{subfig} %\usepackage{subcaption} \usepackage[draft]{graphicx} \usepackage{algorithm,algpseudocode} \usepackage{mathtools} \usepackage{filecontents} \usepackage{lipsum} \usepackage[flushleft]{threeparttable} \usepackage{cite} \usepackage{amssymb} \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx \usepackage{mathtools, cases} \usepackage{amsmath,empheq} \usepackage{eqparbox} % for the second example \usepackage{verbatim} \usepackage{varwidth}% http://ctan.org/pkg/varwidth \usepackage{color} \usepackage{xcolor} \usepackage[export]{adjustbox} \usepackage{multirow}  \newcommand{\meq}[2]{%   \eqmakebox[#1][s]{$\displaystyle#2$}% }   % correct bad hyphenation here \hyphenation{op-tical net-works semi-conduc-tor}  %\let\emptyset\varnothing \begin{document}  \begin{table}[!bp] \centering \caption{Evaluation of overall performances on both datasets} \label{tab:default} \resizebox{0.5\textwidth}{!}{% \begin{tabular}{|l|l|l|l|l|l|l|} \hline \multicolumn{7}{|c|}{Datasets}                                                                                \\ \hline \multicolumn{3}{|c|}{In-House}                                                & \multicolumn{4}{c|}{NSL-KDD}    \\ \hline DR                       & ACC                      & FPR                     & K  & DR      & ACC     & FPR    \\ \hline \multirow{8}{*}{99.75\%} & \multirow{8}{*}{99.72\%} & \multirow{8}{*}{0.06\%} & 1  & 90.53\% & 96.14\% & 0.00\% \\ \cline{4-7}                           &                          &                         & 2  & 94.22\% & 97.65\% & 0.00\% \\ \cline{4-7}                           &                          &                         & 3  & 95.47\% & 98.16\% & 0.00\% \\ \cline{4-7}                           &                          &                         & 4  & 96.10\% & 98.41\% & 0.00\% \\ \cline{4-7}                           &                          &                         & 5  & 96.48\% & 98.57\% & 0.00\% \\ \cline{4-7}                           &                          &                         & 10 & 97.25\% & 98.87\% & 0.02\% \\ \cline{4-7}                           &                          &                         & 20 & 97.57\% & 98.88\% & 0.22\% \\ \cline{4-7}                           &                          &                         & 30 & 97.68\% & 98.40\% & 1.11\% \\ \hline \end{tabular}% } \end{table}  \end{document}   But what I want is a table with the caption format below:  How do I achieve this? Any help will be appreciated.


What differentiates the scientific method from other methods

From the controversy in , I would like to know what differentiates "the scientific method" from other method.  I'm asking for differentiation, rather than a definition, because definitions call for an all encompassing answer, which is often hard to find.  If someone asks "what is an alternative to the scientific method," I would like to be able to start by being able to reliably say whether a particular method is the scientific method or not.  Of course, being a linguistic issue, the definitions of words themselves are flexible.  For instance, it is not uncommon to hear one in science talk of "truth" in a sense which is incompatable with the mathematical meaning of "truth."  Accordingly, I would like to stick to the following ideals in wording whenever possible:   Prefer mathematically accurate terminology.  Ideally the word "proof" should be used in the form found in proof theory, and "true" and "false" should be used in the form of Boolean algebra.   No method should claim a hypothesis which predicts the state of the future is "true" unless they claim soothsaying abilities (most scientific theories include a random variable to avoid needing to claim soothsaying abilities... this is legitimate)  Words which imply direction should be clarified carefully.  "Good" and "bad" are notoriously difficult, but phrases such as "advancing society" can also be very tricky as well. The physical world and the world of information theory should be treated differently.  In particular, the concept of "testing a hypothesis" will likely need to be broken down into testing and observing the physical world, taking measurements (which should have errors associated with them), and only then is the hypothesis compared against the results of the measurements. Mathematically extending arguments into infinity (such as claiming some specific cellular level learning process qualifies as the scientific method) are valid, but may rapidly make it harder to distinguish non-scientific methods from scientific ones.  Such claims should be made carefully, but they are not inherently invalid.   If these ideals are too strict, you may bend them, but you should qualify such choices with an explanation of why my recommended wording choices are too strict.  Their goal is to put different methodologies on the levelest playing fields that I can manage in this medium.  Being stack exchange, bonus points for references to existing theories, though you may need to paraphrase their results to fit with the ideals I'm recommending for these answers.  Answers may be tested two ways:   Positive: If we think something is the scientific method, does it meet the requirements set forth? Negative: If we think something is not the scientific method, does the answer explain why it is not?


How did Luke know that R2D2 would be on Jabba's barge?

Luke hid his Lightsaber in R2D2 to aid in the rescue.  So, how did Luke know that Jabba would bring R2D2 where they would be executed?  I could guess "Force vision", but I'm looking for canon confirmation.


I believe I read on the internet that quantum mechanics predicts that the fundamental laws are time invertible. The web page probably really meant one theory predicts that. Does that theory combined with the big bang theory or some other beginning of time theory really predict an arrow of time at the macroscopic level? If so, how is it possible that it predicts that?


No Nonzero multiplication operator is compact

Let $f,g \in L^2[0,1]$, multiplication operator $M_g:L^2[0,1] \rightarrow L^2[0,1]$ is defined by $M_g(f(x))=g(x)f(x)$. Would you help me to prove that no nonzero multiplication operator on $L^2[0,1]$ is compact. Thanks.


i am trying to bind a variable which is part of a table name when using PDO binding to prevent SQL injection.  my query is similar to this:      select * from user_:id_user.kb_:id_kbase "."_frequencies"   which must result into       select * from user_1.kb_123_frequency   where user_1.kb_123_frequency is the intended table name. However, when the parameters get bound in:      $st->bindParam(':id_user', $id_user, PDO::PARAM_INT);     $sth->bindParam(':id_kbase', $id_kbase, PDO::PARAM_INT);     $sth->execute();   it fails to bind and throws the bellow error:  Exception has occurred.  Warning: PDOStatement::execute(): SQLSTATE[HY093]: Invalid parameter number: :id_kbase   i believe this is because of me trying to concatenate "kb_:id_kbase" with  "_frequencies" but :kb_kbase is a parameter.  so my question is: can you pass a table name as a parameter and if so How to do the binding when a parameter is part of a table name?  your help is much appreciated


Correlation (and significance test) with ordinal predictor and continuous response

I am looking to correlate an ordinal variable (four categories) with a continuous variable (not normal). The dataset is large, around n=700. I am currently using Kendall's Tau-b because Goodman-Kruskal does not handle continuous data very well. Is there an appropriate correlation coefficient for this case?  Alternatively, should I apply multilevel models to this problem? As described here:   Lastly, is this better conceived of as a matter of inference, i.e. asking whether the means of the four categories (say they are called 1,2,3, and 4) roughly follow the following pattern: 4>3>2>1? If this is the case, what statistic should I use to measure how closely the data follows that pattern, and how should I simulate the null distribution?


Serving 4 band GeoTIFF in GeoServer 2.1.4

I have an uncompressed GeoTIFF file (figure 1) with the following band information:  Image Structure Metadata:    INTERLEAVE=PIXEL Band 1 Block=5000x1 Type=Byte, ColorInterp=Red Band 2 Block=5000x1 Type=Byte, ColorInterp=Green Band 3 Block=5000x1 Type=Byte, ColorInterp=Blue Band 4 Block=5000x1 Type=Byte, ColorInterp=Undefined    Figure 1  I have compressed the file using the following set of parameters:  gdal_translate -of gtiff -co compress=jpeg -co jpeg_quality=85 -co tiled=yes -co photometric=rgb uncompressed.tif compressed.tif   This gives me a file with the following information:  Image Structure Metadata:   COMPRESSION=JPEG   INTERLEAVE=PIXEL Band 1 Block=256x256 Type=Byte, ColorInterp=Red Band 2 Block=256x256 Type=Byte, ColorInterp=Green Band 3 Block=256x256 Type=Byte, ColorInterp=Blue Band 4 Block=256x256 Type=Byte, ColorInterp=Undefined   Problem: When I serve my compressed image through GeoServer 2.1.4 I get image in figure 2 instead of the image in figure 1, which is what I would like. My goal is to have GeoServer just display the first three bands as RGB and ignore the 4th band.   Figure 2  I have tried to style the raster layer in GeoServer using SLD by adding the following channel configuration, but it didn't help.  <ChannelSelection>     <RedChannel>         <SourceChannelName>1</SourceChannelName>     </RedChannel>     <GreenChannel>         <SourceChannelName>2</SourceChannelName>     </GreenChannel>     <BlueChannel>         <SourceChannelName>3</SourceChannelName>     </BlueChannel> </ChannelSelection>   Why is my image server through GeoServer 2.1.4 looking the way it is and how do I configure GeoServer to display the image 'correctly'?


How unique is the php session id? I got the impression from various things that I've read that I should not rely on two users never getting the same sessionid. Isn't it a GUID?


Constructing a dense subset $ C \subseteq [0,1] \times [0,1] $ with a special property.

Construct a subset $ C \subseteq [0,1] \times [0,1] $, dense in $[0,1] \times [0,1] $ that has the property of every horizontal or vertical line has at most one point of $C$.  I think if I guarantee that the set I'm constructing has a point in every quarter of the square, then in every 16-portion of the squarte, then in every 4^n portion of the square it'll work. But my problem is writing this.  Ant the second part of this problem is proving the following:   Let $C$ be the created subset, $ \int_{0}^{1} ( \int_{0}^1 \chi (C) (x,y) dx ) dy =  \int_{0}^{1} ( \int_{0}^{1} \chi (C) (x,y) dy ) dx = 0$, but $\chi(C)$ is not integrable.  Can I use Fubini theorem here? The set is 2-measurable, so the first equality should hold, right? But why is it equal to 0?  Thanks!


Terminal doesn't launch from Dock or shortkeys

I cannot launch terminal from the Dock, favourites or by Ctrl+Alt+T. However, I can click the right mouse button on the desktop and choose Terminal and then it opens. I work on Ubuntu 18.04 with Gnome shell version 3.28.3. I played a bit with different python versions and I think it stopped working correctly then. What might be wrong?


Is kryptonite made of the element krypton?

According to the official sources, is the radioactive green crystal that serves as Superman's Achilles' heel actually composed of the noble gas krypton, or is it supposed to be made out of some other substance? If so, what is that substance?


How can I get word between spaces in UITextView?

I need get all the words of a UITextView of individual form.  In an array for example.


Is there a way to filter posts by featured image when initialising a WP_Query object?  Example  $my_query = WP_Query(array("has_thumbnail"=>true));   or, more ideally  $my_query = WP_Query(array("has_thumbnail_size"=>"custom_size"));


Cardinality of set of real continuous functions

I believe that the set of all $\mathbb{R\to R}$ continuous functions is $\mathfrak c$, the . However, I read in the book "Metric spaces" by Ó Searcóid that set of all $[0, 1]\to\mathbb{R}$ continuous functions is greater than $\mathfrak c$:  "It is demonstrated in many textbooks that $\mathbb{Q}$ is countable, that $\mathbb{R}$ is uncountable, that every non-degenerate interval is uncountable, that the collection of continuous functions deﬁned on  $[0,1]$ is of a greater cardinality than $\mathbb{R}$, and that there are sets of greater and greater cardinality."  I understand that (via composition with the continuous function $\tan$ or $\arctan$) these sets of continuous functions have the same cardinality. Therefore, which claim is correct, and how do I prove this?


If nine coins are tossed, what is the probability that the number of heads is even?  So there can either be 0 heads, 2 heads, 4 heads, 6 heads, or 8 heads.  We have $n = 9$ trials, find the probability of each $k$ for $k = 0, 2, 4, 6, 8$  $n = 9, k = 0$  $$\binom{9}{0}\bigg(\frac{1}{2}\bigg)^0\bigg(\frac{1}{2}\bigg)^{9}$$   $n = 9, k = 2$  $$\binom{9}{2}\bigg(\frac{1}{2}\bigg)^2\bigg(\frac{1}{2}\bigg)^{7}$$   $n = 9, k = 4$ $$\binom{9}{4}\bigg(\frac{1}{2}\bigg)^4\bigg(\frac{1}{2}\bigg)^{5}$$  $n = 9, k = 6$  $$\binom{9}{6}\bigg(\frac{1}{2}\bigg)^6\bigg(\frac{1}{2}\bigg)^{3}$$  $n = 9, k = 8$  $$\binom{9}{8}\bigg(\frac{1}{2}\bigg)^8\bigg(\frac{1}{2}\bigg)^{1}$$  Add all of these up:   $$=.64$$ so there's a 64% chance of probability?


When is a biased estimator preferable to unbiased one?

It's obvious many times why one prefers an unbiased estimator. But, are there any circumstances under which we might actually prefer a biased estimator over an unbiased one?


I can't create a mark-down link when editing an existing answer

Since more than 6 characters need to change when editing an answer, I can't convert a textual link to a real link:  Original Text     More info: I've been looking at cocoahttpserver () > but it would be nice to have an embeddable server which supported output templates like rails, php, django, etc.   After the edit (changing less than 6 characters)     More info: I've been looking at  > but it would be nice to have an embeddable server which supported output templates like rails, php, django, etc.   I understand that very short edits might not generally have much value, but having links which aren't clickable are quite annoying, even if the edit only changes 4 characters.


Getting GPG error while running "sudo apt-get update" command

Using Ubuntu 14.04 LTS (64 bit).  $ sudo apt-get update    . . . Fetched 2,079 kB in 1min 1s (33.7 kB/s)                                         Reading package lists... Done   W: GPG error: http://public-repo-1.hortonworks.com HDP InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B9733A7A07513CAD   W: GPG error: http://public-repo-1.hortonworks.com HDP-UTILS InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B9733A7A07513CAD   How can I resolve this problem?