I'm running Ubuntu 14.04 64-bit on a laptop but cannot enable wifi.I then ran ubuntu 16.04 on a USB and the wifi option appeared but the next time i ran it, the wifi option didnt appear.  Enable networking option is the only one in existence.  The command below produces the result shown  b@b-HP-Notebook:~$ lspci -nnk | grep 0280 -A2 01:00.0 Network controller [0280]: Broadcom Corporation BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Hewlett-Packard Company Device [103c:804a] 02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 07)   What can I do?

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


Well I already made the integral and I know the value of it is $\pi \ln(2)$. My professor asks us to use the following theorem "Be $z= Re^{i\Theta}$, consider the contour $Q:[-R,R] \cup G$ where $G$ is the semicircle that has the interval $[-R,R]$ as diameter, then if there exist $M>0, k>1$ and certain values of $R$, that $|f(z)|\le M/R^{k}$  then $\lim_{R\to \infty} \int_{G}\frac{\ln(z+i)}{z^2+1}=0$. So as $\int_{Q}\frac{\ln(z+i)}{z^2+1}=\int_{-R}^{R}\frac{\ln(x+1)}{x^2+1}+\int_{G}\frac{\ln(z+i)}{z^2+1}=\pi \ln(2)$ using the residue theorem. The problem I have is that I dont know how to find $M$, $k$ and the certain values of R that verify  $|f(z)|\le M/R^{k}$   :c

Prove the following using complex analysis   $$\tag{1}\int^\infty_0\frac{\ln(1+x)}{1+x^2}\,dx=\frac{\pi}{2}\ln(2)$$  I found this problem in Schaum's outlines of complex variables.   I thought that we could solve the problem using a similar method to evaluating   $$\int^\infty_0\frac{\ln(1+x^2)}{1+x^2}\,dx$$   Where we integrate the function  $$f=\frac{\log(1-iz)}{z^2+1}$$  around half a circle in the upper half plane and chosing an analytic branch of the logarithm in the region.   I spent so much time on (1) without success.


I need to get all substrings that are placed between 2 signs.  For example substrings placed between ] and [:   abcabc]substrings[kkkkkkk]iwant[12345]tohave[!@#$%]   and I get: substrings iwant tohave  I tried (?<=\])(.*)(?=\[) but it returns substrings[kkkkkkk]iwant[12345]tohave.

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


I had a bug in my java app, which created a folder structure, which never ends..  So i have  afolder structure like  C:/folder/folder/folder/folder/folder/.../...   Now I am not able to delete this folder anymore. Any ideas?

Windows seems to have a length limit on file names when trying to delete, though it won't prevent those files from being created.  Our build process creates a number of temporary files (many build off of a WSDL) that run afoul of this limit.  Our ant script is somehow able to delete them when doing a clean, but sometimes I need to delete the workarea directory (where all the temp files go) without actually doing a full clean from ant.  This is the same errors , but the answers there don't really work for me as I'm dealing with a directory, not a file, and I don't always know what specific files or subdirectories are causing the problem.  And I'm trying to avoid any manual process (other than triggering a single command) to actually delete them.  If I try deleting the directory from Explorer I get the error   Cannot delete [file name]: The file name you specified is not valid or too long.   Specify a different file name   Trying Remove-Item in powershell gives the following error:  Remove-Item : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. At line:1 char:12 + Remove-Item  <<<< -force -Recurse <directory>   Does anyone know of any tools or easy ways to get around this delete error without having to manually find the problem files and move/rename them?


I'd like to combine 2-3 existing SO answers (and add an icon and .desktop etc.) to create a small, but useful open-source (Debian) package. I can license everything under "CC-by-SA 3.0", which is the Stackexchange standard license for contributions AFAICT. However how do I go about copyright attribution? Do I have to track down the authors of the answers?  Is this possible or are stackoverflow answers essentially un-reusable in public-facing code? I suppose I could rewrite the code in question, but I don't feel this would be a productive use of anyone's time.

I've looked through a few of the questions about the licensing of posts on SO, but haven't found any really satisfactory answers. Can an answer be used in an open source project (with an MIT license)? I'm not looking to simply cut and paste, because I would need to modify the snippet to suit my project and also because the answer is in a different programming language. Also, if the answer can be used, how should it be credited? Should it just be a link to the SO page? Should it include the user name? Should the user be contacted?


I ordered 13.04 on eBay, but when I installed it the application launcher was missing. I could only open applications from the terminal. I installed CCSM, but it didn't make any difference.

I have 13.04 installed from a DVD that I got on eBay but the application launcher is missing. I've tried CCSM but it won't work!


Let $|W|=m+1$ and $W$ be a subset of $X=\{1,2,3,\dots ,2m\}$ ($m$ is any natural number).   Prove there exists two numbers in $W$ whose sum is $2m+1$.    Can anyone give me a hint to prove this? I know I should be using the pigeonhole principle.

Let n be greater or to 1, and let S be an (n+1)-subset of [2n]. Prove that there exist two numbers in S whose sum is 2n+1.   I know I have to use the pigeonhole principle - no idea how to start...


My original charger has an input ampere of 1.6 A whereas the replacement I am planning to buy has an input ampere of 1.5 A. I'd like to know if this .1 difference would make any huge change or harm my laptop.  Specs Original Charger:- Input 100-240V ~1.6A 50-60Hz | Output 18.5V 3.5A 65W | Pin Size 7.4 x 5.0mm     Replacement Charger:- Input 100-240V ~1.5A 50-60Hz | Output 18.5V 3.5A 65W | Pin Size 7.4 x 5.0mm

I'm using a common charger for both of my laptops.  The charger is specified at 20 Volts and 3.25 Amperes. My other laptop has a specification of 19 V and 3.42 A.  Is it safe to charge my laptop with chargers whose specifications exceed or are not equal to the mentioned specifications?  I have read somewhere that it may cause some damage if the voltage or amperage is not matching the specs.


Let $y_i$ have  with density $$f(y;\mu,\sigma^2)=[2\pi\sigma^2\{y(1-y)\}^3]^{-1/2}\exp\{-\frac{1}{2\sigma}2d(y,\mu)\}$$ where $\mu\in(0,1)$ , $\sigma^2>0$ is a unit deviance function and $d(y,\mu)=\frac{(y-\mu)^2}{y(1-y)\mu^2(1-\mu)^2}$.  I need to find the likelihood of each observation, because I need to simulate data from this distribution (Bayesian simulation). Suppose I take the logarithm of the density function, as follows   $$-\log(f(y,\mu,\sigma^2))\propto\frac{1}{2}\log[\sigma^2[\{y(1-y)\}^3]+\frac{1}{2\sigma^2}d(y,\mu)$$,  is this the likelihood of each observation, or is there some other method of finding the maximum likelihood?

I recently purchased a  in which one of the probability questions was as follows:     Given draws from a normal distribution with known parameters, how can you simulate draws from a uniform distribution?   My original thought process was that, for a discrete random variable, we could break the normal distribution into K unique subsections where each subsection has an equal area under the normal curve. Then we could determine which of K values the variable takes by recognizing which area of the normal curve the variable ends up falling into.   But this would only work for discrete random variables. I did some research into how we might do the same for continuous random variables, but unfortunately I could only find techniques like inverse transform sampling that would use as input a uniform random variable, and could output random variables from some other distribution. I was thinking that perhaps we could do this process in reverse to get uniform random variables?  I also thought about possibly using the Normal random variables as inputs into a linear congruential generator, but I'm not sure if this would work.  Any thoughts on how I might approach this question?


As far as I know there are two padding mechanisms, which are PKCS 5 and 7. Which one should be used for CBC?

One runtime platform provides an API that supplies PKCS#5 padding for block cipher modes such as ECB and CBC. These modes have been defined for the triple DES, AES and Blowfish block ciphers. The other platform API only provides PKCS#7 padding.  Are PKCS#5 padding and PKCS#7 padding compatible?


Suppose $R$ is a Boolean ring ($\forall r \in R, r^2 =r$) which is in fact a field.  Show it then must be isomorphic to $\mathbb Z / 2 \mathbb Z$.   I already managed to show that every Boolean ring is commutative and that it has characteristic two. $\forall r \in R$ we have $r+r=0$. By a theorem 6 chapters ahead, we can already  say that  $R \cong \mathbb Z / 2 \mathbb Z. $ ( classification of finite fields). I am however not really allowed to use this yet. I cannot really construct an isomorphism if I can't describe it. How would I construct this?  To construct an isomorphism I think I need to show that $|R|=2$. So far I am not really allowed to use any characterisation theorems yet.

The title sais it already. I have to prove that, for a Boolean ring B which is also a field the relation $B \cong \mathbb Z /2\mathbb Z$ holds. Any help? I have to prove this as part of an exercise  and in the previous parts of the exercise, I have already shown that $x+x=0$ for any $x\in B$ and that $B$ is commutative, so my guess would be that I somehow have to use these facts in my proof.


I am running a command and want to show the output in my document.  I will simply cut and paste it.  I know that the font must be different.  What package or command is used for formatting command output?

Is there any way to include Python code in a LaTeX file and automatically color its syntax? Is it possible to do syntax coloring with any other language? If yes what packages can I use to do that?


I'm looking for an English word (phrase) to be used when someone wants to mentioned days/weeks/months/year ... where there is a space or skipped days/weeks... between each two. ** For example:** let say we have 10 days and I want to say only Day#1, Day#3, ..., Day#9 or (#2, #4, ..., #10).

Is there an adjective that means "every two days", i.e. is to a day as biennial is to a year?


I had a HP P1102W-printer installed on my Ubuntu 14.04. I used some program from HP that already had the drivers (no download) and made a successful installation... no issues.  After formatting the HDD and reinstalling the OS I could not find that HP-program again but tried HPLIP instead (3.15.7 and 3.15.6). But HPLIP can not find or download the necessary plug-in.  I have tested the "hp-doctor" that suggest that I should download the missing driver from internet/ HP-server. But all efforts ends with the same error message.  Error message:  Checking for network connection... Downloading plug-in from:  error: Plugin download failed with error code = 8 error:  file does not match its checksum. File may have been corrupted or altered   Any suggestions?? Is this problem with my PC or is it with the HP-server. Can the old installation program from HP be found somewhere (not HPLIP)?  Found additional reference..

Trying to install drivers for a HP P1100W on Ubuntu 12.04.  The printer was recognized as soon as I hooked it up.  I'm using the USB cable.  I followed the directions of this question    and I get the message that I now need the "HP-Plugin.   Also, how do I get rid of all the test prints that are still spooled?  There is no clear button.


I know from probability class that the area under the bell curve $e^{-x^2}$ is $\sqrt{\pi}$. I would like to be able to verify this, so in other words, solve this integral: $$\int_{-\infty}^{\infty} e^{-x^2} dx $$ The proof we saw in class used polar coordinates, but I don't like polar coordinates! Is there another way to evalutuate it?  Thanks!

How to prove  $$\int_{0}^{\infty} \mathrm{e}^{-x^2}\, dx = \frac{\sqrt \pi}{2}$$


What do I have to do to download from The Pirate Bay?  I understand utorrent and The Pirate Bay, but can not download movies. I used to be able to do it in Windows.  Please keep explanations simple. I want to watch my tv shows when overseas.

What is a , and how do I use them on Ubuntu?


I am using Pop! OS with Windows 10 dual boot. And I have 1 TB STORAGE disk. But I can't write and delete anything on this disk. For example I write a mkdir folder in terminal It says Read-only file system.   How can I write something on this disk on Pop! OS. There is no issue on Windows 10.

It seems that "Shut down" in Windows 10 actually means "Shut down and hibernate". This has caused my NTFS partitions cannot be automatically loaded on Linux (Ubuntu 16.04) on my dual-booting laptop. There will be an error message basically saying   Unable to access “My Drive”  Error mounting /dev/sdb4 at /media/D Center: Command-line `mount -t "ntfs" -o  "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sdb4" "/media/D Center"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb4': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option   After a "hard" shutdown by pressing Shift while clicking on "Shut down", Windows actually shuts down, and the NTFS partitions can then be automatically mounted by Linux in another bootup. This issue only occurs recently after my upgrade of the Windows OS and BIOS.  My question is the following: is there any way to make the "Shut down" on the menu as the truly/hard shutdown by default? Thanks!


When I ask a question (usually on Stack Overflow) I often get answers or comments very quickly. How do people know my question has been asked? Along the same lines, if I'm interested in helping to answer a question about a certain topic, how do I hear about new questions on that topic?   Is it possible to subscribe to a tag and be notified when a new question that uses that tag is posted? That would seem like the best solution, but I don't see a way to subscribe to tags.

It would be nice if we could subscribe to an RSS feed of all the questions that match your 'favorite' tags i.e. an RSS feed of the questions that get highlighted as yellow when viewing the question list. You can achieve a similar effect by combining tags as described  and , however this is a pain to maintain, requiring the RSS URL to be edited in the feed reader if you start monitoring new tags, or stop monitoring old tags, also you have to worry about getting the syntax correct (c%23 instead of c# as an example). It would be much nicer if we could simply subscribe to a URL such as:  Then you could change the tags that are included in that feed from the ‘prefs’ subsection of the user account area.


At my work place, whenever an e-mail is sent to more then one person, it starts with "Dear All" or "Dear all". Should the letter "A" be capitalized in "All" as it is not a proper noun? Would it be wrong not to capitalize it

It is common to begin an email with the greeting "hi all" when the note is addressed to multiple recipients.  What, however, is the correct capitalization of "all" in this context?  Does it become a proper noun?


I have been under constant DDOS attack the last couple of weeks.  Now it seems my servers network is being flooded till it just doesn't have space anymore to receive and send normal packages.  I run CENTOS 5.6, and i have hardened SYSCTL and iptables to fight off SYN attacks as much as possible.  I have a 100Mbit network card and connection to my hosting company.  Normal incoming traffic is around 8mbit/s. Incoming data spikes go up to 100mbit when the attacks happen.  Could it help me fight off attacks if i were to upgrade my server to a 1GBPS network card + network connection?  I'm hoping the pipe doesn't flood so quickly when it's under attack.

This is a  about DoS and DDoS mitigation.   I found a massive traffic spike on a website that I host today; I am getting thousands of connections a second and I see I'm using all 100Mbps of my available bandwidth.  Nobody can access my site because all the requests time out, and I can't even log into the server because SSH times out too!  This has happened a couple times before, and each time it's lasted a couple hours and gone away on its own.  Occasionally, my website has another distinct but related problem: my server's load average (which is usually around .25) rockets up to 20 or more and nobody can access my site just the same as the other case.  It also goes away after a few hours.  Restarting my server doesn't help; what can I do to make my site accessible again, and what is happening?  Relatedly, I found once that for a day or two, every time I started my service, it got a connection from a particular IP address and then crashed.  As soon as I started it up again, this happened again and it crashed again.  How is that similar, and what can I do about it?


Note: this is not a realism-esque  on the reality of numbers. Also, to not be confused with  question, I'm not questioning the usage of these numbers.  As far as I know, every numerical field has a correspondence to reality - e.g. the natural numbers can be represented by counting apples (1, 2, 3 apples), and even the irrational numbers correspond to phenomena we find in nature (the ratios that pi and phi represent correspond to real phenomena).   But what would the imaginary numbers correspond to in nature? Can we find any phenomena that represents them? I'd like to distinguish between the complex numbers that unities the imaginary part with a real part, thus perhaps providing it a real correspondence, e.g. in certain representations of QM (although perhaps even complex numbers are problematic in this sense). A complex number, represented as the combination of the real part (a number from the ℝ field) and an imaginary part (i). My emphasis is on the numbers that appear in the imaginary part (the so-called "imaginary numbers", square root of -1).  Furthermore, if these kind of numbers cannot be represented in nature, does it mean they have an expiration date in our usage of them outside of math? Are they simply place-holders for the next mathematical discovery that does correspond to nature and that would replace them? (i.e. isn't it an aspiration of the natural sciences to prefer correspondence to nature?)

Completeness Theorems of Model Theory, a branch of Mathematical Logic. Together, these two Theorems show that: under the Field Axioms (the rules of the game for scalars) existence of rationals is provable, but existence of irrationals and complex numbers is neither provable nor disprovable ,Now I want whethere exist such new theorem in philosophy which prove or disprove existence of complex quantities and irrational numbers in nature ?


I am a resident of India and I moved to Italy 3 weeks ago for my PhD. I have to visit the UK in the last week of November for which I'll need Italian residence permit for my visa application. I have already applied for my residence permit, but it will take another couple of months to receive (I might get it in December). Therefore, Italian police headquarters has agreed to give me a temporary residence permit which is valid for 3 months. Is it possible to apply for UK visa using the temporary residence permit?

Here is the situation. I am non-european but staying in Germany with a Residence permit. I can visit all Schengen listed countries with no issue. Assuming that I would want to travel to a non-Schengen country e.g. UK or USA, can I use my residence permit to travel there or am I required to apply as a citizen of my country? Assuming Germans are not required to pay Visa fees to that country, will I have to pay since I only have a residence permit? Third case, Europeans can fly directly to the airport of some countries and apply for a visa from there. In some other countries, you are required to book a Visa appointment at the embassy, which may be granted or not. Does that apply for one with a residence permit?


I need install python-pypdf. So I tried to install it with:    sudo apt-get install python-pypdf   But I get this error:  E: Package 'python-pypdf' has no installation candidate   Why?

How do I get to the Universe Repository in supported versions of Ubuntu?


Two days ago I installed the new MikteX on my Ubuntu. Since then I can't compile the text, with which I had no problem before that. I tested the file with the older version of Miktex on my laptop and it worked. The error with the new version is the following:  This is BibTeX, Version 0.99d (MiKTeX 20.6.29) The top-level auxiliary file: Test.aux I found no \citation commands---while reading file Test.aux I found no \bibdata command---while reading file Test.aux I found no \bibstyle command---while reading file Test.aux (There were 3 error messages) Process exited with error(s)  The error appears only when I use BibteX. I'm not sure if it's relevant, but here is my code: \documentclass[ 10pt, parskip=half, listof=totoc, bibliography=totoc, index=totoc, ]{scrbook} \setuptoc{toc}{totoc}  \usepackage[includehead=false, includefoot=false, paperheight=240mm, paperwidth=170mm,  twoside=true, left=25mm, right=20mm, top=35mm, bottom=20mm]{geometry}  \usepackage[LAE,LFE,T1]{fontenc} \usepackage[english,greek,farsi,main=ngerman]{babel} \usepackage{scrlayer-scrpage} \usepackage{lmodern} \usepackage[authordate-trad,backend=biber,natbib]{biblatex-chicago}  \addbibresource{ref.bib}  \begin{document}  \frontmatter \begin{titlepage} \centering \vspace*{1cm} {\bfseries \Large Titlepage\par} \end{titlepage}  \chapter{Abstrakt} \tableofcontents \listoffigures \listoftables  \mainmatter \chapter{Something1} Somethings in chapter 1. \citep{Pr20} \chapter{Something2} Somethings in chapter 2.  \backmatter  \printbibliography[]  \end{document}  I appreciate any help and clues.

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


So I just got my new frame from the LBS. They were supposed to face the frame, but only faced the head tube (hopefully, can't check it since the headset is already installed.).  Sadly, they didn't face the BB shell.  I'm tired of bringing my bikes to LBS and getting them in a worst shape than they were before (tried 4 different), so I'm not gonna go back for facing.  I'm planning to install a square taper BB. I understand there's nothing like a properly faced BB shell, but no LBS here in Belgium seems to be willing to do that kind of stuff, saying "it's not necessary". So, which of the two following option is the best (or least worse, as it happens)?   keep the frame as-is and install the BB strip the paint with a knife?

I'm planning to build a new bike from scratch.  Part of that is buying a new frame, and possibly facing/reaming it. That's actually the part I'm scared of the most.  Fortunately, the brand I'm targeting, Surly, seems to do that in the factory. But as they state, there may be some paint left where it should not be:     Since Surly frames are faced prior to painting, it is possible to   shave the paint off the head tube and BB shell ends with a carpet   knife blade.  This usually results in an acceptable result, saving you   money, but we still recommend having it done the proper way to ensure   longest life from your components.   So what is the "proper way" to remove the extra paint, if the frame is properly reamed/faced already?  Should I choose not to do it the proper way, which components are going to suffer? I suppose at least the headset and bottom bracket, but could the frame suffer as well?


Twice now, while typing up a comment on a question, my comment was too long, so I selected a portion of the text, tapped cut, posted the comment, then went into my notes app to save the cut text to see if I could make it more succinct, but all that’s pasted is either a space or some sort of attachment. There seems to be no way to recover the cut text that I can determine. The first time, I assumed it was a fluke or that I did something wrong, but it just happened again, so I think there’s some sort of bug in the app.  Is there a way to cut text from a comment and paste it elsewhere, like in another app? Is it just me having this issue?  Edit: I just tested it in the comments below. I typed the word “Testing”, selected it, cut it, switched to my notes app and attempted to paste. It inserted a 7 byte attachment with a name that was a long hash string and it had a Dropbox icon. There’s no way to open it to access the text.   App Version: 1.6.6.2 Device: iPhone 6s OS Version: Version 11.4.1 (Build 15G77)

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.


Before, I ask similar this. But here I change question settings since it was incomplete. I hope receive good ideas.  Let $E$ be a finite dimensional vector space over field $\mathbb R$ with $E^*$ as the dual space of $E$ and $E^{**}:=(E^*)^*$ is the double duall of $E$. ($\dim E=n$)   $Alt^P(E):=\{ \alpha\colon \overbrace{E\times\cdots\times E}^{p- times}\rightarrow \mathbb R\  \ , \alpha \text{ is alternating multilinear map}\}$ $Alt^P(E^*):=\{ u\colon \overbrace{E^*\times\cdots\times E^*}^{p- times}\rightarrow \mathbb R\  \ , u \text{ is alternating multilinear map}\}$  I wish to prove that there exist an $\textbf{unique}$ bilinear form $B\colon  Alt^p(E^*)\times Alt^p(E)\rightarrow\mathbb R$   such that for all $ f_i\in E^* \ , u_j\in E^{**}\stackrel{\scriptsize{isomorph}}\simeq E \qquad  i,j=1,\cdots,p$, it has the following rule:  $B(u_1\wedge\cdots\wedge u_p,f_1\wedge\cdots\wedge f_p)=\det[f_i(u_j)]$.  $\wedge$ is wedge product between alternating maps i.e. $\alpha\wedge\beta(v_1,\cdots,v_{p+p})=\dfrac{1}{p! p!}\displaystyle\sum_{\sigma\in S_{p+p}}sign(\sigma)\alpha(v_{\sigma(1)},\cdots,v_{\sigma(p)})\beta(v_{\sigma(p+1)},\cdots,v_{\sigma(p+p)})$  How can I do this?

Let $E$ be a finite dimensional vector space over field $\mathbb R$ with $E^*$ as the dual space of $E$.($\dim E=n$)   $\Omega^P(E):=\{ \alpha\colon \overbrace{E\times\cdots\times E}^{p- times}\rightarrow \mathbb R\  \ , \alpha \text{ is alternating multilinear map}\}$ $\Omega^P(E^*):=\{ u\colon \overbrace{E^*\times\cdots\times E^*}^{p- times}\rightarrow \mathbb R\  \ , u \text{ is alternating multilinear map}\}$  I wish to prove that there exist an $\textbf{unique}$ bilinear form $B\colon \Omega^p(E^*)\times\Omega^p(E)\rightarrow\mathbb R$   such that for all $ f_i\in E^* \ , u_j\in E^{**}\simeq E \qquad  i,j=1,\cdots,p$, it has the following rule:  $B(u_1\wedge\cdots\wedge u_p,f_1\wedge\cdots\wedge f_p)=\det[f_i(u_j)]$.  $\wedge$ is wedge product between alternating maps i.e. $\alpha\wedge\beta(v_1,\cdots,v_{p+p})=\dfrac{1}{p! p!}\displaystyle\sum_{\sigma\in S_{p+p}}sign(\sigma)\alpha(v_{\sigma(1)},\cdots,v_{\sigma(p)})\beta(v_{\sigma(p+1)},\cdots,v_{\sigma(p+p)})$  How can I do this?


Since starting at a new company I've noticed that they use unity cpp files for the majority of our solution, and I was wondering if anyone is able to give me a definitive reason as to why and how these speed up the build process? I would've thought that editing one cpp file in the unity files will force recompilation of all of them.

I recently had cause to work with some Visual Studio C++ projects with the usual Debug and Release configurations, but also 'Release All' and 'Debug All', which I had never seen before. It turns out the author of the projects has a single ALL.cpp which #includes all other .cpp files. The *All configurations just build this one ALL.cpp file. It is of course excluded from the regular configurations, and regular configurations don't build ALL.cpp I just wondered if this was a common practice? What benefits does it bring? (My first reaction was that it smelled bad.) What kinds of pitfalls are you likely to encounter with this? One I can think of is if you have anonymous namespaces in your .cpps, they're no longer 'private' to that cpp but now visible in other cpps as well? All the projects build DLLs, so having data in anonymous namespaces wouldn't be a good idea, right? But functions would be OK?


Stackoverflow give badges for adding new tag. Now I wonder, How can I add a new tag?

I want to know how to create a new tag on Stack Overflow. Where is the entrance of this function?   Please post a screenshot for me. Thanks a lot.


Show that there is exactly $1$ real solution in the unit disk $D = \{ z : |z| < 1 \}$ to the equation $ze^{\lambda - z} = 1$, where $\lambda \in \mathbb{R} : \lambda > 1$. The fact that there is one real solution in the unit disk follows from the intermediate value theorem. That is $f(x) = xe^{\lambda -x} - 1$ is a continuous real valued function and $f(-1) = -e^{\lambda+1} -1 < 0$ and $f(1) = e^{\lambda - 1} - 1 > 0$. I am trying to consider the change in argument along the curve $\gamma = \{ e^{it} : t \in [0,2\pi] \}$ and show that the change in argument of $f(z)$ is $2\pi$, but I am not sure how argue that. I know $f(e^{it}) = e^{it} e^{\lambda - \cos(t)} e^{-i\sin(t)} - 1$. I want to say that the $e^{it} e^{\lambda - \cos(t)} e^{-i\sin(t)}$ dominates (as its modulus is greater than $1$), but I don't know how to prove it formally.

Let $a \in \mathbb{R}, a>1,$ and consider the equation $$ze^{a-z}=1$$ How many solutions does this equation have in the unit disk, and how many of those solutions are real?   My attempt to solve was to use the Argument Principle on the function $f(z)=ze^{a-z}-1$, in hopes of recovering the number of zeroes that way. The integral I attempted to compute for this was $$\int_{|z|=1} \frac{e^{a-z}-ze^{a-z}}{ze^{a-z}-1}dz=\int_{|z|=1}\frac{1-z}{z-e^{z-a}}dz$$  I do not know how to proceed from here, as the $e^{z-a}$ in the denominator seems problematic. Thanks for your help!


How to configure my linux machine to send emails from terminal.  I tried the following  apt-get install postfix mailutils sudo systemctl start postfix echo "Email Text" | mail -s "Subject" "user@address.com"   But the mail isn't sent.  I also checked postfix status and there is some error with guidelines.  sudo systemctl status postfix  ... Our system has detected that 550-5.7.1 this message does not meet IPv6  sending guidelines regarding PTR 550-5.7.1 records and authentication. ...   Is there an easy way to configure my linux machine to send emails?  I'm using debian.

Does anyone know what needs to be configured for postfix so that emails can be sent to localhost and received from localhost?   e.g. send an email to user1@localhost will:   result in user1 receiving an email in their mail client (configured to receive local emails) user1 can then respond to user2@localhost Both user1 and user2 are configured on the same machine i.e. if there is no internet/network connection both these users can still send and receive to/from each other.   The reason I ask is because I want to set this up for a dev environment so that I can test an application I am developing.


As I was doing a project, I came to know about how command line can be read using ncurses and GNU's readline library. However I could not find either in Ubuntu (16.04). I am curious to know how Ubuntu processes the command as the user types? For eg: how does it detect up/ down arrow being pressed, how is Tab detected etc?

Suppose I press the A key in a text editor and this inserts the character a in the document and displays it on the screen. I know the editor application isn't directly communicating with the hardware (there's a kernel and stuff in between), so what is going on inside my computer?


I am a doctoral student in metallurgy (joined 2014- about to finish it by July 2017) having my background of B.Tech Electrical and MS in nanoscience.  I wish to pursue my another doctoral degree in nanomaterials, Is it advisable to go for it.  I have some offers from abroad in prestigious institutes too. Is it good to go for it?.

I am studying a combined bachelor of engineering (electrical) and bachelor of mathematics; I just started this year and will graduate in 2018. The reason why I am doing double degrees and not a single degree is because I love both electrical engineering and mathematics and I could not ignore any of them. So with this in mind, I am thinking of doing two PhDs when I graduate (one in electrical engineering and one in mathematics). Is this a good path or I should concentrate on only one of them?


I have a citation in a caption and in my biblography it lists the pages each reference is in. However it lists the page of my List of Figures (ix), but I'd like to remove that. Is there a way to remove part of the caption when putting it in the LoF or to not include prefatory pages in the reference page list?  \begin{figure}[ht!]   \centering   \includegraphics[width=\textwidth]{figure1}   \caption{caption is here (adapted from \cite{reference1}).}   \label{fig:figure1} \end{figure}

I am having an issue with LaTex/Bibtex presenting my citations in order of appearance. I know there a plenty of questions on this and I have read some of them, but the solutions posted don't seem to do me any good. I am using MacTeX and TeXmaker.  I am writing a large document, like a Thesis. Chapters are split between individual Tex files and included using the \include command.  I have a large .bib file that is maintained by Mendeley (program I use for storing my references and producing a BibTex file).  I am using the package, cite (mainly for doing references like [1-3,6,9])  I have a pretty standard looking document.  \documentclass[11pt,a4paper]{report} \setcounter{secnumdepth}{3} \setcounter{tocdepth}{3} \newcommand{\doubleSignature}[3][Alex Mason]{% \parbox{\textwidth}{ \centering #3 \today\\ \vspace{2cm}  \parbox{7cm}{   \centering   \rule{6cm}{1pt}\\    #1  } \hfill \parbox{7cm}{   \centering   \rule{6cm}{1pt}\\   #2 } } } \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} %\usepackage[sorting=none]{biblatex} %\bibliography{Alex} % Where journals.bib and phd-references.bi \usepackage[pdftex]{graphicx} \usepackage{enumerate} \usepackage{nomencl} \usepackage{wasysym} \usepackage{booktabs} \usepackage{cite} \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry} \graphicspath{{./Diagrams/}} \usepackage[labelfont={sf,bf}, margin=1cm]{caption} \usepackage{subcaption} \renewcommand{\figurename}{Fig.} \renewcommand{\tablename}{Tab.} \renewcommand{\bibname}{References} \author{NAME (MEng)} \title{TITLE} \date{\today} \makenomenclature %------------------------------------------------ \begin{document} \maketitle \pagenumbering{roman} %-----------------------------------------------certificate of originality----------------      -------------------------------------------- \input{CertofOrigin} \begin{abstract} ABSTRACT \end{abstract} %-----------------------------------------------contents------------------------------------------------------------ \tableofcontents \listoffigures \addcontentsline{toc}{chapter}{List of Figures} \listoftables \addcontentsline{toc}{chapter}{List of Tables} \chapter*{Acknowledgements} \addcontentsline{toc}{chapter}{Acknowledgements} ACKNOWLEDGEMENTS \printnomenclature[1.5in] \addcontentsline{toc}{chapter}{Nomenclature} \pagebreak \pagenumbering{arabic} \include{2ndYearReport_CHAP1} \include{2ndYearReport_CHAP2} \include{2ndYearReport_CHAP3} \bibliographystyle{unsrt} \bibliography{Alex} %\printbibliography \end{document}   The goofy looking part at the top (\newcommand{doubleSig.....) is just for when i input a special page I made containing a certificate of originality spiel with two boxes for signatures and my university logo.  As you can see I am using the standard bibtex way of doing bibliographies by stating the style then the stating the bib file to use right at the end of the document. I have tried biblatex but can't get it to work. It says it hasn't produced the bib file but doesn't really state why.  As far as I am aware everything was working A-OK until I started on the second chapter and began adding citations in there. Now my citations are all messed up and won't correct. My first citation starts with [9]!!!  [1] appears in a figure caption later down the page, after 10, 11 and 12 have been called!  I have tried deleting all the working files (bbl, aux, log etc) but nothing happens. I get the same result. IIRC I used to have this problem with MS Word and is part of the reason why I switched to LaTex...yet it seems to have followed me!   bibtex does through a few warnings when it runs stating that some references are missing journal names or volume numbers. Would that be a reason?  What have I done wrong with my code?


I made an overworld portal (Portal A) at [x:-21, z:233]. This took me to a new portal in the nether (Portal C) which as at [x:-4, z:41].  I then went to another location in the overworld and created Portal B at [x:-613, z:-373]. This is a total of around 1200 blocks away so I thought it was a safe distance. However, when I stepped through, I arrived at Portal C again.  So, I tore down Portal C and used a  to tell me where Portal B's match in the Nether should be. The calculator gave me [x:-77, z:-46], so I went there and constructed Portal D.  When I stepped through Portal D, I ended up at portal B, as I expected. So I ran back to Portal A, and stepped through it again.. only to end up at portal D in the Nether. When I stepped back through portal D, I ended up at portal B.  What's happening is this:  A -> D <-> B  Whereas what I want to happen is this:  A <-> C and B <-> D  How can I achieve this? I don't mind tearing down portals, but I'd rather avoid that as it's quite time consuming.

On our minecraft server, I've built a Nether portal in my basement. Which connected two-way (tested) to a location in the Nether.    This nether portal took me to an area in the nether which was a small cave. I dug upwards and surfaced close to a Nether Fortress. After clearing the fortress of Blaze spawners, I decided to 'move in'. So I went back to the portal, dismantled it, and reactivated in in a location in the Fortress.    The fortress would be within the same 128m radius I would assume as it's really close to the original place. Literally some steps to the surface, then a ladder up the nearest Nether Fortress bridge support.  Now, taking this portal back to my original doesn't work, I spawn deep underground in an Abandoned Mine Shaft.  I read somewhere that my Nether portal has found a 'better match' and this could be remedied by disabling the 'wrong' portal in the mine shaft.  However, upon multiple attempts, a new nether portal is dynamically created in the same area. See screenie for example. You'll see two 'stacked' portals on the left (from my different attempts at disabling) and then the current active one on the right.    My question is, how can I make sure these portals go to the correct place. Is it a matter of returning the portal to it's original location or am I stuck for returning to the basement?


Windows has a serious problem with hard drives.   I have a bunch of hard drives (6+) which I use only occasionally for storage, accessing them perhaps twice a day on average. The rest of the time, I keep them spinned down for obvious reasons.  The problem is, Windows (and/or the many poorly-written programs running on it) just loves to spin up these hard drives every so often. I've used diagnostic tools such as Process Monitor to see if there's any specific trigger, but there's not. Many different programs (example: Photoshop, games, etc.) can simply get "nosy" and try to sniff the properties of your drives or storage volumes for no apparent useful reason.  The spin-up process also takes a long time because of the number of drives involved. So launching Photoshop takes over a minute instead of the couple of seconds it should take because it has to wait for all of my drives to spin up (even though it's not actually using them, at all).  Is there a way to simply hide or otherwise completely restrict access to these storage-only drives at a volume level, so that they simply don't exist to any snooping programs except those I explicitly allow?  EDIT: NOT A DUPLICATE  I posted a  but this question is different. The solutions posed in that question still allow the logical volume names to be seen (e.g. by using the mountvol command). Therefore, restricting access at the "drive letter" level is not enough. I want to be able to restrict access to (or limit visibility of) the actual volumes themselves.  Again, this question is not a duplicate: I am asking how to hide low-level volumes, not drives. They are different beasts.

On Windows 7.  I have a lot of hard drives which are used for storage.   When launching certain programs (e.g. some games, Photoshop, etc.) the program will automatically try to query/access all of the system's drives for whatever reason (presumably to enumerate them, see how much free space is on them, or access some other property of them).  This means that every time I launch these programs all of my drives have to (slowly!) spin-up even though no files on the drive are actually being used.  This is extremely annoying.  So is there a way I can restrict access to these hard drives, and/or make them invisible to certain programs?


I have to write a Java program which has to parse an Apache log. As the Apache log grows continuously throughout the day, I would like that the Java program listens continuously for any new record in the log so I can parse it at real time. (I don't want to start to parse the log every time from the beginning). Any suggestions?

I have an application that writes information to file. This information is used post-execution to determine pass/failure/correctness of the application. I'd like to be able to read the file as it is being written so that I can do these pass/failure/correctness checks in real time.  I assume it is possible to do this, but what are the gotcha's involved when using Java? If the reading catches up to the writing, will it just wait for more writes up until the file is closed, or will the read throw an exception at this point? If the latter, what do I do then?   My intuition is currently pushing me towards BufferedStreams. Is this the way to go?


I know this might sound silly, but I want to know if there is a way like this to use.  My code is:  print(a (+=) if a==1 else (-=) b)   What I want it to do is,  if a==1:     print(a+b)  else:     print(a-b)

If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs?


Why does a moving(at constant velocity) magnet release more energy in the form of magnetic fields when the number of charges palced near it are increased? Say two current carrying coils $C1$ and $C2$ are in a system in which $C1$ is moving at constant velocity. The energetic magnetic fields from $C1$ will reach $C2$ after an interval of time. So at the moment $C1$ releases energy(in the form of M.F) it doesn't know about charges in surrounding and it can't make predictions of how much energy is to be released at the moment.So it can only give out energy of that amount that it knows at that instant such as velocity and amount of current etc. , therefore a fixed amount of energy in M.F  let say equal to $M'$ is released in a time period. When we add another coil say $C3$ in system, the amount of energy released by C1 is still $M'$ as its velocityand other factors are same. Therefore the total output can't exceed $M'$.  This statement says that you can't get more wireless energy by constant velocity gaining magnet in output even if you use many sets of coils.  But i think that it is false and we can get larger amount of energy as output(by magnetic fields of that magnet) by using extra coils $C2,C3....Cn$ Please solve that question!🧭⏰

Why does a moving (at constant velocity) magnet release more energy in the form of magnetic fields when the number of charges placed near it are increased? Say two current carrying coils $C1$ and $C2$ are in a system in which $C1$ is moving at constant velocity. The magnet fields from $C1$ will reach $C2$ after an interval of time. So at the moment $C1$ releases energy (M.F) it doesn't know about charges surrounding and it can't make predictions of how much energy is to be released at the instant. So it can only give out a fixed amount of energy in M.F.  Let's say it is equal to $M'$. When we add another coil say $C3$ in system, the amount of energy released by C1 is still $M'$. Therefore the total output can't exceed $M'$.  This statement says that you can't get more wireless energy by constant velocity gaining magnet in output even if you use many sets of coils.  But I think that it is false and we can get larger amount of energy as output by using extra coils. C2, C3, ... Cn Explain what is right


$$\int_0^{\infty} \frac{x^8-4x^6+9x^4-5x^2+1}{x^{12}-10x^{10}+37x^8-42x^6+26x^4-8x^2+1}\,{dx} $$  The answer is $\pi/2$ (). How does one calculate this?  EDIT: I don't know complex analysis. I traced the problem back to a book but the book used complex analysis. I should have said that from the start, sorry.

I'm having a hard time proving the following $$\int_0^{\infty} \frac{x^8 - 4x^6 + 9x^4 - 5x^2 + 1}{x^{12} - 10 x^{10} + 37x^8 - 42x^6 + 26x^4 - 8x^2 + 1} \, dx = \frac{\pi}{2}.$$  Mathematica has no problem evaluating it while I haven't the slightest idea how to approach it. Of course, I would like to prove it without the use of a computer. Is this an explicit form of a special function I fail to recognize?


Prove that if $a>0\ then\ 1+a^9\le \frac1a+a^{10}$  I started off by moving every term to the left side of the inequality and multiplied every term by a since a>0 but not sure where to go after that. The hint given is to complete the square.  $a+a^{10}-a^{11}\le0$

Prove that if $a>0$ then $1+a^9 \leq \frac{1}{a}+a^{10} $.   Using the fact that $a \gt 0$, multiply by $a$ on both sides and get everything to one side we have; $a^{11}-a^{10}-a+1 \geq 0$. By factoring $(a^{10}-1)(a-1) \geq 0 $.  I am not sure how to proceed any further.


The material components of the  spell are:  a pinch of salt and one copper piece placed on each of the corpse's eyes, which must remain there for the duration  The rules for  (PHB p. 203) state:  A character can use a component pouch or spellcasting focus in place of the components specified for a spell. But if a cost is indicated for a component, a character must have that specific component before he or she can cast the spell. If a spell states that a material component is consumed by the spell, the caster must provide this component for each casting of the spell.  The material component is not explicitly consumed by gentle repose, although the spell does specify with unusual detail how the components are to be used and how the components must remain with the body for the spell to function. This is different to the normal scenario where you just wave the component about then put it back into your pocket. The component is expected to actually do something. While the material component is a thing with monetary value (because it is money), it does not explicitly specify a cost. Based on  on detect thoughts (which also has a copper piece as a material component), I assume that the copper pieces do not count as having an indicated 'cost' for the purposes of being a material component. If I have a spellcasting focus I can use, can I avoid the need to place copper pieces on each of the corpse's eyes? Or must I still put copper pieces on the eyes even if I have a spellcasting focus?  Due to repeated confusion, I thought I would say this outright. This question is not a duplicate of  That question was concerned with the value of the copper pieces. However, this question is concerned with what you must do with the copper pieces. Detect thoughts does not specify what must be done with the copper pieces. Gentle repose specifies that something specific must be done with the copper pieces for the spell to work. Does the clause on what must be done with the material component, irrespective of its cost, void your ability to use a spellcasting focus?

The "" spell has as its material component "a copper piece". (Yet another in the long list of punny material components.) The  say,     Casting some spells requires particular objects, specified in parentheses in the component entry. A character can use a component pouch or a spellcasting focus (found in “Equipment”) in place of the components specified for a spell. But if a cost is indicated for a component, a character must have that specific component before he or she can cast the spell.   Does requiring "a copper piece" mean that a "cost is indicated" and so it requires one to actually be holding a coin, rather than just using a spellcasting focus or component pouch?  Usually a cost being indicated is worded like "", so since this isn't phrased as "a copper piece worth 1 cp" or even "a one-cp coin", I'm not sure that it means that a "cost is indicated". It seems to more just be describing a random object associated with the spell like other "normal" spell material components. But then again, I can see a good argument that a coin used for currency would be the most straightforward way of indicating a cost that there is.  Obviously in general adventurers won't usually have a lot of trouble finding a copper piece during their travels, but I could imagine some circumstances where it would be inconvenient for a spellcaster to need to dig a coin out of their pouch while their spellcasting focus is already in hand.


I tell laptop to go into suspend, close the lid, and leave for a while (usually overnight). When I open the lid again, system seems to have either restarted or logged me off - all my programs have closed, and my browser behaves as it had previously crashed. If I try to suspend the computer, close the lid, and then open it again after a few minutes, the system resumes normally.   I don't know if what happens is random, or a function of time elapsed since suspension.  I run Ubuntu 18.04 on Thinkpad T480S with integrated Intel and discrete Nvidia cards using nvidia-driver-396.

After the laptop has been in sleep mode for a couple of hours,when I try and resume my session I get the following error:     Read-error on swap device    It takes about 30 seconds for the login screen to load post this happening. Once I log in, the screen blanks out once or twice for a second, and none of my programs are open anymore. I get a "System problem detected" prompt. When I click on "Send Report", another notification pops up saying:     Sorry the program "Xorg" closed unexpectedly. Your computeer does not have enough free memory to automatically analyze the problem and send a report to the developers.   What I have tried so far is to increase the swap space available. It was around 2 GB initially and I created another swap file of 9 GB. This hasn't helped. The occupied swap space ( as per the swapon command ) after the crash is always around 170MB.  The DMESG for when I resume my session, up to the read error on swap device is as follows:       [64046.474054] ACPI: Low-level resume complete [64046.474162] ACPI: EC: EC started [64046.474162] PM: Restoring platform NVS memory [64046.475139] Enabling non-boot CPUs ... [64046.475196] x86: Booting SMP configuration: [64046.475196] smpboot: Booting Node 0 Processor 1 APIC 0x2 [64046.475663]  cache: parent cpu1 should not be sleeping [64046.475859] CPU1 is up [64046.475910] smpboot: Booting Node 0 Processor 2 APIC 0x4 [64046.476330]  cache: parent cpu2 should not be sleeping [64046.476506] CPU2 is up [64046.476539] smpboot: Booting Node 0 Processor 3 APIC 0x6 [64046.477071]  cache: parent cpu3 should not be sleeping [64046.477255] CPU3 is up [64046.477274] smpboot: Booting Node 0 Processor 4 APIC 0x1 [64046.477721]  cache: parent cpu4 should not be sleeping [64046.477922] CPU4 is up [64046.477947] smpboot: Booting Node 0 Processor 5 APIC 0x3 [64046.478371]  cache: parent cpu5 should not be sleeping [64046.478571] CPU5 is up [64046.478591] smpboot: Booting Node 0 Processor 6 APIC 0x5 [64046.479018]  cache: parent cpu6 should not be sleeping [64046.479229] CPU6 is up [64046.479247] smpboot: Booting Node 0 Processor 7 APIC 0x7 [64046.479675]  cache: parent cpu7 should not be sleeping [64046.479899] CPU7 is up [64046.485913] ACPI: Waking up from system sleep state S3 [64046.639206] ACPI: EC: event unblocked [64046.639711] sd 2:0:0:0: [sda] Starting disk [64046.873289] usb 1-11: reset full-speed USB device number 2 using xhci_hcd [64046.976869] ata4: SATA link down (SStatus 4 SControl 300) [64046.976892] ata2: SATA link down (SStatus 4 SControl 300) [64047.149289] usb 1-6: reset high-speed USB device number 40 using xhci_hcd [64047.437370] psmouse serio1: synaptics: queried max coordinates: x [..5660], y [..4570] [64047.476302] psmouse serio1: synaptics: queried min coordinates: x [1364..], y [1284..] [64047.922603] OOM killer enabled. [64047.922605] Restarting tasks ... done. [64047.928727] thermal thermal_zone1: failed to read out thermal zone (-61) [64047.930036] Bluetooth: hci0: Bootloader revision 0.0 build 2 week 52 2014 [64047.935036] Bluetooth: hci0: Device revision is 5 [64047.935037] Bluetooth: hci0: Secure boot is enabled [64047.935038] Bluetooth: hci0: OTP lock is enabled [64047.935038] Bluetooth: hci0: API lock is enabled [64047.935039] Bluetooth: hci0: Debug lock is disabled [64047.935040] Bluetooth: hci0: Minimum firmware build 1 week 10 2014 [64047.935042] Bluetooth: hci0: Found device firmware: intel/ibt-11-5.sfi [64047.944372] PM: suspend exit [64048.050329] Read-error on swap-device (8:0:1543400288) [64048.460888] [drm] RC6 on   Please let me know if any other information is needed.


When visiting a Stack Exchange review url on a mobile device, such as , it looks like the desktop website, not the mobile website.

The other day I was looking at Stack Overflow on my Android phone. All is made very nice and all, but I could not find the Review button/link. Is it being implemented, did I miss it, or it is not available?


I'm working on an assignment for an animation class and there is a gray polygon appearing in my camera persp view and in my renders and I cannot figure out what is causing it.  Here is the blend file:

I am following this  on making an asteroid and when it comes to rendering the scene I get an unwanted "shadow". The shadow starts to appear in frame 36 of the render (but is clearer in frame 40) and i do not know what i have done wrong. Here is the .  The effect described here is clearly visible in the right top corner, like a polygonal darkness.


I have a LaTeX document with:  \documentclass[12pt]{report}   And most of the spacing between paragraphs and images look like this:    When I just change the document class to:  \documentclass[12pt]{book}   Some pages contain way too much space either between paragraphs or between paragraphs and chapter titles or between paragraphs and images.  The same piece becomes:    How can I remove this spacing and what causes it?  The piece of code of that part is:  % ...  \vspace{20pt} \begin{figure}[H]     \centering     \includegraphics[width=350pt]{img/javascript.jpeg}     \caption{Esempio di mancanza di scoping in Javascript. \\Fonte: https://dev.to/murithi/scope-in-javascript-e5e} \end{figure} \vspace{20pt}  \par Questo è solo un esempio di come in alcune situazioni si rischia di perdere molto tempo nel cercare di  sistemare problemi derivanti per lo più da funzionalità poco intuitive del linguaggio.  \par L'unica eccezione all'utilizzo di tale linguaggio sarebbe lo sviluppo di prototipi veloci che poi non saranno  più mantenuti o utilizzati in futuro.  \subsection{Interesse nei linguaggi tipizzati}  \par Ho avuto il piacere di studiare e scoprire Haskell qualche anno fa per conto mio.  % ...

I'm writing my bachelor-thesis and have a couple of small sub-sub-sections explaining conversions, like in the following  \subsubsection*{Assignment}  This document only explains non-compound assignments. The other kind, i.e \texttt{a += b}, is supported by the language too, but is not yet implemented.   \begin{itemize} \item If the first is an \texttt{auto} variable, no conversion takes place when assigning       the right hand side to the variable designated by the left hand side.  \item Otherwise, an assignment conversion takes place converting the given value to the type       of the designated variable.  \item Assignment requires an lvalue as the left hand side, and yields an lvalue result.  \end{itemize}  \subsubsection*{Multiplication} % ...   But latex renders it quite ugly with much space in between the items. I think it does so to fit the whole page. How can I tell it not to do so? Is what I'm doing right at all?


I upgrade Ubuntu from 13.04 to 14.04,and my notebook now does not accept the upgrade and keep getting this message :  The system running in low - graphics mode.Your screen,graphics card,and input device settings could not be detected correctly.You will need to configure these yourself   And when i click ok it takes me into a white board and can not write anything.My question is,what can i do to return back to 13.04 version?

I just installed a new version of Ubuntu and I want to roll it back to the previous version.  How can I do that? Is that even possible?


It seems that I'm missing something fundamental in casting and I don't know what it is!  check this code:  int main(void) {      float current_i;     float floating_part;     int float_to_int_part;      current_i=13;      printf("----------------- current_i = %f ------------------\n",current_i);     current_i=current_i/10;     printf("new current_i = %f \n",current_i);      floating_part = (current_i-(int)current_i);     printf("floating_part = %f\n",floating_part);      float_to_int_part= (int)(floating_part * 10.0); //i have a problem unserstanding where i went wrong here     printf("float_to_int_part = %d\n",float_to_int_part);      return 0; }   the output here is  ----------------- current_i = 13.000000 ------------------ new current_i = 1.300000  floating_part = 0.300000 float_to_int_part = 2   I expected float_to_int_part to be 3 but the output is always 2 which is very confusing. the fact that I don't know why means I'm missing something very basic which could mean I'm missing more basic facts. if someone could tell me what is wrong with my code and suggest a book or a link (that you think will help) to fill this gap.  It's more important for me to know what caused the error. if all my variables are float then the output is correct and my module works.

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


Let $(X, \mathcal{T}_1)$ and $(Y, \mathcal{T}_2)$ topological spaces, let $A \subset X$ and $B \subset Y$ such that $A \times B$ is compact, let $W$ an open set such that $A \times B \subset W$. Prove that there exist $U \in \mathcal{T}_1$ and $V \in \mathcal{T}_2$ such that $A \times B \subset U  \times V \subset W$. My idea. Since $W$ is open in $X \times Y$ then $W= \bigcup_{\alpha \in I} \ (A_\alpha \times B_\alpha)$ where $A_{\alpha} \in \mathcal{T_1}$ and $B_\alpha \in \mathcal{T_2}$, and since $W$ is compact, we have that $$A \times B \subset \bigcup_{i=1}^n \ (A_{\alpha_i} \times B_{\alpha_i})$$ I take $U= \bigcup_{i=1}^{n} A_{\alpha_i}$ and $V= \bigcup_{i=1}^{n} B_{\alpha_i}$, but I'm not sure if $A \times B \subset U  \times V \subset W$.

Let $X$ and $Y$ be compact Hausdorff spaces. And let $A\subset X$ and $B\subset Y$ be closed subspaces. If $U$ is open in $X \times Y$ and $U$ contains $A \times B$, then there exists open subsets $V \subset X$ and $W \subset Y$ such that $A \times B \subset V \times W \subset U$.   I think this is an easier version of the generalized tube lemma since it assumes $X$ and $Y$ being Hausdorff, but I just can't seem to find such $V$ and $W$. I can find some open set in $X \times Y$ containing $A \times B$ but not able to show it is contained in $U$.


Q. If for every sentence $\phi$ of a first-order language $\mathcal{L}$ is s.t. $\mathcal{A} \vDash \phi$ iff $\mathcal{A'} \vDash \phi $, then there is an isomorphism between two interpretations/structures/models $\mathcal{A}$ and $\mathcal{A'}$ of a first-order language $\mathcal{L}$. How do I show that this is false?  $\mathcal{A'}$ and $\mathcal{A'}$ are structures of $\mathcal{L}$ that make the same sentences $\phi$ of $\mathcal{L}$ true.    Yet they don't have to be isomorphic for this to be the case.  I'm not sure how to prove this.   Maybe we could use the fact that it's converse is a theorem, which is the following the theorem: If there is an isomorphism between two interpretations $\mathcal{A}$ and $\mathcal{A'}$ of a first-order language $\mathcal{L}$, then for every sentence $\phi$ of a first-order language $\mathcal{L}$ is s.t. $\mathcal{A} \vDash \phi$ iff $\mathcal{A'} \vDash \phi$.  Many thanks in advance!

I just started learning model theory on my own, and I was wondering if there are any interesting examples of two structures of a language L which are not isomorphic, but are elementarily equivalent (this means that any L-sentence satisfied by one of them is satisfied by the second).  I am using the notaion of David Marker's book "Model theory: an introduction".


If I use (int) to convert a product between a float  type variable and an integer, the result is not what I expect it to. Please see my code.  The expectation is that the result is 4090270, not 4090269  (int)(4090270.0) works correctly  $amount = 40902.70; // Same for  40902.20 $amount= (int)($amount*100); echo $amount; /// Output :  4090269


Consider a real random variable $X$ and a set $M$ included in $\mathbb{R}$ such that $$P(X=x)>0,\forall x\in M.$$ Demonstrate that the set $M$ is finite or countable.   We start by considering for all $n\geq 1$ the set  $$M_n=\{x\in M:P(X=x)\geq 1/n\}.$$ Then we have that  $$\underbrace{\frac{|M_n|}{n}\leq P(M_n)}_{\text{why is the inequality true?}}\leq P(M)\leq 1.$$ I am also not sure why $|M_n|<\infty?$ Perhaps someone can explain.  PS: Sorry for the previous post!

How could one show that the number of atoms in an uncountable probability space is at most countable?


I am running the following script in Platypus but the MAC address does not change:  #!/bin/zsh  IF=en7  mac=`ifconfig $IF | awk '/ether/{print $2}'` echo "$IF mac before change=$mac" randmac=`openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//'` sudo ifconfig $IF ether $randmac mac=`ifconfig $IF | awk '/ether/{print $2}'` echo "$IF mac after change=$mac"   Not receiving errors anymore.  However, the MAC address is not changed by the script.  Commands work individually pasted into Terminal, but not executed as an application by Platypus.  Platypus screenshot:

I tried following a few tutorials, but I get this:   How can I fix this? I added in a info.plist (I just copied and pasted another app's file, and changed around a few things.)  Also, I used chmod +x myApp to make the script executable.  P.S. I am using El Capitan


I recently stumbled on some serious weirdness with python lists if you try to use them like arrays (not by appending):  make a list by duplication:  myLists = 5 * [3 * [0]] print(myLists)   [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]  run this...you get:  for i in range(5):     for j in range(3):         myLists[i][j] = i + j print(myLists)   [[4, 5, 6], [4, 5, 6], [4, 5, 6], [4, 5, 6], [4, 5, 6]]  why only the last row copied everywhere?  now, create the list contiguously with list comprehension:  myLists = [[0 for i in range(3)] for j in range(5)] print(myLists)   here it is (it's the same structure):  [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]]  run the same loops...now you get:  for i in range(5):     for j in range(3):         myLists[i][j] = i + j print(myLists)   [[0, 1, 2], [1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 6]]  now it's correct...  I'm guessing some strange linked-list-related pointer details under the CPython hood cause this, but I don't know what they are...  Can anyone help?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I had this question in mind for long and I think this is the perfect spot to ask.  Consider the following sentences (Just for instance).     We are an equal opportunity employer. However when applying for this job he/she should also mention his/her gender.   So my question is, is there any other proper usage for he/she or his/her instead especially if the description is getting longer ?

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


Let $D$ be a bounded domain, and let $f(z)$ be an analytic function from $D$ to $D$.Show that if $z_{0}$ is fixed point for $f(z)$,then $|f'(z_{0})|\leq 1$  All the conditions above make me think about Schwartz Lemma to solve this problem.But I don't know how to construct a proper function satisfying all the conditions in Schwartz Lemma.

Let $D$ be a bounded domain and let $f$ be analytic function from $D$ into $D$. Show that if $z_{0}$ $\in D$ is a fixed point for $f$ , then $|f' (z_{0} )| \leq 1$.  WHAT I WAS THINKING:   To have a conformal mapping from $D$ to the unit disc & after composing it with $f$ ; I was thinking to use Pick's Lemma. So, can anyone tell me any conformal map from any bounded domain to the unit disc?? OR Is there any other way out to solve this problem??


Six months later, she had not conceived and her anxiety had increased.   Is it grammatically correct to use past perfect twice in the same sentence?

I'm having some trouble with the following sentence:     Since he had arrived, he had seen the rule broken more than once.   For some context, the text itself is a short story and I'm writing it in past tense. Does this mean that the presence of a past simple verb is "implicit", in a way, to the text itself? Does using the word "since" change anything (I know that it is usually supposed to be followed by a past simple verb, but I'm not sure of any exceptions to this)?


I know that there are functions which are continuous but not differentiable, but are there functions which are not continuous, but differentiable?

Theorem: If $f$ is finitely differentiable at $c$, then $f$ is also continuous at $c$.  But according to the definition, for a function to be differentiable at $c$, it need not even be defined at $c$, just that it should have a finite value in the vicinity of $c$.    My question: If function is not defined at $c$, how can it be continuous at $c$?  For example, say we have a straight horizontal line function which is broken at $x=1$, the function is defined at all the points except $x=1$, it has a finite value at all the points except $x=1$, since it is having a value in the nearby region of $x=1$ we say that it is differentiable at $x=1$ but can we say that it is continuous at $x=1$?


I have read  link  But how do I initialize the dictionary as well ?  say two list   keys = ['a','b','c','d']   values = [1,2,3,4]   dict = {}   I want initialize dict with keys & values

Imagine that you have the following list. keys = ['name', 'age', 'food'] values = ['Monty', 42, 'spam']  What is the simplest way to produce the following dictionary? a_dict = {'name': 'Monty', 'age': 42, 'food': 'spam'}


I have to prove by contradiction that if $n$ is a positive integer such as $n^3-n-6 = 0$, so for any positive integer $m$ such as $m ≠ n$, we have $m^3-m-6 ≠ 0$ I am new to proofs, but I tried and here is what I did. I first assume the opposite of the conclusion, so $m^3-m-6 = 0$ $(m-2)(m^2+2m+3) = 0$ m=2 If I do the same thing for the n function and find the solution for $n^3-n-6 = 0, n=2$. This is a contradiction since $m=n$, but we said $m ≠ n$. I feel like im doing something wrong here and I would like someone to tell me what it is ! (Again, I am a beginner)

Prove, by contradiction, that, if $n$ is a positive integer such that $n^3 − n − 6 = 0$, then, for every positive integer $m$ with $m \not = n$, $m^3  − m − 6 \not = 0$.    Proposition: If $n$ is a positive integer such that $n^3 − n − 6 = 0$, then, for every positive integer $m$ with $m \not = n$, $m^3  − m − 6 \not = 0$.  Hypothesis: $n$ is a positive integer such that $n^3 − n − 6 = 0$.  Conclusion: For every positive integer $m$ with $m \not = n$, $m^3  − m − 6 \not = 0$.    My workings  A (Hypothesis): $n$ is a positive integer such that $n^3 − n − 6 = 0$.  A1 ($\neg B$): There exists a positive integer $m$ with $m \not = n$ such that $m^3  − m − 6 = 0$.  A2: $n^3 - n = 6$  $\implies n(n^2 - 1) = 6$ where $n \in \mathbb{Z}^+$  A3: $m^3 - m = 6$  $\implies m(m^2 - 1) = 6$ where $m \in \mathbb{Z}^+$ and $m \not = n$.  A4: $n(n^2 - 1) = m(m^2 - 1)$ where $m \not = n$.  $\implies \dfrac{n(n^2 - 1)}{m(m^2 - 1)} = 1$ where $m \not = n$.  Since $m,n \in \mathbb{Z}^+$, $(n^2 - 1) \ge 0$ and $(m^2 - 1) \ge 0$. Therefore, $n(n^2 - 1) = m(m^2 - 1)$ iff $n = m$.   Contradiction.  $Q.E.D.$    I would greatly appreciate it if people could please take the time to provide feedback on the correctness of my proof. Given that $m \not = n$, did I construct my proof correctly? Or is it incorrect to structure it this way if $m \not = n$?


For 2 independent Poisson processes $X,Y$, with parameters $\lambda_X, \lambda_Y$ respectively, how can I prove that $X+Y$ is a Poisson process with parameter $\lambda_X+\lambda_Y$?  To do this, I suppose you would use the rule $$ P(X+Y = k) = \sum_{n=0}^k P(X = n) \cdot P(Y = k-n) \\ = \sum_{n=0}^k\frac{\lambda_X^n e^{\lambda_X}}{n!} \cdot \frac{\lambda_Y^n e^{\lambda_Y}}{(k-n)!} $$  However, I am unsure of how to continue from here. Can anyone prompt me in the right direction?

$X \sim \mathcal{P}( \lambda) $ and $Y \sim \mathcal{P}( \mu)$ meaning that $X$ and $Y$ are Poisson distributions. What is the probability distribution law of $X + Y$. I know it is $X+Y \sim \mathcal{P}( \lambda + \mu)$ but I don't understand how to derive it.


I have the PS vita demo and was wondering where exactly I can find the Shadow Orb.

I have the PS vita demo, and was wondering if you could find any shadow orbs in that tutorial world. Thanks.


I am about to buy MacBook Air from Kuwait, and I wonder if I can purchase warranty from Canada since am living in Canada and am a student of a University there?

I'm about to travel to the US, where iPods / AirPods / iPhone are much cheaper than in my country.   I wonder if Apple's warranty is international, and/or what warranty coverage exists when I return to my country.  Where can I understand what Apple Warranty covers in the US when products leave the US?


Every few years or so, I go through this fruitless attempt to find a sci fi book we had for required reading in elementary school. I still have friends from back then and not one person can remember the name. I swear it was called "Journey to the Stars" but alas, nothing with that title is the correct book. I'm not even sure if it was a book or a novel; our teacher handed them out in laminated, bound form.  Anyway, the basic premise is: there are different planets and each planet in the galaxy is at a different stage.   There's planets that are very underdeveloped which is the first stage. The second stage of planets are super technologically advanced but because of that, they are about to destroy themselves with the very technology that they arrogantly brag about and their advanced weaponry. The last stage of planets are far more advanced than technology: they have evolved to use telekinesis and can move objects with their minds. they have already seen the worst that technology can do but the survivors evolved into these great thinkers.   In this story, a girl from the most advanced planet meets a boy from the technology planet and it's forbidden for them to be friends. I wanna say the girls name is Alanna/Alana and the boy is Jordan? I could be completely off on the names though. Does anyone have any idea what I'm talking about?

I'm looking for the name and author of a novel (or possibly novella). I first read this in the seventies, and might be older than that. It might have been written for teenagers.  The story takes place on a planet inhabited by a primitive humanoid race, roughly stone age if I remember rightly. Visiting this planet is a small team from a more advanced race, also humanoid and with spacefaring technology (obviously!). They are either there to help or observe, no nefarious purposes. I think they are avoiding contact with the primitives, at least initially. It's explicitly mentioned that the planet they are visiting is the third one of a medium sized star, just like their own homeworld. Also orbiting round the planet is an even more advanced race, using high tech to remain hidden from both the others. They are observing the whole situation, and again its mentioned that this is a 'third planet', like their own homeworld.  I'm a little bit hazy on the rest of the plot, but I think the super-advanced race end up revealing themselves, even though they are not supposed to.  The story is told from the viewpoints of both the second and third races (maybe also the first, I forget)  EDIT: For the record it turns out my recollection was faulty, and the second race are indeed coming to the planet for nefarious purposes. And the planet is at the medieval stage, not stone age.


I'd like to know the definitions of both mathematical terms "consistency" and "completeness".  Would I ask   "What are consistency and completeness?" (i.e., the two nouns are singular, but together they're a collection of things) or "What is consistency and completeness?" (i.e., we can distribute the "What is" to read "What is consistency and what is completeness?")   Thanks.

Which of the following sentences is correct:        There is a lot of food and fruit in the supermarket.   There are a lot of food and fruit in the supermarket.


I am having trouble getting letters to be rendered properly when created as combinations of two or more partial letters (this is a special feature of some Indian scripts, you can form compound sounds by concatenating parts of individual letters according to some rules).  Here's an example of Hindi and another Indian script:    Here's another similar question that has gone unanswered for a long while: .  Is there any way to correct or patch this? Perhaps by installing additional fonts/ encoding schemes? Because it renders just fine on Android and other operating systems that I would like to avoid naming.

Devanagari fonts appear broken like this:     It should appear this way    I have the same problem in browsers and office applications.  Is there any way to fix it?


Hi let's say that I want to replace a large el-ifs statement by a dictionary. A simplify version of this is as follows:   def functionA(a1, a2, a3):      results = {         'case1': a2/a3,         'case2': 1,         ...     }     return results[a1]   so a1 would be a string ('case1' or 'case2' or ...) the problem is in some cases the a3 it maybe 0 so the results dictionary could not be define (in all those cases a1 would not be 'case1'). For instance:  functionA('case2', 1.0, 3.0) Out[81]: 1 functionA('case2', 1.0, 0.0) ZeroDivisionError: integer division or modulo by zero   So in the second case I expected 1 but I am getting an error.  A possible solution is:  def functionA(a1, a2, a3):     results = {         'case1': str(a2) + '/' + str(a3),         'case2': str(1),     }      return eval(results[a1])   Since I have a multiple cases with complex calculations, is there any better solution?

I want to write a function in Python that returns different fixed values based on the value of an input index.    In other languages I would use a switch or case statement, but Python does not appear to have a switch statement.  What are the recommended Python solutions in this scenario?


If $$cos(A-B)+cos(B-C)+cos(C-A)=\frac {-3}{2}$$ prove that $$cosA+cosB+cosC=sinA+sinB+sinC=0$$  My Attempt:  $$cos(A-B)+cos(B-C)+cos(C-A)=\frac {-3}{2}$$ $$cosA \cdot cosB+sinA \cdot sinB+cosB \cdot cosC+sinB  \cdot sinC+cosC \cdot cosA+sinC \cdot sinA=\frac {-3}{2}$$.  How should I go further? Please help me with a simple method.

Okay..this one simple problem but I am really stuck and have no idea how to start.. $\cos(a-b)+\cos(b-c)+\cos(c-a)=-\frac32$ we need to prove $\cos(a)+\cos(b)+\cos(c)=\sin(a)+\sin(b)+\sin(c)=0 $


[WebMethod] [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] public ServiceResponse abc() {     ServiceResponse sr = new ServiceResponse();     return sr; }   but when I hit  in browser I get back xml  <ServiceResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/"> <success>false</success> <message>Error</message> </ServiceResponse>   But I want it to produce json (which i can do from mvc controller easily, but i am bound to use asmx)  What could i do to produce json frommy webservice.asmx ?  I picked up a working function from my mvc and added to service and decorated it like  [WebMethod] [ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)] public object bcd() {     return new { message = "Success", success = true; data : {} }; }   It gives following error  System.InvalidOperationException: There was an error generating the XML document. ---> System. InvalidOperationException: &lt;&gt;f__AnonymousType5`1[System.Int32] cannot be serialized because it does not have a parameterless constructor.   So I use this class for returning response, this is object type to which i want to get as json  public class ServiceResponse {     public ServiceResponse()     {         success = false;         message = "Error";     }     public ServiceResponse(string mesg)     {         success = false;         message = mesg;     }         public bool success { get; set; }     public object data { get; set; }     public string message { get; set; } }

I created an ASMX file with a code behind file. It's working fine, but it is outputting XML.  However, I need it to output JSON. The ResponseFormat configuration doesn't seem to work. My code-behind is:  [System.Web.Script.Services.ScriptService] public class _default : System.Web.Services.WebService {     [WebMethod]     [ScriptMethod(UseHttpGet = true,ResponseFormat = ResponseFormat.Json)]     public string[] UserDetails()     {         return new string[] { "abc", "def" };     } }


Hi I had a question how to how write a script that would first check to see if a given filepath exists and if so outputs the path in readable sentences. I was going to start with   if [ -e "$1" -a -d "$1" ]; then   echo $PATH  else    echo "Path does not exist" fi   so basically I'm just a little confuse on when I run my script ./myscript filename how exactly filename gets passed into $1 so I can check to see if it exists. I was also wondering how to do this to see if a user exists on the system. Any help is greatly appreciated!

What command can be used to check if a directory exists or not, within a Bash shell script?


I'm currently looking for a possibility to stop my T480 from deep discharging my external battery, before switching to the internal battery. It should switch to the internal battery at a percentage of about below 7%.  Optionally this should be combined with an automatic hibernate as soon as the internal battery reaches a certain threshold.  So my questions are:   Is there an existing solution to automatically switch batteries before deep discharging them, which also automatically hibernates if a certain threshold is reached. If there is not, is there a way to manually switch between batteries?   It is possible to write a custom script which checks every few seconds whether the batteries reached the thresholds to switch batteries/hibernate. But for this to work, I would still need a command to manually switch batteries.

The thing is that when an external slice battery pack is connected, the laptop first discharges the internal one. This is a problem because then it is impossible to switch between multiple external battery packs without powering off the laptop. It is also not possible to just disconnect the external battery pack when you e.g. need to insert it into a docking station.  Thus, my question: how to change the discharge order under Linux?  For my use cases following order would make much more sense: when an external slice battery is connected, first discharge it completely before using power from the internal battery.  Background: For some Thinkpad models (e.g. X220) there are slice battery packs () available that you can connect to the bottom of the laptop (similar to a docking station).  They seem to be supported well on Linux - e.g. the Gnome Shell battery applet includes both batteries (internal and external) when connected - including displaying the current capacity for each.


not sure if it is an appropriate  post if not feel free to tell me and I will delete it but I can't find any other resources that answers that...does anyone know if photoshop CS3 will work after i upgrade to windows 10? any info is appreciated

I have some software and I'd like to know if it works on the next version of Windows (Windows 10).


I have a very simple MySQL table where I save highscores. It looks like that:  Id     Name     Score   So far so good. The question is: How do I get what's a users rank?and how can i get the users rank between some (like 2) users with higher and 2 users with lower scores when i have users id.  An Example  Id  Name    Score 1   Ida     100 2   Boo     58 3   Lala    88 4   Bash    102 5   Assem   99 6   cha     105 7   phib    30   In this very case, result would be like this:  Id  Name    Score 4   Bash    102 1   Ida     100 5   Assem   99 3   Lala    88 2   Boo     58

It's quite possible a question like this has been asked before, but I can't think of the terms to search for.  I'm working on a photo gallery application, and want to display 9 thumbnails showing the context of the current photo being shown (in a 3x3 grid with the current photo in the centre, unless the current photo is in the first 4 photos being shown, in which case if e.g. if the current photo is the 2nd I want to select photos 1 through 9). For example, given an album containing the list of photos with ids:  1, 5, 9, 12, 13, 18, 19, 20, 21, 22, 23, 25, 26  If the current photo is 19, I want to also view:  9, 12, 13, 18, 19, 20, 21, 22, 23  If the current photo is 5, I want to also view:  1, 5, 9, 12, 13, 18, 19, 20, 21  I've been thinking of something along the lines of:  SELECT * FROM photos WHERE ABS(id - currentphoto) < 5 ORDER BY id ASC  LIMIT 25   but this doesn't work in the case where the ids are non-sequential (as in the example above), or for the case where there are insufficient photos before the currentphoto.  Any thoughts?  Thanks,  Dom  p.s. Please leave a comment if anything is unclear, and I'll clarify the question. If anyone can think of a more useful title to help other people find this question in future, then please comment too.


I have been just banging my head against the wall on an issue I'm having regarding one of my intranet sites, and why the AJAX calls are slow, once the site is added to one of our servers.   I will have some details to show, and it may come down to server configuration, as I don't think anything is wrong with my code.

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


-Which one of these is the most commonly used in English?   Chemist, or Chemist's  Pharmacist, or Pharmacy  Druggist, or Drugstore

In the States, we use the term "pharmacy" or "drugstore," but what is the equivalent in the UK? I checked two sources, but came up with nothing.


I am working with linux 3.19.0+ and I want to know if my linux kernel supports f2fs (Flash-Friendly File System). How do I know that?

I'm trying to detect what filesystems a kernel can support. Ideally in a little list of their names but I'll take anything you've got.  Note that I don't mean , just ones that the current kernel could, theoretically support directly (obviously, fuse could support infinite numbers more).


I am trying to make this command where a lightning bolt will be summoned at every arrow shot from a specific bow, and I need it to work on multiplayer. I have tried to use the /testfor command but cannot figure out how to target the exact player shooting the bow. Does anyone know how to do this?

I'm trying to make a command block that spawns an item in front of you if you are holding an item with a specific name. I've got these two working scripts;  /testfor @p[r=10] {Inventory:[{tag:{display:{Name:"Item Name"}}}]}  /testfor @p[r=10] {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"minecraft:diamond_sword"}]}   but I can't get them together. The block should only look for an item in the active slot.


I have a log file where each entry is delimited by a series of ---, similar to this:  ----------------- Name=Operation1 Time: 100 Status=Success ----------------- Name=Operation1 Time: 500 Status=Failure ----------------- Name=Operation2 Time: 200 Status=Success ----------------- Name=Operation2 Time: 800 Status=Failure -----------------   I would like to extract all of the entries matching certain criteria (i.e. all entries where Name=Operation1 or all entries where Status=Failure). I thought I could use agrep as follows: agrep -d "---*" -e "Name=Operation1" mylogfile > myfilteredlogfile but after inspecting the file it doesn't seem to filter as I expected. What's wrong with my filtering and how can I extract my desired entries?

Using just shell script, how to search a text file and list all whole blocks of lines that has inside some text (simple grep criteria).   The text file has blocks of lines separated by "-----------------" (precisely, each block start with "\n\n\n--------------------"... about 50 chars "-").  A sample could be:  ------------------------------- Abracadabra, blablablalbalba blablablabla, banana    ------------------------------- Text, sample text, sample text, sample text Text, sample text, sample text, sample text Text, sample text, sample text, sample text Text, sample text, sample text, sample text   -------------------------------   Text, sample text, sample text, sample text banana. Sample text, sample text, sample text, sample text Text, sample text, sample text, sample text   Lets consider the word "banana" the search criteria. So, the blocks listed would be:  ------------------------------- Abracadabra, blablablalbalba blablablabla, banana   ------------------------------- Text, sample text, sample text, sample text banana. Sample text, sample text, sample text, sample text Text, sample text, sample text, sample text   EDIT:  Testing answers to try awk, like: awk 'BEGIN{RS="\n------------"}/INFO/{print}' where INFO is what was searched for. I cannot get the whole block. So, follows a real sample and the result:  A REAL SAMPLE (including the first 3 new lines):      ------------------------------------------------- Diretório separado do nome o arquivo: adis, IWZLM (/home/interx/adis/src/IWZLM.SRC) Gerando rotina em linguagem C: (yla5 adis IWZLM -if) .INFO =>Rotina BLOQUEADA (status 'M'): Geracao ignorada (use -is para ignorar checagem do status)  [  OK-I ] IWZLM (adis) - Lista lay: Geracao ignorada do codigo em C.    ------------------------------------------------- Diretório separado do nome d arquivo: adis, ADISA (/home/interx/adis/src/ADISA.SRC) Gerando rotina em linguagem C: (yla5 adis ADISA -if) .ERRO: Falha inesperada  Compilando o programa: (ycomp adis ADISA -exe adis/exe/ADISA.temp.exe ) adis/exe/ADISA.temp.exe => adis/exe/ADISA  [  OK   ] ADISA (adis) - Menu A : Gerada e compilada com sucesso.    ------------------------------------------------- Diretório separado do nome o arquivo: adis, ADISD1 (/home/interx/adis/src/ADISD1.SRC) Gerando rotina em linguagem C: (yla5 adis ADISD1 -if) .ATENCAO: Definicao nao localizada  Compilando o programa: (ycomp adis ADISD1 -exe adis/exe/ADISD1.temp.exe ) adis/exe/ADISD1.temp.exe => adis/exe/ADISD1  [  OK   ] ADISD1 (adis) - Menu : Gerada e compilada com sucesso.   I cannot get the whole block, just the line containing "INFO", like a ordinary grep, either setting or not ORS:  $ cat file  | awk 'BEGIN{RS="\n------------"}/INFO/{print}'  .INFO =>Rotina BLOQUEADA (status 'M'): Geracao ignorada (use -is para ignorar checagem do status)   NOTES: It is the awk from AIX 7.1, not gawk.


I have an iMac with a pair of wireless keyboard/trackpad and another Macbook Pro (MBP). I just got a thunderbolt cable and try to use iMac as an external monitor for the MBP.  However, one problem is that, I have to press cmd+F2 on iMac. Then after that the wireless keyboard/trackpad will have problem pair with MBP using bluetooth, because it's still paired with iMac.  Is there a better way to have keyboard/trackpad easily switch between my iMac and MBP? I know two of the solutions but none of them seems to be very appealing to me: 1) Buy another pair of keyboard/trackpad just for MBP 2) Logitech got a easy-switch keyboard but no easy-switch trackpad  Any suggestion would be great. Thanks.

I work out of my house where I have two computers: a mid-2010 Macbook Pro (for my day job) and a mid-2010 iMac (personal). During the workday, my iMac acts as a second display for my Macbook Pro via Mini Displayport.  Currently, I use a USB keyboard and mouse for my work computer and a Bluetooth keyboard and Magic Mouse + Magic Trackpad for use with my personal computer. I'd like to get rid of the wired keyboard and mouse and just use the Bluetooth stuff for both machines (but never simultaneously).   Is it possible to easily share the single set of input devices without having to repeatedly break and reestablish the pairing of the input device to the correct computer? I'm not opposed to buying some type of additional hardware to accomplish this, provided it's not prohibitively costly or cumbersome to use or configure.  It's not clear to me how I would tell the MacBook Pro to leave the devices alone so the iMac can have them for the evening. I want to avoid de-pairing and re-pairing the devices each time I want to shift them back or forth.  Basically is there software or hardware that works as a Bluetooth KVM switch?


I have set up a google groups email dist list in order to forward emails from a regular gmail account to members of my google group. Here is the issue: I have put the google groups email in the "Add a forwarding address", hit "send confirmation code" but have no clue where that code goes to retrieve it to put into "verify" window. Where does the confirmation code go? How can I retrieve it to verify the forwarding?

I run the office lotto syndicate.  I get a results email that I want to detect via a filter, and forward to a group containing the lotto syndicate members.   Is this possible? I can't seem to figure it out..