My System: MS Office Excel 2013 on Win7 64bit. I have an excel xlsx-file with different cell formats like General, Currency_USD, Currency_EUR, Number (no decimal places), Number (2 decimal places).  When opening the file at another time, Excel corrupts my number and currency cell formats. Curiously this does not happen directly after saving and opening again. This problem exists at several files.  I recognized, that the cells changes to that format, which I changed one of the last times. And the format is applied to other cells (which I didn't format) after reopening the file some time later. I.e. if I have some EUR cells, and afterthen I also add some USD cells... when I close and open the file, also the EUR cells are formatted in USD (and also the "number" formatted cells). This also happpens with cells on other sheets. The problem occurs with format "currency" and also with "accounting". Solving the problem by create custom formats is not a solution - Excel should be able to handle different cell format - also without creating styles for every single format!  In Options/Advanced I already unchecked "Extend data range formats and formulas", but problem still exists.  The question is NOT answered by : I've tested it and created custom styles and updated the cells, but these cells were overwritten with "normal" style at re-opening!  EDIT 2017-04-11: What I recognized: In most cases the "Normal" style is changed from number format "General" to another format by mistake, after opening the file on another time. Any idea, why this happens?

I have created a custom format ##,##0.0,,, CTRL+J %% in Excel 2010 to display  10000 as 0.1 100000 as 1.0 1000000 as 10.0 10000000 as 100.0 100000000 as 1,000.0 and so forth.  The problem I am facing is that once I apply this format, save and close the workbook, the next time I open it the format gets changed by multiplying by 10 (100000 is displayed as 10.0).  I don't understand how it is getting changed automatically the next time I open it. However, when I apply other formats they remain unchanged.


So I recently lost an iPhone 6s Plus, and ordered a new iPhone 7 plus through the insurance, once the 7 arrived, I restored it via iTunes from a previous backup, now here's the issue. It is logged into my current Apple ID and iCloud accounts, and it is asking me to sign into the accounts to confirm, but they have a two way authentication that sends a 6 digit code to your main device, so essentially it should be getting sent to the new 7, but I receive no message

I just got a new iPhone to replace my broken one. I can't really do much without signing into iCloud, which requires me to use a verification code. This can either be sent to some other trusted apple device of mine (no such device exists), or as a text to my phone (that won't work because I'm trying to set up my phone). So how can I sign in to iCloud?


I am in a little bit confusion here. I was going through a blog article and I read       He is more intelligent than me.    I think it is incorrect. It should have been       He is more intelligent than I am.     To summarise, which is correct?   He is more intelligent than me He is more intelligent than I He is more intelligent than I am

Consider the sentence "I can run faster than 15 miles per hour." Its meaning is clear and to my eyes obviously grammatically correct. Now let me present some variations that have given me trouble for a long time.  I am faster than 15 miles per hour. – To me this is clearly incorrect. Directly comparing me to a speed doesn't seem right. We need to compare my speed to a speed, or me to another person.  I can run faster than him. – Compared to the base sentence, there is a distinct shift in meaning of the comparison. While before I named a speed faster than which I can run, now I am naming a person. It doesn't seem quite right. I realize the parts of speech can change, but my initial objection is that "him" is not a speed.  I can run faster than he. – This seems most correct to me, but still somehow feels objectionable. Is this in fact the correct way to say it? And if so, is it proper as is or need I say "... faster than he can" or even "... faster than he can run?"  I am faster than him. – With "am" instead of "can run" it now seems slightly more correct. But is it?  I am faster than he. – I'm in doubt here. It doesn't seem wrong to me to say, "I am faster than he is" or even "I am faster than he is fast." (Though I suppose that is a given since I could hardly properly compare to some other category as in "I am faster than he is smart.")  My speed is faster than his. – Hmm. This seems more proper as "my speed is greater than his."   So which of these constructions is correct and which is incorrect? Is there a general rule that I can follow? UPDATE The scholarly article  may be of great interest to some readers!  Once we accept that the elided constituent and its antecedent can differ in form, it becomes reasonable to ask how large this difference can be. The answer in Rooth (1992), Fiengo and May (1994), Chung et al. (1995) and subsequent work is that the wiggle room is actually quite small: the elided constituent and its antecedent are allowed to differ only in the realization of inﬂectional morphology. Other than that, both constituents have to be syntactically and lexically isomorphic.


I am reading a novel. I faced the expression hand to god and I don't know the meaning.  The paragraph is:      Jack's daddy was a sheriff, his granddaddy was sheriff, and hand to god, his grandma too.    Thanks in advance.

From the science fiction movie  (2003):     — Nine miles to Hole in the Wall.   — I think I can manage it.   — I'll bring the snowmobile back and get you both. Now, Pete, you listen to me. Don't go back to the car for beer. Stay with her. Keep her warm.   — Right hand to God, Dr. D.   What exactly does this expression mean?


I'm 90% sure the name is "Technology" I believe it from the 70's not sure though.  It was a space war scenario where a ruling group started just developing new techs but problems kept slowing them down that their enemies using older technologies defeated them, and had a humorous twist at the end. Help been looking for a while.

I am looking for help to point me out at a very old novel (likely from the '60s) about two empires at interstellar war. When it comes to starships, one is technologically very advanced, and the other has very low and inefficient technology.  The highly advanced empire has apparently strong chances to win the war, in particular considering a new technology they were developing. I remember the technology to work like this: consider the space as a flat surface, and on this surface, a disk around the spaceship. When the technology was turned on, this disk was stretched out, as made of rubber, so that it produced a cone, with the tip being the spaceship. The spaceship was therefore teleported 10 parsec away (if I remember correctly), but retained all the connections to the original position. If the spaceship moved, the cone moved as well. This allowed to move in position among enemy ships completely unnoticed, by stretching while afar, then moving in the proper position 10 parsecs away, then destretching.  Despite this technology, the empire lost the war because of delays. It's a perfect example of how having a disruptive technology does not guarantee to win against the competitors.  I am trying to find out the author and name of this novel, hopefully with the date of publication and in which journal/magazine.


I'm having trouble with this problem:  Show that on $\mathbb{C}$ there is no total order relation $\preceq$ such that:  (i) $\forall x,y,z\in\mathbb{C},~~x\preceq y\Rightarrow x+z\preceq y+z$  (ii) $z\preceq 0,~~x\preceq y\Rightarrow xz\preceq yz$

Please guide me in this problem. I am confused about whether its asking that having the relation $z>0$ does not satisfy the order axioms.  Any help would be really appreciated.  Thanks!


I need to travel to both Spain and Bulgaria in the next month. Unfortunately, there is a 14 day quarantine period for entry to the UK from either of these countries, so I would have a significant wait in between if I were to come back to the UK. But I thought that maybe travelling to Spain from Bulgaria would be an option. I doubt the other way would be. But Im not sure where I can find information about the travel restrictions in other countries. Would I have to isolate coming into Spain from Bulgaria? Might there be other issues encountered? It would be a disaster if I couldn't get from one country to the other.

I will soon travel from France to Austria via Switzerland, and am unsure about the status of border controls. As a UK citizen, I am in principle permitted to travel to Austria (at the current date) as long as I can prove that my journey is "essential" and that I recently tested negative for coronavirus, unless I have a residency permit and am travelling via a 'safe' country. But I am curious about whether anyone will anyone actually check my passport/details if I am traveling from one 'safe' Schengen country (Switzerland) to another (Austria) via night train, or whether all passengers must present proof of residency or other documentation. I did not have to give my nationality or passport number to the train company when making the bookings. So my question: is there a site that I can refer to for up-to-date information about which borders within the EU (specifically the Schengen area) are subject to checks due to Covid-19? E.g. UK-France is possible subject to some paperwork, France-Switzerland appears to be fine, and Switzerland-Austria depends on residency status.


My aunt handed me might and magic 6 and I installed the game with the disks and she told me u could open it with steam but she couldn't remember how. How do i open it with steam? Is it even possible?

I personally do not like to purchase games digitally.  There's just something magical about going to the store, picking up a boxed game, staring at the amazing box art, bringing the game home and putting the disc in the drive.  That being said, I know that several game distribution companies are leaning more toward digital distribution, with[Steam holding a large chunk of that market.  Is it possible to buy a retail boxed copy of a game, but still get the benefits of Steam (automatic updates, install on multiple computers, etc.) ?


So I messed up big time and ran:  sudo dd if=~/Downloads/linuxmint-19-cinnamon-64bit-beta.iso of=/dev/sdb bs=1M   while having my HDD still in and it made the HDD the bootable device instead of another USB I had plugged in.  Any simple tricks to reverse this or fix it? It isn't appearing as a HDD anymore.

I have a Sony VIAO laptop setup as dual boot (Ubuntu 12.10/Windows 7). Since I wanted to try Archlinux, I installed VirtualBox in Ubuntu. To create a bootable USB stick (from the ISO image on my hard drive), I followed the instructions from archlinux installation guide. However, accidentally gave the following command:  sudo dd bs=4M if=/path/to/archlinux.iso of=/dev/sda && sync   Note /dev/sda instead of /dev/sdb. So the MBR was overwritten here. BAD mistake. Did not realise the mistake at that time and tried to install archlinux in the virtualbox (allocated 8GB of disk space), couldn't complete the process and shutdown.   Now, after booting, I get the first screen of the archlinux installation process. df only shows various partitions made during the archlinux installation process of 8GB of the total 320 GB harddisk.  I had not taken any backup of the MBR. Is there a way to restore the MBR or salvage some data?  Devendra


Consider these two phrases:     “They've raised their hand”   “They've raised their hands”   Does object have to agree with subject? To make the question more clear, let's assume all of them have raised their right hand/hands(?). Now we have five people and five raised hands.  I've changed the original question which used idiom "to show one's true colors" as example, which was giving the idea that my question was about usage of the specified idiom. I apologize for my poor choice of example.

Have a seat, guys   I think "have a seat" is a fixed phrase that does not change whether you address someone or a group of people.  Is that correct?  If you have more to add to the post, please do so as I would love to know more.


Does Chrome have an equivalent to Firefox's Ctrl+F5 refresh? I can't seem to find one.  I changed my gravatar last night, and I can see the new one in Firefox after a Ctrl+F5 refresh, but Chrome seems to be stubbornly hanging on to the old Gravatar. I guess I could manually clear out the cache, but if there is a keyboard command to do it I'd like to know what it is (since it would be helpful for web development too).

I don't know what exactly it's called, by cache refresh I mean, refresh the page after clearing its cache. I don't want to clear the entire browser cache.  I can't seem to cache refresh my pages. In Firefox, I know it to be Shift+Refresh.  In Chrome, I've tried Ctrl+R, Ctrl+Refresh, Alt+Refresh, Shift+Refresh but none of them work.


I have a physical "calculator" button on my (Microsoft) keyboard which launches the windows calculator. I'd like to bind it to launch SpeedCrunch instead. Can it be done?  Thanks!

I've a Logitech Media Keyboard 600 which features a separate button to launch the calculator. I need that quite often, but the Windows shipped calculator is useless; there are more advanced out there.  So I've installed another calculator application and want this special key start this other app instead of the default one.  Is that possible?  I'm not searching for a solution to pin the app to the taskbar and use another shortcut key to launch it.


I'd like to let something out of my chest that's been annoying me since I got access to the . Maybe someone can shed a light on the topic.  I'm an enthusiastic fan of the . There, sometimes, the Right Thing To Do (TM) is to just vote to close the question. It's either an outright request for product or about fixing a device. Plain and simple.   However, if I vote to close it, that vote won't count towards my Reviewer/Steward badges for Close Vote review queue. That really annoys me. The result is that I would either click Skip or No Action Needed, wait for someone to vote to close the question and then cast my close vote by visiting the Close Vote review queue.  That's really annoying because I feel cheated. I performed a perfectly valid Close Vote review (even though it's outside the queue), so I think it should count towards those badges. Moreover, it forces me not to do the right thing on the First Post queue.  There's been some arguments about the issue. Below are a few links I gathered from a few meta stacks:        Some folks argue that voting to close outside the queue should not count towards the badge because the symmetrical review, deciding not to close a post, wouldn't count outside the queue either. That's just silly! There's no such symmetry. If I vote to close a question outside the queue, well, I just did a close vote review, exactly like I would have done in the queue (for that particular question, that is). For that reason, I think it should count towards my badge. It's pointless to compare with the Leave Open decision on the First Post queue.  As a result of this reasoning, I think the kind folks at SE.EE should consider counting the votes to close outside the Close Votes review queue towards the Close Votes Reviewer and Steward badge.  Do you agree with me?

The recent changes to /review has gotten everyone interested in cleaning up the muck. At present, only posts "reviewed" (by clicking on the review link) and actions taken (up/down/close/edit/flag) from within /review count towards the badge.   However, it is entirely possible that one catches a poor question outside of /review (e.g., on the front page/tag page, etc.) and "reviews" it and takes some action on it. However, these actions do not count for the badge, at present. In all likelihood, this question would've also been in the /review queue and if one were fortuitous enough to have reviewed it there, these actions would've counted towards the badge.   Would it be possible to include reviews made outside of /review to count if the question was also in the review queue? Note that this shouldn't apply if the question dropped out of the queue (either by inaction or after it was edited and improved by previous reviews).


So I realize there are some similar post to this, but I found the explanations were not detailed enough so I will word the question more specifically; and also this post is specifically about prepared statements. I believe this is constructive to the forum, and so should hopefully be within the guidelines.  So my general question is: How to prepared statements using the PDO library prevent SQL injection.  The following website has some good examples   try {   $pdo = new PDO('mysql:host=localhost;dbname=someDatabase', $username, $password);   $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);    $stmt = $pdo->prepare('INSERT INTO someTable VALUES(:name)');   $stmt->execute(array(     ':name' => 'Justin'   ));    # Affected Rows?   echo $stmt->rowCount(); // 1 } catch(PDOException $e) {   echo 'Error: ' . $e->getMessage();   According to a similar post responded to by user ExtPro () "Using PDO you can seperate the SQL and passed parameters using prepared statements, this removes the need to escape strings, as because the two are held seperately then combined at execution, the parameters are automatically handled as stings, from the above source:"  Now this I am sure is perfectly valid answer, but to me this does not explain it. How can a insert query possibly be made without allowing whatever is in the :name variable to be allowed into the database; and if the contents of that variable is malicious sql code, then I don't see how this is sanitized.  Thanks.

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


What does this part of a script do? This is a part of a scrpt in bash  for j in *.* ; do      cp $j ../../$name-S$i.gid/data/${j%%.*}$i.${j#*.}     sed "s/$name-S/$name-S$i/" $j > ../../$name-S$i.gid/data/${j%%.*}$i.${j#*.} done   I forgot to say that "i", is a parameter that goes from 1 to specific number and "$name" is a part of name of a folder.

I'm quite confused about the following regular expressions I found in a shell script:  ${0##*/} ${0%/*}   How do they work?


Is it possible to add an additional condition to join statement created by django ORM?  What I need in SQL is  'SELECT "post"."id", COUNT("watchlist"."id") FROM "post"   LEFT OUTER JOIN "watchlist"      ON ("post"."id" = "watchlist"."post_id" AND "watchlist"."user_id" = 1)   WHERE "post"."id" = 123  GROUP BY …   In django most of this is  Post.objects.annotate(Count('watchinglist')).get(pk=123)   But how can I add AND "watchlist"."user_id" = … into JOIN condition with django ORM?  Adding it to filter fails to get Post objects with no associated objects in watchlist.

For my Django app I have Events, Ratings, and Users. Ratings are related to Events and Users through a foreign keys.  When displaying a list of Events I want to filter the ratings of the Event by a user_id so I know if an event has been rated by the user.   If I do:  event_list = Event.objects.filter(rating__user=request.user.id)   (request.user.id gives the user_id of the current logged in user) ...then I only get the events that are rated by the user and not the entire list of events.  What I need can be generated through the custom SQL:  SELECT * FROM `events_event` LEFT OUTER JOIN (   SELECT *   FROM `events_rating`   WHERE user_id = ##   ) AS temp  ON events_event.id = temp.user_id   Is there an easier way so I don't have to use custom SQL?


Does it really matter anymore using ' instead of "?  I keep running into this issue with linters.  Airbnb likes to use ', where as prettier is fine with ".  Comments?

console.log("double"); vs. console.log('single'); I see more and more JavaScript libraries out there using single quotes when handling strings. What are the reasons to use one over the other? I thought they're pretty much interchangeable.


This looks like a very basic Question to me but I can not find an answer so far. Look at this image please:   I clicked on the right cube and it is selected I rect selected the left cube. Notice the dark selection color and: there is still that "selection indication" in the outliner around the "triangle" in front of the Cube.001 name and the pivot seems still selected. Now i click selected the left cube. Selection indication gone. All fine now.  What does that red selection color mean (without selecting multiple objects)? I often run into problems, when that is active, since only the orange selection color is the right one. Thanks

Whenever I select an object in Blender it will be outlined in orange or yellow. How is it decided which colour will be used for the outline, and what does each one mean?


How do you filter only the numbers of a string?  Example Pseudo Code: number = $("thumb32").filternumbers() number = 32

In javascript, what is the best way to parse an INT from a string which starts with a letter (such as "test[123]")?  I need something that will work for the example below.  My JS:  $(document).ready(function() {      $(':input').change( function() {         id = parseInt($(this).attr("id"));  //fails for the data below         alert(id);     }); }   My generated HTML:  <select id="attribute[123]"> <!-- various options --> </select> <select id="attribute[456]"> <!-- various options --> </select>   Thank you!


Are there any books in real analysis that explains what goes on in their proofs? I want to self study real analysis. I read through proofs in each of these real analysis books and I'm not understanding anything. (I'm using like 5 books at this point and they still aren't helping.) These books give me the same definitions and meanings but the proofs aren't exactly ticking. I would love if there was a textbook that can show like step by step proofs and why each line of logic works (if there is one). I know I'm supposed to struggle with real analysis but there's no real guide for me. Any pointers and books that meet these requirements? I'm looking for a good book with an intuitive explanation of analysis.  By the way just before we start a debate: It's not a repeated question because i went to this link and looked through all these books also and that wasn't very helpful.  Source for those interested:  Just for those curious, the five books I'm using are:   Walter Rudin's book (This is like really difficult for me to understand). Patrick M Fitzpatrick (Advanced Calculus: A course in Mathematical Analysis) Kenneth Ross' book (Elementary Analysis) Stephen Abbott's book (Understanding Analysis) R. Battle's book (Introduction to Real Analysis)

Does anyone have a recommendation for a book to use for the self study of real analysis? Several years ago when I completed about half a semester of Real Analysis I, the instructor used "Introduction to Analysis" by Gaughan.   While it's a good book, I'm not sure it's suited for self study by itself.  I know it's a rigorous subject, but I'd like to try and find something that "dumbs down" the material a bit, then between the two books I might be able to make some headway.


Recently turned on my Lenovo Yoga laptop running Ubuntu 16.04 and got an error saying it was unable to read drive hd0. It then ran through some lines and ended with the title. I am very new to running a linux distro on my computer, and I do not know what I am doing. If you need any other information from me please let me know. I may have to ask how to get that info though.

Upon trying to upgrade from 10.10 to 11.04 all seemed to go well until the restart. This error message is what comes up:  Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)   How do we fix that?


I wanted to prouve that : $$\mathcal{F}\{\frac{dx(t)}{dt}\} =  2i\pi f \mathcal{F}\{x(t)\}$$ I started by the applying the definition of Fourier Transform and I integrated by parts: $\int_{-\infty}^{+\infty}\frac{dx(t)}{dt} e^{-2i\pi ft} dt$ = $\Big [x(t)e^{-2i\pi ft} \Big]_{-\infty}^{+\infty}$ +  $ 2i\pi f\int_{-\infty}^{+\infty}x(t) e^{-2i\pi ft} dt$ but I faced a problem in calculating $\Big [x(t)e^{-2i\pi ft} \Big]_{-\infty}^{+\infty}$ I couldn't calculate the limit of this complex number can I get some help with explanation? much appreciated

I am trying to prove the $n^{th}$ transform of the Fourier transform:  $$\mathcal{F}\left(\frac{d^n}{dx^n} f(x)\right)=(ik)^n\mathcal{F}(f(x)) \tag{1}.$$ I have solved the problem for the case $n=1$ by using integration by parts: $$\mathcal{F}(f'(x))=\frac{1}{\sqrt{2\pi}}\int_{-\infty}^{\infty} f'(x) e^{-ikx} \ dx=ik\mathcal{F}(f(x)).$$ I think that solving $(1)$ requires $n$ iterations of integration by parts, by i'm having trouble writing this formally. Some help would be really appreciated.


This seems like another good question for consideration. I think the answer is yes just because I cannot think of a way to make it break down because the domain is defined for all of $\mathbb{R}$. Any thoughts?  Thank you in advance.  This question is not a duplicate, it deals with the limit of the derivative specifically at 0. The other two cited questions do not.  Thank you.

Let $f$ be a real-valued function continuous on $[a,b]$ and differentiable on $(a,b)$. Suppose that $\lim_{x\rightarrow a}f'(x)$ exists. Then, prove that $f$ is differentiable at $a$ and $f'(a)=\lim_{x\rightarrow a}f'(x)$.    It seems like an easy example, but a little bit tricky. I'm not sure which theorems should be used in here.    ==============================================================  Using @David Mitra's advice and @Pete L. Clark's notes I tried to solve this proof. I want to know my proof is correct or not.  By MVT, for $h>0$ and $c_h \in (a,a+h)$ $$\frac{f(a+h)-f(a)}{h}=f'(c_h)$$ and $\lim_{h \rightarrow 0^+}c_h=a$.    Then $$\lim_{h \rightarrow 0^+}\frac{f(a+h)-f(a)}{h}=\lim_{h \rightarrow 0^+}f'(c_h)=\lim_{h \rightarrow 0^+}f'(a)$$   But that's enough? I think I should show something more, but don't know what it is.


I have data like this  MemberId | VesselName | Cargo | Date B001     | Ship A     | 500   | 2013/11/12 B001     | Ship X     | 250   | 2013/11/20 B003     | Ship Y     | 300   | 2013/11/11   I want query result like this  MemberId | VesselName    | Cargo | Date B001     | Ship A Ship X | 750   | 2013/11/12 2013/11/20 B003     | Ship Y        | 300   | 2013/11/11

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I have a Sting value contains in Exponential   class round{         public static void main(String args[]){         String a ="2.4545776339999877E7";         double roundOff = Math.round(a);         System.out.println(roundOff);     } }   So i want to round off upto 5 decimal vaue. How to do it please?

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


So there's a bug in a certain software and i thought maybe i could look at the software code, since it's all open source, and try to fix it. Is it possible? are all software accessible by any user, and if so is it a possible to overwrite the code or is it a read-only kind of document?  Thanks for answering.

I am assuming that all application installed through apt-get are open source; but for those that are available in that manner, where can I get the source code for these applications as well as update them?   I have a couple applications I use regularly that aren't being actively developed any longer and I would like to add features. Where would I go to get the rights to update these applications?  In this case specifically, I am referring to the hellanzb package


I don't want it to ever complain about permissions or ask for sudo password ever again. Is there any way to do this?

I would like to enable the root account on my Ubuntu installation.  I realize the security implications of this.


It has been some years (before 2009?) since I've read this book. The story starts off with this boy [teens] who can sleep anywhere, even with his eyes open, and can do this on cue! This secret company find him and tells him about this place with other kids. They tell him he has been selected for this group that protects the timelines or something. I not sure how but they do this through stripping off all their clothes and going to sleep. When they wake in "dream" they have proper clothes on for that time period, and have something they are looking for that doesn't belong or something.   He goes on this journey with two friends he makes. This girl who at some point gets her hair braided by these tribal women with amazing hair. In the end they strip again and fly to this secret place they been trying to find which is the root of this disturbance in time or something. I seem to recall this real meta guy comes and takes him to the beginning of time and they end up taking this whole civilization there to save them all and save time.  In the end he wake up and meets the head guy and I forget everything else but that's where it ends.   This story is part of a series of some kind and this was the 1st book. From my memory it was real big (over 500 pages) and had this snake on the cover in a circle of sorts (that's what caught my eye to pick it up) and I swear it had Dream in the name 1st. I don't remember it having any awards but I thought it was really good.

I remember this book from my early teen years, although what I remember makes it seem incredibly bizarre, but from what I remember, it was really enjoyable. I'm sure I read it before I read the "Mister Monday" series, by Garth Nix. I don't believe all of the series was available, if that helps narrow down a time frame.  I have a feeling this book was part of a series too. And it is based around a young male protagonist and, soon, a girl and another boy, whom he befriends.  I believe the first chapter of the first book starts with the protagonist answering a phone call. One of the questions he is asked is; How did the dinosaurs die? He initially believes this to be one of those radio shows, so he tries to be funny in his answer, which is; they died laughing. I'm sure they ask him about his sleeping habits, and he admits to falling asleep very easily, almost on command. This leads the boy to being recruited by an organisation which uses sleep as a way of entering and exiting some sort of world, or other time. There is something dangerous about it too, as I remember something about: trying to go deeper, or further, caused the person's heart to race to the point of an attack.  When he first travels to this place, it's like the beginning of time. The place is beautiful, and untouched. The protagonists male friend befriends a black panther cub, which I'm sure follows him around when they return.   This is when I lose track of the story and just remember snip bits;  The male friend is a skilled drummer and is able to tap into the 'beat' of the world, and stop time from travelling backwards - I believe this is in the second book.  The female friend is a skilled debater with unmatched logic, and during an argument with (some sort of boss bad guy), she uses the argument of a never ending cycle, a snake biting its tail. I'm sure she also had a bracelet of a snake biting its tail too, with green eyes?  There is a point where they are traveling through a cave of jewels. The protagonist collects some. They then come to a seemingly dead end, however, by giving up everything they  covet, such as the jewels, the characters are able to ascend to the village above.   Sorry for the long post, but I thought adding as much as I know might spark an answer from someone. :).   Thank you for your time.


I have a Moto luxe that I wish change because its too slow. Can I change my android on a Moto luxe cell phone for the Ubuntu?  Thanks

I would like to port Ubuntu Touch to a device that is currently not supported. What are the requirements for doing this and where do I begin?


I have a variable a, and I want a to be added with b, like so:  a = a + b   Now, I have my program set up like so:  a = 2 b = 3  def add() :     a = a + b     print(str(a))  add()   Every time I run this, I get  Traceback (most recent call last): File "<stdin>", line 8, in <module> File "<stdin>", line 5, in add UnboundLocalError: local variable 'a' referenced before assignment   instead of  5   Please explain the obvious mistake that I am making.

How can I create or use a global variable in a function?  If I create a global variable in one function, how can I use that global variable in another function? Do I need to store the global variable in a local variable of the function which needs its access?


I was having a go at making a simple machine learning program so I could understand more about AI, but ran into a problem. My program has a 2D list (101 lists of 3 Boolean values (303 total)). It does several loops, and has to set 1, or 2 values from one of the sub lists to True in each loop. When running my program, all values changed to true far too quickly. At first, I thought this might be due to bad luck with random(), but then I saw that all the values changed after only 90 to 100 loops, which should be impossible.  I decided to experiment in the shell.  >>> Choises=[[False]*3]*101 >>> Choises[1][1]=True >>> Choises [[False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False], [False, True, False]]   Why on earth did it change the 2nd value of each list, rather than just the 2nd value of just the 2nd one?

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


I am using json.load to make an API request. I'd like to automate it so that it makes the request on the first second of every minute starting at 9:30am and ending at 4pm, ie. 9:30:01am, 9:31:01am ... 4:30:01pm and then stop.

I'm looking for a library in Python which will provide at and cron like functionality.  I'd quite like have a pure Python solution, rather than relying on tools installed on the box; this way I run on machines with no cron.  For those unfamiliar with cron: you can schedule tasks based upon an expression like:    0 2 * * 7 /usr/bin/run-backup # run the backups at 0200 on Every Sunday  0 9-17/2 * * 1-5 /usr/bin/purge-temps # run the purge temps command, every 2 hours between 9am and 5pm on Mondays to Fridays.   The cron time expression syntax is less important, but I would like to have something with this sort of flexibility.   If there isn't something that does this for me out-the-box, any suggestions for the building blocks to make something like this would be gratefully received.  Edit I'm not interested in launching processes, just "jobs" also written in Python - python functions. By necessity I think this would be a different thread, but not in a different process.  To this end, I'm looking for the expressivity of the cron time expression, but in Python.   Cron has been around for years, but I'm trying to be as portable as possible. I cannot rely on its presence.


If all stars turn into black Holes one day, in far future, what will happen to Earth if Sun becomes a Black Hole.

Why does a star beyond a certain mass limit () only become a black hole?   A star is first made of hydrogen, it undergoes nuclear fussion reaction combining into helium and releasing a large amount of energy. This process continues till star is made up of iron core as iron has largest value of binding energy per nucleon, after this if mass of the star is above the value of Chandrasekhar limit it becomes a black star, what is the reason for this and why is certain mass limit required?


I am trying to bundle install a Ruby project, the install fails when trying to install a gem and it says: An error occurred while installing pg (1.2.3), and Bundler cannot continue. Make sure that 'gem install pg -v '1.2.3' --source 'https://rubygems.org/'' succeeds before bundling.  I google this error and the Stack Overflow answer tells me to install libpq-dev, I type sudo apt-get install libpq-dev but it tells me that it has unmet dependencies. The following packages have unmet dependencies:  libpq-dev : Depends: libpq5 (= 12.5-0ubuntu0.20.04.1) but 13.0-1.pgdg20.04+1 is to be installed E: Unable to correct problems, you have held broken packages.  I look at the output log (mkmf.log) and it appears to be missing the libpq-fe.h header, from which I assume is from the libpq5 package which I have installed. I use find to see if I have that file anywhere on my system but it finds nothing. (This is the mkmf.log if it is relevant) find_executable: checking for pg_config... -------------------- no  -------------------- find_header: checking for libpq-fe.h... -------------------- no  "gcc -o conftest -I/home/brumo/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-linux -I/home/brumo/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/home/brumo/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0 -I.    -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC conftest.c  -L. -L/home/brumo/.rvm/rubies/ruby-2.7.1/lib -Wl,-rpath,/home/brumo/.rvm/rubies/ruby-2.7.1/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -Wl,-rpath,'/../lib' -Wl,-rpath,'/../lib' -lruby  -lm   -lc" checked program was: /* begin */ 1: #include "ruby.h" 2:  3: int main(int argc, char **argv) 4: { 5:   return !!argv[argc]; 6: } /* end */  "gcc -E -I/home/brumo/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0/x86_64-linux -I/home/brumo/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0/ruby/backward -I/home/brumo/.rvm/rubies/ruby-2.7.1/include/ruby-2.7.0 -I.    -O3 -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC  conftest.c -o conftest.i" conftest.c:3:10: fatal error: libpq-fe.h: No such file or directory     3 | #include <libpq-fe.h>       |          ^~~~~~~~~~~~ compilation terminated. checked program was: /* begin */ 1: #include "ruby.h" 2:  3: #include <libpq-fe.h> /* end */  --------------------  I have reinstalled a bunch of stuff and it doesn't fix anything I basically tried everything I don't know what possibly could be the problem. If the provided information is not sufficient let me know so I can provide whatsoever you may need to help me out.

After upgrading from 10.04 to 12.04 I am trying to install different packages.  For instance ia32-libs and skype (4.0).  When trying to install these, I am getting the 'Unable to correct problems, you have held broken packages' error message.   Output of commands:  sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.   After running this:  sudo dpkg --configure -a foo@foo:~$ sudo apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


It seems like return is overridden by finally in a catch block. Is that correct? For example:     public String myMethod() {      try {         // Do stuff      } catch(Exception e) {         // Handle exception      return failed;      } finally {         // Close sockets     }      return success;     }   If I get an exception in the above code the method still returns success.

Considering this code, can I be absolutely sure that the finally block always executes, no matter what something() is?  try {       something();       return success;   }   catch (Exception e) {        return failure;   }   finally {       System.out.println("I don't know if this will get printed out"); }


How can I specify the coordinates (here outliers) as black dots? The color in the square brackets is already defined as black, if I insert "mark=*" in the square brackets the boxplots disappear.  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pgfplots} \usepackage{tikz} \usepgfplotslibrary{groupplots} \usepgfplotslibrary{statistics} \pgfplotsset{compat=1.3}  \begin{document} \begin{tikzpicture}    \begin{axis}     [     boxplot/draw direction=y,     xtick={1,2},     ymin={0},     ymax={890000},     ]     \addplot+[color=black,      boxplot prepared={             median=231040,             upper quartile=307800,             lower quartile=189576,             upper whisker=568892,             lower whisker=92821     },     ] coordinates {(1,790724)(1,603189)(1,574542)};      \addplot+[color=black,       boxplot prepared={       median=290626,     lower whisker=97525,     lower quartile=218151,     upper quartile=379487,     upper whisker=674757     },     ] coordinates {(3,835414)(3,752967)(3,737438)(3,737438)};   \end{axis} \end{tikzpicture} \end{document}

With pgfplots, I am creating a simple coordinate plot with error bars like this:    \documentclass[crop,10pt]{standalone} \usepackage[english]{babel} \usepackage{pgfplots}      \begin{document}%         \setlength{\linewidth}{246pt}%              \begin{tikzpicture}             \begin{axis}[             width=\linewidth,             ytick pos = left,             xtick pos = left,             clip=false,             axis on top,             tick align = outside,             yticklabel style={%             /pgf/number format/fixed,             /pgf/number format/precision=1,             /pgf/number format/fixed zerofill         },             ytick scale label code/.code={},             xlabel={X},             ylabel={Y},     ]             \addplot[mark=*]             plot[             error bars/.cd,             y dir=both,             y fixed=0.0001     ]             coordinates{(1,0.0005) (1.1,0.0013) (5,0.0015)};             \end{axis}             \end{tikzpicture}     \end{document}   In the original plot I have a lot more points. I would now like the line and the markers (including the error bars) to have different colors to better distinguish the line from the error bars. Is that somehow possible? The only way I found so far is to plot the data just as a line in one color and then plot it again just as markers in another color. This works, but I guess there must be some better solution to this. Thanks for the support, John


I want to remove the duplicates based on a property of my object:  public class MyType {     public string _prop1;     public string _prop2;      public LocationsClass(string prop1, string prop2)     {         _prop1= prop1;         _prop2= prop2;     } }  ...  List<MyType> myList;   So basically I want to remove all MyType objects from myList, with the same value in _prop1. Is there a way to do this, probably with LINQ?

I am playing with LINQ to learn about it, but I can't figure out how to use Distinct when I do not have a simple list (a simple list of integers is pretty easy to do, this is not the question). What I if want to use  on a list of an Object on one or more properties of the object?  Example: If an object is Person, with Property Id. How can I get all Person and use Distinct on them with the property Id of the object?  Person1: Id=1, Name="Test1" Person2: Id=1, Name="Test1" Person3: Id=2, Name="Test2"   How can I get just Person1 and Person3? Is that possible?  If it's not possible with LINQ, what would be the best way to have a list of Person depending on some of its properties in .NET 3.5?


I was reading about non-parametric density estimation when I found out about Kernel Density Estimation (KDE) and Parzen window estimation. Although the text book states both are the same, the equation form seems to be different:   For Kernel density estimation (KDE) 3D data     For Parzen-window estimation in 3D data    Can any one help with this?

Parzen window density estimation is described as  $$ p(x)=\frac{1}{n}\sum_{i=1}^{n} \frac{1}{h^2} \phi \left(\frac{x_i - x}{h} \right) $$  where $n$ is number of elements in the vector, $x$ is a vector, $p(x)$ is a probability density of $x$, $h$ is dimension of the Parzen Window, and $\phi$ is a window function.  My questions are:   What is the basic difference between a Parzen Window Function and other density functions like Gaussian Function and so on? What is the role of the Window Function ($\phi$) in finding the density of $x$? Why can we plug other density functions in place of the Window Function? What is the role of $h$ in in finding the density of $x$?


So I am using the IEEEtran document class for the first time and I have a problem. When I cross-reference a figure/table/section/whatever with \ref I get the expected reference number. But I would like to automatically insert the associated prefix -- Figure, Section, whatever -- which can be done with the package cleveref. However, when I use the \cref command, I get the output ?? in the pdf document.   My preamble is like this   \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts % The preceding line is only needed to identify funding in the first  % footnote. If that is unneeded, please comment it out.  \usepackage{amsmath,amssymb,amsfonts} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{textcomp}  \usepackage[nameinlink,noabbrev,capitalise]{cleveref} \usepackage{hyperref}   One of my figures is defined like this:   \begin{figure}[h]   \centering   \includegraphics[scale=.5]{graphs/full_vector_gen_8.eps}   \caption{Experiment results for the Full Vector algorithm with generation size 8.}   \label{fig:res-fv-gen-8} \end{figure}   And the \cref command is \cref{fig:res-fv-gen-8} for instance. None of my \cref commands work.   EDIT:  Noticed that I get this warning: LaTeX Warning: Reference 'fig:res-fv-gen-8' on page 1 undefined on input line 3.

The hyperref documentation says: "Make sure it comes last of your loaded packages". The reason is that it redefines many LaTeX commands. It's a rule of thumb that helps to avoid errors.  However, there are exceptions, for instance the amsrefs user's guide notes that amsrefs has to be loaded after hyperref.  To avoid problems when adding hypertext functionality: do you know further such exceptions?


I want my UITextView size to be increased according to the text in it and if the text is long then it should allow scrolling. How can this be achieved? Any help will be appreciated.

Is there a good way to adjust the size of a UITextView to conform to its content? Say for instance I have a UITextView that contains one line of text:  "Hello world"   I then add another line of text:  "Goodbye world"   Is there a good way in Cocoa Touch to get the rect that will hold all of the lines in the text view so that I can adjust the parent view accordingly?  As another example, look at the notes' field for events in the Calendar application - note how the cell (and the UITextView it contains) expands to hold all lines of text in the notes' string.


Google Refine is currently moving to GitHub and being renamed to OpenRefine. The community is looking for a place to host Q&A (currently maintained in a discussion list). Google Refine already has a  tag open on Stack Overflow and a few appearances on Stats.StackExchange.  Regarding the fact that OpenRefine generates both tech and non-tech questions due to its , can we direct all question on Stack Overflow? Is there another place where OpenRefine questions could be asked, or would one need to be created?

I recently saw a question about a problem (or possible bug) with some product on Stack Overflow. At first, I wanted to suggest that the asker post his question to that product's support forum.  When searching for the URL of that forum, I noticed that the product developer closed its support forums and now advises users to post all their questions on Stack Overflow instead.  Is this within the intended use cases of Stack Overflow, or is this abuse?


Background:  DnD 3.5 Homebrew campaign. Level 5 party.    Warblade (me). Bard. Warlock. Paladin. Rogue.    The dilemma: my character completely outshines the others in almost every single combat setting. How do I play down my character so others get a chance to shine too?  If we consider the widely accepted theory of class tiers, only the bard and warblade are level 3. And level 3 is summarized as can be really good at one thing, or an all around asset. That pretty much matches my warblade and the bard to definition.   Every turn in combat I am doing something cool like using a maneuver or switching stances, maximizing my swift actions, and generally outshining the others. They might move and do a standard attack.   To make it worse, I came up with a rather poor choice of character concept where he is kind of like the most conceited swordsman in the world. It's fun for me to play, but I didn't realize how it would work against the collaborative nature of the party dynamic. (This was pretty much my first DnD character).  He's daring and dashing, full of bravado.   Adding on, I have a greater understanding of 3.5 rules and combat tactics then the other players too, save for that pesky bard. To others (and the DM), it might seem unfair or unjust even though I am acting within the constraints of the rules system.   He is pretty optimized, but I nerfed him a bit. He only uses a rapier, and didn't take power attack. I focused more on counters than strikes, but he still dominates the battlefield.   So the question is, how do I tone him (or me) down without losing any fun? It seems pointless to have all of these cool features to just not use and sit on my rear. Changing his personality feels like I would betray him (yes I know that sounds lame), but he would still have all of the mechanical advantages.

I'm playing in the Paizo Pathfinder Jade Regent adventure path and we're having a good time so far (). However, as my character has gone up in power I'm now confronting a problem with him being just too effective.  As background, I'm not a big character optimizer, in fact I find the process a little distasteful.  I'm playing a samurai and deliberately built him as a switch hitter, both melee and archery, specifically to avoid min-max syndrome.  However, a combination of just being a strong class and good treasure has made him seem almost too good especially in the arena of dealing damage.  Why do I feel that way?  Well, as an example, last session, we knew some master ninja guy was hunting us. And sure enough, he was posing as some normal guy and got in a death attack on me.  He did a crapload of damage but I made the death save and he leapt away to disappear into the crowd.  I quickdrew my bow and put something on the order of 100 points of damage into him and down he went, encounter over. Which sucked from a dramatic point of view, this was supposed to be a really complex capstone encounter. The rest of the players groused a bit, though several did the calculation and realized that in optimal conditions they could deal out a hellacious amount of damage in a round too, so I wasn't an order of magnitude out of line (after review the other PCs are probably able to deal 30% less damage per round than I am under similar conditions), but still, I don't want to overshadow other PCs (or, frankly, our opposition!).   . I was a bow/sword switch hitter but then we got  - which turned a full bow attack with multishot, deadly aim, rapid shot, point blank shot, and the most common round 1 buffs from my party (haste and bard song) into +20(x2)/+20/+20/+15/+10 for 1d8+29 points of damage per arrow.  I think it's worthwhile talking about this problem from a system-neutral perspective; Pathfinder specific thoughts are fine but I can toss the bow, take crap feats next level, etc. without your help.  I've asked a separate question about the system issue,  The real question here is if I have a character that does or seems to outstrip the other characters in terms of effectiveness, how can I adjust to at least mitigate the resulting problems (over and done encounters, PC envy)?  For an example of an adjustment I already made, back when I only got challenge with my katana, I RPed not wanting to use the katana/challenge on "unworthy" opponents so I could shoot mooks and then just use the big damage on main bosses... But now we've grown past where that helps.


Goal: add Windows XP (32-bit) bootable partition to an existing dual boot system. Ghost or clonezilla (preferable) the image of a XP desktop to the third parition.   Is this possible? (assume XP drivers for the target PC are available) Is there a term \ word for ghosting a system into a multi-boot  partion? Is there a good example (link \ video \ procdure) on the web?   If you have experience performing this task, please state this and the details (context) of the initial state and outcomes.  Any lessons learned and pitfalls to avoid are appreciated: thank you  UPDATES  The insightful comments are appreciated: thank you.  The reason to avoid XP in a VM is that it running a computationally intensive algorithm and speed is important.  Target system does not use UEFI.  The task the XP drive performs takes hours on a 3Ghz desktop

A 256GB SSD has Windows-10 and 16.04 installed.  BIOS not UEFI.  A charity I work with requires me to use Quickbooks Desktop on Windows.  The plan is to ghost the existing system to a 512GB or larger SSD and create a third bootable Windows 7  partition for performing charity activities.   Is this possible to have a third partition? Is there a good example you have used as a guide? Is triple booting with two Windows partitions different from 2 Linux partitions?   If you have done this before ( with GRUB) please indicate this in your response: lessons-learned are appreciated.  Thank you


How do I prove the existence of $$\lim_{(x,y)\to(0,0)} \frac{x^2y^2}{x^3+y^3}$$ When $y=0$ the limits is $0$  when $y=-x$ it´s $$\lim_{x\to0} \frac{x^2(-x^2)}{x^3- x^3}=\lim_{x\to0} \frac{x^2(-x^2)}{0}$$  I can concluir that the limit no exist?? or how proof the existence?

I want to know whether $\lim_{(x,y)\to (0,0)}\dfrac{x^2y^2}{x^3+y^3}$ exists or not. I tried to approximate to (0,0) from different "paths" and the result was always 0. For example,  $f(x,mx^2) = \dfrac{m^2x^3}{1+m^3x^3}$  But that doesn't show that the limit is 0.


Can a player character created with the build rules of D&D 3.5e be played in 5e without conversion? Or is the difference between the editions too much?

I recently joined a 5e campaign group, but prior I was gearing up for a Pathfinder group. I found myself really enjoying creating characters and have made various under the Pathfinder rules. The Pathfinder group ended up falling through and I don't want these characters to go to waste, and was thinking I could use them in upcoming campaigns with my new 5e group. I have tried doing some research for the same races and classes. Some seem to have their own versions but others seem to lack one.  The character I am hoping to translate most would be my Sylph swashbuckler, but was also rather interested in the pathfinder "Bloodrager".  I've tried searching the this site but have only found questions asking about converting only races or enemies from D&D 3.5 to 5e, campaigns from 3.5 to Pathfinder, and only 1 question on translating a Pathfinder class (Bloodrager, coincidentally) but nothing on how to go about it.   I of course am aware a 1:1 parallel is unlikely. I am mostly looking for what the general conversion method is, as well as things I should keep note of when trying to translate characters.


I'm having difficulty proving the following:     Let $T:V \to V$ be a linear transformation such that $(T\circ T)+T −2I_V = 0$. Prove that $T$ is invertible.   I think that T might be equal to the identity transformation itself ($I$) but I'm not sure how to get to it from the datum.

Let $T$ be a linear transformation from a vector space $V$  over reals into $V$ such that $T-T^2=I$. Show that $T$ is invertible


I posted  and found out that the answer was community wiki. I checked revision history and found out the answer was made community wiki by me (which I must have done accidentally). I was about to flag the post for a moderator to remove it from community wiki till I saw that the answer has been accepted.  My question is what is the use of bothering moderators to remove the post from community wiki. Will I still get the 15 rep for accept?

A per the Community Wiki ,      The original author keeps the reputation gained (or lost) before their   post entered community mode.      The original author can flag the post to moderator attention for   re-convert the C.W to normal post, the moderators will take action on   that.   If the Community Wiki status of a post is reversed, what will happen to the reputation of votes (Up/down) gained by the post at during its time as a Community Wiki?


My device can't found any wifi drivers, unfortunately I turned to Ubuntu 20.04 after my Windows machine kept crashing and after turning on Fast Startup. I have ethernet. Is there a way I can install the drivers and get the wifi? I tried: sudo apt install dkms cd git clone https://github.com/smlinux/rtl8723de.git sudo dkms add ./rtl8723de sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414  but I don't have the wifi icon yet. I checked mokutil --sb-state and it's false. Here i my card: antoi@antoi-Inspiron-3543:~$ lspci -nnk | grep 0280 -A3 06:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]     Kernel driver in use: bcma-pci-bridge     Kernel modules: bcma

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


I accidentally chose 'open with this program this kind of file' for .exe files. Now, all the files with a .exe extension open with a particular program. My computer does not have an earlier restore point so I can't restore to an earlier time. How to revert my .exe extensions with appropriate applications?

After (hopefully) scrubbing viruses out of a Windows 7 installation (after deciding not to simply run over the laptop repeatedly with my car), I've got everything almost back to normal. The only lingering issue I have is that for my non-admin users, the ".exe" file extension doesn't work. That is, clicking on the various desktop application links results in a "How do you want to open this?" dialog.  I've been through the alleged registry fixing from "winhelponline" and that had absolutely no effect.  I've tried running "assoc" for the affected users, but it reports the .exe association to be "exefile" even though it persistently does not work.  Right-clicking on a desktop icon and then choosing "start" does successfully open an application, but that's clearly a terrible situation.  For my admin user, things seem to work fine.  What do I need to do to get things working?


I have just partitioned my hard drive in Windows to dual-boot Kubuntu and Windows 10. I can't format it in FAT or FAT32... The only options are NTFS and exFat.   I want to use Kubuntu and windows at the same time. Can I install Kubuntu on an exFat partition?

The Ubuntu installer does not allow me to install on NTFS partitions, but certain circumstances requires me to do so. Is it possible?


I read this book years ago and from what I remember it was kind of short for a sci-fi book.  It was about a ship landing on a planet and they all found their dead loved ones living there. The so called dead loved ones explain that this place is where they end up after dying and so on. So the crew assumes this is heaven of some sort. They all happily decide to spend the night with their loved ones.  Only the captain or someone was suspicious of them.  But in the end as far as I remember everyone died. I only remember feeling my blood froze at the ending. It really left a mark. Does anyone know what this is?

When I was young, I read a chilling story of astronauts coming to an unknown planet and found to their delight  the occupants were all members of their family who were deceased. Each crew member goes off to their respective childhood homes to relive memories.   One astronaut however in the same bedroom as his brother suddenly wonders if aliens may have searched the memories of himself and fellow crew members and used this to gain power over the intruders. His brother asks suspiciously what he's thinking and doesn't believe the answer. The last scene shows astronauts being buried by aliens whose faces melt from human into something terrifying.   Anyone know the name of the story and author? I thought it might be something like Coming Home, but only a guess.


I have 397 shapefiles that I need to merge into one shapefile, and I need to add an attribute for the name of each of the shapefiles. I have no experience in coding/ Python.   Is this possible to do without any coding in ArcMap 10.3?

Does anybody know how to add the shapefile name to a field in the file's attribute table?  I've found a description:     'You have to use inline variable in CalculateField like %Name% in   expresssion so that whatever the name of the file is, the string will   be inserted based on Name of the dbase file !'   I've tried to CalculateField tool with %Name%, but I got message:  Executing: CalculateField "2011-11-6 15_41_point" DBFName %Name% PYTHON # Start Time: Thu Dec 08 23:34:23 2011 WARNING 000405: No records within table Succeeded at Thu Dec 08 23:34:24 2011 (Elapsed Time: 1.00 seconds)   Where is my mistake?


what would be a good language for the theory of vector space?There are two different varieties of objects , scalars and vectors.

I'm attempting to come up with a first order language $L$ that is able to describe vector spaces over fields. I came up with a few sets of nonlogical symbols.  $Rs_L=\{Scal,Vec\}$ where $Scal,Vec$ are unary relation symbols which I interpret to be true or false depending on whether $x$ is a scalar or vector.  Also, $Fs_L=\{+,\cdot,\}$ which are the usual addition and multiplication for both vectors and scalars.  For constant symbols, $Cs_L=\{0,1,0_V\}$, where $0$ and $1$ are regular field scalars for the additive and multiplicative identities, respectively, and $0_V$ is the additive identity for vectors.   Using these, I was able to formulate axioms for scalar multiplication on a given structure, and I define addition between a scalar and a vector to simply always give the 0 vector and define multiplication between two vectors to always be the 0 vector. This gives a theory such that a structure models it if and only if it is a vector space in the regular algebraic sense. It is easy to see that all linear transformations in the algebraic sense are included in the class of homomorphisms (in the logical sense), but I am having difficulty proving they are the only ones in this class.   I suppose I want to show that for any $L$-homomorphism $T$, $T(av+w)=aTv+Tw$ for $a$ a scalar and $v,w$ vectors. Since $T$ is a homomorphism, I see that $T(av+w)=Tav+Tw=TaTv+Tw$, so it would be enough to show that all homomorphisms act as the identity on all scalars? Is there a way to show this, or an extra axiom to include?


Let $A$ be a subspace of $M_{n\times n}(F)$, prove that if $\dim(A)> n^2-n$ , $\exists$ invertible matrix M $\in$ $A$.

I am sure the answer to this is (kind of) well known. I've searched the web and the site for a proof and found nothing, and if this is a duplicate, I'm sorry.  The following question was given in a contest I took part. I had an approach but it didn't solve the problem.     Consider $V$ a linear subspace of the real vector space $\mathcal{M}_n(\Bbb{R})$ ($n\times n$ real entries matrices) such that $V$ contains only singular matrices (i.e matrices with determinant equal to $0$). What is the maximal dimension of $V$?   A quick guess would be $n^2-n$ since if we consider $W$ the set of $n\times n$ real matrices with last line equal to $0$ then this space has dimension $n^2-n$ and it is a linear space of singular matrices.  Now the only thing there is to prove is that if $V$ is a subspace of $\mathcal{M}_n(\Bbb{R})$ of dimension $k > n^2-n$ then $V$ contains a non-singular matrix. The official proof was unsatisfactory for me, because it was a combinatorial one, and seemed to have few things in common with linear algebra. I was hoping for a pure linear algebra proof.  My approach was to search for a permutation matrix in $V$, but I used some 'false theorem' in between, which I am ashamed to post here.


I am wanting to install MySQL 5.7 on Ubuntu 20.10 but have not been able to find any tutorials etc on how to do this. So far I keep trying different approaches based on 20.04 but there doesn't seem to be a simple solution if you are running Groovy. Is it possible? Many thanks for any help.

Is it possible to install MySQL Server 5.7 on Ubuntu 19.10? If yes, how?


I have recently installed Ubuntu 18.04 in my hp 15bs 145tu laptop. All packages of Ubuntu seem to be working properly but the WiFi adapter is not found, and I can't connect to the wireless network.   How can I debug/fix this?

How do I install Wi-Fi drivers for Realtek RTL8723DE device in Ubuntu 16.04?  lspci -v | grep -i network 02:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device d723


Does the down voting of questions and answers on the Meta site serve as a mechanism to discourage the free exchange of ideas by more vocal members? I'm aware that many might consider this a duplicate question, but since this is yet to be resolved IMO it is worth asking. Opinions change, members changes, lets get the latest from the membership. Encouraging everyone to say Yes, No, or Maybe and provide a short explanation. Related:

I have posted different suggestions in the recent days, that many users didn't like. Although some are common practice in other forums, and some even if you don't agree are true (ie, new users get "bullied" by higher rep users many times).  I see that if users with a different way of seeing things, come and ask something here, and it gets downvoted, how is this different way of seeing things will ever affect this forum? I have been downvoted so much, I have each time less "voice" in here. I am not sure even if you can run risk of being banned here.  SO is a highly developed site, many things already implemented, it is hard to suggest something that everyone that has been here for long while will agree, something ground breaking. I suggested things that I as a responsible SO user, but with low reputation, I haven't asked many questions.  I think people on SO should be nicer to new users, I am not saying to allow them do whatever they want. Just be nicer.  So what should I do —    Quit in my attempt to participate in Meta because I will continue being downvoted?  just never propose any new idea, try to harvest Reputation by posting bugs, trying to answer things that are not too controversial so I don't get downvoted? Then when I finally have tons of reputation I can go and shutdown the reputation of new users that suggest new Ideas.   I think it is fine not to agree with me. But why do I lose reputation on meta because of a question that is proposing something new? If most people deem something not good for SO, well my question was useful. I mean my very downvoted ideas got attention, it was a useful discussion. The result was "we don't want that here", but it was useful, in the future other people won't need to ask the same. So is it really right to lose reputation because of that?  Edit:  I am adding this, because I think that by putting myself as example my point was a bit lost.  The FAQ says:     Are upvotes and downvotes different on meta?      Voting here works a bit differently from other Stack Exchange sites.   On Meta Stack Overflow, voting is often used to express agreement or   disagreement, not to point out a lack of quality or helpfulness.   Please don't be concerned if you receive downvotes – members of the   community may simply disagree with your bug, feature request, support   issue, or the nature of the discussion.   Some people in the comments have stated they don't even look at the reputation because of this very reason, which totally makes sense. But basically it means they are ignoring a part of the website's functionality, because it is not useful for that.  So does it make sense to lose reputation for something that people doesn't seem to consider?  I mean it is not the same to be downvoted on SO for posting "nonsense" and to be downvoted here for posting something others don't agree with. And I am not even talking about me, I am sure this has happened to everyone.  If it worried me that I am losing reputation, as it is I would have deleted the posts that are making me lose reputation. That is not my point.


I just got  for close votes. But it says me that the question is already on hold.         I realized that this it an audit. And I clicked on Close. Hurrah! I passed an audit without any efforts!        Can we fix this? Please.  Note: We may say that this it a duplicate to this question: . But that question is for First Posts while this question is for Close vote.

I just reviewed this:    But while reviewing, it already displays the "put on hold as not a real question" section, and it asked:     Should this question be closed as: ?   So as it stands, the audits are broken, since we already know that the question is "on hold" while reviewing, and it is incredibly hard to miss the huge grey box at the bottom.  Another with screenshot:


I have (probably) a large number of posts on SO with links to my specific domain (to provide expanded information beyond what's put in the answers).  If I were to switch to a different domain (say, moving from pax.com to pax.org), it would be useful to get a list of those posts so as to go and modify them, so as to avoid broken links.  Yet, when I search for the domain name on SO, no hits are returned. What's the best way to get a list of posts containing links to (for example) pax.com?

Recently the URL www.antlr.org was changed from pointing to www.antlr3.org to www.antlr4.org. Needless to say there are links that use www.antlr.org for referring to www.antlr3.org that are now wrong.   While I know that search with www.antlr.org will find if www.antlr.org is in the text, it will not find it in the hyperlinks. How do I search the hyperlinks?


Recently I took pictures of someone that was slightly chubby. Close-ups using a 50mm lens went very well, but trying to get some distance in to get a full body shot were not really that satisfactory. Typically they turned out very unflattering because I could not get the necessary angle to hide aspects such as a slight double-chin. I probably would have had to be another half a metre higher than my subject to take a satisfactory shot, and I also don't want my subject to always have to sit down so we can get the angle right.  Getting shots with a 24mm wide-angle lens was much easier but at the same time on some shots the proportions looked somewhat warped, so to me it seems like using a 24mm for full body photography is something better reserved for specific shots and not for general photography.  So essentially I want to know what focal length makes most sense. Is it better to go wider, despite the perspective distortions or pick a narrower focal length and step back, though I would not know how to properly get the slightly above eye level angled-down effect in that case.

I'm not the most lean person on the planet, and many pictures seem to really point this out.  While I wish I was simply in better shape,  it is simply not the case for me or unfortunately, many people.  Are there poses, lighting techniques, focal lengths, etc. that will work better to reduce some of the common overweight features (large stomach, double chin, etc.)?      Update: Ok, so I incorporated a few of the suggestions that I could into a self portrait in the limited space I have.  I didn't have suitable room or patience for a three-quarters shot, so here's just a headshot.  Some of the suggestions really, really made a noticeable difference.      Its a picture of me I actually like! (I pushed the DOF a little shallow though, and the back of my ear is out of focus.)    Second Update:  So here's another shot that takes into account a few more of the suggestions yet (including Jay's suggestion of slightly rotating the light a bit more).  The only thing I think I'd additionally do is make sure to where a higher collared shirt to help hide neck rolls.  Also, I found straightening my back fairly rigidly helped a lot.    And in finale, here's a before picture of how bad it could look. This was taken about 30-40 pounds lighter, by another photographer. (This is a lowres crop, unfortunately.)


In the Deathly Hallows, with the 7 Potters, Fleur still talks with a french accent, in the book and the recording.     “Bah,” said Fleur, checking herself in the microwave door, “Bill, don’t look   at me—I’m ’ideous.”   But something that was not addressed in , is that when listening to the recording, when Hermione changes into Malfada Hopkirk, she completely alters her voice, along with Harry and Ron. (Sorry, no evidence.)  What is the explanation for this?

On the Goblet of Fire Barty Crouch exactly got Mad-Eye's voice when he transformed into him, but on the Deathly Hallows, they were all able to have their own voices instead of Harry's. Why is the effect of the polyjuice potion inconsistent?


I need to create a map showing slope direction and dip angles in QGIS.  How do I get either:  the dip angle to show up next to the direction arrow  or  the dip arrow symbol to change depending on the slope dip angle    I have tried drawing a line with an attribute (dip angle) and then attempting to format the line based on the attribute, which then allowed me to colour code the lines according to how steep the slope dip was. (not ideal to clear data display but it worked) However when I attempted to add more data the whole lot vanished and reloading the layer from an earlier version has none of the dip data on it.     Fixed it

I am trying to apply a rule to rotate symbols based on the value of an attribute.  I tried to copy , which is essentially my question, however it does not work for me.   I have a layer with two attributes, the slope and aspect.  I want to colour the symbols by the slope (this part works) and rotate by the aspect.  The steps I take are:   Layer Properties -> Style -> Graduated -> Symbol -> Change Select Simple Marker (arrow) and press the button to the right of angle -> field type (double) -> Aspect-sel    Applying these commands changes the symbol to an arrow, and I can easily apply the colour gradient, but the symbols do not rotate. The attribute Aspect-sel varies from 2.87 to 334.23.    ETA: I was using Version 2.8.3 - on suggestion I updated to 2.14.10, which solved the problem.


How can i send request to the URL:8080 port and get the Text output and Authenticate too ?  <field label_name="Get Results" type="button" link="http://URL:8080/" authenti_username="***" authenti_password="***" service_method="POST" server_athenti_method="Basic" ssl_certificate="None" ssl_key="None" response_contains="text" output="text"/>

I'm trying to direct a browser to a different page. If I wanted a GET request, I might say  document.location.href = 'http://example.com/q=a';   But the resource I'm trying to access won't respond properly unless I use a POST request. If this were not dynamically generated, I might use the HTML  <form action="http://example.com/" method="POST">   <input type="hidden" name="q" value="a"> </form>   Then I would just submit the form from the DOM.  But really I would like JavaScript code that allows me to say  post_to_url('http://example.com/', {'q':'a'});   What's the best cross browser implementation?  Edit   I'm sorry I was not clear. I need a solution that changes the location of the browser, just like submitting a form. If this is possible with , it is not obvious. And this should not be asynchronous, nor use XML, so Ajax is not the answer.


This is a proposition from J.S.Golan's "The Linear Algebra a beginning graduate student ought to know".  I can't understand why it's so. Obviously, the order of $a$ is finite - higher than $1$ and lower than $q+1$. But what next?

This is a statement from "The Linear Algebra a Beginning Graduate Student Ought to Know" by Jonathan S. Golan.  Let $F$ be a field having $q$ elements and let $a$ be it's nonzero element. Then $a^{-1} = a^{q-2}$  If $a = 1$, than it holds.  If $a \neq 1$, then $a^{q-1} = 1$( the multiplicative order $|a|$ of a divides $q-1$ ).  What can be done next?


I have ubuntu 18.04 and am only a beginner. So, is it possible to change to a new workspace so that when I open my browser, a fully new instance of the browser opens? Is there any way to achieve that? I searched google and could not find it in a first glance.  Edit: I meant firefox. Yes, those answered the questions. I had not found them initially. Thank you.

I would like my Dock to show only the windows of the current workspace. Especially in the little preview window. I find it very confusing to jump around workspaces when trying to find the right window.


Is there a simple way to flatten a list of iterables with a list comprehension, or failing that, what would you all consider to be the best way to flatten a shallow list like this, balancing performance and readability?  I tried to flatten such a list with a nested list comprehension, like this:  [image for image in menuitem for menuitem in list_of_menuitems]   But I get in trouble of the NameError variety there, because the name 'menuitem' is not defined.  After googling and looking around on Stack Overflow, I got the desired results with a reduce statement:  reduce(list.__add__, map(lambda x: list(x), list_of_menuitems))   But this method is fairly unreadable because I need that list(x) call there because x is a Django QuerySet object.  Conclusion:   Thanks to everyone who contributed to this question.  Here is a summary of what I learned.  I'm also making this a community wiki in case others want to add to or correct these observations.  My original reduce statement is redundant and is better written this way:  >>> reduce(list.__add__, (list(mi) for mi in list_of_menuitems))   This is the correct syntax for a nested list comprehension (Brilliant summary !):  >>> [image for mi in list_of_menuitems for image in mi]   But neither of these methods are as efficient as using itertools.chain:  >>> from itertools import chain >>> list(chain(*list_of_menuitems))   And as @cdleary notes, it's probably better style to avoid * operator magic by using chain.from_iterable like so:  >>> chain = itertools.chain.from_iterable([[1,2],[3],[5,89],[],[6]]) >>> print(list(chain)) >>> [1, 2, 3, 5, 89, 6]


Can I use Ubuntu to defrag a Windows NTFS/FAT drive or partition?

Are there any tools that I can use to defrag my Windows partition from Linux?


To estimate the sample variance, the following relation is often used: $$\frac{(n-1)s^2}{\sigma^2} \sim \chi^2(n-1) $$ With $(n-1)$ being the degrees of freedom. Could someone provide me a formal proof and some intuition for this relation?

It's a standard result that given $X_1,\cdots ,X_n $ random sample from $N(\mu,\sigma^2)$, the random variable $$\frac{(n-1)S^2}{\sigma^2}$$ has a chi-square distribution with $(n-1)$ degrees of freedom, where $$S^2=\frac{1}{n-1}\sum^{n}_{i=1}(X_i-\bar{X})^2.$$ I would like help in proving the above result. Thanks.


I have an unused wire that used to be hooked up to the dryer breaker that is "hanging" in the breaker box. What is the correct way to terminate this wire? I don't want to cut it in case we want to use it in the future and I cant pull it out of the box because its ground wire is wrapped around all the other ground wires making it a pain to extract.   Thanks!

I accidentally pulled 6-4 wiring to a machine that only needs 240 and no neutral. What to do with the white wire?  I read  that at the machine, I just cap the white wire.  When I go to connect the wires in the main breaker panel, do I still connect the white wire to the neutral bus, or do I cap it in the panel as well?


If $p\ge 2$ & $f,g $ are  $L_p $ functions,  prove that :  $||\frac {f+g}{2}||_p^p +||\frac {f-g}{2}||_p^p \le \frac {1}{2}[||f||^p_p +||g||_p^p ]$  At first glance , I thought it is easy noticing that  $x^p$ is a convex function for $p\ge2$. But I failed.   Is there any hint?  Thanks

Trying to find a proof for Clarkson's inequality, which states that if $2 \leq p < \infty$, then for any $f, g \in L^p$, we have that $$\left|\left|f+g\right|\right|_p^p + \left|\left|f-g\right|\right|_p^p \leq 2^{p-1}\left(||f||_p^p + ||g||_p^p\right) $$ I have a couple of ideas, but I know they are wrong. I tried saying that $|f+g|^p \leq |f|^p + |g|^p$ and the same thing for $|f-g|$ but I know those inequalities aren't true in general.


$ I =\int_1^\frac{n+1}{1} \frac{(x - [x])^{[x]}}{[x]} dx$ my attempt:   $I=\int_1^n \frac{(x - [x])^{[x]}{[x]}}\implies\sum_{i=1}^n\int_r^{r+1} \frac{(x-r)^r}{r}dx $ Now by integration I got, $\implies \left.\frac{(x-r)^{r+1}}{r(r+1)}\right|_{r}^{r+1} +\frac{1}{n(n+1)} \implies \sum_{r=1}^n \frac{1}{r(r+1)} $  But now I'm stuck at summation, any hints?

Problem :   Let $n$ be a positive integer, for a real number $x$, let $[x]$ denote the largest integer not exceeding x and $\{x\} =x -[x]$ Then $$\int^{n+1}_1 \frac{(\{x\})^{[x]}}{[x]}dx$$ is equal to   (a) $\log_e(n)$   (b)  $\frac{1}{n+1}$   (c)  $\frac{n}{n+1}$   (d)  $1+\frac{1}{2}+\cdots +\frac{1}{n}$   Please suggest how to proceed in such cases not getting any clue how to proceed in cases of fractional part and greatest integral cases. please guide will be of great help thanks.


Does anybody know how to manually pass REPORT_LOCALE param via SpagoBI or, at least, how to manually pass REPORT_LOCALE parameter for Jasper?  What I want to achieve is that I can dynamically pass language parameter, so my reports can be generated in different languages.  Does anybody know how to do this? I use SpagoBI for calling Jasper Reports via SpagoBI REST 2.0 API, but I'm not so sure is this SpagoBI or Jasper issue.  I tried to define REPORT_LOCALE, language, userLocale, reportLocale params in SpagoBI (passed es_ES, es, [es, ES], es,ES), but it didn't work. I also tried to use userLocale, reportLocale in Jasper (the same values as above), but also without success.   When I switch language in SpagoBI, it works, but I need to call report via REST, so this is not workaround for me, but if I could switch language in REST, maybe I can do some business.  Also, REPORT_LOCALE in Jasper works, but I can do nothing with it, I need that REST call.  Can anybody tell me more about this?  edit: Setting locale in iReport is not solution, it works when you are making report, but when you want to call it via SpagoBI it's compeltelly different story.

The windows installed on my machine has the locale en_AU and that's what JasperReports uses. I already tried changing the locale of all users, including the Administrator but it still uses en_AU.  How can I change that locale? Is it possible to change the REPORT_LOCALE parameter on my report?


Retrieval of square root in the field of p-adic numbers.   Find ${\sqrt 5}$ in field $\Bbb {Q_{11}}$ Find ${\sqrt 3}$ in field $\Bbb {Q_{13}}$   Any information that will help solve this task will be useful.

Suppose I want to know whether $\sqrt{7}\in\mathbb{Q}_5$, or more generally, whether $\sqrt{n}\in\mathbb{Q}_p$ for $n\in\mathbb{Z}$, $p$ an odd prime. What are the techniques for determining this? Am I supposed to "lift" it from $\mathbb{Z}/p\mathbb{Z}$ using Hensel's lemma? Could I see an example?


I don't think this is just true of Apple products but the weight advertised for iOS device model of varying storage size is always same.  For example . Is this the same for all models?  Does an increase in storage size add extra weight?  Is the weight difference so minuscule that it is not mentioned?

Are the 16, 32 and 64GB models the same weight or does increased memory increase the weight?


everybody! I need your help, I'm struggling with the visualization of the Brownian motion and would like to reproduce the following graph:    I have already found a similar topic () but I dont know how to set the upper and the lower bound on the y-axis; I basically need a constrained random walk. If somebody could help me with that graph, I would be very grateful!

Here I want to draw some Brownian motions in tikz, like this:  Furthermore, I want to truncate the trajectory of Brownian motion, like this:   I have tried many times with random functions in tikz, but always fail.  BTW, the figures uploaded are screenshots from "Brownian Motion - Draft version of May 25, 2008" written by Peter Mörters and Yuval Peres.


I am trying to reference an algorithm in my thesis, made using the algorithmicx and algorithm packages, but it fails, ending up with the dreaded ?? and the following error:  LaTeX Warning: Reference `alg:somealg' on page 10 undefined on input line 442.   A shortened down version can be seen here:  \usepackage{amsmath} \usepackage{mathtools} \usepackage{amsfonts} \usepackage{algorithm} \usepackage{algorithmicx} \usepackage{algpseudocode}  \begin{document}  Blahblah, see Alg.~\ref{alg:somealg}.  \begin{algorithm}     \label{alg:somealg}     \caption{This is some algorithm}     \begin{algorithmic}[1]         \State $2 + 2 = 4$     \end{algorithmic} \end{algorithm}  \end{document}   What am I doing wrong?

\documentclass{article} \usepackage{algorithm}  \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label `myalg'.} \end{algorithm} Reference to myalg: \ref{myalg}. \end{document}   With this code, the reference givens 55 (the section number); if I move the label after the caption command, I get the correct reference (1).  Why should this be the case? I find it confusing: when thinking about an algorithm as an environment, you expect to be able to label it right after you began it. At the very least I would expect some kind of error or "??" to appear, rather than the previous environment or reference-able entity being used.


It's widely known that regular Ubuntu LTS releases receive 5+ years of support while Flavors have a shorter, 3 year, support period.  However, I have now read that while the Flavor-specific programs only receive 3 years of support, the core software shared with the regular Ubuntu release will still receive support as long as the vanilla release does (5 years). Is this true?  Would it be safe to use, for example, a Kubuntu 18.04 system until 2023?  What happens if I install a minimal system from the official 18.04 Mini-ISO and just select KDE Plasma as the DE, will that still receive 5 years of updates?  Overall, I'm very confused about these proclaimed update periods.

I have read this  from  .It says that other Ubuntu flavors of LTS get only 3 years of support. Is this true?   This question is not a duplicate of the linked post as I want to know support time for only other Ubuntu flavors.


I'm new to latex and i would like to write in latex code the formula for maximum likelihood with the L and lambda in parenthesis. I thought I would find it easily on the internet but no luck. It is the two formulas written below especially the 1 with the contour.

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


The following codes return errors   \documentclass{article} \begin{document} cd\\ [asd] \end{document}   But this one will work  \documentclass{article} \begin{document} cd  [asd] \end{document}

Whenever I try to compile a table that has a "[" as first character in a row it gives me the error:  Missing number, treated as zero. Illegal unit of measure   Example:  \begin{table}[htb]     \centering     \begin{tabular}{r|r}         [some text ] & ... \\         [some more text ] & ...     \end{tabular}     \caption{...}     \label{tab:...} \end{table}   How can I print "[" as first character in a row?


I want to mock private method of a class under test but method return false first two times when the method is called after that it should return false. Here is the code what I tried. This is the class which is being tested  public class ClassToTest  {     public void methodToTest()     {         Integer integerInstance = new Integer(0);         boolean returnValue= methodToMock(integerInstance);         if(returnValue)         {             System.out.println("methodToMock returned true");         }         else         {             System.out.println("methodToMock returned true");         }         System.out.println();     }     private boolean methodToMock(int value)     {         return true;     } }   Test class  import org.junit.Test; import static mockit.Deencapsulation.*;  import mockit.*; public class TestAClass  {     @Tested ClassToTest classToTestInstance;     @Test     public void test1()     {          new NonStrictExpectations(classToTestInstance)         {             {                 invoke(classToTestInstance, "methodToMock", anyInt);                 returns(false);                 times = 2;                  invoke(classToTestInstance, "methodToMock", anyInt);                 returns(true);                 times = 1;              }         };          classToTestInstance.methodToTest();         classToTestInstance.methodToTest();         classToTestInstance.methodToTest();      } }   I did this to get desired results      final StringBuffer count = new StringBuffer("0");     new NonStrictExpectations(classToTestInstance)     {          {             invoke(classToTestInstance, "methodToMock", anyInt);             result= new Delegate()              {                 boolean methodToMock(int value)                 {                                        count.replace(0, count.length(), Integer.valueOf(Integer.valueOf(count.toString())+1).toString());                     if(Integer.valueOf(count.toString())==3)                     {                         return true;                     }                     return false;                 }             };          }     };

How do I unit test (using xUnit) a class that has internal private methods, fields or nested classes? Or a function that is made private by having  (static in C/C++) or is in a private () namespace?  It seems bad to change the access modifier for a method or function just to be able to run a test.


I have solved this limit:  $\lim_{x \rightarrow 0} \frac{e-(1+x)^{\frac{1}{x}}}{x}$  using L'Hopital's rule and series expansion. Do you have other method for solving it?

Find the following limit: $$\lim_{x\to 0}\frac{(1+x)^{1/x}-e}{x} \tag{1}$$  The following is my approach, although is full of incorrect assumptions (statements etc).  $$f(x)= \lim_{h\to 0}(1+x+h)^{1/(x+h)}\\$$  From here we can say $f(0) = e$.  $$\ln(f(x)) = \lim_{h\to 0}\frac{1}{x+h}\ln(1+x+h)$$  Near $x=0$, we can use the series of logarithm: $$\ln(f(x)) = \lim_{h\to 0}\frac{1}{x+h}\left(x+h-\frac{(x+h)^2}{2}...\right)$$  Differentiating we get:  $$\frac{f'(x)}{f(x)} = \lim_{h\to 0}-\frac{1}{2} +\frac{x+h}{3}  ... \tag{2}$$  Now we note that $(1)$ is actually $f'(0)$ (?) and so from $(2)$ we get:  $$f'(0) =\frac{-1}{2} f(0) = \frac{-e}{2}$$  While the answer is seemingly correct, the method is absolutely not. It looks like this is fluke than anything else.  I also tried computing taylor series of $(1+x)^{1/x}$ near $x=0$ but couldn't do it.


The visible area became narrow as the screenshot. How can I revert it back to the original? The version of my blender is 2.83.

I'm having an odd issue - When I try to zoom in on a detail using my MMB, the "camera" in the 3D view seems to be cutting off the exterior surface of my object and showing me the inside instead. I'd expect this behavior, but only when I was much more zoomed in.  If I zoom out a bit (one click on the scroll wheel) then I can see the exterior as I intend.  Is there any way to adjust this behavior?  Thanks!


I want my GPU to be able to do some of my processor's work when I'm playing games or doing tasks like that.  My processor is an   AMD FX-4200 running at 4.1 GHz and my GPU is a  NVIDIA GeForce GTX 1060 6GB.  Obviously, I have a very powerful GPU, and when I'm running less graphic-demanding games such as Star Wars Battlefront, I want to be able to have my GPU (assuming it has free processing space) do some of the processor's work. Is this possible? If so, how could I do it?

Can I "combine" the power of my GPU with my CPU to get more FPS in games and more power for programs ?   CPU: Intel i5 4690K which is OC'd to 4.3Ghz with the box cooler GPU: AMD Radeon HD 7750 Saphire 1GB GDDR5 Edition which is OC'd with memory at 1130Mhz and GPU at 820Mhz, these frequencies are achieved while gaming. My MOBO is an Asus Z97-K The CPU has integrated graphics.