sorry for my english  i was thinking in buy a samsung galaxy tab 3 p5210 in christmast but before i want to know if i could install ubuntu touch  i wathed that is available for galaxy tab 2   and  but i dont found noting about samsung galaxy tab 3

With the announcement of the Ubuntu Phone OS I'd like to know what phone (and tablet) models are supported at this time.  Note from foss & Oli: We are making this the master question for all future "Will this work on <insert random tablet/phone/device here>?!" questions


I've noticed that when using the MinionPro package, some glyphs like ligatures and oldstyle figures would be mapped to another character.   For example, compiling  \documentclass{article} \usepackage[opticals]{MinionPro} \begin{document} 123 Th fj fi ffj \end{document}   using pdfLaTeX yields a PDF document that looks correct    but if copied, it actually yields other glyphs like Ïth û ö.  I realise that this could be solved using glyphtounicode, but I'm thinking of how this property can be used to actually prevent plagiarism if I make all the glyphs map to wrong characters.   How can I achieve this using either pdfLateX or XeLaTeX? Is it as simple as creating a randomised custom glyphtounicode?

Is it possible to produce a PDF with un-copyable text? I mean, when you want to copy text from the PDF, you can't copy it or what you copy is nonsense characters.


I am making a spaceship corridor in blender cycles, but when I render it out it gets really grainy in terms of shadows.  Can anyone help me?

I know that this question is a bit old or maybe overdone, but I'm running the latest edition of Blender and when I use the Cycles engine I get really fuzzy results and I can't find a simple, non-compromising solution to the quality.  I don't know exactly what I'm doing wrong here, but I'm sure others share my frustration.  Leaving everything in default settings, I started a new project and switched to the Cycles render.  I duplicated the cube and set colors for two Diffuse BSDF shaders, then went ahead and made walls and a floor all sharing the same diffuse shader.  I made two windows to emit blue light.  The screenshot has gaps between the walls because of the setup:  I'm aware that it's considered very incomplete and many have come to terms with some amount of noise, but is this normal?  Furthermore, with default settings or not, I can't change the amount of noise produced.  Supposedly, using "progressively refine" in the rendering tab should make it refine itself indefinitely, however Cycles only counts to 10 refines and then stops, creating a render which is a pixel-perfect match of the ordinary rendering method when it's completed.  I understand that there are tricks that can be used to reduce noise, but at the cost of extra processing time and usually small quality conflicts, like blurring.  My question essentially boils down to is this Cycles' current limit?


for some unknown reason, google seems to be prefixing my page title with the brand rather than leaving the brand at the end.   Example, my title is written like so.   Some Phrase 1 | Some Phrase 2 - MyBrand  Now when google displays my results, it's displayed as  MyBrand: Some Phrase 1 | Some Phrase....  Now my title is only 55 characters long, so well below the the maximum, does anybody know why this might be happening?  Some related info I found

I'm just wondering how it is possible that IGN.com has this in its title tag:      Video Games, Cheats, Walkthroughs, Game Trailers, Reviews, News, Previews & Videos at IGN   while on Google its title is simply "IGN".   How can one achieve such a thing? Does it use some special meta tag I can't see?


I have installed Ubuntu 18.04 on my laptop. How do I resolve this? Thanks  $ lspci -knn | grep Net -A3; rfkill list 03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: Hewlett-Packard Company RTL8821CE 802.11ac PCIe Wireless Network Adapter [103c:831a] 04:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] [1002:15dd] (rev c5)     Subsystem: Hewlett-Packard Company Vega [Radeon Vega 8 Mobile] [103c:84ae]     Kernel driver in use: amdgpu 0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no

I have recently a purchased Lenovo Thinkpad E480 laptop, I have installed Ubuntu 18.04 on it, everything is working fine except am not able to connect to network via WiFi. Please help.  I followed this , but am unable to solve the issue.  Below are the outputs of some commands.  lsb_release -a  No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04.1 LTS Release:    18.04 Codename:   bionic   uname -r  4.15.0-33-generic   rfkill list all  0: tpacpi_bluetooth_sw: Bluetooth     Soft blocked: no     Hard blocked: no 1: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   lspci -nnk | grep 0280 -A3  05:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter [10ec:c821]     Subsystem: Lenovo RTL8821CE 802.11ac PCIe Wireless Network Adapter [17aa:c024] 06:00.0 SD Host controller [0805]: O2 Micro, Inc. SD/MMC Card Reader Controller [1217:8621] (rev 01)     Subsystem: Lenovo SD/MMC Card Reader Controller [17aa:5068]   sudo lshw -C network   *-network                         description: Ethernet interface        product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:03:00.0        logical name: enp3s0        version: 10        serial: 8c:16:45:a3:d9:f1        size: 100Mbit/s        capacity: 1Gbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 ip=192.168.2.2 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:16 ioport:d000(size=256) memory:f1204000-f1204fff memory:f1200000-f1203fff   *-network UNCLAIMED        description: Network controller        product: Realtek Semiconductor Co., Ltd.        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:05:00.0        version: 00        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress cap_list        configuration: latency=0        resources: ioport:c000(size=256) memory:f1100000-f110ffff   It seems I have to clone, compile and install the required WiFi driver, please guide me which WiFi driver to use and how to install (with steps if possible).  P.S.: Let me know if any further information is needed to solve this issue, I will add the required info (if any) in the question as per the guidance given.


I have a number of raster files saved locally which I use for basemapping in QGIS. I have built virtual raster fields to load these in one go but I'm looking to store them within my PostgreSQL database to share with other users.  Does anyone know whether this is possible?

I am using Postgres 10.3 / Postgis 2.4.2, and I have thousands of ".asc" files (LiDAR DTM/DSM files) to import to the db. However, the format is something like:  ncols 1000 nrows 1000 xllcorner    297000 yllcorner    519000 cellsize     1 NODATA_value -9999 -3.616 -3.617 -3.618 etc   What is an easy way to import this data into PostgreSQL/PostGis?


Sure, I could just wait and download it, but I really want to get my hands on it right away. Besides, I don't have a fast connection where i'm currenly living so it could take some time to download. Thanks for your attention. By the way, I know there's a lauching party on a city nearby, but I really don't think I could make it on time >.<

I need to upgrade my existing Ubuntu system, and I also want to install Ubuntu on a new laptop.  I would like to have an installation CD or DVD to do both of these.  Where exactly I can order or request an Ubuntu installation CD/DVD/USB?


I don't have a strong background in statistics, but I'm a programmer and needed to implement some statistical aggregate functions in the DSL I'm writing. This DSL processes events in an online fashion, with sub-linear memory constraints.  I've come across   by John D. Cook and implemented both structures.  The second post is about implementing the online linear regression. I did it, and it seems to have consistent results with all implementations I've found on the internet.  But, looking for more info on it, I saw  here on this site. And most answers seem to agree that it is not possible to compute running the linear regression. I find this a little confusing since I have an actual implementation that does so.  So, that's the question: is it possible to implement running/online linear regression? If not, what is wrong with the method I implemented?

A paper "Accurately computing running variance" at  shows how to compute running mean, variance and standard deviations.  Are there algorithms where the parameters of a linear or logistic regression model can be similarly "dynamically" updated as each new training record is provided?


I get 4-5 telemarketer calls each day.  Each time they call, it is from a completely different phone number.  Including different area codes.  I've performed all of the usual procedures to combat this.  •  Contacted my carrier (AT&T).  They will block 30 or so numbers for free but then it costs after that.  This is useless because I get 30 different numbers in a week.  AT&T suggested changing my number (for a FEE).  •  I've changed my number.  It went from bad to worse.  I actually get more on this new number.  I swear I don't put my number out there, I don't sign up for garbage, etc.    •  I've tried telling these "companies" to remove me from their list.  They immediately hang up on me when I do that.  I've tried calling the numbers, it never goes through.  They are unreachable.  Even AT&T admitted they can't track them.  •  I've registered for the national "do not call" registry.  This hasn't helped at all.  I'm running out of ideas.  I'd love to just turn my phone off but I can't because of work.  For each number I get, I immediately add it to the block numbers.  But this only stops repeat numbers.  So, my question is, is there a way in iOS to literally block entire area codes?  I seriously don't care if I block a few legit numbers for the sake of sanity.  I sometimes get telemarketers from my area code but those are more rare.  I have an iPhone 6 with the latest version if that helps.

Recently I have been getting a few unwanted telemarketing calls, all coming from the same source. Each number though is different at the end.  For instance, if the numbers to be blocked are:    123-4567 123-7642 123-8643   It would be convenient for the future to simply block with a wildcard, such as:   123-*   Is this at all possible?


I know that I must not use vertical rules but I'm trying to reproduce a SAS output like this:    When I use a simple tabular my code works well (see the first table below), but when I use one or more X column from tabularx some undesired vertical space appears (see the 2nd and the 3rd tables below).  What am I doing wrong?  \documentclass{book}  \usepackage{array} \usepackage{tabularx} \renewcommand*{\arraystretch}{1.1} \usepackage{tcolorbox} \newcommand{\stilecomandoa}{\color{blue!60!black}\bfseries}  \begin{document}      \begin{center}         \begin{tabular}{|>{\stilecomandoa}r|l|l|r|}             \hline             \multicolumn{4}{|c|}{\stilecomandoa Alphabetic List of Variables and Attributes}\\                   \hline             \# & {\stilecomandoa Variable} & {\stilecomandoa Type} & {\stilecomandoa Len} \\             \hline             3 & Age & Num & 8 \\             \hline             4 & Height & Num & 8 \\             \hline             1 & Name & Char & 8 \\             \hline             2 & Sex & Char & 1 \\             \hline             5 & Weight & Num & 8 \\             \hline         \end{tabular}         \end{center}     \begin{center}         \begin{tabularx}{.7\linewidth}{|>{\stilecomandoa\arraybackslash}X|X|X|X|}             \hline             \multicolumn{4}{|c|}{\stilecomandoa Alphabetic List of Variables and Attributes}\\                   \hline             \# & {\stilecomandoa Variable} & {\stilecomandoa Type} & {\stilecomandoa Len} \\             \hline             3 & Age & Num & 8 \\             \hline             4 & Height & Num & 8 \\             \hline             1 & Name & Char & 8 \\             \hline             2 & Sex & Char & 1 \\             \hline             5 & Weight & Num & 8 \\             \hline         \end{tabularx}     \end{center}     \begin{center}         \begin{tabularx}{.7\linewidth}{|>{\stilecomandoa\arraybackslash}r|X|X|r|}             \hline             \multicolumn{4}{|c|}{\stilecomandoa Alphabetic List of Variables and Attributes}\\                   \hline             \# & {\stilecomandoa Variable} & {\stilecomandoa Type} & {\stilecomandoa Len} \\             \hline             3 & Age & Num & 8 \\             \hline             4 & Height & Num & 8 \\             \hline             1 & Name & Char & 8 \\             \hline             2 & Sex & Char & 1 \\             \hline             5 & Weight & Num & 8 \\             \hline         \end{tabularx}        \end{center} \end{document}

I haven't been able to find a solution, so I'm hoping for any suggestions.  When I try to change the font color in my table, I get extra spacing above and below the lines with the color-changed font.  Any way to work around this?   \begin{tabular}{>{\raggedright}p{0.5cm}>{\raggedright\arraybackslash}p{9cm}} \ding{47}                & Test 1 \\ {\color{new}{\ding{47}}} & {\color{new}{Test 2}} \\ {\color{new}{\ding{47}}} & {\color{new}{Test 3}}\\ {\color{new}{\ding{47}}} & {\color{new}{Test 4}} \\ \ding{47}                & Test 5\\ \end{tabular}\   An image of what's happening:


Assume a powerful or rich person (like a boss in an office) and assume there is guy who wants to get some benefits from that person. He always does every thing and says every lies to make the powerful guy happy. I know an impolite phrase to describe this person, which has something to do with kissing certain part of the body of the powerful guy. But, I was wondering what is the polite and literal way to call this type of individuals and what is called this action?

Is there a single noun or adjective for a person who is always flattering friends and acquaintances, not only to be liked and accepted but, at other times, to curry favor with them as well ?  I'm not looking for regionalisms but a word that will be understood in any English speaking country.


Prove that for every integer $n \geq 0$,  the number $4^{2n+1}+3^{n+2}$ is a multiple of 13.

How can I prove that $4^{2n+1}+3^{n+2}$ is always divisible by 13?


More generally, if a blackhole is a singularity...a point in space...why is matter only circling in a flat disk-like region.  It would seem to me matter would circle it in a sphere surrounding the black hole.  Furthermore...and this also echoes another question asked here at some point...why does the matter circle in one direction?  Being a lay-person in physics, I'm sure there are some basic principles I'm not aware of, but it seems strange to me that the matter around a black hole is a disk spinning in one direction.

Most images you see of the solar system are 2D and all planets orbit in the same plane. In a 3D view, are really all planets orbiting in similar planes? Is there a reason for this? I'd expect that the orbits distributed all around the sun, in 3D. Has an object made by man (a probe) ever left the Solar System?


How do I get the source code of the Ubuntu operating system? How do I run the modified code? What programming languages can be used to modify the code?

I would like to know where to find the source code of Ubuntu. I'd like to see how far it is "open source".


Verified, it does not have the answer in the linked post.  I would like to create table of contents based on chapters. When I insert command \tableofcontents almost at the top -- after opening document and making few definitions, as the result I get empty TOC (not desirable).  When I move it right before new chapter (as an experiment) and I get nothing -- i.e. no TOC at all (empty TOC has at least heading "Table of contents").  For example:  \tableofcontents   \begin{verse} some quote \end{verse}  \def\enddoc{}  \def\input#1{}  \include{intro1} \include{intro2}  \chapter{Program}    intro1 and intro2 are chapters written as separate files. This gives me empty TOC, when I move TOC before chapter "Program" TOC is not created.  I added usepackage with \usepackage{tocloft,calc} and \usepackage{titletoc}. No change at all?  What do I do wrong way?    Update  I found the culprit, but I don't know how to fix it. My entire document consists of several chapter (with bibliography), each chapter is written as separate file. The preamble is also saved as separate file.  What's important currently I can create each chapter as separate pdf (on its own) -- because each chapter includes preamble, not only the main .tex file.   In the main .tex file I have such line:  \def\input#1{}   I don't know what it does (my mistake, I should I added explanation in comment), but it allowed me to build entire document so far.   When I tested it on the stripped sample .tex, removing it allows TOC to be created correctly, but when I comment it in my main document (not just sample) the compilation fails right from the beginning. First separate chapter file includes preamble (so the inclusion is from the middle of .tex file really) and I get error:  Can be used only in preamble. \documentclass   So, is it possible to build TOC nevertheless, or should I drop this separation if I want to create TOC?

I'd like to know how to create a table of contents in LaTeX. For example, if I were to write a book, I would want something like this  Contents      Chapter 1       1.1 Real Analysis .............. 1       1.2 Role of LUB Axiom........... 3   How do I create this? I'd like to know.


I know there are responses for Windows 7 but I am looking for Windows XP  I am what I would consider a power user, at a given time I am likely to have 4-5 terminal instances, Eclipse, Websphere, Word, Notes, etc running fairly heavily on a pretty mediocre machine running Windows XP. My appeals to get a better laptop (or use my own) have been hindered by the fact that the help desk cannot find anything "wrong". I thought I might be able to make my case by tracking my resource usage.  At a minimum I am looking for something like top where it shows me avg load over a period, but I would prefer some kind of historical tracking.  Anyone have a good tool?

Basically, I want to track which processes are running and their cpu % throughout the day to pinpoint random freezing and slowness. I would like to go in to a text file and see a log of the previous days processes, or something to that effect.


This is my current command:  /summon horse ~ ~3 ~4 {Tame:1, SaddleItem:{id:saddle,Count:1}, ArmorItem:{id:leather_horse_armor,display:{color:3949738},Count:1}}   What's wrong with it?

I am making a Minecraft Mini Game adventure map, and one of the levels has a /setblock command, I am using the command in a way to spawn an item in a chest (Wooden Button) I need the wooden button to have CanPlaceOn tag so it can be placed on a log. I have tried this command: setblock 294 5 -1251 minecraft:chest 0 replace {Items:[{Count:1,Slot:0,id:minecraft:wooden_button,CanPlaceOn:[log]}]}`


Show that if a holomorphic function has a constant absolute value, it must be a constant.   Suppose $f(z)=u(z)+iv(z)$ is holomorphic (where $z=x+iy$ is complex), and that $(u(z))^2+(v(z))^2=C$ for some constant $C$.   We have $\dfrac{\partial((u(z))^2+(v(z))^2)}{\partial x}= 0$. Applying the chain rule, we find that $$u(z)\cdot\dfrac{\partial u(z)}{\partial x} + v(z)\cdot\dfrac{\partial v(z)}{\partial x} = 0$$  Similarly, $$u(z)\cdot\dfrac{\partial u(z)}{\partial y} + v(z)\cdot\dfrac{\partial v(z)}{\partial y} = 0$$  Using the Cauchy-Riemann differential equations satisfied by any holomorphic function: $$u(z)\cdot\left(-\dfrac{\partial v(z)}{\partial x}\right) + v(z)\cdot\dfrac{\partial u(z)}{\partial x} = 0$$  We can write as a matrix form:  $$\begin{pmatrix} u(z) & v(z) \\ v(z) & -u(z)\end{pmatrix}\begin{pmatrix}\frac{\partial{u(z)}}{\partial{x}}\\\frac{\partial{v(z)}}{\partial{x}}\end{pmatrix} = 0$$  For values of $z$ such that the matrix $A=\begin{pmatrix} u(z) & v(z) \\ v(z) & -u(z)\end{pmatrix}$ is invertible, we get $\dfrac{\partial{u(z)}}{\partial{x}}=\dfrac{\partial{v(z)}}{\partial{x}}=0$. But what can we do for values of $z$ such that the matrix $A$ is not invertible?

How can I prove the following assertion?    Let $f$ be a holomorphic function such that $|f|$ is a constant.  Then $f$ is constant.    Edit: The more elementary the proof, the better. I'm working my way through a complex analysis workbook, and by this exercise, the only substantial thing covered has been the Cauchy-Riemann equations.


I had submitted a paper in a reputed journal in more than 2 months back. Upto one month the status was " manuscript is assigned to the editor"  Now, the status of the paper is showing "Awaiting Associate Editor decision". Please, tell what does this status indicates? Is all the reviewers process has been done??

What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take?  Note that this question is about the typical situation and hence not about:   Journals with an atypical workflow, e.g. those that allow for an instantaneous reviewer–author interaction. Exceptional steps or rare occurrences such as withdrawal or .   This is a canonical question on this topic as per . Due to its nature, it is rather broad and not exemplary for a regular question on this site. Please feel free to improve this question.


There is a reading exercise in this book I am using to teach. It goes ...     A: Excuse me, is there a post office near here?   B: Yes. There's post office in Jindrisska Street. Turn right a the traffic lights. It's a big building on a corner.     My question is whether there should be a or the in the last sentence: It's a big building or It's the big building?

I can’t for the life of me figure out where to use a and where to use the — and where there is no article at all. Is there a simple rule of thumb to memorize?   The standard rule you always hear:     “If a person knows which item you are talking about then use "the"   . . . doesn’t clear things up for me, as I have no idea whether or not they know.


On my latop I was using a windows 10, and I stopped sharing one of my folder with full of my fhoto and video archive.  Then I formatted c drive and installed a new fresh Windows 10  Now I cannot access my photos folder, because there is no valid windows user defined for it.  Even if I assign my administrator user as owner, the folder does not allow me to read, move or delete.  Are there any way to solve my conflict?

I bought a new SATA Hard drive and installed a fresh copy of Windows 7 on it. I also installed my old one beside the new SATA HD.  Now I want to access my images / musics and videos but I get this error:      You dont currently have permission to access this folder, click continue to permanently get access to this folder    and when I click continue, I get this new error:      You have been denied permission to access this folder   when I go to the securiy tabs, my username (which is also the administrator on the pc) is not there - My new HDD is called C: and the old one is E: - I tried  and run the CMD - but the CMD directory is:     C:\Windows\System32>   and my drive is E:.


Question is  :  Let $f:[0,1]\rightarrow [0,1]$ be a continuous function such that $f(0)=f(1)$. Let   $$A=\{ (t,s) \in [0,1]\times [0,1]   : t\neq s ; f(t)=f(s)\}$$  The number of elements in $A$ is...... ?  As $f(0)=f(1)$ and i should take care of continuity of $f$ I some how feel that the figure should be like :    which is telling me that there are infinitely many points $(t,s)$ such that $t\neq s$ but $f(t)=f(s)$  I am not sure if this should be the case and if it is so, I am not sure how to write this precisely.  I would be thankful if some one can help me to clear this problem..  Thank you  P.S : This is the first time (after so many years) I am using Paint. So, the figure looks very awkward but please adjust with that.

$f : S^1 \rightarrow  \mathbb{R}$ is a continuous map. Define $$A = \{(x, y) \in S^1 \times S^1: x \neq y, f(x) = f(y)\}.$$   We want to prove that $A$ has uncountably many points.    It seems very evident, but I want a rigorous argument. Thanks in advance.


I have this sql statement.  String sqlQuery ="SELECT "                 +"A.SCOPE_ID, A.SCOPE_KEY, A.NAME, A.DESCRIPTION, A.ROLES "                 +"FROM IDN_OAUTH2_SCOPE AS A "                 +"INNER JOIN AM_API_SCOPES AS B "                 +"ON A.SCOPE_ID = B.SCOPE_ID WHERE B.API_ID IN (?)";   and I have this Integer ArrayList  List<Integer> apiIds = new ArrayList<Integer>();   Suppose the array list have some values in it. How can I get the result set for all the apiIds in one database call.

What are the best workarounds for using a SQL IN clause with instances of java.sql.PreparedStatement, which is not supported for multiple values due to SQL injection attack security issues: One ? placeholder represents one value, rather than a list of values.  Consider the following SQL statement:  SELECT my_column FROM my_table where search_column IN (?)   Using preparedStatement.setString( 1, "'A', 'B', 'C'" ); is essentially a non-working attempt at a workaround of the reasons for using ? in the first place.    What workarounds are available?


Q: Let $f$ be a continuous function on [0, 1] and its derivative $f'$ is continuous on [0, 1]. Show that$$|\frac{1}{n}\sum_{k=0}^{n-1}f(\frac{k}{n})-\int_0^1f(x)dx|\leq\frac{M}{2n}$$ where M is the maximum value of $|f'|$ on [0, 1].  I find this inequality very tricky to understand. Because the max $|f'|$ just came out of nowhere... I tried to draw a graph of $\frac{1}{n}\sum_{k=0}^{n-1}f(\frac{k}{n})$ but didn't get much information. Could somebody give me a hint or the direction of the solution?

This question is inspired by a . It was shown that, for all function $f \in \mathcal{C} ([0, 1])$,   $$ \lim_{n \to + \infty} \sum_{k=0}^{n} f \left( \frac{k}{n+1} \right) - \sum_{k=0}^{n-1} f \left( \frac{k}{n} \right) = \int_0^1 f (x) \ dx.$$  A stronger statement would be that there exists some constant $a(f)$ such that:  $$\sum_{k=0}^{n-1} f \left( \frac{k}{n} \right) = n \int_0^1 f (x) \ dx + a(f) + o(1),$$  or, in other words, that there is an asymptotic development at order $1$ of the Riemann sums:  $$\frac{1}{n} \sum_{k=0}^{n-1} f \left( \frac{k}{n} \right) = \int_0^1 f (x) \ dx + \frac{a(f)}{n} + o(n^{-1}).$$  Given $f$, can we always find such a constant $a(f)$? If this is false, can we find a counter-example? If this is true, can $a(f)$ be written explicitely?  I have had a quick look at the litterature, but most asymptotics for the Riemann sums involve different meshes, which depend on the function $f$.


A site's weekly newsletter includes three standard sections: top new questions, greatest hits, and unanswered.  How are the questions for each section chosen?  I can imagine that "top new questions" might be based on hotness, "greatest hits" might be random within a set of questions that meet some unknown-to-me threshold, and "unanswered" might use the same algorithm as the community bump on the main page.  But that's all guess-work, and I know I've seen newsletters sometimes that have left me scratching my head.  I vaguely recall seeing a meta post that explained how the newsletter content is chosen, but I couldn't find it in the  tag here on MSE or by searching.  So maybe it was on a per-site meta, but if so I don't know which.

In , we know that there are 3 sections in weekly newsletter and they are all automatically selected by the Stack Exchange system. How does the system select questions?


I've been using windows 7 on my HP Pavilion G6 for quite a while now, I've always wanted to install Ubuntu and have all the files on my USB Flash Drive after using Universal USB installer. My USB is a Cruzer Edge 4gb, and I just want to know the chances of it breaking (there is also no boot from usb option)  EDIT: Not sure if this is a problem, but I've installed it on virtualbox and it's really, really, really laggy.

I would like to see a full how-to guide on how to install Ubuntu.


Prove: If $a$ and $b$ are odd integers, then $8\mid (a^2-b^2)$  So far I have: $$8\mid \left((2n+1)^2-(2m+1)^2\right)\Longleftrightarrow 8\mid \left(4n^2+4n+1-4m^2-4m-1\right) $$ Is this right so far? Where do I go from here? Step by step explanation please!

If $a,b \in \mathbb{Z}$ and odd, show $8 \mid (a^2-b^2)$.   Let $a=2k+1$ and $b=2j+1$. I tried to get $8\mid (a^2-b^2)$ in to some equivalent form involving congruences and I started with $$a^2\equiv b^2 \mod{8} \Rightarrow 4k^2+4k \equiv 4j^2+4j \mod{8}$$ $$\Rightarrow k^2+k-j^2-j=2m$$ for some $m \in \mathbb{Z}$ but I am not sure this is heading anywhere that I can tell.  Second attempt: Use Euler's Theorem and as $\gcd(a,8)=\gcd(b,8)=1$ and $\phi(8)=4$, $a^4 \equiv b^4 \equiv 1 \mod 8$ so $a^4-b^4\equiv 0 \mod{8}$.  I haven't gotten too much further are there any hints?


I have a file containing a list of commands which I run from my .bash_profile as   source my_cmds   For eg:  $cat my_cmds  scripts=~/scripts   assuming my $HOME is /Users/knayak, when I run cd $scripts in the prompt, it takes me to /Users/knayak/scripts  Now, I have a path in this form(which cannot be renamed for some reasons), for which I don't know how to set a command variable so that I can cd $path using that variable.  /Users/knayak/Somedir - some name Inc/Tasks   I tried adding all these in my my_cmds file to set an environment variable tasks,    $cat my_cmds  tasks=~/Somedir - some name Inc/Tasks tasks="~/Somedir - some name Inc/Tasks" tasks=~/"Somedir - some name Inc/Tasks" ...   and many more, including single quotes in some, but none of them seem to work when I do cd $tasks. Most of them fail with the error.     cd: "/Users/knayak/Somedir: No such file or directory   I need to set the proper value in the form tasks=~/<whatever>  for cd $tasks to work with this path?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


I have this issue . To solve it, I have to use terminal using Alt+F2. However it demands login and password to take actions in terminal. I forgot my login. Any ideas?

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


We recently bought a little old house with a detached garage that had been converted into a study or studio. There's a great sagging bundle of cables running from the main house to the studio. Some are obviously phone lines, some look like coax cable. None are obviously power lines, but there's definitely electricity in the studio.   We don't have a landline and when we set up our cable they ran a new cable line, and I assume that if we ever wanted a landline they'd start that from scratch, too. So I'd really like to cut these cables, but I obviously don't want to go out with my wire cutter and snip the power line.   Where the power lines come into the main junction box from the street they run through porcelain insulators. I haven't figured out where the power for the studio actually runs.   I've tried to trace them to their respective sources, but at various points they've been painted over and it is really hard to sort out where each wire is coming from or going to.    So my question is: how do I ensure that I won't electrocute myself before I cut any particular wire?

If I am thinking of replacing a light switch, a light-fitting, a socket/outlet or doing other work with household wiring where there may be 120 Volts or 240 volts present ...  There is already a question on  which is mostly about procedures but ...  what types of tools are available for testing that wires are safe and, as an average householder, which type of tool should I buy to help avoid electrocution?


SCENE-1: (face disappears) A girl applies a cream for a pimple problem and the pimples will disappear and she is warned to not apply excess cream. In college she applies more cream and her body facial parts will disappear.  SCENE-2: (Dream world) Same girl falls from sky with parachute and lands in classroom because of bad guy and covers with parachute cloth and she controls the dream and makes everyone in classroom be wrapped by parachute cloth to escape embarrassment.   SCENE-3: (Mermaid) A girl becomes mermaid and swims in swimming pool.

I remember watching a TV show where there's a family consisting of a father, mother, elder daughter and a son. The intro of the show is like any other intro just showing them and their names and some scenes from the show like some alien/robot shoots some green stuff at him and he jumps behind the couch. I watched it between 2002-2005.   I remember only two scenarios from the show:   Where the girl becomes a mermaid, she just applies some gel on her legs and it turns her into a mermaid and then she participates in a show. Where her brother grows up into a man in a day and he has this robot, which looks exactly like him. In one scene, the robot goes to the fridge, has a drink and it all leaks from under his shoes (that's how it was shown).   I think it was from Disney, but I'm not sure.  In the intro the show name pops out with mostly green colour with some cartoon characters on top or something (vague).  It was a real show, not reality show. I think it might have the Micky Mouse and Goofy on its name logo. Not sure.


I'm seeing code like this at the beginning of a Java class. This is clearly not a method. What does it do?  static {     // Grab the source ordering and create a lookup table     // e.g. x => 0, z => 1, a => 2...     for (int i = 0; i < Constants.SOURCE_ORDER.length; i++) {         sourceSortOrderMap.put(Constants.SOURCE_ORDER[i], i);     } }

My question is about one particular usage of static keyword. It is possible to use static keyword to cover a code block within a class which does not belong to any function. For example following code compiles:  public class Test {     private static final int a;         static {         a = 5;         doSomething(a);     }     private static int doSomething(int x) {         return (x+5);     } }   If you remove the static keyword it complains because the variable a is final. However it is possible to remove both final and static keywords and make it compile.   It is confusing for me in both ways. How am I supposed to have a code section that does not belong to any method? How is it possible to invoke it? In general, what is the purpose of this usage? Or better, where can I find documentation about this?


I have a directory /sys/class/leds/ with the file bananapro\:green\:usr/trigger that controls an (green) onboard led. The contents of this file just contains the modes for the led. As root, I can run echo "default-on" > /sys/class/leds/bananapro\:green\:usr/trigger and have the led turn on. If I try to do this from a different user, I get the following responce from bash;  bash: /sys/class/leds/bananapro:green:usr/trigger: Permission denied   I have tried also running using  sudo bash -c echo "<command>"   from the non root user (with sudo access) Any recommendations on getting file permissions for users other than root

When you attempt to modify a file without having write permissions on it, you get an error:  > touch /tmp/foo && sudo chown root /tmp/foo > echo test > /tmp/foo zsh: permission denied: /tmp/foo   Sudoing doesn't help, because it runs the command as root, but the shell handles redirecting stdout and opens the file as you anyway:  > sudo echo test > /tmp/foo zsh: permission denied: /tmp/foo   Is there an easy way to redirect stdout to a file you don't have permission to write to, besides opening a shell as root and manipulating the file that way?  > sudo su # echo test > /tmp/foo


Is there a way to permanently modify your PATH from the command line?  I find myself often trying to run a command or two on the DOS prompt, and find out it's not on my path.  I manually find the location, use the tool with a long winded path, and forget to add it to my path so I don't have to do that rigmarole again.    Ideally I'd love to say addToMyPath.exe [dir] and it would auto add to my regkey for the path.  Anything like that exist?

I want to set an environment variable from the command prompt and then be able to access it globally (for instance, I should see it by going to System -> Environment Variables).    When I use the set command, it isn't accessible in a new cmd session.  set NEWVAR=SOMETHING echo %NEWVAR%   Related questions:


How do I show a whiptail checklist from Array?

I would like to show user friendly whiptail menu.  My goal in whiptail is this:  Choice1 Choice2 Choice3 Choice4   I have array consist of:  Choice1 Choice2 Choice3 Choice4   I run array through loop for like this:  for value in ${value[@]} do     echo "$value" done   I could not add whiptail inside echo because I get 4 another menus.  I tried script like this:  $val=$(whiptail --title "xx" --menu "choose" 16 78 10 for value in ${value[@]} do     echo "$value" done 3>&1 1>&2 2>&3)   After run above mentioned script my shell looks horrible.  shell after script:    Is there anybody who solve my problem?


I am using HMAC to create a message authentication code. My question is, does it matter if I use cipher text + encryption key or plain text + encryption key? I had a look at a implementation and as far as I can see they just concatenate the values (message and encryption key) and hash them.

Most of the time, when some data must be encrypted, it must also be protected with a , because encryption protects only against passive attackers. There are some nifty encryption modes which include a MAC (, ...) but let's assume that we are doing old-style crypto, so we have a standalone encryption method (e.g. AES with CBC chaining and PKCS#5 padding) and a standalone MAC (e.g.  with SHA-256). How should we assemble the encryption and the MAC?   MAC-then-Encrypt: Compute the MAC on the cleartext, append it to the data, and then encrypt the whole? (That's what  does) Encrypt-and-MAC: Compute the MAC on the cleartext, encrypt the cleartext, and then append the MAC at the end of the ciphertext? (That's what SSH does) Encrypt-then-MAC: Encrypt the cleartext, then compute the MAC on the ciphertext, and append it to the ciphertext? (In that case, we do not forget to include the initialization vector (IV) and the encryption method identifier into the MACed data.)   The first two options are often called "MAC-then-encrypt" while the third is "encrypt-then-MAC". What are the arguments for or against either?


I'm having a sentence:     The largest rocket ever built - the Saturn V, which launched the first space station and sent astronauts to the Moon ... remains the most powerful vehicle in history.   I wonder whether it is correct to put another dash in the blank. Thank you!

When do you use commas and when do you use parentheses to provide more detail about something?  For example:   The suspect, Tom Wilson, is now being charged with murder. The suspect (Tom Wilson) is now being charged with murder. John Smith, a member of the jury, agreed with the verdict. John Smith (a member of the jury) agreed with the verdict. The first example, the one about the fox, is the more valid one. The first example (the one about the fox) is the more valid one.   I realize that the first example, the one that uses parentheses, is probably more valid in this case (if anyone has a better example, please include it), but when, if ever, would you favor parentheses?  Update: I realize that dashes are sometimes used for similar situations, so I'd appreciate information on these as well.  For example:   The children—who are wearing shoes—will go on the trip The children, who are wearing shoes, will go on the trip The children (who are wearing shoes) will go on the trip


I implemented this function power() which takes two arguments a and b and computes ab.  typedef long long int LL;  LL power(int a,int b) {    int i = 1;    LL pow = 1;     for( ; i <= b ; ++i )      pow *= a;    return pow; }   Given : ab falls in the range of long long int.  Problem : How to reduce the time complexity of my algorithm?

What is the most efficient way given to raise an integer to the power of another integer in C?  // 2^3 pow(2,3) == 8  // 5^5 pow(5,5) == 3125


Following is what I have done so far, but I get an exception every time I run it: class Student{     int sNo; }  public class Array {     public static Student[] createObj() {         Student[] s = new Student[10];         for(int i = 0; i<10;i++) {             s[i].sNo = i+1;         }         return s;     }     public static void main(String[] args) {         Student student[] = createObj();         for(int i = 0; i<10;i++) {             System.out.print(student[i].sNo);         }     } }  This is the exception: Exception in thread "main" java.lang.NullPointerException     at Array.createObj(Array.java:9)     at Array.main(Array.java:14)

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


From man tar:     -f, --file ARCHIVE   use archive file or device ARCHIVE   Please consider:  tar -zxvf myFile.tar.gz   As far as I understand, z means "gzipped tarball", x means "extract", v means "verbose output" but about f I am not sure.  If we already give the file name myFile.tar.gz, why is the f argument needed?

When using tar I always include -f in the parameters but I have no idea why.  I looked up the man and it said;  -f, --file [HOSTNAME:]F  use archive file or device F (default "-", meaning stdin/stdout)   But to be honest I have no idea what that means.  Can anyone shed any light on it?


So... I have just started working with texture paint. I save and exit blender and I come back to see that what I painted is not there anymore. And while painting, when I check the render view, the changes I made in texture paint mode aren't showing up. Can someone help with this?

I was following a  on how to use the Texture Paint feature on blender so I could paint on a terrain I am modeling. I was successful to paint the whole terrain with beautiful, exuberant vegetation, and crystalline water running through the valley.  So I saved my file, and I went to sleep. But now I've reopened the file and everything seems like I left it yesterday, except that I can see no texture in the terrain... The weird thing is that the textures i used are still there... I don't understand, I barely understand the interface, please help. I'm not even sure if the texture is there or if it was never "saved" or something...     I am now going through the second part of the tutorial for possible answers but I (and hopefully many more) will be grateful for your help.


I was reviewing  and noticed that the side-by-side view is rendered incorrectly.   The images are too large, the one in the left column overlaps with the right column and the one in the right column extends into the sidebar.    This behaviour has been confirmed in Firefox and Chromium browsers by me and various other users.  It's probably caused by these not matching styles:  #revisions .sidebyside-diff > div {     width: 330px !important; }  #revisions .sidebyside-diff > div img {     max-width: 410px; }

In reviewing a post in the reopen queue, I came across the following.        (The review in question is )  I don't see anything jumping out at me as a cause, so it could be browser related (just a wild guess though)  Browser: Chrome 43.0.2357.132 m OS: Windows 8.1


I'm using my work laptop to connect to my remote work desktop. When I do that, I get an icon of the remote session in the taskbar of my laptop, which means I can (for example) use Alt+Tab to go from Excel to the remote desktop.   However, when working on the (remote) desktop, I don't have an icon which allows me to use Alt+Tab to go back to my laptop. There is only the blue bar at the top of my screen which I can use to go back to my laptop, for which I need the mouse.  Any idea how to solve this? An alternative would be a suggestion on how to use keyboard shortcuts to go back to the laptop screen from the remote desktop screen.  Thanks

Is there a way, using the keyboard, to switch from a maximized (full screen) Remote Desktop Connection back to the main computer?  I have about 4 Remote Desktop connections that I am switching between and it would be nice to not have to go to the mouse each time I want to switch.  I know I can press Ctrl+Alt+Break and that normalizes the remote desktop screen.  That is close, but I would like a way to just minimize it (so I don't have to normalize->switch->maximize each time I want to switch screens)


I'm trying to set a Windows environment variable using Python.  It seems that, contrary to the docs,  can get environment variables but cannot set them. Try running these in a Windows Command Prompt:  This works:  python -c "import os; print(os.environ['PATH'])"   This does not:  python -c "import os; os.environ['FOO'] = 'BAR'"   Try typing set in the Command Prompt. The environment variable FOO does not exist.  How can I set a permanent Windows environment variable from Python?

From what I've read, any changes to the environment variables in a Python instance are only available within that instance, and disappear once the instance is closed.  Is there any way to make them stick by committing them to the system?  The reason I need to do this is because at the studio where I work, tools like Maya rely heavily on environment variables to configure paths across multiple platforms.  My test code is  import os os.environ['FAKE'] = 'C:\\'   Opening another instance of Python and requesting os.environ['FAKE'] yields a KeyError.  NOTE: Portability will be an issue, but the small API I'm writing will be able to check OS version and trigger different commands if necessary.  That said, I've gone the route of using the Windows registry technique and will simply write alternative methods that will call shell scripts on other platforms as they become requirements.


What is the exact difference between multi-class and multi-label classification?  For example, if you have a fridge with a camera that can view inside to see what products are still in stock, is this an example of multi-class or multi-label classification?

What is the difference between multi-label classification and multiclass classfication.  Speficially, what is the difference between a label and a class? Please provide a clear example.  "Multiclass classification should not be confused with multi-label classification, where multiple labels are to be predicted for each instance." -wikipedia  ... was not very helpful.


I have a rather huge document and everything worked fine. The problems started when I tried to insert some Russian text. I was able to resolve some issues, but now I'm stuck with the following error:  ! pdfTeX error (font expansion): auto expansion is only possible with scalable fonts.   It was really hard to produce a MWE, but it looks like it has something to do with microtype package. I don't fully understand what it does, but it's part of the template, so I'd like to keep it.  Here comes the MWE:  \documentclass{article} \usepackage[T2A, T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[russian,english]{babel} \usepackage[protrusion=true,factor=900]{microtype}  \newcommand{\ru}[1]{{\begin{otherlanguage*}{russian} #1 \end{otherlanguage*}}}  \begin{document}  Here is a Russian text: \ru{Здравствуйте! Как у вас дела? Меня зовут Калеб. Как вас зовут?}  \end{document}   I've introduced the \ru command for convenience. However, it also produces the error without this command. But if somebody wants to suggest a good way of inserting text in a different language - feel free :).  Edit 1  Added \usepackage[T2A, T1]{fontenc}, added missing part of error message.  I'm using TeX Live from Ubuntu 12.10: pdfTeX 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)

I'm using a custom class file.  My main file looks like this:  \documentclass[12pt,a4paper]{thesis} \begin{document} \frontmatter     \pagenumbering{alph}      \pagenumbering{roman}     \clearpage      \cleardoublepage     \tableofcontents     \clearpage     \listoffigures     \clearpage     \listoftables   \mainmatter        \part{test}       \input{test} \end{document}   If I put this in my test.tex it does work:  \chapter{test} \label{chapter:test} test    When it becomes more text (lets say 40x the word "test") I get the error stated in my question title.  To test it I brought my class file down to this:  \ProvidesClass{thesis} \NeedsTeXFormat{LaTeX2e}  % Based on the memoir class \DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} \ProcessOptions \LoadClass{memoir}   I'm totally confused what is causing my error now.  This is the complete error:  ! pdfTeX error (font expansion): auto expansion is only possible with scalable  fonts. \AtBegShi@Output ...ipout \box \AtBeginShipoutBox                                                    \fi \fi


Meta is ( was?) a place where the community can come together to discuss about site policies, feature requests and to understand about how the site works. The community can vote up or down a question in order to give a sense of priority to the underlying issues.  Now that we have "", and , in which the selection criteria is solely the discretion of the company. The blog post does not mention how Meta can fit into the new process, beyond the announcement that they will "watch and see".     We looked at the three data points—how Meta is being used, who is   using Meta, and the functions—and determined if our users are best   served by keeping the function on Meta or if our users are best served   by moving the functions to other tools and processes.   I've read that part of the blog post a few times and can't really figure out what it means.   My question is: is there still a purpose for the Meta to exist?

This is a question related to the new .   (Meta Stack Exchange) has various functions: (per the help center)     Meta is for...         ... Stack Exchange users to communicate with each other about the Stack Exchange network (asking questions about how the websites work, or about policies and community decisions)   ... Stack Exchange users to communicate with Stack Overflow, the company (posting bugs, suggesting improvements, or proposing new features), and   ... Stack Overflow, the company, to communicate with the community (soliciting feedback on new ideas or features, or discussing policies that affect the whole network)      Summarizing this, there are these main use cases for Meta:   suggesting new features/improvements to features posting bug reports announcements network-wide policy discussions.   The first three of these use cases seem to be moved off, to another platform:     In early December, we are putting a strategy together for the tools and systems we’ll need. Bug reports, in particular, have been a significant pain point internally and externally! We plan to transition things like bug reports, user and customer support, user feedback, and company announcements off of Meta over the course of next year.   emphasis mine  This leaves the last point, which also seems to be covered by the creation of a moderator advisory board:     we’re putting together a moderator advisory team drawn from our 550 existing moderators (folks who volunteer their time and donate their knowledge and leadership to the community): a small, self-replacing council of moderators who will be tasked with keeping our moderation guidance and methods up-to-date, along with ad-hoc working groups of moderators to work on specific initiatives as needed.   emphasis mine  These changes seem to render Meta Stack Exchange useless.  Do you plan to remove it after doing these changes?  (Note: This doesn't mean I am advocating/agreeing with it. I am just curiously asking)


Probably, the problem could be also on other localized sites.

On MSE (English):        On ruSO (Russian):        On jaSO (Japaneese):        On ptSO (Portuguese):        On esSO (Spanish):        Also note that progress indicator (white/green line) is not centered between values (current, needed) at least when no review completed yet, i.e. zero count.


The prophecy said that a child would have the "power" to kill Voldemort.   However, Harry Potter was average, and didn't kill Voldemort. Both times, it's Voldemort's own curse that rebounded. That wasn't because of Harry's power, but rather because of his mother's love the first time around, and the elder wand the second time around.  So what power did Harry have?

Was Harry Potter an innately powerful/skillful Wizard in any way, based on canon?  It seems that whenever Harry Potter performed some unusually potent bit of magic (potent as far as require raw power AND/OR skill), most of the time we find that it wasn’t innately Harry’s skill, but a combination of:   some extraneous magic forces/rules/powers circumstance great reaction time (which is obviously extraordinary from his Quidditch playing; and is likely a larger factor in his dueling than the strength of his magic) general smartness or (the part that Harry’s detractors, including Voldemort missed) Harry’s strength of character/personality   The only two counter-examples I can think of which show him as having extraordinary or at least obviously above average magical abilities are:   His skill at flying brooms - while a part of it is pure physical skill, at least part is magical. His (corporeal) Patronus charm   As far as examples of his unusual feats being due to reasons listed above:   Obviously, surviving Avada Kedavra as an infant - due to Lily’s sacrifice Parselmouth talent - proxied via Voldemort’s piece of soul. Ability to see the Sorcerer’s Stone in the Mirror of Erised - due to purity of his character, nothing magical. Obvious lack of talent at potion making throughout all of the books (sans cheating in HBP) His win over the Basilisk - due to Hermione’s research, character traits, and as a consequence of the last one, getting Fawkes and Gryffindor’s Sword’s help.  Just to be clear, before someone flames me - what he did was obviously super extraordinary, BUT IMHO he would have achieved the same result if he was turned into a Squib for the duration of Chamber of Secrets fight. TriWizard Tournament entry - wasn’t him, it was Barty Crouch TriWizard Tournament second challenge - a combination of character and outside help (someone told him about Gillyweed) TriWizard Tournament third challenge - Mostly, Barty Crouch’s cheating  Note that I’m omitting the first challenge, since that one was the aforementioned Broom flying skills. His survival in the cemetery after Voldemort’s return - again, a combination of superior strength of character and super powerful wandlore magic that had nothing to do with his skill as a Wizard. The whole “last Horcrux” thing when surviving the second Avada Kedavra from Voldemort His ownership of the Elder Wand in the very last duel with Voldemort.   So, to paraphrase my original question, was there any canon/JKR evidence that Harry was anything but a completely average/mediocre wizard in any way, shape, or form if you take into account only his own magical abilities and skills?


I've done some stuff like:  FILE* a = fopen("a.txt", "w"); const char* data = "abc123"; fwrite(data, 6, 1, a); fclose(a);   and then in the generated text file, it says "abc123" just like expected. But then I do:  //this time it is "wb" not just "w" FILE* a = fopen("a.txt", "wb"); const char* data = "abc123"; fwrite(data, 6, 1, a); fclose(a);   and get the exact same result. If I read the file using binary or normal mode, it also gives me the same result. So my question is, what is the difference between fopening with or without binary mode.  Where I read about fopen modes:

What translation occurs when writing to a file that was opened in text mode that does not occur in binary mode? Specifically in MS Visual C.  unsigned char buffer[256]; for (int i = 0; i < 256; i++) buffer[i]=i; int size  = 1; int count = 256;   Binary mode:  FILE *fp_binary = fopen(filename, "wb"); fwrite(buffer, size, count, fp_binary);   Versus text mode:  FILE *fp_text = fopen(filename, "wt"); fwrite(buffer, size, count, fp_text);


I'm having trouble finding some concrete information on what the minimum hardware requirements are for a production SharePoint 2013 environment.  I'm talking number of servers in the farm. I see the   but the details are skewed to me.  It says  Web server or application server in a three-tier farm Pilot, user acceptance test, or production deployment of SharePoint Server 2013 or SharePoint Foundation 2013. 12 GB 64-bit, 4 cores 80 GB for system drive  Well, that's IF I have a 3 tiered environment.  What if I have a 2 tiered environment? Common sense would tell me that if I am running a heavy amount of services and a large user base, I should consider upgrading to a 3 tier.  However, I have a customer who is arguing with me saying that performance is not "optimal" and that Microsoft technically supports a 2 tier environment so it should be fast. Is there somewhere where Microsoft definitively says "You must have 3 servers in a production environment"?  Or how can I tell a customer that they need a 3rd server without so much push back on it?

I've checked the SharePoint requirements here:  which are apparently the "minimum" requirements, but I've seen some blog posts claiming to have a dev system running ok with less RAM etc.  It also doesn't give the required spec for using a single server in a production environment. I realise this isn't an ideal setup, but what I'm trying to ascertain is whether this is a valid setup for small customers who may not have the resources for 3 separate servers.  So my questions are:   During development, what's the minimum usable system spec for SharePoint 2013 you're using? For production, does anyone have SharePoint 2013 running on less than 3 servers, if so could you share the spec / number of users, or how low you think you could go and still have acceptable performance.


It's often claimed that a good practice in statistics is to make adjustments for simultaneous inference to control so-called family-wise error rates.  So for example if we did 100 tests some would say we should use more stringent $p$-values to avoid making at least one error, perhaps by using a Bonferroni correction or something similar.  But if we performed those tests on different days, no one would care to make such an adjustment.  Why when we perform many tests at once is it important to control family-wise error rates but not if we spread them out?  In the latter case do we not simply accept that mistakes are going to be made, so why not in the former?

I find it hard to understand what really is the issue with multiple comparisons.  With a simple analogy, it is said that a person who will make many decisions will make many mistakes. So very conservative precaution is applied, like Bonferroni correction, so as to make the probability that, this person will make any mistake at all, as low as possible.   But why do we care about whether the person has made any mistake at all among all decisions he/she has made, rather than the percentage of the wrong decisions?    Let me try to explain what confuses me with another analogy.  Suppose there are two judges, one is 60 years old, and the other is 20 years old.  Then Bonferroni correction tells the one which is 20 years old to be as conservative as possible, in deciding for execution, because he  will work for many more years as a judge, will make many more decisions, so he has to be careful.  But the one at 60 years old will possibly retire soon, will make fewer decisions, so he can be more careless compared to the other.  But actually, both judges should be equally careful or conservative, regardless of the total number of decisions they will make.  I think this analogy more or less translates to the real problems where Bonferroni correction is applied, which I find counterintuitive.


I have mp3 file but while recording mp3 file they give 10 secs of blank and we need to crop this blank from mp3 file  any suggestion for editing or cropping mp3 files or any commandline ?  thanks

I have a big mp3 file which comes from ripping a full CD. I would like to split it into one file per song. It will be great to find a software that can split the file automatically, detecting the start and the end of each song.  Extra background:  I have tried mp3splt and audacity. The first one fails to autodetect the songs and audacity seems to be unable to do it.  I would like to burn the songs to a CD (mp3 format) to play then in my car radio. It will not support any fancy stuff, it doesn't even have an USB connector.


the question is this     there are 4 answers that say the same thing. I flagged one of them as Duplicate ( knowing that I shouldn't irritate people by flagging all on the question )  I happened to flag one that was posted at the exact same time as another (duplicate) answer.  but there are 2 other duplicate answers that were posted after, one 1 minute later and another 3 years later.    I thought I was following protocol in not flagging all the duplicates. but only flagging one answer out of the 4 duplicates (probably only 3, there are 2 good answers on this question)    not really concerned with the two that are exactly the same.  This  is the one I am more worried about  I flagged because there are 3 answers that say the same thing. someone should delete 2 of them, that is why I flagged.  if they were both better answers I wouldn't have said anything and flagged the newest one

Look  to see what I mean? Should I ask one of these guys to delete their answer (and merge whatever detail is missing into the other answer)? I'm aware of this , but it's a little different.


My PC with Windows 10 doesn't show the date - refer to the picture. How to fix that?

I have my Taskbar moved to the left side of the screen.  How do I show the date below the clock on the system tray?  Windows 10 is quite new, so there isn't much on the internet about it.


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

I installed Windows on my computer, followed by an installation of Ubuntu. However, now I'm unable to boot into my Windows install.  What can I do to fix this?


I need some help figure this one out. I need to search a string within a string and return the number of occurrences. I have tried the code below and it works and i also tried to use a regex and it worked but my teacher said to pretend that i can't use the indexOf or the regex. I know there have been some similar questions but that didn't help me much since they all use IndexOf or regex. So any ideas please?   What I have tried:       namespace ConsoleApplication3     {      class Program         {            static void Main(string[] args)            {               string s1 = "hellohjhghello";               string s2 = "he";               var r = Occurrences(s1, s2);               Console.WriteLine("{0} is repeated {1} times", s2, r);            }     static int Occurrences(string s1, string s2)     {         int count = 0;         int pos = 0;         while((pos = s1.IndexOf(s2,pos)) > -1)             {             count++;             pos += s2.Length;             }         return count;        }    }  }     EDIT: I don't know what my teacher expects me to so but in another exercise I did a search for a char in string. He said to do something similar but for a string. My previous exercise goes like this:       class ex3 {     static void Main(string[] args)     {         string str = "aaabekldfj";         char letter = 'a';         var r = Occurrences(str, letter);         Console.WriteLine("The letter '{0}' from string '{1}' has {2} occurrences", letter, str,r);     }     static int Occurences(string str, char letter)     {         int repeat = 0;         for(int i=0; i< str.Length; i++)         {             if (str[i] == letter)                 repeat++;         }         return repeat;     } }

I am doing something where I realised I wanted to count how many /s I could find in a string, and then it struck me, that there were several ways to do it, but couldn't decide on what the best (or easiest) was.  At the moment I'm going with something like:  string source = "/once/upon/a/time/"; int count = source.Length - source.Replace("/", "").Length;   But I don't like it at all, any takers?  I don't really want to dig out RegEx for this, do I?  I know my string is going to have the term I'm searching for, so you can assume that...  Of course for strings where length > 1,  string haystack = "/once/upon/a/time"; string needle = "/"; int needleCount = ( haystack.Length - haystack.Replace(needle,"").Length ) / needle.Length;


It looks like ON Semi makes a bunch of different kinds of optocouplers for various applications. The array of choices is kind of bewildering. What, exactly, is the difference between an optocoupler made specifically to drive triacs (e.g. the MOC3023M) and a standard logic gate optocoupler (e.g. the H11L1M)? What about AC line monitor optos (e.g. the MID400 - which, strangely, is much more expensive than the others despite a lower isolation rating and lower tolerance for high frequencies)?

Digikey lists optoisolators with several output types:   Darlington Darlington with base Photo FET Photovoltaic Photovoltaic, linearized Transistor Transistor, with base   What are the differences among these, and in what circumstances would I use one or another?


Where can I find historic flight info about past delays? I was flying with Air France flight from Paris to Tampa (through New York) on 13 November 2013. My flight was delayed either in Paris or in New York. I can't remember which. I just learnt that you can claim for delays so I want to find out how long the delay was. (and where) Could any one of you check this please?  Flight info:  AF0006 from Paris to JFK  scheduled departure 14:10  AF9534 from JFK to TPA   scheduled departure 18:45

Where can I find historical data on flights, specifically Delta international flights?  I need to find out about cancellations, diversions and any other flight data pertaining on particular route at a given time.  This source has to be official and stand up to legal scrutiny.


I have a web application with two site collections;   Team site Enterprise wiki    Now I want to display the latest 10 enterprise wiki pages inside the team site.  Now I try the following I went to the enterprise wiki, edit page, insert App part, select “Pages”. Then I edit the current view to display the latest 10 pages. But seems that I cannot do the same thing steps cross site collection, because when I went to the team site collection, I can not add a App part of type enterprise wiki ?  So can anyone advice, how to add a cross-site collection app part ? i read about creating external list, but i can not understand how i can locate the related enterprise wiki tables..  Thanks

I have a web application, with three site collections . and i want inside my team site to be able to display the latest pages that  have been added to my enterprise wiki site collection. so what are the available approaches which i can follow?  Thanks in advance for any help.  Regards


On Stack Overflow, I have a reputation of 189 and I used to have the ability to review posts. On Stack Overflow chat, I had no restrictions on chatting.  Now, suddenly, the "Review" option has disappeared, and in chat, most rooms seem to be locked.  Nothing appears to have changed on my SO profile, and I received no notifications of any sort that my rights were somehow being limited.  Has there been changes to SO policies/levels? If so, what were those changes? If there hasn't been any change to SO policies, then what gives with my account?

As , the retag privilege serves a lot more confusion and a lot less of its benefit due to the suggested edit system. It must be done away with. It will be done away with. ♪  In light of this decided course of action, we're going to need a new snack for the road between "Create Tags" at 300 reputation and "Established User" at 1000 reputation. We'd like your help in thinking about some ideas on what would be a nice privilege to sit at this level. Since we're... a bit dry on our end.  The primary guideline in deciding what kind of privilege to put here is acknowledging its position in the overall hierarchy of privileges. 500 reputation is an early-intermediate user, one who has started to really get the hang of the site and its function. It can be something that provides convenience in how they currently can act on the site, or it could be some new functionality that fits as an early ability (especially considering there's no new abilities until 2000 reputation's "Edit Everywhat" ability).  I look forward to hearing what creative ideas y'all can provide.


i want to make a 5V oscillator that has a frequency of 1khz. it will basically go to 5V (HIGH) and then 0 V (low) in a frequency of 1khz with 50% duty cycle.

I am not understanding something very fundamental here , I have read that an RC circuit can be used as a clock source. From this I assume a DC input. Playing around with my oscilloscope the only time I see an RC circuit oscillate is with an already oscillating input, throwing in a DC input there is no oscillating just the obvious blocking of DC by the cap, so how does an RC circuit work as on oscillator with a DC input? And I know you can make fancy ones with more components but I mean a very simple resistive/capacitive circuit? Thanks in advance.


I've created a website with WordPress about two months ago. The website mainly focuses on content writing services with up to 5 pages for different writing services & also a blog with more than 10 blog posts till now. I've started to create backlinks and also doing some on page SEO since the first week. I've also added Sitemap to google webmaster tools, everything looks fine. Anyway, after about two months, I expected to see some serp improvements, so I've searched for the query and checked google results up to page 15 and yay! I was there. It was a good feeling as I was expecting to get better and better positions everyday. Because my website was mainly focused on the topic, whereas so many results on pages after 7, was not even 1% related to the topic. But, suddenly my website have completely gone from the results, even not on page 20! So I tried to figure out what is happening. I reviewed every section in webmaster tools, fixed crawl some crawl errors and started a live page test, and after that, requested indexing. In less than an hour, I was again on page 15, for a few days actually. Again, I'm not on any pages. And this cycle continues...  I wonder if is something wrong here. I don't think that google is punishing me for building backlinks soon or something like this, because I'm on page 5 on a longtail keyword (based on the main keyword). So what do you suggest? Should I wait? Or continue to live test & request indexing...

What are the best ways to improve a site's position in the Google search results?


I tried installing  both by using install from file and the zip, and by adding it to the addons folder. It still does not appear in the list of addons. Does that addon not work with the current version of blender? Is there something else?  Is there any simple blender addon I could try to see if I have problems installing addons in general?

Why is it that if I go to install an add-on from User Preferences > Add-ons > Install from File... and choose a *.ZIP, some add-ons will install, while others will return me to the User Preferences with nothing having happened (as far as I can tell)?  Is there a specific file structure required in the .ZIP? I get many add-ons from GitHub, using the Download Zip button, and even there installation of the actual Zip file only works some of the time.


A word that group words that give the impression "There is a word for that!" and "Mot juste" is what I inquire. I can't find any term for it, and my search of the list only leads to a website like    A word for a list of words such as cajole and desiderium. I am not asking about words that have specific meaning, I am asking whether those words have a name that group them together.  Another way to see it, some words exist in dictionaries but not in thesaurus, what those words are named is my question.

Certain words you hear in English are only ever heard in a single context. For example, skirl is used to describe . Etymonline generously says the word is "rarely" heard outside that context, but I can't recall ever hearing it used for anything else. I imagine one could use it figuratively to describe another godawful high-pitched screech (sorry, bagpipe lovers), but there's no other bona fide usage for it.  What I want to know is stated in the title of the question: Is there a term for these one-off words? I'm sure there must be, but I can't think of what it might be.  Edit: Judging from some of the head-scratching comments I've received, there seems to be some confusion. Perhaps I did not make my meaning clear. I'm not looking for a word to describe the single instance of skirl. I'm asking about a class of words like skirl. I know there exist other examples of words that are only ever used in one context, but I can't think of any others at the moment.


I am describing a chart and got confused about my intuition and Google results. So I'd usually refer to a "solid black line" and there are  1,130,000 results (with quotes) for that against 320,000 for "black solid line". So far, so good. When it comes to "dashed black line" it sounds weird to me though it's the same wording order. There are 214,000 for that against 318,000 results for the reverse order "black dashed line".  So, my question is: dashed black line or black dashed line? (considering that I am also mentioning the solid one, I was going for the first option not to break the pattern)

I remember being taught that the correct order of adjectives in English was something along the lines of "Opinion-Size-Age-Color-Material-Purpose."  However, it's been a long time and I'm pretty sure I've forgotten a few categories (I think there were eight or nine). Can anyone fill them in?


The title says enough, but let’s give a real life example too. Take one of those LM2596 35V boards. What will happen to it if it gets 50V on the input?  Most likely it will burn, but will this voltage propagate to the load? Will it get damaged too? Is there any kind of protection? Does it make a difference if the over-voltage is a spike or continuous?

I've always thought that the absolute maximum ratings on a part are the limits that thou shalt not violate.  Period.  End of story.  However, another engineer is making the case that it's okay to exceed the absolute max rating for the input voltage on a microcontroller I/O pin.  Specifically, he wants to apply 5v, current limited to 30uA, to a micro with an absolute max voltage of 3.8v (Vdd + 0.3V <= 3.9V).  The argument being the clamp diodes will take care of the excess voltage.  I couldn't find anything in the datasheet about the I/O hardware on the micro.  When is it okay to exceed the absolute maximum rating on a part?


My android app first displays a toast when a message is received and when it receives a message from a particular number it shows another toast. But it is not displaying the second toast.  Here is my code:  import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.telephony.SmsManager; import android.telephony.SmsMessage; import android.util.Log; import android.widget.Toast;   public class IncomingSms extends BroadcastReceiver {      // Get the object of SmsManager     final SmsManager sms = SmsManager.getDefault();      public void onReceive(Context context, Intent intent) {          // Retrieves a map of extended data from the intent.         final Bundle bundle = intent.getExtras();          try {              if (bundle != null) {                  final Object[] pdusObj = (Object[]) bundle.get("pdus");                  for (int i = 0; i < pdusObj.length; i++) {                      SmsMessage currentMessage = SmsMessage.createFromPdu((byte[]) pdusObj[i]);                     String phoneNumber = currentMessage.getDisplayOriginatingAddress();                      String senderNum = phoneNumber;                     String message = currentMessage.getDisplayMessageBody();                      Log.i("SmsReceiver", "senderNum: "+ senderNum + "; message: " + message);                      int duration = Toast.LENGTH_SHORT;                     Toast toast = Toast.makeText(context, "senderNum: "+ senderNum + ", message: " + message, duration);                     toast.show();                     String serverNumber= "+919886096376";                     if(senderNum == serverNumber)                     {                         Toast toast1 = Toast.makeText(context,"alert message received!!!!",Toast.LENGTH_LONG);                         toast.show();                     }                  } // end for loop               } // bundle is null          } catch (Exception e) {             Log.e("SmsReceiver", "Exception smsReceiver" +e);          }     }    }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


This question has given me a huge headache, and I can safely say I hate everything about it. I need to prove, that for a continuous function in [0,1],which has the property that for every x in the domain, f(x) > x, exists a d > 0 , so for every x in the domain f(x) > x + d.  I understand this is true because of the rational density theorem, but I just can't figure out how to show this. I tried using the definition of a uniformly continuous function, but that didn't go so well. I'm pretty sure i'm missing something stupid here, and i'll love a hint on how I could proceed, thank you!

Let $f$ a continous function defined in the interval $[0,1]$. Assuming: $\forall x \in [0,1]:f(x) > x$ Prove: $\forall x \in [0,1]:f(x) > x + \varepsilon $  I tried to use  and did some Algebra tricks but it didn't bring me to a safe shore :)    What do you suggest? Thanks!


Is it a silly idea to have a UI where you open an accordion and another accordion appears inside, and when you tap it, multiple forms appear?  The goal is to hide as much as possible the fields where input is optional.

I have seen some interface designs that nest accordions that show/hide information at more than one level of hierarchy.    The example show also uses both vertical and horizontal hierarchies to add further complexity to the navigation and interaction of information.   I was wondering if this is a common practice for certain types of websites or design patterns, or if it should be avoided because my instinct is that there are some usability issues with multiple levels of show/hide.  For example, if you were to implement a Show All/Hide All functionality, wouldn't it be rather confusing with all the different moving parts for the user to absorb?


I am trying to self-study abstract/modern algebra. I am currently trying to learn from Josephn Gallian's Contemporary Abstract Algebra 7th edition and free lecture notes from the internet.   So are there any other good textbooks for reference? Or anything better than Gallian's?

I've taken up self-study of math. (How smart can that be?) I've just about finished a course in real analysis which spent a lot of time on metric spaces and some time revisiting calculus.  I was thinking of trying abstract algebra. I would appreciate any book recommendations.  Thanks in advance.  Andrew


Consider the 2-dimensional vector subspace $V = \{(x, y, z) : x + y + z = 0\}$ of $\mathbb{R}^3$ , and two bases: $\alpha_1 = (1,−1,0)$, $\alpha_2 = (1,0,−1)$, and $\beta_1 = (0,1,−1)$,  $\beta_2 = (1,1,−2)$.     Find the change-of-basis matrix $A$.   I (foolishly) tried the standard way from linear algebra to find it and I found that $A$ is a 2*2 matrix $\begin{bmatrix} -1 &1 \\   2&-1  \end{bmatrix}$, which doesn't make sense since the vectors in $V$ are of $\mathbb{R}^3$ any help?

Change of basis matrix for $B_2\{a_1=(1,-1,0),a_2=(1,0,-1)\}$ to $B_1\{b_1=(0,1,-1),b_2=(1,1,-2)\}$, where $B_{1,2}$ are bases of $V=\{(x,y,z)|x+y+z=0\}$.  I haven't practiced that for a very long time and the definitions are a rather formal, total and loaded. I think I got the idea right, but I think I should have it checked:  I know that $b_1=-a_1+a_2,b_2=-a_1+2a_2$. Hence, for $P=\begin{pmatrix}-1&-1\\1&2\\ \end{pmatrix}$, $[b_1]_{B_1}=P[b_1]_{B_2}$ and the same goes for $b_2$. How do I arrive at the requested matrix from here? What about the standard basis? Is $B_2$ the standard basis here? I am confused, and could use some help.


Whenever I login into Windows 10 Home, a cmd screen starts with a batch file inside windows\system32. Antivirus shows nothing, SysInternals autoruns shows no call to cmd.exe or to the batch file.  Using Process Explorer, the parent of cmd.exe is "Non-existent Process", but the cmd.exe is below winlogon.exe in the tree-view, which makes me suspicious of some entry under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run.   However, there are countless entries there and I'm afraid of breaking something if I disable everything. The batch itself is harmless - it only logs current date and time at a text file then pauses. I've used Process Monitor and never see any process accessing that file in my normal use.  Since this happens at login time, it's too late for me using Process Monitor. Since this is Windows 10 Home, I can't enable process audit logs.  Is there some tool I can download to find out who is starting that cmd.exe and/or batch file? Or how can I prepare Process Monitor to run before everything else at logon?

When I login, I notice many process quickly start and terminate in task manager. But it happens very fast and I cannot save details about them (like process name, command line, CPU usage,..)  How can I collect stats about them so I can view them later


Consider the following MWE:  \documentclass[a4paper]{article} \usepackage{hyperref} \begin{document} \nocite{test1,test2} \bibliographystyle{plain} \bibliography{sample} \end{document}   And the bibliography file contains the following:  @misc{test1,     title = "\href{http://www.blah1.com/}{Title 1}" }  @misc{test2,     title = "\href{http://www.blah2.com/}{Title 2}" }   The output PDF file contains "Title 1." and "Title 2." with their corresponding hyperlinks. The bibliography looks ugly because of the periods at the end of the entries. I wonder if there is a way to discard the period and have "Title 1" and "Title 2" instead.

According to APA rules, after each reference there must the digital object identification (doi). I use JabRef as a reference manager and for some reason, if I put an article doi on its "doi" field, it won't show up after the build on my editor, but if I put the doi on its "note" field it shows up. However, it's adding a period after the note field. I need a way to have the reference without an ending period.  Here's the LaTex document. I use TexPad as my editor.  \documentclass[12pt,a4paper,oneside]{report} \usepackage[utf8]{inputenc} \usepackage[portuguese, english]{babel} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage[sort, longnamesfirst]{natbib} \usepackage[strings]{underscore} \bibliographystyle{newapa}  \usepackage{sectsty} \chapterfont{\fontsize{14}{15}\selectfont} \sectionfont{\fontsize{12}{15}\selectfont} \subsectionfont{\fontsize{12}{15}\selectfont} \renewcommand\bibsection{\section*{Referências}} \bibpunct[:\ ]{(}{)}{;}{a}{,}{,}  \title{} \date{} \makeindex  \begin{document}  \cite{aldous-newviewsgrandparents-1995}  \bibliography{/Users/Ricardo/Documents/Ricardo/library2.bib}  \end{document}   It produces this:     Aldous, J. (1995). New views of grandparents in intergenera- tional   context. Journal of Family Issues, 16(1), 104–122. doi:   10.1177/019251395016001006.   I need that last period out.  Thanks.


I'm trying to see the order date in an ascending order for each customer and also how many order dates each customer has so I know how many times a customer has ordered.   I've tried order by date but that is just ordering the whole dates(ModifiedTimestamp) and not per each customer

I'm trying to create a query activity in order to show, from a Data Extension, only the last 5 articles ids. I tried with the formula ORDER BY xxx DESC LIMIT 0,5 as in SQL but it is not working and it is returning this exception:     The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified   How can I use ORDER BY in a Data Extension?


My question is the same as , but I can't understand why the transformation from the identity functor to the composition of the adjoint functors is natural. I've tried proving explicitly that the diagram is commutative, but to no avail.

I am reading Homological Algebra by J.J. Rotman and am unable to do this problem.  Given an adjoint pair $(F,G)$ where $F : \mathcal{C} \to \mathcal{D} $ and $G : \mathcal{D} \to \mathcal{C} $ are two covariant functors, we can obtain a natural transformation $ \eta : \mathbb{1_{\mathcal{C}}} \to GF $.  I understand the definition of $\eta$ but am unable to prove that the transformation is natural. Couls someone please help me prove that for $f \in Hom (C,C')$, $GF(f)\eta_C=\eta_{C'}f$ ? Thanks !


Fetching and print results from multiple tables that have same column name. Here's my query: I am trying to fetch the column salt from login and cookie table.  SELECT login.salt      , cookie.salt    FROM login      , cookie   WHERE login.user_id     AND cookie.user_id = :user_id`  login +---------------------------+ | user_id |       salt      | +---------+-----------------+ | 1       |    fromLogin    | | 2       |    fromLogin    |  cookie +---------------------------+ | user_id |       salt      | +---------+-----------------+ | 1       |    fromCookie   | | 2       |    fromCookie   |   The result was:  Array ( [salt] => fromCookie )  How can i print both result out?  PHP  $user_id = 1;  $sql = "SELECT login.salt, cookie.salt FROM login, cookie WHERE login.user_id AND cookie.user_id = :user_id";  $params = array(         'user_id' => $user_id         );  $stmt = $db->justConnect()->prepare($sql); $stmt->execute($params); $result = $stmt->fetch(PDO::FETCH_ASSOC);  print_r($result);

I have two tables in my database:  NEWS table with columns:   id - the news id  user - the user id of the author)   USERS table with columns:   id - the user id   I want to execute this SQL:   SELECT * FROM news JOIN users ON news.user = user.id    When I get the results in PHP I would like to get associative array and get column names by $row['column-name']. How do I get the news ID and the user ID, having the same column name?


Statement : What an illiterate group?   Is the above statement correct or do I have to use 'a' instead of 'an' since it succeeds 'what'?

In the following example, is it appropriate to use a or an as the indefinite article, and why?     He ate __ green apple.   I know that in the case of just "apple", it would be "an apple," but I've heard conflicting answers for "green apple," where the noun is separated from the article by an adjective.  Also, which is more appropriate in this case:     He ate  __ enormous Pop-Tart.


I technically know how to do all these things, but combining it is problematic. Inode is saved in first line of text file (I can eventually read it directly from file), I need results saved to the same file.  How can I do this?

I know of this command:  find /path/to/mountpoint -inum <inode number>   but it is a very slow search, I feel like there has to be a faster way to do this. Does anybody know a faster method?


I'm doing some basic homework, and it's honestly all stuff I know. But I decided to jazz it up a little, and something I'm missing is causing an unexpected error. The idea is to use a while loop which asks if the user would like to do something. So long as they say yes, the loop continues the operations that it holds (in this case rounding a decimal to an int). However, as soon as I enter yes, or anything really, the loop breaks there and won't continue on to the rounding portion.  public class DecimalRounder {     //Main class method that starts and ends the program. It is prepared to throw an IO exception if need be.     public static void main(String args[])throws IOException     {         //Main initializes a new reader to take input from System.in         InputStreamReader rawInput = new InputStreamReader(System.in);         //Main then initializes a new buffer to buffer the input from System.in         BufferedReader bufferedInput = new BufferedReader(rawInput);         //Main initializes other used variable         double castInput = 0.0;         String contin = "yes";          //Program then sets up loop to allow user to round numbers till content         while (contin == "yes")         {              //Program asks user if they'd like to round.             System.out.println("Would you like to round? Type yes to continue... ");              contin = bufferedInput.readLine();             //If user says yes, rounding begins. ERROR FOUND HERE?              if (contin == "yes") //INPUT "yes" DOESN'T MATCH?             {                 //Program then requests a decimal number                 System.out.println("Please enter a decimal number for rounding: ");                 String givenLine = bufferedInput.readLine();                  //rawInput is worked on using a try catch statement                 try {                     //givenLine is first parsed from String into double.                     castInput = Double.parseDouble(givenLine);                     //castInput is then rounded and outputted to the console                     System.out.println("Rounded number is... " + Math.round(castInput));                     //Branch then ends restarting loop.                 }catch(Exception e){                     //If the data entered cannot be cast into a double, an error is given                      System.err.println("That is not a roundable number: " + e.getMessage());                     //And branch ends restarting loop.                 }             }         }         System.out.println("Have a nice day!");     } }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I'm struggling with a probability theory question that asks me to show a series converges almost surely if and only if an expectation is finite. Does anyone know how I can solve this problem?     Let $X_{1}, X_{2}, \ldots$ be independent random variables all taking   non-negative values. Prove that the series $\sum_{i=1}^{\infty} X_i$   converges almost surely if and only if       $$\sum_{i=1}^{\infty}E\left(\frac{X_i}{1 + X_i}\right) < \infty$$   I don't know if it helps, but the book I am studying from teaches the three series and two series theorems in this chapter.  I don't know if there might be some way to cleverly apply that here with this expectation, but I have not been able to do so.

Suppose $X_1, X_2, ...$ are independent non-negative random variables. Show that $\sum_{n=1}^{\infty}X_n<\infty$ almost surely if and only if $\sum_{n=1}^{\infty}\mathbb E[\frac{X_n}{1+X_n}]<\infty$.  There is a hint here but I don't know how to use: Consider the truncated variables $X'_n=\min(X_n ,1)$.  My thoughts are: if the sum of expectation are finite, then the expectation should converge to zero which means $X_n$ should converge to zero almost surely and since they are independent, the sum should converges almost surely. For the other direction, maybe I should use Kolmogrov's 3-series theorem? I don't know whether this is correct. Thank you!


We are going to the club tonight, no?   Is it correct?

I have always been puzzled by some sentences people make that end in a no. For example, let's say someone instructed you not to leave your post before they arrive. Then they return but you're not there. When you finally meet them, they say:      So you decided to wait for me elsewhere than we had agreed, no?.   What is the meaning of no and what should I answer?


Imagine you're in a tall building with a cat. The cat can survive a fall out of a low story window, but will die if thrown from a high floor. How can you figure out the longest drop that the cat can survive, using the least number of attempts?  Obviously, if you only have one cat, then you can only search linearly. First throw the cat from the first floor. If it survives, throw it from the second. Eventually, after being thrown from floor f, the cat will die. You then know that floor f-1 was the maximal safe floor.  But what if you have more than one cat? You can now try some sort of logarithmic search. Let's say that the build has 100 floors and you have two identical cats. If you throw the first cat out of the 50th floor and it dies, then you only have to search 50 floors linearly. You can do even better if you choose a lower floor for your first attempt. Let's say that you choose to tackle the problem 20 floors at a time and that the first fatal floor is #50. In that case, your first cat will survive flights from floors 20 and 40 before dying from floor 60. You just have to check floors 41 through 49 individually. That's a total of 12 attempts, which is much better than the 50 you would need had you attempted to use binary elimination.  In general, what's the best strategy and it's worst-case complexity for an n-storied building with 2 cats? What about for n floors and m cats?  Assume that all cats are equivalent: they will all survive or die from a fall from a given window. Also, every attempt is independent: if a cat survives a fall, it is completely unharmed.  This isn't homework, although I may have solved it for school assignment once. It's just a whimsical problem that popped into my head today and I don't remember the solution. Bonus points if anyone knows the name of this problem or of the solution algorithm.

One of those classic programming interview questions...  You are given two marbles, and told that they will break when dropped from some certain height (and presumably suffer no damage if dropped from below that height). You’re then taken to a 100 story building (presumably higher than the certain height), and asked to find the highest floor your can drop a marble from without breaking it as efficiently as possible.  Extra info   You must find the correct floor (not a possible range) The marbles are both guaranteed to break at the same floor Assume it takes zero time for you to change floors - only the number of marble drops counts Assume the correct floor is randomly distributed in the building