Show that if, for the ring $(A, \bigtriangleup, \bot)$, $\bot^2x=x$ then $(A, \bigtriangleup, \bot)$ is a commutative ring.   Since no elements of $A$ is provided and no operation is given, I am not sure how to proceed with this problem.  I have tried applying the simetric element $x^{\bigtriangleup}$ to the expanded equation:  $$ \bot^2x=x \\ x \bot x \bot x = x $$  But it is not working out. How do I proceed?


I just downloaded the official release of 2.79, and I'm missing the Denoise feature in my Render properties.  Is there some step I'm missing in order to activate it?


I am looking for some simple explanation about the representation of finite groups more specific of lie groups. So far I know it's a display from the group $\mathbb{G}$ to the $GL_n(\mathbb{F})$, but this doesn't tell me much to have a good understanding. Why this functions- displays are important what they tell us about the group? Why they are useful? Thanks!


Make axis arrows longer than the graph (pgfplots)

Is there a way to draw the axis arrows of a graph made via pgfplots longer than the graph itself? For reference, here is what my graph currently looks like:    And here is how I want it to look like:    (Sorry for paint)  I currently use axis line style = {-latex}.  Thanks!  Edit:  Minimal working example (by request):  \documentclass{article}  \usepackage{pgfplots}  \begin{document}     \begin{tikzpicture}         \begin{axis}[axis lines = middle, axis line style = {-latex}, grid = both]           \end{axis}     \end{tikzpicture} \end{document}


Actually I am having list of 500 elements such as list = [1,2,3,4,5...500]  Now I want to create a batch of of 32 elements and store in nested list where the main list contains nested list of 32-32 elements and last nested list contains 20 elements such as: final_list = [[1,2,3,..,32],[33,34,35,..,64],..,[480,481,482,..500]]  I was trying with append from loop but not having exact idea how to do so. final_list = [] for itr in range(0,500,32):     final_list.append(l[0:itr])  Tried with various method but not able to find the correct logic. Any help would be great and thanks a lot in advance!!


Let us look at two linearly independent vectors $v_1$ and $v_2$, which span a plane in $\mathbb{R}^n$ through the origin. Let us form a matrix $V$ out of these vectors so that the first column of $V$ is the vector $v_1$ and the second column is the vector $v_2$. Show that the the matrix $P=V(V^TV)^{-1}V^T$ projects all vectors $x\in\mathbb{R}^n$ orthogonally onto the plane spanned by $v_1$ and $v_2$.


I am trying to finish the achievements in Diablo 3 and one of them I can't complete since I have to buy the Spirit Stone.  The achievement is:      Shut Up and Take My Money!  I can't find it anywhere in 1.0.8. Any one got it? any one knows where to buy it?  Thanks


Proving $\cos(A + B)\cos(A - B) = -(\sin A + \cos B)(\sin A - \cos B)$.

Could you give me some guidance on proving the following trig identity?  $$\cos(A + B)\cos(A - B) = -(\sin A + \cos B)(\sin A - \cos B).$$


Prove group G has a subgroup $H_i$ where group operation is multiplication

Let $𝐺$ be the group generated by the matrices $𝐴=\begin{bmatrix}2&0\\0&1\end{bmatrix}$, $𝐵=\begin{bmatrix}1&0\\1&1\end{bmatrix}$, where the group operation is matrix multiplication.      Prove that $𝐺$ contains a subgroup $𝐻_𝑖$ for each $𝑖\in \mathbb{Z}$ such that   $$ \cdots \subset H_{-2}\subset H_{-1} \subset H_0 \subset H_1 \subset \cdots$$   So this is all that is given and i'm not sure where to start from this question. I know that $ABA^{-1}$ is just B with the bottom right replaced by $1/2$. From this we can replace A with $A^2$ and so on but i am not sure how i would prove this. Can someone help please?


How can I use the "signature" function in Preview on Mac Mini with no camera?

I have a Mac Mini with no attached camera. I would like to use the feature of Preview that allows you to insert a signature. This relies on taking an image of your signature using an isight/facetime/webcam. I do not have on.  I do have a MacBook pro on which I use the signature function. Is there a way to copy a file from the the MacBook Pro to the Mac Mini to enable this function on the Mini?


Everything looks fine in the Search Console, but Google is not really indexing my site

I hope this question is not too generic.  Some weeks ago, I set up a new Q&A site for my collaboration.  I have added it to my search console dash board and I have submitted the sitemap.  Google lists 106 submitted URLs, but only 21 have been indexed. I can not see any errors on the dashboard.  Is this a normal behavior for a very low ranked web page? Should I just be patient and wait for people to link it more? Or is there something wrong with my configuration - somehow?


Given $n\in\mathbb N$ what are the maximum number of divisors of a natural number not more than $n$?

So the question is in the title itself. The minimum number of divisors are $2$ (for primes), but the maximum number of divisors are what we are interested in. It cannot be more than the number itself for sure, so it's bounded above by $n$. We know that the number of divisors of $\prod_{i=1}^jp_i^{k_i}$, where $p_i$'s are distinct primes is given by $\prod_{i=1}^j(k_i+1)$. We have to maximize this given the constraint that $\prod_{i=1}^jp_i^{k_i}\le n$.


Sorry, yet another n00b with dual boot issues.  I installed Ubuntu on an Asus X401a. The installation never found the existing OS (Windows 7) but after a learning curve, I made it through, by making my own partitions and following other advice in Ubuntu's main UEFI documentation.  Now, when I boot up, I get grub, and from there I can select Ubuntu or it will boot up automatically, or I can go to "system setup" (the UEFI equivalent of BIOS menu, I guess). But there is no Windows 7 choice.  I can press "C", type "exit" and then it boots straight into Windows. This is really fine.  But I'm here to learn, after all, and it seems to me I'm not really finished unless Windows 7 is one of my options in the grub menu. Should I leave well enough alone or forge ahead with your sage guidance?  For your viewing pleasure, I made a boot-repair-disk thingie but I didn't actually ask the program to repair anything, having seen many forum posts from n00bs like myself do it wrong and make things worse.   Thanks for reading!


Where do I have to put the Bump on my nodes?

I made a material, added a bump before but it didn't worked at all. where do I need to put the 'Bump' option on my nodes? Which is the correct place? I'm pretty new about using this.  Please help me!


Installing ubuntu-sdk requires cdrom. I have liveUSB

While installing ubuntu-sdk, the following is the output.  Media change: please insert the disc labeled 'Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)' in the drive '/cdrom/' and press enter   I don't have the cd but I have a liveUSB. How to mount the usb in the /cdrom? Or is there any other workaround?


Google Search Console says URLs blocked by robots.txt even after robots.txt is updated

Yoast SEO had created a sitemap and robots.txt that did not suit my page. I have since replaced both and waited a few weeks but my robots.txt is still blocking 13 pages. Can anyone help me with what I might be doing wrong?  Here are tags of the pages that are being blocked:  https://micronanalytical.com /sp/ /samples-submissions/ /cr/ /analytical-laboratory-directions/ /analytical-news/ /sem/ /forms-downloads/ /wp/wp-content/uploads/2018/08/2.FDA-License-2018.pdf     /laboratory-services/   Here is my robotstxt  robots.txt User-agent: * Disallow: /quote/ Disallow: /forms-downloads/ Disallow: /MA/   Here is my sitemap:   What am I doing wrong?


I am trying to replace 'G' with 'R' but I am getting unhandled exception.  int main() {     char *pszStr1 = "EFGH";      (++pszStr1)[1] = 'R';      printf("%s", pszStr1);     return 0; }


It seems any program ran soon enough after sudo in the same terminal can run any sudo command it pleases.  Proof: Execute sudo ls in a terminal . Then run this program (compiled of course) in the same terminal:  #include <stdlib.h>  int main() {     system("sudo whoami");     return 0; }   It'll say root without asking for a password.  Isn't this a big security hole? Root and regular accounts are separated so that, apart from other things, malicious software can't run as root. Are users supposed to be careful what they execute before sudo times out?


Would be great to be able to filter by favorite tags.


Two modems two seperate lines to equal one speed

I have two modems and two different phone/ internet lines coming into my home. Each line has 6mbps. Can I connect these two modems into one PC to combine the speed to 12 Mbps? Or is there a way to combine these two lines hardwired into one speed?


If $ a,b,c\in \left(0,\frac{\pi}{2}\right)\;,$ Then prove that $\frac{\sin (a+b+c)}{\sin a+\sin b+\sin c}<1$

If $\displaystyle a,b,c\in \left(0,\frac{\pi}{2}\right)\;,$ Then prove that $\displaystyle \frac{\sin (a+b+c)}{\sin a+\sin b+\sin c}<1$   $\bf{My\; Try::}$ Using $$\sin(a+\underbrace{b+c}) = \sin a\cdot \cos (b+c)+\cos a\cdot \sin (b+c)$$  $$ = \sin a\cdot (\cos b\cos c-\sin b\sin c)+\cos a(\sin b\cos c+\cos b\sin c)$$  $$ = \sin a\cos b\cos c-\sin a\sin b\sin c+\cos a \sin b\cos c+\cos a\cos b\sin c$$  Now how can i solve it after  that , Help required, Thanks


Should 'fuck' be present in review audits (intentionally fake suggested edit reviews)?

Some suggested edit reviews are fake and are intended to check that the reviewer is paying attention and reviewing correctly.  I recently encountered one where the fake suggested edit contained 'fuck':   Despite the fact that we regularly encounter profanity online these days, and whilst it is not uncommon to encounter the word 'fuck' in blog posts by recognised authorities in the world of software development (and, I assume, in other fields), this nevertheless caught me a bit by surprise.  I have no problem with whatever strength of language someone feels is appropriate and relevant to make their point, however in the context of audit-related fake suggested edits, is the use of profanity appropriate?  Update: just to clarify, the word 'fuck' was not present prior to the fake suggested edit. The fake suggested edit added the word 'fuck' where it was not previously present.


What is a word for a person who is easily amazed?

What is a word for a person who is amazed at everything, no matter how big or small? (Either an adjective or a noun would be fine)


What makes expensive shares worth it when the dividends are so low?

I'm new to the stock market and was wondering why stocks are so expensive when the dividends are so low. One share of apple costs 127 and its dividend is .22$. What exactly makes it worth so much? I understand that there are non-dividend paying stocks/stocks where dividends are negligible, but what exactly does a buyer see value in if the stock is 127 dollars but they only make .22 a year?


So I typed in lscpu into my terminal and saw this: CPU(s):              4 On-line CPU(s) list: 0-3 Thread(s) per core:  2 Core(s) per socket:  2 Socket(s):           1  The no. of CPU(s) is 4 here because of the formula: No. of CPUs = Sockets X Cores per socket X Threads per Core But the question is, what exactly is a CPU? Why are we including threads in the above formula?


Why was this spell cast in Fantastic Beasts and Where to Find Them?

Near the end of Fantastic Beasts and Where to Find Them, Newt casts      revelio, showing that the Graves we see is really Gellert Grindelwald. As far as I am aware, the movie until this point had not provided any "tells" that Grindelwald had been impersonating Graves.   Thus, why did Newt cast this spell?


Cannot update/get any packages. gedit not installed

my problem is that my sources.list is out of date for some reason. I already found the fix in another port, but it doesn't work. It says to use gedit to edit sources.list and replace everything with the proper sources. Well, for some reason I don't have it installed (Ubuntu Server 14.04) and I can't install it or else I get the main problem again.  Failed to fetch http:// some ubuntu site Could not resolve hostname "us.archive.ubuntu.com"  Is there any other way to edit sources.list? Or do I need to do a re-install of the OS?


Why is a certain boolean false though it should be true?

I wrote a Java program that should support English and German language. If a parameter is set and if it equals "english" or "English", it shall call a method that does the English version and if there is no parameter or it doesn't equal "English" or "english", it shall call the method for the German version. However, (args[0]=="english"||args[0]=="English") is false no matter what my parameter is, even if it should be true and I don't get why that's the case.  Here is the main method, the other ones aren't important, so I'll leave them away.  public static void main(String[] args){ boolean input=args.length==1; System.out.println(input); boolean mode = false; if (input) mode=args[0]=="English"||args[0]=="english"; System.out.println(mode); if(input&&mode) english(); else german(); }   Does anyone have a clue why it won't be true, regardless of my parameter?


Why didn't Bilbo and the Dwarves simply enter by the front entrance?

When the dwarves and Bilbo arrived at Lonely Mountain, they went to the top to seek the open key hole to enter. When Smaug first conquered the mountain, he blew up the entrance gate... why didn't Bilbo and the dwarves just enter by the front entranceway instead of climbing?


I was lucky to have had / I was lucky I had

Which one is correct, if I am talking about something that happened in the past and already ended? This is in the context of having a good friend:     I was lucky to have had one back then   OR     I was lucky I had one back then   Both seem right, so which one would be better in this context?  What would be the different usage for both of the above?  Thank you


The New Contributor dialog is masked from where the comment section ends. Here are some screenshots just to be more clear: With no comments:    With one comment:    No masking with more comments:


Install, with CPAN, Perl modules to specific directory when several appear in use

Running the following command returns several paths:  perl -e 'print join("\n",@INC,"")'   Every path has modules installed within. I would want to install modules, as root, into the following directory:  /usr/local/share/perl5   What commands would I run to find where cpan,as root, currently installs modules? How would I alter it if it is not the path shown above?


What is the argument selector tracking a defined score (not [score_min=])?

What if I want to make a command like this:  execute @e[score_A=10] ~ ~ ~ summon Creeper   So that the entity must have a score of 10 (not less, not more)?  Does it even exist that or a [score_A_max=] argument?  I know about scoreboard players test, but i guess it is not the case to use it.


Reference books on uniform spherical distributions in multiple dimensions

QUESTION  What is a citation of a book whose scope includes the uniform distribution [1] that is generalized to an $n$-ball [2]?  Among other things, I'd like to read a book that include such information as the distribution's parameters, its support, its probability density function, and its moment generating function.  Answers to this question may be useful to other users as well (cf., [3]).  Bibliography  [1]   [2]   [3]


I've looked for similar questions as , but my question might be slightly different.  There are boats, and each boat may have zero to many engines. Which is more correct to say:   Boat Engines Boats' Engines Or else?   And then what if there are manufacturing companies:   Company Boat Engines Companies' Boat's Engines Or else?   EDIT:  Since it depends on context, I'm actually using these for I.T. purposes, as in function names and database table names, etc. While there are powerboats, there are also traditional boats (zero engines). In the database, there are cars and car engines, bikes and bike engines, etc. So if I want to refer to the boat engines, I need to specify the type (cars or boats or else).


How to find if a USB has been plugged in on a certain date?

Starting from this great script offered by Daniel Azuelos  cd /Volumes/suspicious_USB /usr/bin/sudo find . -atime -21 -exec ls -dluT {} \;   How is it possible to modify it in order to find if a USB flash was plugged in, on any random computer, on a certain date?


I'm a total rookey in linux, so please I have a question, after reading a tutorial I learned how to install .deb archives using the terminal,so installed Play On Linux, then I tried to install wine:i386 using "sudo apt-get wine:i386" but the terminal didn't donwload the package, instead tells me to use the command sudo apt-get -f install, I want to know what means that -f.  A complete thanks for the person that can answer this


Can I alter encrypted data without decrypting it?

I didn't find a direct solution for it. Can I modify encrypted data without accessing it? If there is an example, I would appreciate it.


positioning the photo at where it placed in latex

every time that i put a (figure) in latex, it appears in some random places rather than the place I actually write the code. for example, for the following code, it will be appeared at the beginning of the next page of the place that the code is placed in the code:  \begin{figure*} \centering \includegraphics[scale=0.5]{example.eps} \caption{Figure} \end{figure*}   what to do?


Comments are useful. Many, many posts need some small amount of meta discussion, and comments fulfill this need.   Comments are also noisy and distracting. Occasionally, someone will post an insightful and informative comment that complements the post its attached to... But more often, they're tangential, quickly irrelevant and in the way: stale comments show up first, making newer comments less visible.  The guidance here for a long time has been that comments are transient, . And yet, some do hang around for months or years because .   So let's fix that.   I propose that all comments older than 7 days be hidden by default unless the comment has been up-voted in the past 30 days. Hidden comments should be indicated by a note below the post ("add / show 3 more comments") and made visible to anyone who cares to click it.   This doesn't destroy anything, but it would get it out of the way of most readers - and hopefully encourage folks to edit it into the actual answers as a result.  Note: I previously suggested this . Other  have been . However, I'm not suggesting that comments be automatically deleted, and they should be hidden based purely on the age / activity of the comment itself, not of the post to which they're attached.


redirect bash script output to a log file from within the script itself

Currently I am running the bash script like this:  $ myscript.sh param1 param2 param3 >log.txt   and it is outputting the normal information.  My question is:  how can I output all normal and error information (in, out, err) to a log file from within the script itself?  my try is the following but it is not working:  #!/bin/bash exec 2>&1 {     mycommand1      mycommand2     mycommand3 } 2>&1 | tee -a /tempfolder


Do photons lose energy after radiation pressure is applied to a perfect reflector?

I was readng Wikipedia article (English one) about radiation pressure because there is something I still cannot figure out. As I understand it, radiation pressure emerges from conservation of momentum. Photons or electromagnetic waves possess momentum and when they are absorbed, reflected or even emitted, the aborber/reflector/emitter experiences a pressure that is proportional to the irradiance (in watts per square meter). OK. In the case of a perfect reflector that does nothing but reflecting incoming radiation, it would seem the reflector is pushed and the radiation is reflected in opposite directions. But the radiation has not lost anything, it has only changed direction. And I do not understand how something can be set in motion (the reflector), which amounts to do work, yet the source of this work does not lose energy. I mean, if the radiation, after a U turn, meets a second reflector, it would have pushed two reflectors a way, yet it would continue in its original direction as if nothing happened...? What am I missing here? Should not photons lose something?


What is the best way to make sure a login in a PHP website is only valid to a certain machine?  Currently I have a system which validates certain usernames/passwords, although if several people have that password all of them can login successfully.  Is there any reliable way to identify the user machine in a unique way? I have been considering some alternatives, doing this by cookies usage, or maybe localstorage?  Do you have any suggestions?


I'm building a reyclerView that loads images into the titleChild. I uploaded test_image into res/drawable but I keep seeing null object reference at  titleChildViewHolder.option1.setImageResource(R.drawable.test_image); titleChildViewHolder.option2.setImageResource(R.drawable.test_image);


I don't want Ms excel to scroll down by cell units

When I scroll down (or up) in Ms Excel 2007, it scrolls down so that only whole cells (or at least it tries to do so) could be displayed next in that page. And it keeps jumping down one complete row at a time to maintain that function.  This could be useful in some cases, but when you have large cells (vertical wise), it could be really confusing when scrolling up or down.  I want to able to scroll down smoothly just like in any browser, or in the Windows Explorer. I don't care if cells (rows) are partially visible in my page.  How can I achieve this in Ms Excel?


need to write a sql query to fetch all tables in a schema  that was updated on sysdate.  select  distinct(table_name) from All_Tab_Columns  where owner = 'DBO'        and last_analyzed = sysdate;   It doesn't seem to work properly.


How can I setup my touchpad multi-finger tapping functionality?

I'm trying to setup my multi-finger tap in the following way:   Single finger - Left click Two fingers - Middle click Three fingers - Right click   What I currently have is:   Single finger - Left click Two fingers - Right click Three fingers - none   I've looked up several questions here on Ask Ubuntu, as well as the Ubuntu wiki on the subject (plus some general Google searching), but couldn't find anything to help me out. I know of xinput, but I don't know what to change there and how.  If anyone is able to point me to the right direction, I'd be grateful and award him with 25 shiny rep points, a large green tick mark, and some cookies.


Change empty cell bgcolor onclick in php

I'm just starting out with PHP, and I have a table with empty cells. I want to change the color of each cell when the user clicks it. I have the following code so far:  My HTML/ how I call the function: <td onclick="javascript: this.style.backgroundColor='<?php toggleColor(); ?>'">	  My function:  function toggleColor(){     global $bgcolor;     if($bgcolor == 'white'){         echo "#2E2E2E";         $bgcolor = 'gray';     }     else if ($bgcolor == 'gray'){         echo "#2E2E2E";         $bgcolor = 'white';                  }     else {         echo "#2E2E2E";         $bgcolor = 'white';     } }   What happens now is that the cell onclick turns gray. But when I click it again, nothing happens. Please help! Thank you!


What diceless tabletop RPG techniques are there?

I am interested in using a diceless resolution system for my roleplaying, but am not sure what my options are in that vein. I can think of basically two categories of diceless tabletop role-playing systems - systems which eschew any randomisation, and those which randomise by some method other than dice.  Examples  Non-random tabletop systems  One option is of direct comparison of stats or other game statistics without a randomization factor. The obvious example here is Amber DRPG, but I suspect that there are other narrative driven RPGs out there that I don't know about.   Even in Amber, situation resolution it is rarely by direct comparison between stats. Narrative techniques can be used to manoeuvre two characters into a situation which narrows the gap between their ranking, widens it, or brings other stats into the picture - the classic example of course being Corwin relying on his stamina to stretch out conflicts with his siblings such that it becomes a dominant enough factor that he can escape.  Other randomisation techniques  I have seen card-based randomization system. Over the years, I've played quite a few home brew games based on the original SAGA Dragonlance system, which was similar to the SAGA Marvel superhero system.  The basic mechanics were that you had a hand size according to your experience, and for any skill check you would play a card from your hand and replace your card from the draw pile. If you had a card of the right suit as the skill check (a strength card on a strength check) you would also draw a card from the draw pile and add that to your skill check, so a small trump was often worth more than a medium value card not of the correct suit. When you were wounded, you would discard cards to the value of the damage, but those cards wouldn't be replenished - your hand size would be reduced until you were healed. One nice aspect of the system was that it simulated fatigue beautifully, you might start a scene with a spread of high, medium and low cards, but as your high cards were played they would more often than not get replaced by lower value cards, until you were left with a bunch of useless cards and feeling very vulnerable.    The only other system I've played without dice was Everway which, if I remember correctly, used a combination of these techniques, stats based resolution, card resolution and GM fiat.  What I would be interested in is what other diceless resolution techniques exist, ideally with examples of tabletop diceless resolution methods people have tried and how they found them to play.


How long should I keep my tax documents, and why?

According to the answer to this question: "", I should hold onto my taxes and supporting documents for 7 years.  Is this the right length of time?  Unfortunately, my taxes tend to be complicated, and 7 years worth of tax returns are a bit of a burden. Is the basis for this number due to statute of limitations or something else?


Can i tell if i am being observed by an admin using apple remote desktop?

Is there a way i can tell if i am being observed by an admin who is using apple remote desktop (ARD) ?   Is there an icon that will pop up in the dock / top bar ? Or is there a port I could check to see if there is traffic passing through it ?


Is downvoting a question that has been closed by the moderators allowed?

One of my questions on stats.stackexchange had been closed. Two users have downvoted it and the score has been reduced by 4. I would like to see the rule. If it is there.


I'm wondering if it's possible to do something like this in Latex?    I have seen the similar question , but I'm wondering if there is a way to shade, have dotted lines, and have the dot? Ideally, I'd want to have a way to show how different $\epsilon$ values affect the $\delta$ values, i.e., as $\epsilon$ gets smaller, there is a $\delta$ that works.  So far, I've simply recreated the image in PowerPoint which I then copy paste in my tex document.


Terminal velocity of a settling sphere in 2D vs 3D

How can one analytically calculate the terminal velocity of a settling sphere in 2D? Actually it would be a circular disk. One cannot simple equate boyancy forces minus the drag right? As stated in   the formula $\textbf{U}_s=2/9(\rho_p-\rho_f)\textbf{g}/9\mu$ [1] does not hold!  [1]


What is the advantages of the ROC curves?  For example I am classifying some images which is a binary classification problem. I extracted about 500 features and applied a features selection algorithm to select a set of features then I applied SVM for classification. In this case how can I get a ROC curve? Should I change the threshold values of my feature selection algorithm and get sensitivty and specificity of the output to draw a ROC curve?  In my case what is the purpose of creating a ROC curve?


Extruding inwards without creating double faces

I'm trying to extrude the selected face in Cube #1 by pressing E, left click then move along X axis. The desired result is Cube #3 but what I get is Cube #2. Is there any workaround for this as it seems a very simple problem and I find it weird that this function hasn't been implemented yet. Thank you in advance!


Find $$\lim_{n\to \infty}\int_1^{\infty}\frac{n}{1+x^n}dx$$  Lebesgue dominated convergence does not work. My next thought was to use Fatou's lemma and reverse Fatou's lemma to bound the integral, but I haven't the faintest idea how to calculate the liminf or limsup of the integrand. Wolfram Alpha tells me that the value of the integral decreases (starting with n=2) from about 1.2 to about 0.7, but I can't even show that the sequence is decreasing right now.  Any hints would be appreciated.


activity tab shows weird compressed usercards

I think this screenshot of the responses tab of my profile's activity tab says it all.    Using a wide-screen monitor, fullscreen. Firefox 68.4.2esr on macOS 10.14.6


I'm trying to do something similar to this epsilon-delta graph I've found.  Specifically, I'd like to copy the placements and arrows, like the L+e and L-e coming out of L. Same thing with the x0 + d and x0-d coming out of the x0. Can someone help me with this? This is what I have so far.    \begin{tikzpicture} \begin{axis}[ ,         legend pos=north east,         axis x line=middle,         axis y line=middle,         x tick label style={/pgf/number format/fixed,                             /pgf/number format/fixed zerofill,                             /pgf/number format/precision=1},         y tick label style={/pgf/number format/fixed,                             /pgf/number format/fixed zerofill,                             /pgf/number format/precision=1},         grid = major,         width=8cm,           height=6cm,         grid style={dashed, gray!30},         xmin=0   ,     % start the diagram at this x-coordinate         xmax= 4,    % end   the diagram at this x-coordinate         ymin= 0,     % start the diagram at this y-coordinate         ymax= 11,   % end   the diagram at this y-coordinate %axis background/.style={fill=white},         xlabel=$x$,         ylabel=$f(x)$,         tick align=outside,         enlargelimits=false] % plot the stirling-formulae %\addplot[domain=0:200, red, ultra thick,samples=100] {K/(1 +    ((K-X0)/X0) * exp(r*x))    }; \addplot[domain=0:200, red, ultra thick,samples=100] {3*x-1 };  \addplot[line width=1pt, dashed, mark=none, black] coordinates {(0,8) (3,8)}; \addplot[line width=1pt, dashed, mark=none, black] coordinates {(3,0) (3,8)}; \addplot[line width=1pt, dashed, mark=none, blue] coordinates {(3.33,0) (3.333,9)}; \addplot[line width=1pt, dashed, mark=none, blue] coordinates {(2.666,7) (2.666,0)}; \addplot[line width=1pt, dashed, mark=none, blue] coordinates {(2.666,7) (0,7)}; \addplot[line width=1pt, solid, mark=none, blue] coordinates {(3.333,9) (0,9)}; \addplot[holdot] coordinates{(60,8.66)};  % 1\addlegendentry{$f(x) = 10 \sin (x)$}  \end{axis}   \end{tikzpicture}   which gives


MODIS - runGdal - error in strsplit: non character argument

I'm using the MODIS package, but am running into the following error: Error in strsplit(x, ":") : non-character argument  See code below: getT = getTile(tileH = 26, tileV = 4) tfs = runGdal(job = "NDVI", product = "MOD13Q1", begin = "2000.02.18", end = "2000.03.10", extent = getT) tfs  I've tried a few sample codes online that should work without issue, but keep getting the same error. Does anyone know where this is coming from?


Okay so someone put a bounty of $201336200 on me. If I never get killed what will happen with the money? Will I get the money or will the bounty stay on me?


Prove if A is a set finite and B is infinite then $|A|+|B|=|B|$

Prove if $A$ is a finite set and $B$ is infinite then $|A|+|B|=|B|$  My work  I was thinking in solve this exercise by contradiction.  Suppose $|A|+|B|\not = |B|$ then $|A|+|B|=|A|$  Here im a little stuck. Can someone help me?


At the end of The Hobbit: The Battle of the Five Armies Legolas was sent to find Aragorn. But in The Lord of the Rings: The Fellowship of the Ring, Bilbo is already 111 years old. So Aragorn must be very young in the first place.  How old is Aragorn at the time of the Hobbit movies?


Are airlines required to check for Brazilian visa of an American at check-in?

I was offered a job in Brazil and wanted to make sure it was a good place for my kids so booked a flight the morning of the offer for a flight later that morning.  I arrived at airport for my direct flight to Brazil, was issued boarding passes, took the flight but was refused entry upon arrival.  The airline flew me back, but I think they shouldn't have even let me board since I now know Americans are not allowed to enter Brazil w/o tourist visa?  I don't mind paying the cancellation fees but I feel the rest of the cost of the flight should be refunded?  Am I correct?


Do I need a Turkey transit visa for a layover?

I have an Indian passport and am planning to visit Germany with a valid visa. To book a flight for Germany (Mumbai – Dusseldorf), I came across some connected flights that stop at Istanbul.  Do I need to have visa for Turkey?  This is the first time I am travelling outside my country, and any information on this will be helpful.


How do I delete "Removable Disk" listings?

I've recently had some "Removable Disk" listings mysteriously appear along with my other drives. Clicking on one of them results in a dialog box:     Please insert a disk into Removable Disk (G:). "Properties" has no usable data.   How do I delete these "Removable Disk" listings?  Computer Local Disk (C:) Data2 (D:) DVR (E:) BD-ROM Drive (F:) DVD Removable Disk (G:) Removable Disk (H:) Removable Disk (I:) Removable Disk (J:) Maxtor .5GB Set 2 LR Sec (K:) LR3 Set3 Pri Seagate2TB (L:) Grn Mxtr .5GB Bkup of Mxtr .5GB (M:) Maxtor .5GB Set 2 LR Primary (N:) Removable Disk (O:)


Omitted dummy variable coefficient in OLS

I am running an OLS regression using dummy variables built from categorical variables. Say, race became race1, race2 and race3. I omit race1 in order to escape the dummy variable trap and run OLS and gain some coefficients for race2 and race3.  What would be the coefficient for race1 in the regression equation? Or I just should not include the omitted dummy variable into the final equation to estimate the predicted value?


How do you list items that are both singular and plural

For example, would you say: "There were carrots and gravy in the fridge." You wouldn't say, "There were gravy." So does this make sense? Another example: "There are radio parts and a radio in the car." You wouldn't say, "There are a radio in the car." So, again, how does this make sense? Any ideas on how to fix this? Thanks.


Problem with creating objects in a multi dimensional array

I currently have a problem with creating objects using two-dimensional arrays in Java.  I'ld like to display bricks on a playing board (like in the classic "BreakOut games), therefore I created a class "Stone" for the stone-objects, the constructor of the class is:   public Stone (Position pos, int value){     this.pos = pos;     this.type = type; }   I also created a 2D-array (int) called "stoneTypes" for the pattern of the Stones, in which I saved a matrix from a JSON file.  I ld' now like to create Stone-objects in my class "Level" by using the values of the stoneTypes-matrix, which currently looks like this (I included an if-condition, so Stone-objects are only created for stoneTypes value >= 1):  private Stone[][] stones = new Stone[25][20];  private int[][] stoneTypes;  JSONReader reader = new JSONReader("res/Level" + levelnr +".json"); stoneTypes = reader.getStones2DArray();  for (int w = 0; w < stoneTypes.length; w++) {        for (int h = 0; h < stoneTypes[w].length; h++) {            if (stoneTypes [w][h] >= 1) {               Position pos = new Position(width * w, height * h);               this.stones[w][h] = new Stone(pos, stoneTypes[w][h]);           }          } }   I also included a get-Method for the Stone-array, so I could use it to draw the Stones in my "Field" class:  public Stone[][] getStones(){     return this.stones; }   The method for drawing the Stones in my "Field" class currently looks like this:  private void drawStones(Graphics2D g2) { stones = view.getGame().getLevel().getStones();   for (int i = 0; i < stones.length; i++) {     for (int j = 0; j < stones[i].length; j++) {     ***     int x_position = (int) stones[i][j].getPosition().getX();           ***             int y_position = (int) stones[i][j].getPosition().getY();             g2.fillRoundRect(x_position, y_position,                      (int) ((double)Constants.SCREEN_WIDTH/Constants.SQUARES_X)-2,                      (int) ((double)Constants.SCREEN_HEIGHT/Constants.SQUARES_Y)-2 ,1,1);             System.out.println(x_position);     }   } }   Eclipse doesn't show any syntax errors but I do receive a NullPointerException at the spot I marked with the ***, as soon as I start the programm. I am not sure if my get-Method isn't implemented correctly or if the process of creating new Stone-objects is simply wrong. I tried hundreds of things but couldn't find a solution, I hope you guys can help me.  Thx in advance, Scoopa!


Undefined Reference to Function in Library

I'm working on my own math library, and I have a couple of non-member functions in the namespace I'm using for the library ("cml", like it matters much). Anyway, the library (which I'm building statically as a .a/.lib file) compiles just fine, but when I go to use the library in a test program, I get an error that the functions are undefined references.  This is header (func.h) file:  namespace cml {  template <typename T> T toRadians(T val); template <typename T> T toDegrees(T val);  template <typename T> T fastSqrt(T val); template <typename T> T fastInverseSqrt(T val);  }   And this is the func.cpp file:  #include <CML/func.h>  #include <cmath> #include <math.h> #include <limits> #include <cassert>  namespace cml {  template <typename T> T toRadians(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "toRadians() requires the template parameters to be floating points.");      return val * MATH_PI / 180; }  template <typename T> T toDegrees(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "toDegrees() requires the template parameters to be floating points.");      return val * 180 / MATH_PI; }  template <typename T> T fastSqrt(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "fastSqrt() requires the template parameters to be floating points.");      return T(1) / fastInverseSqrt(val); }  template <typename T> T fastInverseSqrt(T val) {     static_assert(std::numeric_limits<T>::is_iec559, "fastInverseSqrt() requires the template parameters to be floating points.");      T tmp = val;     T half = val * T(0.5);     uint32* p = reinterpret_cast<uint32*>(const_cast<T*>(&val));     uint32 i = 0x5f3759df - (*p >> 1);     T* ptmp = reinterpret_cast<T*>(&i);     tmp = *ptmp;     tmp = tmp * (T(1.5) - half * tmp * tmp); #if defined(CML_ACCURATE_FUNC) // If more accuracy is requested, run Newton's Method one more time     tmp = tmp * (T(1.5) - half * tmp * tmp); #endif // defined     return tmp; }  }   I am getting the error for all four of the functions. I am using the latest version of Code::Blocks, with GCC on Windows8. I am compiling for Win32. I've tried different suggestions I've found like marking the functions extern, but it doesn't seem to fix it. I'm sure it's something simple I'm missing, and if that is the case a second pair of eyes might help.  The error exactly: undefined reference tofloat cml::toRadians(float)'`


Show that every monotonic increasing and bounded sequence is Cauchy.

The title is kind of misleading because the task actually to show  Every monotonic increasing and bounded sequence $(x_n)_{n\in\mathbb{N}}$ is Cauchy  without knowing that:   Every bounded non-empty set of real numbers has a least upper bound. (Supremum/Completeness Axiom)    A sequence converges if and only if it is Cauchy. (Cauchy Criterion) Every monotonic increasing/decreasing, bounded and real sequence converges to the supremum/infimum of the codomain (not sure  if this is the right word).   However, what is allowed to use listed as well:   A sequence is called covergent, if for $\forall\varepsilon>0\,\,\exists N\in\mathbb{N}$ so that $|\,a_n - a\,| < \varepsilon$ for $\forall n>N$. (Definition of Convergence) A sequence $(a'_k)_{k≥1}$ is called a subsequence of a sequence $(a_n)_{n≥1}$, if there is a monotonic increasing sequence $(n_k)_{k≥1}\in\mathbb{N}$ so that $a'_{k} = a_{n_{k}}$ for $\forall k≥1$. (Definition of a Subsequence) A sequence $(a_n)_{n≥1}$ is Cauchy, if for $\forall\varepsilon>0\,\,\exists N=N(\varepsilon)\in\mathbb{N}$ so that $|\,a_m - a_n\,| < \varepsilon$ for $\forall m,n>N$. (Definition of a Cauchy Sequence) (Hint) The sequence $(\varepsilon\cdot\ell)_{\ell\in\mathbb{N}}$ is unbounded for $\varepsilon>0$. (Archimedes Principle)   Would appreciate any help.


Solution of $\frac{dy}{dx}=\frac{1}{xy(x^2 \sin y^2+1)}$

Find the solution of following differential equation:     $$\frac{dy}{dx}=\frac{1}{xy(x^2 \sin (y^2)+1)}$$   Could someone hint me something to get through this problem?


Why can't I convert 'char**' to a 'const char* const*' in C?

The following code snippet (correctly) gives a warning in C and an error in C++ (using gcc & g++ respectively, tested with versions 3.4.5 and 4.2.1; MSVC does not seem to care):  char **a; const char** b = a;   I can understand and accept this. The C++ solution to this problem is to change b to be a const char * const *, which disallows reassignment of the pointers and prevents you from circumventing const-correctness ().  char **a; const char* const* b = a;   However, in pure C, the corrected version (using const char * const *) still gives a warning, and I don't understand why. Is there a way to get around this without using a cast?  To clarify: 1) Why does this generate a warning in C?  It should be entirely const-safe, and the C++ compiler seems to recognize it as such. 2) What is the correct way to go about accepting this char** as a parameter while saying (and having the compiler enforce) that I will not be modifying the characters it points to? For example, if I wanted to write a function:  void f(const char* const* in) {   // Only reads the data from in, does not write to it }   And I wanted to invoke it on a char**, what would be the correct type for the parameter?


Be $G$ a group of order $35,$ Prove at least $1$ Element lies not in a subgroup of order $7$

I am an exchange student here and have difficulties solving the first question of my group theory course tomorrow.   The Question is: Let $G$ be a group of order $35.$ Prove that at least one element of $G$ does not lie in any subgroup of order $7.$ Hint: If $H$ and $K$ are distinct subgroups of $G$ such that both have order $7,$ what can you say about the order of the intersection of $H$ and $K?$   The only theorem we have learned is Lagranges Theorem, but I am not sure where it can help me. I have no idea how I should prove this, so please help me:(


When I fit a linear model in R with categorical variables of X (I have 3 levels). As R works it does not include one of these levels in the model output to avoid overfitting the model. But I need to know one of these levels estimated values how can I do this?


I just upgraded my Ubuntu 11.10 (x86) to Ubuntu 12.04 (x86). The upgrade completed without any errors.  Since then, I am unable to access any of the applications in the Dash. The Dash seems to be empty. When I search for some application like gedit, it says "Sorry, there is nothing that matches your search".  Is there any way to fix it?


Why do we create parameterized constructor in every PageObject class which accepts one driver reference when BaseTest has a global driver object?

When every test class will inherit driver, then why should we create constructor that takes driver object? public class BaseTest{  public static Webdriver driver = new ChromeDriver(); }  public class LoginPage{   Webdriver driver;  public LoginPage(WebDriver driver){ this.driver = BaseTest.driver}  class LoginTest extends BaseTest{  Login login = new Login(driver); }


How can I manage newly created tables permissions in the PostgreSQL?

I want to create default permissions on the schema and automatically assign these permissions to newly created tables. For this purpose, I've created a role and assign a user. Afterward, I've created default permission with the following statements. But there are no default permissions in the newly created tables. How can I manage users and roles on the newly created tables? CREATE SCHEMA ${db_schema};  #for create read only role CREATE ROLE readonly; GRANT CONNECT ON DATABASE ${db_name} TO readonly; GRANT USAGE ON SCHEMA  ${db_schema} to readonly; GRANT SELECT ON ALL SEQUENCES IN SCHEMA ${db_schema} TO readonly; GRANT SELECT ON ALL TABLES IN SCHEMA ${db_schema} TO readonly; ALTER DEFAULT PRIVILEGES IN SCHEMA ${db_schema} GRANT SELECT ON TABLES TO readonly;  #for create read write role CREATE ROLE readwrite; GRANT CONNECT ON DATABASE ${db_name} TO readwrite; GRANT USAGE, CREATE ON SCHEMA ${db_schema} TO readwrite; GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA ${db_schema} TO readwrite; ALTER DEFAULT PRIVILEGES IN SCHEMA ${db_schema} GRANT SELECT, INSERT, UPDATE, DELETE ON TABLES TO readwrite; GRANT USAGE ON ALL SEQUENCES IN SCHEMA ${db_schema} TO readwrite; grant readwrite to ${db_user_name} ALTER DEFAULT PRIVILEGES IN SCHEMA ${db_schema} GRANT USAGE ON SEQUENCES TO readwrite;  # create a user and assign read-write role create user appuser with password 'secret_password' grant readwrite to appuser  # create a user and assign read-write role create user reportuser with password 'secret_password' grant readonly to reportuser  # create a table with appuser who has the read-write permission CREATE TABLE usertestscehema.accounts ( username VARCHAR ( 50 ) UNIQUE NOT NULL ); insert into accounts (username) values ('test');  # select table with reportuser who has the read-only permission select * from accounts  Finally, I got the below error;  SQL Error [42501]: ERROR: permission denied for table accounts  Afterward, I examined the permissions with the following statement and I didn't see any permission related to reportuser who has my readonly user. SELECT grantee, privilege_type  FROM information_schema.role_table_grants  WHERE table_name='accounts'  Where am I missing about this problem?


I want to change in-text citation abbreviation. I mean, I want to use Turkish version of English abbreviation. I searched before I asked queation but I can not figure out.   For example,  Davidson ve MacKinnon (1993) instead of Davidson and MacKinnon (1993)  or  Heckman ve diğ. (2010) instead of Heckman et al. (2010).  \documentclass[a4,11pt]{book} \usepackage[utf8]{inputenc} \usepackage[turkish]{babel} \usepackage [top=2 cm, bottom=2cm, right=3cm, left=3cm]{geometry} \usepackage{natbib} \usepackage{hyperref} \hypersetup{colorlinks=true,citecolor=blue, linkcolor=blue} \usepackage{setspace} \usepackage{graphicx} \usepackage{lineno} \usepackage{amsmath}


My old US passport expires in October 2018. I have applied for a new passport. The 10-year visa to India expires in January 2019.  Can I travel with this visa if I travel in October 2018 and return in November 2018?


Command containing babel shorthand not expanding

Greetings to the distinguished gathering of TeXperts!  My problem is: if a macro is defined with a babel shorthand containing the quote mark (") as an active character, it does not expand when invoked.  MWE (TeXLive 2014 with the latest updates):  \documentclass[11pt]{article}  \usepackage[T2A]{fontenc}  \usepackage[utf8]{inputenc} \usepackage[russian]{babel}  \newcommand{\myname}{А.",С.",Пушкин "--- самый"=самый известный русский поэт.} \newcommand{\mynamea}{\shorthandon{"}А.",С.",Пушкин "--- самый"=самый известный русский поэт.}  \begin{document} \myname \par \expandafter\myname \par \mynamea \par \expandafter\mynamea \par Benchmark: \par А.",С.",Пушкин "--- самый"=самый известный русский поэт. \end{document}   For your information, in [russian]{babel}, the following definitions are present:  \declare@shorthand{russian}{",}{\nobreak\hskip.2em\ignorespaces} \declare@shorthand{russian}{"=}{\nobreak-\hskip\z@skip}   The "--- is a shorthand for Cyrillic text dash, \cdash---.   For some reasons, LaTeX did not expand any of these four (!) commands despite the fact he had been explicitly ordered to. What is the best practice for such occasions?


I am an undergrad physics student who has finished the first year curriculum: very basic mechanics and thermal physics; basic linear algebra; basic multivariable calculus and differential equations; and basic electromagnetism/relativity (with very basic quantum physics).  The goal that I want to achieve is understanding of following fields in physics:     Dynamics (Hamiltonian, Lagrangian, Fluids, tc...) Field Theory Quantum Mechanics Statistical Mechanics/Thermodynamics Special/General Relativity Astro/Cosmological Physics Standard Model of Particle Physics   I have all the resources in the library/professors at my University.    What I want to know from this post are:   Which books I should get from the library for each fields in physics I have listed above.  If it is possible, please suggest a book from beginners-intermediate-advanced section so that I can work from one to the next when I've done with more basic one. In which order should I learn?  (rearrange 1-7 on the choices above or feel free to add if you have suggestions)   Your opinion on this stupid (one might think) challenge.   The thing is that I could've taken a course and study, but due to the prerequisitse and things, I can't. I don't want to wait another year or two years to learn those fields.


How do we prove the "lying over" property for integral extensions?

Let $R \subset S$ be an integral extension of commutative rings.  Then if $P \subset R$ is prime, there exists a prime ideal $Q \subset S$ such that $Q \cap R = P$.     My D&F book says look at Corollary 50, but I cannot find it in the book!  Is the proof easy or does it require much build-up lemmas?    Hints, or location of Corollary 50, please.


"Have been having classes" or "have had classes for three months"?

Which sentence is correct:  "I have been having classes for three months."  or  "I have had classes for three months."


Let R be an integral domain  and $a,b\in R$ are elements satisfying $a^7=b^7$ and $a^{12} = b^{12}$. Prove that $a=b$.   My attempt:-   Since $R$ is an integral domain, R is commutative. That is all I could conclude...could you please help me out?


Can I acquire and redirect a competitor's .com brand name domain to our own site if its available?

Example Scenario: A close competitor has their own website: example.co.uk but has not registered example.com, so example.com if freely available.  Put aside any ambitions of 'easy' / blackhat SEO benefits (such as discussed and disapproved in  ), my question is different.  It could very reasonably be expected that some (many) customers may type example.com (ie the unregistered domain) instead of example.co.uk, the live domain.  At the moment those potential customers end up on a hosting company page offering the as yet unregistered domain coke.com for sale.  Would it be a good strategy, and legal, if we registered that domain and instead redirected potential customers to our website which sells similar products?  Assume the unregistered example.com has been checked and has no adverse history in terms of SEO. In fact, it has never been registered before.  Would this action simply be good business acumen to take competitive advantage of a piece of online real estate that the competitor has - to be frank rather poorly - failed to grab for himself?   I accept that customers typing example.com (and expecting to land at example.co.uk) may be a little surprised/dismayed to end up at our website. However, surely that's better than ending up at a domain hosting company telling you the URL doesn't have a website and is available for sale.  Especially if our website had a brief pop up saying something like      Sorry, example.com was not a live website, so we've grabbed it and are taking you to here instead to hopefully quench your desires!   The domain name is simple words, not a trademarked phrase, Eg. "BestShoesInLondon".


How should I partition my 128Gb Crucial SSD in my netbook for Ubuntu 13.04?

I know this is probably a question this is asked over and over again but I'm not finding anything close to an answer that I need.  I am installing Ubuntu 13.04 on my Lenovo x130e netbook .  It has been a long time since I have used Ubuntu (Hardy Heron) so I'm not exactly sure on how to go about this.  Here's my system specs:  CPU: AMD e450 apu dual 1.65Ghz RAM: 8Gb DDR3 Corsair Vengence 1066mhz SSD: Crucial M4 128Gb SSD Vid: Radeon HD6320 384Mb  Now here's my questions:   Since I am running a single SSD and have plenty of RAM, should I use a swap file?  If so how large of a swap? I am going to use .ext4 filesystem but is there any specific way I should partition my drive?  (1 partition for /home, another for boot, etc...) I am planning to upgrade to 13.10 when it releases, is there anything I should keep in mind until then?   I have never really used a forum before so I figured that this would be the best time to start.  I have decided that I am tired of having to deal with Microsoft and want to break free of their bloated software.  I have read through your forums many times before and found that this is probably the best place to begin the process of reacquainting myself with Ubuntu.  Thanks for your time!


I'm currently making a callout to a 3rd party vendor and I'm getting a huge response. What is currently messing me up is this section:   "MessageSeq":13,"Description":"config file: config-qa1.txt\"","MessageTS":"2014-02-17T14:46:58","MessageLevel":4,"IsSystemMessage":false   As you can see here, the portion at the end of the Description value is ended with backslash double quote. If I attempt to parse this via the JSONParser I get an exception. Does anyone have an recommendations on how to resolve this?  Exception Message:  System.JSONException: Unexpected character ('"' (code 34)): was expecting comma to separate OBJECT entries at [line:1, column:3699]  Updated with sample Code   public class ResponseWrapper{     // fields from JSON to auto map     public Integer messageSeq;     public String Description;     public String messageTS;     public Integer messageLevel;     public Boolean isSystemMessage;     // parsing fields     private ResponseWrapper theResponse;     private JSONParser parser;      public void parse(String jsonString){         parser = JSON.createParser(jsonString);         parseJSON();     }      private void parseJSON(){            while (parser.nextToken() != null) {             if (parser.getCurrentToken() == JSONToken.START_OBJECT) {                 theResponse = (ResponseWrapper)parser.readValueAs(ResponseWrapper.class);                            }         }     } }  String responseString = '{"MessageSeq":13,"Description":"config file: config-qa1.txt\"","MessageTS":"2014-02-17T14:46:58","MessageLevel":4,"IsSystemMessage":false}'; system.debug('\n\nBEFORE\n' + responseString); ****Place code in here to test such as ReplaceALL*** ResponseWrapper parser = new ResponseWrapper(); parser.parse(responseString);


I can't become an a administrator on my Win 10 laptop

I have an Asus K73S laptop with Windows 10 Home v.1809 (personal computer at home).  I never created a user account or password on it.  Windows apparently defaulted to a generic user account named User (located under the User directory as C:\User\User).    I am unable to do anything that requires elevated privileges.  Any attempt to launch a program that requires elevated privileges, or to launch an elevated command prompt, produces a dialog window asking for the administrator username and password, which doesn't work.  I researched how to get administrator privileges and found this article at Windows Central: .  It covers five approaches, which it describes as virtually every method available:   How to change user account type using Settings How to change user account type using Control Panel How to change user account type using User Accounts How to change user account type using Command Prompt How to change user account type using PowerShell   I tried followed every option.    I don't have the "Change account type" button described in the article. The same.  A window appeared asking me to enter a username and password as an administrator, which doesn't work.  The same as #3.  The same as #3.   I'm not an expert,can someone guide me to solve this problem?   Please,suggest any diagnostic that might be helpful.  Edit: This has been marked as a duplicate of .  That question does contain some methods not covered in the article (so apparently, the article was wrong about it covering every method available).    QGravity's answer was covered in the article.  Norbert Willhelm's answer re-enables a user account of a member of the Administrator group, which doesn't apply here.  The accepted answer may apply here, but I should clarify that by "not an expert", I mean I am a computer user and have almost no technical familiarity.  I also use Google Translate to converse here in English.  The accepted answer assumes a certain level of knowledge and familiarity, which I do not have.  While it's possible that this would be a solution, it requires meddling with things that seem unsafe for a total novice.


Installing RStudio -- is this very different from other packages?

I see these instructions to install RStudio:    But I'm a little gun-shy to trust them because they seem more substantial than the usual method of adding a PPA and then installing.  Also, I just wiped my computer clean and did a fresh install of Ubuntu because things stopped working right and I think it was because of an improper install of either Java's JDK or RStudio, or both, or something else.  So I want to be sure I'm doing the right thing.    So my questions are:  Should I follow these instructions or should I be doing something else?  And why can you not just add a PPA like I did for installing, say, Atom?    I'm running Ubuntu 17.04 and would rather not directly download a .deb file because, as I understand it, this would not automatically update when updates are released.


Malware is causing Google Chrome to forget user data

I have a laptop with Windows 8.1 and every time I restart the computer it's like Google Chrome reinstalls itself from scratch. My browsing history, download history, extensions, themes, etc... all disappear.  I have reinstalled Chrome more than 5 times attempting to solve this problem, with no effect. I avoided restarting Windows for several weeks to avoid the issue, but now I'm tired of this. I don't know what to do. I like Chrome and don't want to switch to another browser, but it seems I don't have a choice. Can anyone help?  Other details: I tried signing into a Google account using Chrome. I scanned the system with Malwarebytes and Avast more than 10 times. I formatted and reinstalled my operating system 3 times.  I do have malware in my system, but they are not going away. The one malware annoys me most is "bettersearch.tk".


Unexpected roughness in the rendering of a flat surface with Blender render

I made the following object. I use the Blender render engine and the basic configuration of the cube material is given bellow.  As you can see, the top face of the cube is rendered rough, and I do not want this. Is it possible to make it appear as the front face, for instance?  Thank you in advance for your help.  Vincent


How did we arrive that kinetic energy $KE = \frac{1}2 mv^2 $?

There are proofs mathematically how we get kinematics formulae. But i can't understand the proof for kinetic energy equation. I know we can proof $KE$ equation from work energy theorem but what I learned was that we arrived from that change in $KE = W$. So I want proof for $KE = \frac{1}2 mv^2$ from other ways rather than work energy theorem.  Edit:  In kinematics acceleration makes sense when we say acceleration = rate of change of velocity . Which we can arrive mathematically as $a = \frac{v_f - v_i} t$ but i am curious to find how did we $KE = ??$ mathematically?


Commenting off or deleting texts in any color all at once

I have a .tex file of about 100 pages which is a handout of my answer key to a course I'm teaching. The file contains  exercises with provided solutions in red color. I would like to delete all the texts in red color. Deleting these texts one at a time is a daunting task, how do I delete all the texts at a go? There is a similar question here  but that one talks about creating "empty spaces" or "fill-ins" within the content of the document. My question is about deleting all texts in red not necessary replacing the texts in red color with "empty spaces" or "fill-ins". The color packages in the .tex file is:  \usepackage[usenames]{color}   \newcommand{\red}[1]{{\color{red}#1}}


C# cannot find file that is in same directory as the program

I am getting a System.IO.FileNotFoundException when trying to open a StreamReader on a file that exists in the same directory as Program.cs. try {     using (StreamReader sr = new StreamReader("file.txt")) { ... } }  The word file in question exists within the same directory as the program source code. I am using Visual Studio 2019 and this is a simple command line project. So why can't C# find this file, despite it being in the same directory? It doesn't help that Visual Studio won't show me the whole stack trace, but only the one line error.


For some of the apps I've developed (then proceeded to forget about), I've been writing plain SQL, primarily for MySQL.  Though I have used ORMs in python like , I didn't stick with them for long.  Usually it was either the documentation or complexity (from my point of view) holding me back.  I see it like this: use an ORM for portability, plain SQL if it's just going to be using one type of database. I'm really looking for advice on when to use an ORM or SQL when developing an app that needs database support.  Thinking about it, it would be far better to just use a lightweight wrapper to handle database inconsistencies vs. using an ORM.


How do I completely reset network settings?

When I first installed Ubuntu, all networking worked perfectly. After messing with the settings every so often, it slowly became unusable. I would really like to know if there is a way to completely reset network settings without re-installing Ubuntu, DNS settings, proxy settings, everything. I'm running 12.04.


explains what rich black is, but when should it be used?  If it gives a "blacker black", why not use it for all black elements in a CMYK job (body text/line art/tints)? Would there be any downsides?


Proving $f^{-1} (C) \backslash f^{-1} (D)= f^{-1} (C \backslash D)$ where $C,D \subseteq A$ and $E,F \subseteq B$ for $f: A \rightarrow B$

I do not understand how it is possible to use the domain of the function $f$ in the inverse function. I believe it should take numbers from the set $B$ in the inverse function, since it goes from $B \rightarrow A$


Measurement for 3 sheets of crushed graham cracker

My receipe calls for 3 sheets of crushed graham cracker. I bought pre-crushed graham cracker. What is the cup measurement for 3 crushed sheets?


How to show comments belong to each paragraph, under that paragraph?

I am writing a module that gives this option to users to put comment on each paragraph.  So I have added a new field to my comment table, called "paragraph_id".Also in comment form I have added a new field which asks users which paragraph do they want to put comment on.  I have done some changes to node.tpl.php. This is part of it:  <div class="content clearfix"<?php print $content_attributes; ?>> <?php   // We hide the comments and links now so that we can render them later.   hide($content['comments']);   hide($content['links']);   $paragraphs = explode("
",render($content));   $number = count($paragraphs);   if($teaser){      print render($content['links']);    }   if($page){           $node_number=$node->nid;    print render($paragraphs[0]);   for ($i=1;$i<$number;$i++) {      print render($paragraphs[$i]);        Put comment for Paragraph <?php echo $i?>
          <?php      }    ?>   <?php print render($content['comments']['comment_form']);   so you can see that there is a link under each paragraph that when they click on it, it will take them to the comment form. So now I want to show the comments that belong to each paragraph under that paragraph.  When I use this:   krumo($content['comments']['comments']);  This is part of what I see:     ...(Array, 11 elements)    #sorted(Boolean ) TRUE    22(Array, 13 elements)    26(Array, 13 elements)    25(Array, 13 elements)    28(Array, 13 elements)   when I check the comment table, I find out that 22,26, 25, .. are cid numbers from comment table. And if I click on for example 22, this is part of what  I will see:      #pre_render(Array, 1 element)     #entitly_type(String, 7 characters ) comment     #bundle (String, 20 characters ) comment_node_article     links (Array, 4 elements)     #view_mode (String, 4 characters ) full     #theme (String, 21 characters ) comment__node_article     #comment (Object) stdClass     #node (Object) stdClass     #language (String, 2 characters ) en     #prefix (String, 24 characters )      #weight (Integer) 0     #children (String, 1520 characters ) <div class="comment comment-by-node-author comm...     #printed (Boolean) TRUE   And if I click on #comment, this is what I will see:       cid (String, 2 characters ) 22       pid (String, 1 characters ) 0      nid (String, 2 characters ) 22      uid (String, 1 characters ) 1      subject (String, 1 characters ) 1       hostname (String, 9 characters ) 127.0.0.1       created (String, 10 characters ) 1410041425    changed (String, 10 characters ) 1410041423     status (String, 1 characters ) 1     thread (String, 3 characters ) 01/     name (String, 6 characters ) gbi222     mail (String, 0 characters )     homepage (String, 0 characters )     language (String, 3 characters ) und     **paragraph_id (String, 1 characters ) 1**   So for each paragraph , I need to check the paragraph_id and if the number of the paragraph number is equal to the paragraph_id, show that comment under that paragraph.  so after print render($paragraphs[$i]); in my code, write:         if($i==($content['comments']['comments']['22']['#comments']->paragraph_id))            show the comments that its cid is 22.   So now my questions are:  1) How can I say that if the above equality is true, show the comment subeject, author, body, ... for that comment?Because if I write:  $content['comments']['comments']   it will show all the comments.  2) In this example I knew the cid number of that comment, which was 22, so what can I write instead of '22', in           if($i==($content['comments']['comments']['22']['#comments']->paragraph_id))  so it means like  any number, so it will do that comparison for all the comments(with their cid number)?


Please explain the end of John Dies at the End

The title of the movie is John Dies at the End, but for some reason this doesn't happen. He dies for a short while in the middle, and then comes back, but this makes the title inaccurate, especially since the whole movie is based on the premise that the drug they take allows them to be all- knowing. So what's the deal here?


Widget stuck on "Unable to load a hot question, check your internet connection"

The hot questions widget seems unable to load questions. This has been going on for the last one month, I have tried clearing app data, removing and reinstalling the app, removing and recreating the widget but all to no avail.   App Version: 1.0.92 Device Manufacturer: OnePlus Device Model: ONE A2003 OS Version: 6.0.1 (31)


How to load program reading stdin and taking parameters in gdb?

I have a program that takes input from   stdin and also takes some parameters   from command line. It looks like this:  cat input.txt > myprogram -path "/home/user/work"       I try to debug the code with gdb   inside emacs, by M-x gdb, I try to   load the program with the command:  gdb cat input.txt > myprogram -path "/home/user/work"       However, gdb does not like it.   Question cribbed from . Unfortunately I don't understand the solution and am not sure what to do beyond compiling with the -g option and running the command M-x gdb.


How do I perform a Unit Test using threads?

Executive Summary: When assertion errors are thrown in the threads, the unit test doesn't die. This makes sense, since one thread shouldn't be allowed to crash another thread. The question is how do I either 1) make the whole test fail when the first of the helper threads crashes or 2) loop through and determine the state of each thread after they have all completed (see code below). One way of doing the latter is by having a per thread status variable, e.g., "boolean[] statuses" and have "statuses[i] == false" mean that the thread failed (this could be extended to capture more information). However, that is not what I want: I want it to fail just like any other unit test when the assertion errors are thrown. Is this even possible? Is it desirable?  I got bored and I decided to spawn a bunch of threads in my unit test and then have them call a service method, just for the heck of it. The code looks approximately like:  Thread[] threads = new Thread[MAX_THREADS]; for( int i = 0; i < threads.length; i++ ) {     threads[i] = new Thread( new Runnable() {         private final int ID = threadIdSequenceNumber++;         public void run() {             try {                 resultRefs[ID] = runTest( Integer.toString( ID ) ); // returns an object             }             catch( Throwable t ) {                  // this code is EVIL - it catches even                 // Errors - don't copy it - more on this below                 final String message = "error testing thread with id => "                             + ID;                 logger.debug( message, t );                 throw new IllegalStateException( message, t );                  // need to wrap throwable in a                  // run time exception so it will compile             }         }     } ); }   After this, we will loop through the array of threads and start each one. After that we will wait for them all to finish. Finally, we will perform some checks on the result references.  for( Thread thread : threads )     thread.start();  logger.debug( "waiting for threads to finish ..." ); boolean done = false; while( !done ) {     done = true;     for( Thread thread : threads )         if( thread.isAlive() )             done = false; }  for( int i = 0; i < resultRefs.length; i++ ) {     assertTrue( "you've got the world messed, dawg!",             myCondition(resultRefs[i]) );   Here's the problem. Did you notice that nasty try-catch-throwable block? I just added that as a temporary hack so I could see what was going on. In runTest( String ) a few assertions are made, e.g., assertNotNull( null ), but since it is in a different thread, it doesn't cause the unit test to fail!!!!  My guess is that we will need to somehow iterate over the threads array, check the status of each, and manually cause an assertion error if the thread terminated in a nasty way. What's the name of the method that gives this information (the stack trace of the dead thread).


Parsing from string to float32 yields incorrect results, f#

Im trying to parse strings of coordinates using System.Single.Parse, but when the numbers are too low odd thing occur. Example:  System.Single.Parse " 0.0001";;   val it : float32 = 9.99999975e-05f


How to know you've outgrown your equipment?

I have only started shooting recently, as a hobby. I use Canon EOS M100. I use a EF to EF-M adapter to use EF 50mm f/1.2L USM.  The camera seems to have trouble focusing and light metering (with auto ISO overexposing the image a lot). The red AF assist light seems to be hitting the lens.  Should I switch back to an appropriate EF-M lens (15-45mm f/3.5-6.3 IS STM) or upgrade to a full frame body?  I understand that what I'm asking for is very subjective, and depends on the needs and my requirements as a photographer.  I am asking for experience with feelings of "fighting your equipment". Am I a bad photographer complaining about their equipment or a photographer hitting the limits of their equipement?  I like to shoot natural-light (so sometimes low-light) portraits, street photography. Fast focus, image stabilisation, large aperture... these seem unachievable on an EOS-M camera body.


Every number can be expressed as a product of (least prime factor)*(largest integer dividing n less than n) [EDITED]

Let $L:{\Bbb N} \to {\Bbb N}$ such that $L(n) = {\text{least prime factor p of n}}$. Let $g:{\Bbb N} \to {\Bbb N}$ such that $g(n) = {\text{biggest positive integer d such that d|n and 1}} \leqslant {\text{d < n}}$. Show that:$$g(n) = \frac{n}{{L(n)}},\forall n \in {\Bbb N}{\text{ such that }}n \geqslant 2$$ My proof: Since $n \geqslant 2$, $n$ is either composite or prime. If $n$ is prime(i.e $n = p$ where $p$ is prime), then $$g(n) = 1 = \frac{p}{p} = \frac{n}{{L(n)}}$$ This is because $L(n)$ is defined as least prime factor of n. If n is composite, by the Fundamental Theorem of Arithmetic: "Any positive integer bigger than 1 can be expressed as a product of primes." Let $p$ be the smallest prime of the product $$n = {p_1}^{{\alpha _1}}p_2^{{\alpha _2}}...{p_m}^{{\alpha _m}},{\text{ }}i < j,{\text{ }}{p_i} < {p_j}{\text{ and }}i,j \in {{\Bbb Z}^ + }{\text{ and }}{\alpha _i} \in {{\Bbb Z}^{ \geqslant 0}}$$ That is, pick $p = p_1$. Notice that $p$ is necessarily $L(n)$ because since $p = p_1$ implies that $p|n$ and is the smallest prime that divides n. Therefore, $$p_1 = p = L(n)$$ Then, if $x = p = L(n)$, then $1 < x < n$ and $x|n$ (by definition). This implies that $$\exists y \in {{\Bbb Z}^ + }:y = \frac{n}{x} = \frac{n}{{L(n)}} = {p_1}^{{\alpha _1} - 1}{p_2}^{{\alpha _2}}...{p_m}^{{\alpha _m}}$$ But $y|n$ such that $y < n$. Implies that $y$ is the greatest integer less than n such that $y|n$. Now let $d = g(n)$. Since $$\frac{n}{d} = \frac{n}{{g(n)}} = m$$ then $m$ is prime and $m = p$. BWOC, If $n=md$ and $m = ab$ where $1 < a,b < m \Rightarrow n = abd \Rightarrow ad|n$. Since $1<a<m \Rightarrow d<ad<md = n$. But we found another factor of $n$ ($ad$) that divides $n$! This contradicts the definition of $d=g(n)$. Also, since $d = g(n)$ is the biggest factor of n, implies that $m = \frac{n}{d} = \frac{n}{g(n)}$ is the smallest prime factor of n. So $m = L(n) = p$. Hence, we have that $$x = m = p = L(n) = \frac{n}{g(n)} \Rightarrow g(n) = \frac{n}{p} =\frac{n}{L(n)} = y$$ or just $$g(n) = \frac{n}{L(n)}$$ Q.E.D.


Understanding Conditional Probability Basics

In many online sources I've read a statement similar to:     Probability of B happening given A is equal to the probability of A and B both happening divided by B happening   or  $p(A | B) = p(A \cap B) / p(B)$  But what is the difference between "B happening given A" and "A and B happening at the same time" ? If B happens given A, didn't A and B happen at the same time ? Why is that chance smaller than the intersection ?


$x^8-1$ - Irreductible polynomials over $\mathbb{Z}/3\mathbb{Z}$.

How could it possible to factorise $x^8-1$ in product of irreductibles in the rings $\mathbb{Z}/3\mathbb{Z}$?  Theorem : Let $A$ an integral domain and $I$ a proper ideal of $A$. If $f(x) \not \equiv a(x)b(x) (\mod I)$ for any polynomials $a(x)$, $b(x)$ $\in A[x]$ of degree $\in [1, \deg(f))$, then $f(x)$ is irreductible in $A[x]$  I think I have to use this theorem, but I am not certain. Is anyone could help me at this point?


I have used very low quality flag for  question - was accepted.  But for  - declined  Flag number 3:  - accepted  Flag number 4:  - declined. For the last one the flag was declined before question was edited - it wasn't any code there...  There are some criteria for low quality question - but it depends more on individual moderators.  Am I correct?


Active login not recognized on Super User

While on other Stack Exchange sites like Game Development and Code Review they recognize if I am logged in to Stack Overflow or Stack Exchange and after refresh request from page I am logged in there too. This autologin feature does not happen on Super User.  Even if I go to the login page, it does not offer me automaticaly to login with my connected SE account.  I know I am registered on Super User as I even asked a question there.


How can I export files from Ubuntu WSL to windows or any other directory so that I can use/edit that file in windows


Why do graduate school application forms ask applicants to name the other schools to which he/she is applying?

What do the admission committees learn about an applicant by knowing which other programs and schools one has applied to? Does applying to another program which is more prestigious make the applicant seem more serious?


How to show $f:Y\to X^{+}$ is continuous?

I am struggling with an exercise in Topology. The exercise goes:  Let $Y$ be Hausdorff, and $X\subseteq Y$ an open subspace which is locally compact. Let $X^{+}$ denote the one-point compactification of $X$, and let $\infty$ denote the unique point in $X^{+} \backslash X .$ Define $f: Y \longrightarrow X^{+}$ by $$ f(y)=\left\{\begin{array}{ll} y & \text { if } y \in X \\ \infty & \text { else } \end{array}\right. $$ Show that $f$ is continuous.  I have a lot of definitions and lemmas about continuity, but none of them seems to fit with this problem. I am looking for a hint on how to get started with the proof. Thanks in advance.


Why are there multiple base cases in this strong induction?

My understanding of needing a base case, in general, is that after proving the induction step, we can assert that the proposition is true for all values from the base case. This question ($∀n ∈ Z,  n≥12$) $\implies$ ( $∃x, y ∈N$ such that $n= 4x + 5y$) uses 3 bases cases for its strong induction solution:  Base cases: $n = 12, 13, 14, 15$ Clearly, $12= 4(3) + 5(0)$, so $P(12)$ is true. Also, $13= 4(2) + 5(1)$, so $P(13)$ is true. And, $14= 4(1) + 5(2)$, so $P(14)$ is true. And, $15= 4(0) + 5(3)$, so $P(15)$ is true  Meanwhile I only used base case, $n=12$. Their rationale for providing multiple cases is as follows  If we didn’t prove $P(13), P(14), P(15)$ as base cases, then the inductive step to get $k+1 = 13, 14,15$ will fail, since proving these assume that $P(r)$, for $ r < 12$, to be true, which we didn’t prove. By establishing base cases $n = 12$ to $n = 15$, the inductive step can then work forward from $n ≥ 15$.   The first line starting from "If we..will fail" already contradicts with my understanding of the base case that I mentioned above as proving base case of $12$ should suffice to prove inductive steps for $k+1=13,14,15$. The part where they said "since proving..we didn't prove" doesn't even make sense to me.Why are they talking about $ r < 12$. And the last sentence says "work forward from n ≥ 15" confuses me, shouldn't we want it to work from $n ≥ 12$. My main question is essentially why we do need multiple base cases here? The sub-questions are the 3 paragraphs talking about the solution's rationale for providing multiple cases. Induction Step(included after a comment by fleabloods):  Note: If the sub-questions should be separately posted, do let me know


Undefined reference when using non-type template parameters

I have the following declaration for a function collectStats in a class called Analyzer:     template <size_t C>     void collectStats();  And the following definition (empty since I'm just trying to get everything to link)     template <size_t C>     void Analyzer::collectStats() {}  And the following invocation:     collector.collectStats<size_t(3)>();  And the following error message: undefined reference to `void Analyzer::collectStats<3ul>()'  I've seen other similar invocations posted around stackoverflow (passing non-type template parameters) () I have also tried static-casting 3 to a size_t, but I get the same error message. Maybe this error has something to do with the fact that the parameter seems to be resolving to an unsigned long, but I don't know why this would happen in the first place? Any insight would be greatly appreciated.


I'm surprised the answer to this isn't obvious after a google searches and articles read. But I tried to upgrade my Ubuntu v18.04 to v20.04 today. First I tried the instruction here:  I got a ~"No new release found message". On that, their suggestion is: The first and recommended approach is to simply wait. Direct upgrades from Ubuntu 18.04 LTS to Ubuntu 20.04 Focal Fossa LTS will most likely be unavailable until late July 2020.  Then I tried here:  Got this message in my (bash) console: "Checking for a new Ubuntu release There is no development version of an LTS available."  That confused me because I thought April 23 was the day. Then I saw this on google: Open the “Software & Updates” Setting in System Settings. Select the 3rd Tab called “Updates“. Set the “Notify me of a new Ubuntu version” drop down menu to “For long-term support versions” if you are using 18.04 LTS; set it to “For any new version” if you are using 19.10. Apr 28, 2020  Okay, since that is exactly what is set in my “Software & Updates” settings, can I just sit tight until late July? Will I get prompted when v20.04 is available by these commands?


I use a browser launched from the command line (Qutebrowser) and I'd like to make an automator application that takes a URL as input and launches it via a shell script, qutebrowser "$@" &> /dev/null &" so I can set it as a default browser, open links from other applications, etc. The problem is, it seems like Automator apps can only accept local files and folders as input. Is there any way around this? I emphatically do not want to make a service which cannot be used as a default application as far as I know.


Selected record won't display in textfield java

I got an error of java.lang.NullPointerException when I try to display ORNumber to my textfield. There are 4 more fields in my database but I only want to display official_reciepts. Here is my code:  private void jtCrbMouseClicked(java.awt.event.MouseEvent evt) {                                         try {         int row = jtCrb.getSelectedRow();         String table_clicked = (jtCrb.getModel().getValueAt(row, 0).toString());           ps = con.prepareStatement("SELECT * from Collection_Reports where official_reciepts = '" + table_clicked +"' ");         rs = ps.executeQuery();          while(rs.next()) {             String add1 = rs.getString("official_reciepts");             txtORnumber.setText(add1);         }     }     catch (Exception e) {         System.out.println("" + e);     } }


Why has the "Ubuntu app" full access to my Google account?

The same (or similar) topic was already covered on Ask Ubuntu some time ago:  I just performed a new clean installation of Ubuntu 16.04. To my surprise, the "Ubuntu app" was still showing up and has full access to my Google account. I don't understand why, it's quite frustrating. What is this? I have not given "Ubuntu" such permission. Might it be some malicious code? Might this malicious code come from some of the Chromium extensions I have installed, which re-install themselves when I'm starting up and logging in with Chromium for the first time? I have installed Chromium by using the terminal: sudo apt-get install chromium-browser  Also, the Ubuntu URL is "http://" and not the official "https://".


A phrase being used by the "news" media regarding the  is "firearms favored by the Mexican cartels", referring to their purchase of AK47s and other semiautomatics; weapons that are in fact favored by many people who want a good weapon for a reasonable price. I'm trying to name the fallacy, and "guilt by association" and "red herring" come to mind but aren't really a good fit.  I've read , but can't really match it to the situation. I've also looked through many of the fallacies at  and  and can't see a good match. Any ideas?   It could be rewritten for clarity:  Person P bought weapons A and B. A and B are favored by the Mexican drug cartels. Therefore, P bought the weapons with intent to distribute them to the Mexican drug cartels.


please tell me where I have gone wrong while using request.setAttribute() while passing values between two servlets

what am I doing wrong here ?  //BillServlet public class BillServlet extends HttpServlet {     protected void doGet(HttpServletRequest request, HttpServletResponse response)              throws ServletException, IOException {          //general settings         PrintWriter pw = response.getWriter() ;         response.setContentType("text/html");          // read form data          String name = request.getParameter("t1") ;         Float price = Float.parseFloat(request.getParameter("t2")) ;         Float qty = Float.parseFloat(request.getParameter("t3")) ;          //calculate bill amount         Float bamt = price * qty ;           //setting request attribute         request.setAttribute("attr1", bamt);         request.setAttribute("attr2", name);          if (bamt >= 50000){             RequestDispatcher rd = request.getRequestDispatcher("/discounturl") ;             rd.forward(request, response);      }          else{              pw.println("
item name :" +name + "price : " +price + "qty :" +qty +"
bill amount :" +bamt);          }          //close stream          pw.close();     }      protected void doPost(HttpServletRequest request, HttpServletResponse response)              throws ServletException, IOException {           doGet (request,response) ;     }  }   //DiscountServlet  public class DiscountServlet extends HttpServlet {     protected void doGet(HttpServletRequest request, HttpServletResponse response)             throws ServletException, IOException {                  //general settings                 PrintWriter pw = response.getWriter() ;                 response.setContentType("text/html");                  //read attribute                 float amt = (Float)request.getAttribute("attr1") ;                 String name = (String)request.getAttribute("attr2") ;                  //calculate discount                  float discount = amt * 0.3f ;                 float finalamt = amt - discount ;                  //display details                  pw.println("
 item name :" +name );                 pw.println("
 bill amount :" +amt);                 pw.println("
 discount : " +discount);                 pw.println("
 final amount : " +finalamt);         }      protected void doPost(HttpServletRequest request, HttpServletResponse response)              throws ServletException, IOException {         doGet (request ,response) ;      }  }   It is giving me this error:  ype Exception report  message  description The server encountered an internal error that prevented it from fulfilling this request.  exception      java.lang.NullPointerException         com.ds.DiscountServlet.doGet(DiscountServlet.java:20)         javax.servlet.http.HttpServlet.service(HttpServlet.java:618)         javax.servlet.http.HttpServlet.service(HttpServlet.java:725)         org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)     note The full stack trace of the root cause is available in the Apache Tomcat/8.0.9 logs.


Proving that $T^{2} = T$ for a linear operator on $W$ implies that $V = \operatorname{Null} T \oplus \operatorname{Range} T$

How can I prove that $T^{2} = T$ for a linear operator on $W$ implies that $V = Null T \oplus Range T?$ I know that their dimensions add up to the dimension of $W$, how do I show I can represent any element in $W$ like that? Or could I start with a basis for null and then add vectors of a basis of the range and say that the list doesn't become dependent because vectors (besides o) that form a basis for image T can't be in the basis? Or is that hand-wavy?


If java is passed-by-value why my object changes after executing the method?

I was debugging my method and it somehow updates my element variable. Even if I don't work with that variable from within the method.  CODE:  private static List<Mapping> createFormFieldsMapping(ArrayList<String> CDOfields,             List<Mapping> fieldMappings, Element element) {         System.out.println(" - Creating field mappings for "+element.name);         for (Mapping fieldMapping : fieldMappings){             if (fieldMapping.targetEntityFieldId!=null){                 String formField = getContactFieldNameById(fieldMapping.targetEntityFieldId);                 formField = formField.trim();                 formField = formField.replaceAll("-", "");                 formField = formField.replaceAll("_", "");                 formField = formField.replaceAll(" ", "");                 formField = formField.toLowerCase();                 Boolean matchFound = false;                 for (String cdoField : CDOfields){                     String[] cdoFieldSplit = cdoField.split(";",-1);                     String cdoFieldModified =cdoFieldSplit[1].trim();                     cdoFieldModified = cdoFieldModified.replaceAll("-", "");                     cdoFieldModified = cdoFieldModified.replaceAll("_", "");                     cdoFieldModified = cdoFieldModified.replaceAll(" ", "");                     cdoFieldModified = cdoFieldModified.toLowerCase();                     if (cdoFieldModified.equals(formField)){                         fieldMapping.targetEntityFieldId = cdoFieldSplit[0];                         matchFound = true;                         break;                     }                     if (!matchFound){                         // WRITE NOT MATCHED FORM FIELD TO A FILE                     }                 }             }         }   element.processingSteps.targetEntityFieldId is being changed  This is the way I call the method:  List<Mapping> fieldMapping = new ArrayList<Mapping>(); Iterator<ProcessingStep> i = element.processingSteps.iterator();  while (i.hasNext()) {        ProcessingStep step = i.next();         if (step.type.equals("FormStepCreateUpdateContactFromFormField")){            fieldMapping = step.mappings;            step.execute = "never";            //i.remove();         }      } // Update contact field IDs with CDO field IDs     fieldMapping = createFormFieldsMapping(CDOfields, fieldMapping, element);   Everything I wanted was to kind of copy field mapping, process it by that method and then return back and add it to list of fieldMappings.  The thing is that step.mappings is part of element, but that step.mappings is being put to an ArrayList fieldMapping. By that I would assume that element should never be edited by anything.


If $a,b,c$ are positive , show that $$\dfrac{b^2+c^2}{b+c}+\dfrac{c^2+a^2}{c+a}+\dfrac{a^2+b^2}{a+b} \ge a+b+c$$  Trial: Here  I proceed in this way $$\dfrac{b^2+c^2}{b+c}+\dfrac{c^2+a^2}{c+a}+\dfrac{a^2+b^2}{a+b} \ge  \dfrac{2bc}{b+c}+\dfrac{2ca}{c+a}+\dfrac{2ab}{a+b}$$ then how I proceed. Please help.


How to Make This Block Diagram with LaTeX

I understand that there are some questions here regarding the block diagrams. However, I am strongly interested in one particular style shown as below:    This is a picture from a paper. As can be seen, the text can be selected there. So it is not an attached picture. I suppose it is done by LaTeX.  Could anyone point me to the right direction to achieve this?  (I specially LOVE the colored "thin grid"! It is much more beautiful than the fully filled color!)


Programmatically converting an integer into bits with graphical output

I just stumbled upon this interesting  about "how to automatically draw tree diagrams of prime factorization with LaTeX" and it rang a bell.  I 'd like to create a command that displays the conversion of an integer value into a bits string (which otherwise is a tedious operation to do "by hand") to use when preparing the exams of FOundation of Computer Science. This command needs 2 parameters, the integer to convert (213, for instance) and the desired number of bits for the result. The command should also be able to convert negative values by using . The following pictures for values 137 (basic problem), -136 (negative problem) and -17 (problem requiring an 8 bits solution) should help you understand what kind of result I would like to get.  As a plus, I would like to introduce two variables to hold the min and max value allowed so that I can get the translation of a random integer value in [min, max] if I call the above command omitting the integer value. One could do the same with the number of desired bits and introduce a variable to hold an increment (4, for instance) so that it generates results with 4 bits and if a number requires 5 bits, for example, it automatically returns a solution that uses 8 bits. Not to mention that with an additional parameter one could convert to octal, hexadecimal, etc.  The problem is that I don't understand Tikz and I have no idea how to make LaTeX do maths! I read  with interest, but I still miss too many things. Can someone help please? Thanks in advance!


Is Quantum teleportation possible for large objects like a cat, for example?

Ok, here's the idea. This isn't really connected to what is usually referred to as 'quantum teleportation', but assuming that all particles can tunnel to a different location given the right circumstances, shouldn't it be possible that entities made of particles may also be able to do the same thing.  This is partly inspired by the deja vu scene in the Matrix, where Neo sees the cat appear at the doorway twice; I was thinking that the cat could have 'tunnelled' back to its original position in this way.  I know that, if there's any probability of this occurring at all it'd be minute, and I'd also like to know what - if any - role the exclusion principle plays in this. Would the particles need to be of the same energy, or would that not matter? Also, what would need to be the coherence/decoherence of the 'system' tunnelling to a new location.   I'd also be interested in trying to tease out any connections with relativity. The idea being that while tunnelling may be possible, in a wormhole-like fashion, because of it's mass-energy (that of a cat), it'd only be able to tunnel a short distance (more than likely), a few feet say.


For an intrinsic semiconductor, why is fermi level half-way?

Why is the fermi level half-way between the conduction band and valence band?


How does the Canon EF 100mm f2.8 Macro USM compare to Tamron 90mm Di Vc USD?

I have a Canon Eos 650D. I want to buy a macro lens, both for macro and portrait.  Everybody tells me the Canon 100mm is better then Tamron. But Tamron has VC. Which lens is better? Which one do you prefer?


I'm trying to make an animated pixel art sprite. I can render it no problem at its normal size settings, but when I set the image size extremely low, it doesn't come out like it should in avi jpeg form. When I render the sprite at its full resolution, it looks like this:  I tried to pixelate it by setting the resolution extremely low, and got this:  That's what I want. I want the image to be pixelated, but when I export the full animation as an avi jpeg video, it completely blurs the image beyond all recognition because it's such a small image. This is what the output looks like:  How do I render / export / format / scale the image such that I will get a sharp, clean pixel animation, with every frame looking like the second picture?


How would I recreate this effect using blending modes in Photoshop?


Criteria of a trivial G bundle of a 3-manifold

It is said that      If G is a simply connected compact Lie group, then a G bundle on a   3-manifold is necessarily trivial, see e.g. .   I think, this means that a bundle or fiber bundle is trivial if it is isomorphic to the cross product of the base space and a fiber.   How do we show this? Is this below true that       "If G is a simply connected compact Lie group, then a G bundle on any $d$-manifold is necessarily trivial?" For $d=1,2,3,4,...$? What is the limitation of $d$?    What is the criteria of trivial G bundle on a $d$-manifold? (Other than saying the definition that the bundle is the cross product of the base space and a fiber.)


What's the difference between an inverter with a bubble at the input and one with a bubble at the output?

See , page 2: the internal logic diagram for the MM74HC138.    The diagram shows logic inverters with bubbles at the input or at the output. Is there an actual difference between them?


In The Force Awakens is there any evidence of other Jedi?

According to Han Solo, Luke has tried      To train a new generation of Jedi, but fled after one of his students turned to the dark side.  That would be Ben Solo.     I’m wondering      Who were the other students? Are any of them still alive?     My question is, is there any evidence of Jedi      other than Ben Solo? (and of course Luke Skywalker; I'm excluding 'force-sensitive' non-Jedi like Maz Kanata. I'm specifically talking about the remainder of Luke's trainees, or survivors of the Old Republic).      Note - I don't believe this is a duplicate of  as the scope includes non-trainee Jedi.