Disable open Google Search by sliding up from the home button "feature"?

Galaxy Nexus running Android version 4.1.1.  After a recent update, it seems google has added a feature where you can place your finger on the bottom home buttons, and slide up, to open google search. This feature is extremely useful when I want to interrupt my game play to open a google search while running the streets of liberty city. I am wondering if anyone knows how to disable this wonderful feature.  Thanks.


How to vertically align subscripts in mathmode

I would like the "AB" subscripts in my formula to be vertically aligned with each other--ideally, by adjusting the second subscript to match the current placement of the first.   MWE:  \documentclass{article}  \usepackage{braket} \begin{document}     \begin{equation}         \rho_{AB}=\ket{0}_{AB}\otimes_{AB}\bra{0}     \end{equation} \end{document}   I have attempted to use \vphantom to remedy this in the following way:  \documentclass{article}  \usepackage{braket} \begin{document}     \begin{equation}         \rho_{AB}=\ket{0}_{AB}\otimes\vphantom{\ket{0}}_{AB}\bra{0}     \end{equation} \end{document}   However, this did not produce a discernible difference, so I'm stumped at the moment.  Proposal for another MWE (Manuel Kuehner)  Even with a full \phantom the vertical position changes...  \documentclass{article}  \usepackage{braket} \begin{document}     \begin{equation}         \rho_{AB} = \ket{0}_{AB} \otimes_{AB} \bra{0}     \end{equation}     \begin{equation}         \rho_{AB} = \ket{0}_{AB} \otimes\ket{0}_{AB} \bra{0}     \end{equation}     \begin{equation}         \rho_{AB} = \ket{0}_{AB} \otimes\phantom{\ket{0}}_{AB} \bra{0}     \end{equation}         \end{document}


Do companies declare dividends on specific dates?

Are there specific dates for companies to declare ordinary dividends? If so, where can I find these dates? If not, why aren't there fixed dates to prevent excessive volatility and speculation about the dividend date and amount?


Short Story About Contact With An Alien Race That Extruded An Elixir

I remember once many years ago reading a short story about how the Human Race established contact with an alien race. One of the exchanges involved one alien and one human meeting in orbit on a space station for the purpose of collecting what the alien would extrude from it's pores. This "elixir" would extend life expectancy in a human who ingested it. The problem arose that the alien was so "foreign" and grotesque that if one was to "view" it, one would go mad. This story is a narrative of the man sent to the station for the collection and his encounter with the alien.


What is the sum of $$\sum_{n=0}^{\infty}\frac{1}{2^n(n+1)}$$    I've spent an insane amount of time on this problem. I checked on Wolfram and it gives $ln(4)$, which I assume you get from $2\ln(2)$.   I know that the integral of $\frac{1}{n+1}$ is $\ln(n+1)$. What am I missing?  Thank you!


When should we use 'look familiar' and 'looks familiar'?

Should I say, "those glasses looks familiar" or "those glasses look familiar". Or both can be used?


What is "Cell signal with small house and 2 blinking bars" system icon?

I'm using Samsung Galaxy S5. There is an icon which looks like a house with 2 waves in the notification bar, in between (and slightly above) the 4G and mobile signal strength icons.    Here's the screenshot  Click to enlarge    I only saw it once and never again. I was reading text messages.


I'm reading some texts (single supply circuits collection) about circuits and I encounter the symbol ||.  What is the meaning of it?   For an example in a circuit about an op-amp circuit that provides gain i see in the "inverting" description:  Gain = -R2/R1  R3 = R1||R2  (I can't insert a schematic, circuit editor never starts)


How does one know if a question is already answered

Sometimes when i ask a question, i get a response that the question is already answered with a link to the answer. How does the answerer know it? I means he cannot manually  go through the Q&A database to check if my question is already answered? So how does he find that out?


If I have wet clothes and put them on the ground and let the Sun shine on them, they dry as water evaporates. But water should evaporate at 100 degrees Celsius so how come they go dry if it's just about 30 degrees Celsius? What am I missing?


I have two classes  I am not sure why this is erroring. In eclipse there are no red underlines.  Main:  package com.example;  public class Main {     public static void main(String[] args) {         Week myWeek = new Week(Week.days.FRIDAY);         System.out.println(myWeek.Today.toString());     } }   Week:  package com.example;  public class Week {     public static enum days {         SUNDAY,         MONDAY,         TUESDAY,         WEDNESDAY,         THURSDAY,         FRIDAY,         SATURDAY     }      static final days[] order = {         days.SUNDAY, days.MONDAY, days.TUESDAY, days.WEDNESDAY,          days.THURSDAY, days.FRIDAY, days.SATURDAY     };     days Today;      Week(days toSetTo){         @SuppressWarnings("unused")         days Today = toSetTo;     } }   the error is on Main.java:6


Prove that $2730$ divides $n^{13} - n$ for all integers $n$.   What I attempted is breaking $2730$ into $2, 3, 5$, and $7, 13$. Thus if I prove each prime factor divides by $n^{13} - n$ for all integers $n$, it will prove the original problem.   I already proved $2, 3$, and $5$ work. Struggling with how to do $91$?  Other solutions are welcome, but they should be associated with mod and solutions of this kind, because my answer should pertain to what was learned in class.  (Edit: Fixed the 91 problem, being slow today...In any case, I've got this problem now, so no answers are necessary. Posting my own soon.)


Let $A$ be a nonsingular $n \times n$ matrix, $\|\cdot\|$ be any natural norm, and $K_{p}(A)=$ $\|A\|{p}\left\|A^{-1}\right\|{p} .$ Let $\lambda_{1}$ be the smallest and $\lambda_{n}$ be the largest eigenvalues of the matrix $A^{t} A$ (b) Show that $K_{2}(A)=\sqrt{\frac{\lambda_{n}}{\lambda_{1}}}$. (Hint: One should use the $\|A\|=\sqrt{\rho\left(A^{t} A\right)}=\sqrt{\rho\left(A A^{t}\right)}$ relation) For part $(b)$, it seems minimal eigenvalue of matrix $A$ will be the largest eigenvalue of the inverse of matrix $A$, so we have to use this idea but could not understand formally why square roots are needed for $K_{2}(A)$ and how spectral radius is necessary for this part?!


inserting Å Ä Ö into mysql database table using php

<?php $insert =  "I want to store Å Ä Ö in my database";  mysql_query(" INSERT INTO test (text) VALUE ('$insert')") or die(mysql_error()); ?>   Just by using this piece of code, the database stopped storing data as fast as a special symbol (Å Ä Ö) was encountered so in this case I would only find the string "I want to store " in my database table. However I tried to put:  <?php mysql_query("SET NAMES 'utf8'") or die(mysql_error());  mysql_query("SET CHARACTER SET 'utf8'") or die(mysql_error());  ?>   before the INSERT script, it worked somewhat better but now the issue is that all the special symbols are replaced with question marks ( ? ) in the database tables. My table collation is utf8_swedish_ci. The meta, charset is UTF-8.


Can an Indian travel from Australia to Delhi with only 40 days of validity remaining on the passport?

Will I be able to take a non stop flight from Melbourne to Delhi with this validity?   I wasn't aware of the six month validity rule that exists in several countries. It never came up and I feel stupid for not having applied for a renewal.


Deleted file being written to by running process, can I recreate it?

I've started a long running process with nohup and redirected it's output to a log file  Example:  nohup ./bin/zkServer.sh start-foreground > /usr/local/myuser/logs/zkout.log 2>&1 &   I accidentally deleted the zkout.log file so now I can't see any output from the command.  I'm not interested in recovering the data, but I am wondering if there is a way to 'reattach' the stdout from my long running process to the file without having to kill/restart?  I tried just recreating /usr/local/myuser/logs/zkout.log but that doesn't work.  I also looked at this question:  but that is talking about recovering the content of the deleted file (which I don't care about). However, I do see the broken link in /proc/$procid/fd; could I just update that link to point to the new file?


For example: def main():     if something == True:         player()     elif something_else == True:         computer()  def player():     # do something here     check_winner()  # check something      computer()  # let the computer do something  def check_winner():      check something     if someone wins:         end()      def computer():     # do something here     check_winner() # check something     player() # go back to player function   def end():     if condition:         # the player wants to play again:         main()     elif not condition:         # the player doesn't want to play again:         # stop the program            # whatever i do here won't matter because it will go back to player() or computer()  main()  # start the program  My problem is that if a certain condition becomes true (in the function check_winner) and function end() executes it will go back to computer() or player() because there's no line that tells the computer to stop executing player() or computer(). How do you stop functions in Python?


What options, if any, exist for offline update of Microsoft  Windows?  If a solution exists please list your experience using it.    Background:  If for any reason a computer does not have a connection to  the Internet or the connection is too slow to download  several hundreds of megabytes every so often some kind of  offline Windows Update is required.  In a multi-computer environment a lot of bandwidth (and thus in some cases money) and/or  time could also be saved if it is possible to update in an  offline manner.


How to draw the wavy line meaning that part of a molecule has been omitted, in chemfig

[EDIT] I've just found , but I'm working on it because I'd like the wavy line to be separated from the bond.    I'm trying to write this reaction scheme:    I had defined a macro for the wavy line under the NADH and NAD+, which takes its inclination as argument:  \newcommand*{\wavyline}[1]{\begin{tikzpicture}[line width=\bondwidth]                                \draw [decorate,decoration={snake,amplitude=.3mm,segment length=1.3mm}] (0,0) -- (#1:0.67);                            \end{tikzpicture}}   Now I've just tried to use it and the output is this:    How can I bring it closer to the bond? I think I need to "reduce the margins" around the Tikz picture, but I don't know how.    MWE  \documentclass{article} \usepackage{chemfig} \usepackage[version=4]{mhchem} \usetikzlibrary{decorations.pathmorphing} \newcommand*{\wavyline}[1]{\begin{tikzpicture}                                \draw [decorate,decoration={snake,amplitude=.3mm,segment length=1.3mm}] (0,0) -- (#1:0.67);                            \end{tikzpicture}} \begin{document} \chemfig{*6(-N(-[:-90]\wavyline{0})-=(-[:30](=[:90]O)-[:-30]N|\ce{H2})--=-)} \end{document}


Model visible in Material view and render view but not in wireframe and solid view

here is how it looks. I was modelling on solid view. I switched to Material view and now the models are not visible in the wireframe and solid view.


Mafia 3 no more damage to be dealt barclay mills

I did most of the barclay mills missions and brought the damage down to 2550 but now I can find anything else to damage or steal, so the meter is stuck at 2550 and the objective says "find and destroy garbage barges" but when I click it, no waypoint.  Please help.


Can Not Access Folder After Re-Installing Windows 10

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


Imagining $S^1$ with antipodal points identified

How can I imagine $S^1$ with antipodal points identified? Are there more ways, say a few rendering nearby points nearby, and some other not?  And yet a smooth version?


Correspondence between Ext group and extensions (from Weibel's book)

I am trying to understand the proof of Theorem 3.4.3 from Weibel's book Introduction to homological algebra.  The statement is the following.     Let $R$ be a ring. Given $R$-modules $A$ and $B$, an extension $\xi$ of $A$ by $B$ is an exact sequence $0\to B\to X\to A\to0$. Then the connecting homomorphism $$\delta:\text{Hom}(A,A)\to\text{Ext}^1(A,B) \tag{1}$$ induces the 1-1 correspondence $\theta$ between equivalence classes of extensions of $A$ by $B$ and $\text{Ext}^1(A,B)$, which is given by $\theta:\xi\mapsto\delta(\text{id}_A)$.   In the beginning of the proof it is written the following     Fix an exact sequence $0\stackrel{j}\to M\to P\to A\to0$ with $P$ projective. Applying $\text{Hom}(-,B)$ yields an exact sequence $$\text{Hom}(P,B)\to\text{Hom}(M,B)\stackrel{\delta}\to\text{Ext}^1(A, B)\to0.\tag{2}$$   I don't understand why the connecting homomorphism in the sequence (2) is denoted by the same letter as in (1). Are they really the same?


A 50% opaque white object put on top of another 50% opaque white object is not anywhere near as white as a 100% opaque white object (blending mode normal). I tried this in Illustrator and Inkscape, and the results seem to be similar, so my question is: how are overlapping transparencies calculated? Is there a way to force either to use simple addition (30% opaque on top of 20% opaque = 50% opaque)?


Why i cant bevel this corner properly. I thought i should apply scale but it doesn't help.


How to re-enable the systray (indicator panel) after latest updates

After Suttleworth's  the whitelist for the systray, a developer created a  to continue to use applications that use the systray with Ubuntu.  Unfortunately, the patch's creator is now too busy to maintain it. This means that since the latest updates earlier this month, the whitelist no longer works (again).  Canonical's "solution" was to instruct us to raise a bug report for each application that doesn't work, but of course those bug reports have been ignored.  So…  How can I re-enable the systray? Its absence is creating difficulties for me.  I am using Ubuntu 14.04 64-bit.  Answering the question by @GGleb  Command  gsettings list-recursively net.launchpad.indicator.systemtray   Results  net.launchpad.indicator.systemtray disable-indicator false net.launchpad.indicator.systemtray started-the-first-time false net.launchpad.indicator.systemtray static-x 0 net.launchpad.indicator.systemtray static-y 0 net.launchpad.indicator.systemtray tray-is-static false   I notice that tray-is-static toggles when I middle-click the icon.


Can you block with a creature and then sacrifice it?

I block a  with a . I sacrifice the Brindle Boar. Does the Territorial Allosaurus still do damage to me?


What shutter speed to use for indoor karate without flash?

What shutter speed would you recommend for an indoor karate tournament with slightly dim fluorescent lighting? I will not be using a flash. I'll be using a Canon T3i with an 85mm f/1.8 lens and using shutter priority mode. I normally use raw format but I'm switching my camera to jpeg format to avoid processing lag between pics. What do you think is the slowest shutter speed I can use without motion blur?


I'm loading a form using Nivo Lightbox AJAX.  form#users-add   Now I use another AJAX function to submit the form:  var users_add = $('#users-add'); users_add.submit(function (e) {     e.preventDefault();     $.ajax({         type: users_add.attr('method'),         url: users_add.attr('action'),         data: users_add.serialize(),         success: function (data) {             if (data == 'users-add-success') {                 $('#users-add-cbk').html('
Utilisateur ajouté!
');                 users_add[0].reset();             } else {                 $('#users-add-cbk').html('
Une erreur c\'est produite.
');             }         },         error: function (data) {             $('#users-add-cbk').html('
Une erreur c\'est produite.
');         },     }); });   The problem here is that I have to re-map the DOM as form#users-add wasn't there when the the document has been fully loaded.  How to properly make the form#users-add seen by the script?


Can you add extension methods that you call like static methods?

According to Microsoft, "Extension methods are a special kind of static method, but they are called as if they were instance methods on the extended type".  Is there a way to add an extension method that it called as if it was a static method? Or to do something else that has the same effect?  Edit: By which I mean "called as if it was a static method on the extended class". Sorry for the ambiguity.


Secular phrase of "bless you" (after someone sneezes)?

In English speaking countries it's common practice to say "bless you" to someone who sneezes. The etymology of this practice has been covered in a previous question:    Secular Alternative  My question is, what secular alternative is in common use?   I often say something like "good health," which sounds a little odd in English but most people take it well. Is there any other common alternative?


Are 'by the time' and 'when' interchangeable?

Let's say I am missing my novel and I think that my friend might have taken it after I left the place.  1: By the time I left my apartment, my friend was still there, so he might have taken it. 2:When I left the apartment, my friend was still there, so he might have taken it.  I know what 2nd expression means, but not so sure about the first expression. Does it convey the same meaning as the 2nd expression?


Why does a confirm dialog have the words "says:

When I raise a confirm dialog in JavaScript, the title is somesite.com says. Is there a way (besides creating my own dialog) to remove this?


How do you run as a different user from the Start Menu in Windows 10?

Running an application as a different user (e.g. domain admin account) from the start menu (by shift + right-clicking the application) used to be an option in Windows 7 & XP.  However, I can't find that option in Windows 10. The workaround seems to be either 1) to find the application in Windows Explorer (shift + right-click) or 2) use runas.exe from the command line.  However, in order to use those workarounds, I have look up the executable name first. It's a bit difficult because I don't have the name of every RSAT tool or executable name memorized.  (e.g. "Active Directory Users and Computers" is dsa.msc, "Routing and Remote Acces" is rrasmgmt.msc)  Is there a simpler way to do this?


How does one become a philosopher, or what makes one a philosopher?

What makes someone a philosopher? When, how, or under what circumstances is the title of philosopher justified?   Wikipedia states that philosophy is the study of reason. If I study reason, am I a philosopher?


Is there a way to create a single array out of two? E.g.  int[] array1 = {1,2,3}; int[] array2 = {4,5,6}; int[] array1and2 = array1 + array2;


Is it possible to use IGP and Dedicated graphics like nvidia's optimus?

Pretty much like the title says. I'm curious if it would be possible to use my dedicated graphics card for gaming and other intensive tasks, while using my IGP for general usage to get power usage down?  I have an intel 3770k @ stock clock, GTX 660 Ti 2GB


What does the spouse of an Italian citizen need in order to stay in the Schengen area for more than 90 days?

I am a US citizen w/dual Italian citizenship traveling over 6 months in Europe.  I will be establishing Italy as primary stay although, my husband (USA citizen) does not have an Italian citizenship.  We want to travel for 6 months to a year throughout Europe.  My question is, what are the rules for him?  Does he need an extended stay visa or can he attach himself to me (I have an EU passport) since we are married?


while loop acting differently upon reentry (java)

i have an assignment where i have to make a program that reads input and evaluates whether or not it is a palindrome until the user terminates. i am having issues with the while loop. it works like it should upon first input, but then when it re-enters the loop, it always says it is not a palindrome, even when it is.  Scanner in;     in = new Scanner (System.in);      String original = "";       //variable for user input     String original2 = "";      //variable to help make input case insensitive     String reverse = "";        //variable to compare word in reverse     int length;                 //variable used to      int i;                      //variable used in for loop     //String response = "";      System.out.println("Enter a word to check if it is a palindrome!");      original = in.nextLine();      while (!original.equals("n"))      {         length = original.length();          original2 = original;       //assigning a new variable to hold the input, so as to not change it          original2 = original.toLowerCase(); //converting input to all lower case using the holder variable           for (i = length -1; i >= 0; i--)    //for loop reversing the word to check for palindrome status         {             reverse = reverse + original2.charAt(i);         }          if (original2.equals(reverse))      //if statement determining output if palindrome is true or not         {             System.out.println(original + " is a palindrome");         }         else         {             System.out.println(original + " is not a palindrome");         }          System.out.println("Enter another word or enter 'n' to end");   //allowing to continue         original = in.nextLine();      }  System.out.println("thank you!");     in.close(); }   i initially thought that it was an issue with the buffer, but i no longer think that is an issue.   i will really appreciate any help at all


How to remove left over empty small partitions? (Ubuntu 17.10)

After unistalling Ubuntu 17 from my laptop, left me with 3 very small pertitions which they added 3 extra letters to my drives. I am unable to delete them format them or anything from windows D management, is there another method to remove them please? This is how my HD is partitioned: 323MB, 260MB, 128MB, C:\687GB NTFS, F:904MB NTFS, G:450MB NTFS, H:9.42GB Recovery NTFS. The NTFS partitions are from Windows, but the first 3 are Linux left overs. I'll appreciate your help.


How to convert 4 band GeoTIFF to PNG or JPEG using gdal_translate

I have an orthomosaic GeoTIFF and it has 4 bands. I want to convert it to a PNG/JPEG image to show it on Cesium. I've tried gdal_translate like this : gdal_translate -a_nodata 0 -of PNG 1.tif 1.png -scale -colorinterp_1 red  -colorinterp_2 green -colorinterp_3 blue and it's not working. I'm completely new to QGIS. Can you please guide me what options I should use to get data? I already have 2D generated picture using photoshop and I think it's not losing any data. I don't want to keep projection or elevation data. I just want a normal image.  Point: it's not possible for JPG because I'm getting this error : libjpeg: Maximum supported image dimension is 65500 pixels  This is gdalinfo result :  Files: /Users/tfiroozian/Downloads/2_111318_SKYG_Nautilus_1_3mi_transparent_mosaic_group1.tif Size is 41705, 77008 Coordinate System is:  PROJCS["NAD_1983_StatePlane_Texas_Central_FIPS_4203_Feet",     GEOGCS["NAD83",         DATUM["North_American_Datum_1983",             SPHEROID["GRS 1980",6378137,298.2572221010042,                 AUTHORITY["EPSG","7019"]],             AUTHORITY["EPSG","6269"]],         PRIMEM["Greenwich",0],         UNIT["degree",0.0174532925199433],         AUTHORITY["EPSG","4269"]],     PROJECTION["Lambert_Conformal_Conic_2SP"],     PARAMETER["standard_parallel_1",30.11666666666667],     PARAMETER["standard_parallel_2",31.88333333333333],     PARAMETER["latitude_of_origin",29.66666666666667],     PARAMETER["central_meridian",-100.3333333333333],     PARAMETER["false_easting",2296583.333333333],     PARAMETER["false_northing",9842500],     UNIT["US survey foot",0.3048006096012192,         AUTHORITY["EPSG","9003"]]] Origin = (1285949.954140000045300,10626980.503550000488758) Pixel Size = (0.081470000000000,-0.081470000000000) Metadata:   AREA_OR_POINT=Area   TIFFTAG_SOFTWARE=pix4dmapper Image Structure Metadata:   COMPRESSION=LZW   INTERLEAVE=PIXEL Corner Coordinates: Upper Left  ( 1285949.954,10626980.504) (103d35'10.24"W, 31d46'58.51"N) Lower Left  ( 1285949.954,10620706.662) (103d35' 8.11"W, 31d45'56.45"N) Upper Right ( 1289347.660,10626980.504) (103d34'30.89"W, 31d46'59.49"N) Lower Right ( 1289347.660,10620706.662) (103d34'28.77"W, 31d45'57.43"N) Center      ( 1287648.807,10623843.583) (103d34'49.50"W, 31d46'27.97"N) Band 1 Block=41705x1 Type=Byte, ColorInterp=Red   NoData Value=-10000   Mask Flags: PER_DATASET ALPHA  Band 2 Block=41705x1 Type=Byte, ColorInterp=Green   NoData Value=-10000   Mask Flags: PER_DATASET ALPHA  Band 3 Block=41705x1 Type=Byte, ColorInterp=Blue   NoData Value=-10000    Mask Flags: PER_DATASET ALPHA Band 4 Block=41705x1 Type=Byte, ColorInterp=Alpha   NoData Value=-10000


How to simulate an "application launch" (executing a .desktop file) from a script?

This question relates back to separating the Tor Browser from Firefox in the Unity launcher (I assume it applies to other DE's as well). The original question is .  As part of my proposed solution I created a .desktop file that uses a different icon and runs the Tor Browser as a separate process from firefox.   It seems that in Unity the only way to create separate entries in the launcher/dash is by using separate .desktop files (which makes sense) and putting them in ~./local/share/applications or /usr/share/applications.  However, the problem is that, according to , .desktop files can't/are-not-intended to be run from within a shell, but rather the DE (or something) parses and executes the file and ties it to a particular icon, comment, etc. I want to somehow emulate THAT, whatever the DE does to interpret a .desktop. Something like:  $ app-launcher --run-desktop '/path/to/desktop.desktop'   I assume things like Gnome-Do or Synapse use something conceptually similar to my made up command above. So how can I replicate that in a script?  P.D. The best I have been able to come up with is to use xte to literally simulate pressing the Super key, typing "Tor Browser" and pressing Enter, as I sit and watch the dash open on its own, "Tor Browser" sluggishly type itself in and finally open the app, all while I gently sob at the horror I have created... There has got to be a better way.  : )  EDIT: Though this question is related to the question: , it is not a duplicate. The other question establishes (as I described in my 4th paragraph) that there is no way to run .desktop files DIRECTLY from a terminal and keep separate entries in the Unity launcher, either due to a bug in xdg-open or simply because that is not what they were designed for. Acknowledging that fact, this question asks for a different method for executing .desktop files from a terminal, by using the same (or similar) method the Unity Dash, Gnome-Do or Synapse uses.


Is there a 64-bit Windows 7 driver for a Logitech Wingman Formula Force wheel?

I've used my Logitech Wingman Formula Force wheel for more years than I can remember (I definitely had it back when I was playing Viper Racing, though).  Sadly, Logitech does not appear to support the wheel in any capacity, even as an analog input device.  At this point, I'm looking for any sort of driver that will take input from the device.  I don't care at all about the force feedback but, if it were available, I'd be happy to take it.  The target operating system is Windows 7 64-bit.  EDIT: Just in case I'm not clear above: I know where the standard driver download sites are and have tried them out.  The problem is that Logitech has officially end-of-lifed this wheel so their latest software specifically does not support it.  Sadly, their older software that does support it is 32-bit only so I'm out of luck on that front.


why am i getting a NullPointerException Java

So im writing a Java programming, I have 2 classes, and a class test that uses these 2 classes. running eclipseIDE, it keeps telling me i have a NullPointerException at the "s+=c.getName() + " " +... " this is a method in Student. public String getCourses()     {         String s = "";         for(Course c: this.courses)         {             s+=c.getName() + " " + c.getID() + " " + c.getScore(this.id);             s+="\n";         }         return s;     }  it calls this method that is in the Course class. public String getID() {     return this.id; }  i tried only doing getName(); it had no issue, however once i added getID() it became an issue. getName is the same type of code, it returns the "name" of the object as a string. name and id is "initialized" via a constructor Stacktrace: Exception in thread "main" java.lang.NullPointerException     at hw6.Student.getCourses(Student.java:47)     at hw6.CourseStudent_test.main(CourseStudent_test.java:100)  this is the getScore method public double getScore(String id)     {         int i = 0;         for(; i < this.students.length;i++)         {             if(this.students[i].getID() == id )             {                 break;             }         }         return this.scores[i];     }


Question about modulo of prime numbers (or prime factorization (I guess))

I would like to prove the following:  Let $p$ and $q$ different prime numbers and let $a$ be an integer such that $a < p$ and $a < q$.  I want to prove that  $$pq \; | \; a^{pq} - a^p - a^q + a$$  i.e. I would like to prove: $$ \frac{a^{pq} - a^p - a^q + a}{pq} \in \mathbb{Z}$$.  Can any body help me to prove this?


Why are there no spaces in Hangul-Words (XeLaTeX - xeCJK)

This is my minimal working example:  \documentclass{article}   \usepackage{xeCJK} \setCJKmainfont{Batang}  \begin{document}         나는 남자를 이다 \end{document}   As you see, there are spaces between the Korean words. I compiled with XeLaTeX => PDF with XeTeX Version 3.1415926-2.5-0.9999.3 (MiKTeX 2.9) in TeXnicCenter. However there are no spaces in the outputfile. Help would be greatly appreciated.


Weird phenomenon on aluminum laptop casing

A couple of days ago I observed a phenomenon which I'm not sure I understand correctly. My brother-in-law has recently bought an ASUS gaming laptop in an aluminum casing. When the power supply is connected and I swipe my finger across the casing on the outside, the motion is not smooth, as one would expect, but "bumpy" as if some force was acting on the finger and interfering with its motion. With the power disconnected the motion is smooth as with any other surface.   I've been thinking about a reasonable explanation and the only thing I've been able to come up with is this: the internal power supply circuit creates a magnetic field and when a conductive finger is moved through this field, circular electrical currents (eddy currents) are flowing through the tissues. This in turn, by Lenz's law, creates opposing magnetic fields and accounts for the "drag force" experienced by the finger. This would be analogous to the eddy current brake systems present in trains and streetcars.  Please, let me know what you think about this explanation. If you find it wanting, please suggest corrections and improvements.


How do you disable an application specific hotkey, for example, "Command-P"?

In many applications, Command-P is used to print.  My fingers are accustomed to emacs settings and reflexively press Command-P not for printing but for browsing history. It's annoying to see the print pop-up window every time when I press Command-P. I don't need a shortcut to print. How do you block a shortcut globally?


I have the following sentence:     No suit you buy off-the-rack will perfectly fit you. It has to be   made-to-measure, or you will have to get it adjusted at a credible   tailor. It is better to get it right the first time.   However, I am unsure whether I should use off-the-rack, made-to-measure, or simply off the rack and made to measure.


How to vertically center page title text within banner image (no flexbox/grid)?

I am working on a CSS only psd conversion and I need to center the banner text vertically in the middle of the banner image. Any suggestions how to accomplish without using flexbox and grid?   header {     background-image: url(../assets/main-banner.png);     background-size: cover;     background-repeat: no-repeat;     /* viewport (screen height), the el is now taking 90% of the browser height */     /* We are doing this since the  doesn't have a ton   of content and we want to be able to see the background image. */     height: 90vh;     padding-top: 30px;  }  h1 {   font-family: 'Iceberg', cursive;   font-size: 8rem;   text-align: center;;   line-height: 80px;   text-transform: uppercase; }  header h2 {   font-family: 'Montserrat', sans-serif;   font-size: 3.5rem;   text-align: center;   text-transform: none;   background-color: rgb(146, 0, 255);  }

Home

About

Blog

Contact

Thunder
Force
 Stadium

presented by hot cops


Strange behaviour in CENTOS 7 where binary is not available as root, but is available to user data process

In AWS EC2, I am using Centos 7, I observe strange behaviour where a binary for Hashicorp Vault CLI (/usr/local/bin/vault) is available during boot to commands I run in user data.  It is also available for users normally.  However, if I run sudo -i it is not available.  If I run sudo su - root, then it is available! Why would a command be available in user data as root, but not if I try to login as root using sudo -i?


\documentclass[12pt]{article}  \usepackage{amsmath,amsthm,amssymb,amsfonts} \usepackage{enumerate}  \newenvironment*{exercise}{}  \newcommand{\R}{\mathbb{R}}  \begin{document}  \begin{exercise}{1.10.} Show that $B=\{[a,b)\subset\R|a<b\}$ is a basis for a topology on $\R$.\\ \begin{enumerate} \item{stuff...} \item{stuff...} \end{enumerate} \end{exercise}  \end{document}   My main concern is that the list numbers in the list and the text in the instructions line up. That is that the S in show is lined up with the 1 and 2 etc in the list.


Calling functions in C++ function is of non-class type

I am very new to programming, especially in C++, and am trying to build my first project on my own. A budget program. Criticism is welcome. I'm using a constructor in my main file to call my functions from a separate class file. However, I'm getting an error that says the object that I'm using is "of non-class type 'PromptUser().'" Here is my code.  Main.cpp  #include <iostream> #include "PromptUser.h"  using namespace std;  int main() {     PromptUser pu();     pu.prompt();     pu.addPay();     return 0; }   PromptUser.h  #ifndef PROMPTUSER_H #define PROMPTUSER_H   class PromptUser {     public:         PromptUser();         void prompt();         void addPay();         float netPay = 0.00; //net pay         float netPay2 = 0.00; //2nd net pay         float totalPay = 0; // sum of all paychecks         int decision = 0; // variable to hold int decisions  };  #endif // PROMPTUSER_H   PromptUser.cpp  #include "PromptUser.h" #include <iostream>  using namespace std;   PromptUser::PromptUser() {  }  void PromptUser::prompt(){ //prompting the user for input cout << "This is a budget program. \n\n"; cout << "Please enter your net pay for the week: $"; cin >> netPay; //user enters first net pay cout << "Your net pay is $" << netPay << endl; //program displays net pay 1 to user cout << "Would you like to add another paycheck? | 1 = YES 2 = NO : "; //prompts user       to add another check cin >> decision; //user chooses yes or no  }  void PromptUser::addPay(){     //This needs to be in it's own function so it can be recursive     switch (decision) {      case 1://user enters a second net pay         cout << "Please enter the net pay for the second check: $";         cin >> netPay2; // user enters 2nd net pay         totalPay = netPay + netPay2; // total for pay is calculated         cout << "This is your total pay for this week: $" << totalPay;         break;      case 2:// user continues         break;      default:         cout << "Please enter a valid response | 1 = YES 2 = NO : ";         addPay();     } }   The error is being thrown in the main file. It will not progress past line 9 were it reads pu.prompt();   Not sure where I'm going wrong here.


How to treat a country name that has a plural meaning

I was wondering if there was a sentence that contains a country name (or generally a proper noun) that has a plural word in it - e.g., the United States or The United Emirates - how do we treat it? (Sorry if I sound non-technical, as I'm not exactly very good at language).     The United States of America have done something.   OR     The United States of America has done something.   which one is appropriate? Usually, I've been using "has" for countries (treating it as one entity).


Future soldier triumphs in arena vs aliens, results in human victory in the war

I remember reading this story many years back, and I vaguely started to recall it the past few weeks.  Here is the image that jump-started the recall process—    But for the life of me, I can't recall much else than what I've written below. It's starting to get on my nerves now, halp!   The story is set in the future, but the story describes space-war as if it was written a few decades back, so think more like Star Wars/Star Trek style writing rather than, say, Avengers/Guardians of the Galaxy. (I know I'm using movie analogies to describe a book, sorry, they are the best examples.) Protagonist is a run-of-the-mill soldier. (I think) Humans are at war with aliens, quite a prolonged war. (I think) He is suddenly thrown into an arena, where is made to fight aliens, one-on-one. Arena doesn't mean a colossuem-style building, its more like a empty grassland/marshy patch of land. Aliens also aren't like your typical little-green-men(this I'm quite sure of). I think they were different, maybe invertebrates the size of a large dog(But this could also be the image biasing my memory.) He begins with nothing but minimal clothing, and starts using sticks, stones and other things he finds around. I also think he fashions a sort of knife. He ultimately prevails. Finds himself back with his squad, and humans ready for their last stand, in an all-out face-off in space. Human ship fires first salvo, and hits one alien ship. But this blast jumps from ship-to-ship, destroying all alien ships. Protagonist realises he is the cause of the human victory, but I think he decides not to disclose it.   That's it. That's all I can remember. Anyone else remember reading anything like this?


What happens when I run the command cat /proc/cpuinfo?

What happens when I write cat /proc/cpuinfo. Is that a named pipe (or something else) to the OS which reads the CPU info on the fly and generate that text each time I call it?


What is the simplest biological organism from which a DNA sample has been or could be obtained?  Could the resulting DNA be processed and examined in such a way that the resulting information would give biologists a rudimentary understanding of life's minimal requirements?


Allow empty itemize/enumerate/description (no \item)

I am auto-generating a LaTeX document. The input data can possibly generate empty data, so that I am left with something like this in the generated TeX source:  \begin{itemize}  \end{itemize}   This leads to lualatex complaining when compiling (of course):      Misplaced \item   Is there a way to make it ignore any empty list (no \item) silently?  For clarification: I do have a lot of itemize lists in the document and some can be empty depending on my data. I know I could filter that before generation, but that would be more cumbersome than a potential LaTeX solution.


I'm currently working in the following Wilson's theorem excercise:  Being $p$ an odd prime. Let $x=((p-1)/2)!$ Using the fact that $(p − 1)! = (1(p − 1)) (2(p − 2)) · · · (((p − 1)/2)((p + 1)/2))$ show that: $$-1 \equiv (-1)^{(p-1)/2}x^2 \pmod p$$  I'm starting from: $$(1(p − 1)) (2(p − 2)) · · · (((p − 1)/2)((p + 1)/2))\equiv -1 \pmod p$$ My plan is to simplify terms on the left side to reach that $(p-1)/2$ which is the power of that $-1$, but I really don't know how can it be raised to that power, any hint or help will be really appreciated.


How to install a skin Cinnamon in Ubuntu 15.10

Please tell me how to install Cinnamon shell in Ubuntu 15.10


I saw several examples of user defined macros using \newcommand (without the *), and examples with \newcommand*.  Trying both in my test documents doesn't show any difference.  So why the asterisk?  What are its functions?  Should I care about it or not?  Here's a simple MWE to play with, in case it is usefeull here:  \documentclass[11pt,letterpaper,twoside]{book} \usepackage{lmodern} \usepackage{amsmath} \usepackage{mathtools}  \newcommand*{\bigs}[1]{\vcenter{\hbox{\scalebox{1.25}{#1}}}} % Why the *?  \begin{document}  Blabla bla bla blabla :     \begin{equation}         c \, \bigs( 1 + (x - y^2)(a + b) \bigs) = \tfrac{3}{4}.     \end{equation}  \end{document}


help me to find a volume of the ring shaped solid

A cylindrical drill with radius 5 is used to bore a hole through the center of a sphere of radius 8. Find the volume of the ring shaped solid that remains.  Alright, my thing is that i did not understand how to set the integral


Windows 8 opens notepad on boot- no startup entry found

I just upgraded from windows 7 to windows 8 and everything is working fine except notepad keeps opening on boot with a "access denied" window that comes up as well. I've ran MBAM and removed some junk, I've disabled every "file not found" item in autoruns as well as something that had a text/xml title in it and I've ran CCleaner a few times. Nothing is working, any help is much appreciated!


Find non-identical matrices such that one cannot be converted into another by rearranging rows and then columns (Counting problem)

Given $N \times M$ binary matrices (matrix containing only $0$'s and $1$'s), two matrices are called identical if one can be converted into the other by first permuting the $N$ rows and then permuting the $M$ columns of the resulting matrix. Find the number of non-identical matrices.  I'm not really sure of how to begin this problem either. It's some recursion (or composition of more than one recursion) and I can't figure that out. May I get some valid hints?


How can my 6 TB hdd display as full while there's 3,4 TB of files on there? It says 0 bytes available for some reason.


Simple floating point multiplication not giving expected result

When given the input 150, I expect the output to be the mathematically correct answer 70685.7750, but I am getting the wrong output 70685.7812.  #include<stdio.h>  int main() {   float A,n,R;    n=3.14159;    scanf("%f",&R);   A=n*(R*R);    printf("A=%.4f\n",A); }


My system has a Windows 8 dual boot with Ubuntu,but now when I boot in to Ubuntu only  desktop loads and nothing else. I can only open the terminal ttyand there's no launcher menu bar. The super key isn't working either.


How do I change the email address associated with my Stack Exchange OpenID?

I registered my Stack Overflow account using the Stack Exchange OpenID provider. I later changed my e-mail, but I cannot change the e-mail address associated with my OpenID for some reason. Why is that, and how do I change it? I logged in to Stack Exchange and it lets me change my password, but never my e-mail.


Requesting raw data from previously published research

I am working on a mathematical model to help explain some experimental results and generate new hypotheses. Unfortunately, I have neither the resources nor interest to gather experimental data, but in this particular sub-field publishing a model without showing its usefulness on some experimental data is not common.  There are several existing experimental findings that can be explained by my model. However, they are presented in other modeling papers and the raw data is not available with the paper or on the authors' websites. In the papers they only present partially-analyzed data (for instance, they show results averages over participants, but not individual participant's results; or sometimes they only give the results of statistical tests).   I want to contact the authors for their raw data and have 3 related questions:   What is the protocol for contacting by email to ask for authors' raw data? Is this common?  Will the researchers expect to be invited on-board as co-authors? Or is a citation to their papers, and an acknowledgement of the form "AK would like to thank X, Y, Z for providing their raw data" sufficient? If my model (without fits to specific data) is in a pre-print state then should I send a pre-print to the authors I contact? What if the pre-print points out weaknesses in their approach to modeling similar problems?


Find the probability of error of this channel

I am working on the following exercise:      Let $\mathcal{C} = (\mathcal{X} , P, \mathcal{Y})$ be a channel with $\mathcal{X} = \mathcal{Y} = \{0,1\}$ and transition matrix       $$ P = \begin{bmatrix}  7/8 &1/8 \\ 1/8 &7/8  \end{bmatrix}.$$      The input probabilities are $P[X = 0] = 0.3, P[X = 1] = 0.7$. Each input bit is encoded by   transmitting it through the channel $2n + 1$ times, and the decoding function is the majority   bit (the bit $0$ or $1$ that appears more times in the sequence of $2n + 1$ output bits).   Let $f(n)$ be the probability that the decoded bit is different from the encoded bit.      Express $f(n)$ as a sum of the form $f(n) = \sum_{k=\ldots}^\ldots (\ldots)$.   My attempt: From $P$ we read that the probabilites for the channel makes a wrong output, i.e.: $p(0 \mid 1)$ and $p(1 \mid 0)$, are both $1/8$. So the error probability is given by the probability that at least  $n+1$ many mistakes occur. We can calculate this via  $$\sum_{k=n+1}^{2n+1} 0.7 \cdot p(0 \mid 1)^k + 0.3 \cdot p(1 \mid 0)^k = \sum_{k=n+1}^{2n+1} (1/8)^k$$  Is this correct?


Dual national (France-Philippines) travelling to a third country (Morocco, with previous travel history)

Been reading the threads here for a while and this is the first time I am posting.   I would like to ask for your help in finding an answer to my question:   I am Philippine-born and a dual citizen of both the Philippines and France.  I would like to travel to Morocco once again, where I have previously traveled as a Philippine citizen prior to getting my French passport (Philippine passport holders get 90-days visa free).   My question is this:   I know that I have to exit and re-enter France using my French passport (I know this thanks to this forum), but:    Can I or should I use my Philippine passport upon entering Morocco (given my previous travel history to the country as a Philippine citizen)?  Were I to use my French passport to enter Morocco (it's also 90-days visa free), would the Moroccan authorities question me on this?    All my details - first and last names, date and place of birth - are exactly the same on both passports.   Thanks in advance!


The Description of the Variable of Interest: Binomial VS Negative Binomial Discrete Random Variables

Does it makes sense to say that: In a binomial distribution we looking for the number of successes in a given number if trials, and in a negative binomial distribution we are looking for the number of trials until a given number of (edit:) successes are achieved? Thanks


jquery/ajax - .load keeping the same JQuery

Basically,  What I'm trying to do is have a button which when you click, loads up another .html form  which has a button to the next .html page and so on and so on..  The first part works, and, for the form to be loaded, however, when the next form is loaded the jquery does not work for the button.. For example:  index1.html:  <button id="LoadForm" value="form1.html">Load the form</button>  $(document).ready(function() {     function foo(x) {         $('.content').load(x);     }      $('#LoadForm').click(function() {         var ele = $(this).attr("value");         $(this).hide();         form(ele);     }); });    In form1.html:  <button id="LoadForm" value="index.html">Go to form2..</button>  Where am I going wrong here?


What is the scope of a java variable in a block?

I know in c++ variables have block scope, for example, the following code works in C++  void foo(){     int a = 0;     for(int i = 0; i < 10; ++i){         int a = 1; //re-define a here.     }   }  but this snippet doesnt work in java, it reports "duplicate local variable a", does it mean java variables dont have BLOCK scope?


Find an Unbiased Estimator of a Function of a Parameter

Suppose that $Y_1,...,Y_n$ is an IID sample from a uniform distribution $U(\theta,1)$  The method of moments estimator is $\hat \theta=2\bar Y-1$.  Find an unbiased estimator, call it $\hat \beta$, of the quantity:  $$\frac{1-\theta}{\sqrt{3n}}$$  I noticed that if I take the expected value of this arbitrarily chosen estimator: $$\frac{1-\hat \theta}{\sqrt{3n}}$$ I end up with $$E\left( \frac{1-\hat \theta}{\sqrt{3n}} \right)=E\left( \frac{1-(2\bar Y-1)}{\sqrt{3n}} \right) =\frac{1-\theta}{\sqrt{3n}}$$  So I don't quite understand if the goal here is for the expected value of my estimator to equal EXACTLY $\theta$ or if it's supposed to equal the original function of $\theta$.  So this abitrarily chosen estimator of mine; is an an unbiased estimate of the given quantity; is it the $\hat \beta$ I seek?


Why can't I see or share replays in Clash of Clans?

When I open up my defense messages and attack messages, replays are not available, even my most recent attacks. Any help?


I want to execute the awk command with long parameters,like this:  ssh host "netstat -rn|awk 'NR!=1 && NF>=6 && $1!="Destination" {printf "%-15s %-20s\n", $1, $2}'|sort -f "   but there are some errors:     syntax error The source line is 1.    The error context is           NR!=1 && NF>=6 && >>>  != <<<     awk: Quitting    The source line is 1.   So,how can I fix it?


Setting a variable equal to another variable

I have a few questions about setting a variable equal to another variable in JavaScript.  Let's say we create an object, a and set b = a.  var a = {   fname: "Jon",   lname: "Smith",   age: 50 }  var b = a;   I understand that if we change one of a's properties b will also be changed because when we set b = a we don't clone a's data, but rather create a reference to a's data. For example if we set a.fname = "Sarah", the new value of b.fname will be "Sarah".  If we try to "clear" a though by setting a = {}, object b will remain unchanged. I don't understand why manipulating an object in this way produces a different result than in the 1st example.    Also I have a question about the following scenario.   var x = 10; var z = x;   If we then set x = 20, the value of z remains unchanged. Based on the behavior described in my 1st question, one would think that the new value of z would reflect the new value of x. Could someone please explain what I am missing here?  Thank You!


How can I highlight software commands as code in text?

I want to highlight some software commands as code in my text without any line break or any new paragraph for the code. Is there any possible way to do so?


Photons are faster than the speed of light because they travel in transversal waves?

This is my first time posting here, I am a school student who is just curious. So today I was wondering about how light works and how it travels, and this thought came to my mind:  Light is made of photons traveling in transversal waves, doesn't this mean that photons are moving in longer distances than light itself because photons don't move in a straight line, while taking the same time that light does to reach the same position, so does this mean that the speed of photons is actually greater than the speed of light?


Is 110 degrees fahrenheit on average bad on a 2019 MacBook Air? (And other problems)

I've been using my MacBook air 2019 for quite some time now (9 months) and I've been getting 110 degrees fahrenheit on average with simple use like google chrome or safari. In fact, the highest I have gotten it to reach was 184 degrees fahrenheit. Is this normal? Does anyone else get this issue? Do you think a hard reset could solve this issue? I would like to mention that I have not downloaded any software that takes up much battery. Also, when I'm only using google chrome, my mac tends to only have 100 or fewer megabits of free ram. Another thing that I would like to mention is that my MacBook's REAL battery capacity has been going down by 2% every month. Does anyone know why I'm having all of these problems? Any response would be helpful! Thank you!


I have this equation:  \begin{equation} \begin{split} t(E,T)&= \left[ A  \\ &\quad +B \right] ^{-1} \\ &\quad \ln\left(  C \right)  \end{split} \end{equation}   But it says that there is an error. This error because I put the end bracket (right one) in the second line. I need to keep it in the second line. Do you know some idea of solving this issue?  Thanks in advance.


product of divisors of n as a power of n.

I am trying to prove that  $$\prod_{d|n}{d}=n^\frac{d(n)}{2},$$ where $d(n)$ is the number of divisors of $n$.  My initial thought was to say let $\{d_i\}_{i=1}^k$ be the set of all divisors of $n$.  This means that $d(n)=k$.  But $d(n)=(\alpha_1+1)(\alpha_2+1)...(\alpha_m+1)$ when we define $n=p_1^{\alpha_1}p_2^{\alpha_2}...p_m^{\alpha_m}$.  So $m<k$.    Now the divisors of $n$ are just the product of prime powers with some combination of the primes/prime powers removed.  For example, a divisor, $d_i=\frac{n}{p_j^{\alpha_l}}$.  The product of these divisors will yield $n^k$ in the numerator, and $n^i$ in the denominator with $i<k$ since the denominator will contain all $p_j^{\alpha_j}$.  But how to show that it is exactly $n^\frac{d(n)}{2}$ is escaping me.


Where can I ask a question that demands different opinions?

Stack Overflow doesn't really support questions that do not have a specific answer, such as "What are the features you would want in a programming language that are lacked by most programming languages?". Is there a Stack Exchange site or other external site specifically made for this?


Why do colors slightly change when copying from Illustrator to Photoshop?

I want to copy a object from Illustrator and paste it into a Photoshop document with the same color mode and profile.    When I use the Eyedropper Tool on the pasted object in Photoshop the color seems to be slightly off.    Both the Illustrator and the Photoshop document have their Color Mode set to RGB.    Both Applications are using synchronized color settings.    This also happens when the object is dragged or Placed. It does not happen when copying from Photoshop to Illustrator.  Could there be a problem with my color management settings? What actually happens to the color information, when it is copied from one application to another?


Limit of $|\mathrm{Re}(a^n)|$ where $a=\frac12(1+i\sqrt7)$

I must prove that with $a = \frac12(1+i\sqrt7)$ we have : $|\mathrm{Re}(a^n)| \to \infty$ I tried to use linear algebra by writing $u_n,v_n = Re(a^n), Im(a^n)$ and solve the homogeneous linear recurrence to find a new expression of $u_n$ but I am back to the starting point... The eigen values are as expected $a$ and $\bar{a}$ I also tried to compute $cos(n \times arg(a))$ but it is the same. Any idea?


Test tools to detect bad sectors on hard disk?

I recently bought a new 1TB hard drive and I would like to do a couple of tests before I start using it (I prefer to know if there are problems or there may be problems now before it is too late).  The question is: How useful or how to scan it?  In Windows when a unit is formatted with zeros, if there is a defective sector, the unit automatically reassigns it for a new one (tests performed in this scenario). In Linux I'm not sure if this happens and I do not have to do these tests anymore. So, I can think of some options and at the same time some doubts:   Format the unit with zero fill. If there are bad sectors, will they be replaced by new sectors automatically as in Windows? Execute the badblocks tool. This tool although I consider it very good, for a new disc I do not know if it is too exaggerated since it tests with 3 different patterns; demanding more time and wear, perhaps, unnecessary. Can only 1 pattern be programmed? Would it be advisable for this case? Run tool F3 - Fight Flash Fraud. This tool writes a file occupying the entire space of the unit and then checks it, so that the following tests (write / read / test) would be executed. It is used to detect fraudulent pendrives and because after writing the file it proves it, I suppose that this would detect any error in sectors of the surface. For what I think is a good alternative for testing.   These are the options that occur to me and I would like to be told, which of these options would be best applied in cases of new discs and also in cases of used discs and why.


installing ubuntu with windows installer

if I use this method to install ubuntu on my windows 7, will I lose windows 7 or will it dual boot with windows and ubuntu


I installed Compiz on my laptop running Ubuntu 11.10 last week. The way I installed it was kind of different, I opened up a terminal and typed this command:       sudo apt-cache search compiz    After that, I installed all the packages that appeared in the terminal window. I enjoyed all the effects of Compiz like Paint fire on screen, Desktop Cube, but I can't help  but noticing people having some extra plugins which I don't have, such as Atlantis, Snow, Tile and much more.  Where are they getting all those plugins and how do I get them?


I know about this:   I read it and other questions, and I still haven't satisfied my concerns. I understand that the type cast will occur implicitly, but the error is something I do not understand no matter how much I read these arguments.  The main argument is that int and pointer may have different sizes. For the sake of an example, let size of int* be 8 and size of int be 4.  int *x = (int*) malloc(sizeof(int));   First off, the number of bytes allocated by malloc() is 4, although the variable x will store a pointer of size 8 bytes.   I'm explicitly casting the return of malloc to (int *), which — by the way — has size 8. How come there's any loss of bits here?


Stuck in a loop at login prompt after changing shell to zsh

I changed my default shell from bash to zsh and after rebooting, I am stuck in a loop where it brings me back to the login prompt after my password is entered correctly - cannot log into root either.   Because I am at the login prompt I am unable to edit anything so will need a live usb, but not sure what else to do/how to go about fixing the issue  EDIT: As requested, I log into tty1 which is there by default, I enter in my username and password as usual but when I do this it displays some text too quickly to read then goes back to the same prompt for my username again. Usually it would take me into a terminal after that where I would start xfce with startxfce4 command  To change the shell I did chsh /bin/zsh  I may have also run it as sudo, however I did this yesterday and can no longer recall if I did this or not.


What is the maximum reach distance of electric field?

if i charge small object by removing electrons and put that object in the middle of huge vacuum chamber (million of light years in size) does the electric field lines of that charged object still be able to reach the walls of vacuum chamber? and the electrons in walls (or air outside) will experience force? and if so than at what speed? faster than light?


Preview + tikz extraction no longer working (TL 2014)

I'm trying to regenerate an old document where I used to extract tikz figures using preview and I'm getting into a problem where preview extracts every page of the document rather than just the tikzpicture environments. The setup for preview are in this , included .   Here's the way I invoke the extraction:   pdflatex -file-line-error -halt-on-error '-interaction=nonstopmode' \   '-output-directory=src' '-jobname=ocamlunix-image' \   '\PassOptionsToPackage{active}{preview}\input{src/ocamlunix.tex}' This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)  restricted \write18 enabled. entering extended mode LaTeX2e <2014/05/01> Babel <3.9k> and hyphenation patterns for 21 languages loaded. (./src/ocamlunix.tex (/usr/local/texlive/2014basic/texmf-dist/tex/latex/memoir/memoir.cls Document Class: memoir 2013/05/30 v3.7b configurable book, report, article docu ment class (/usr/local/texlive/2014basic/texmf-dist/tex/generic/oberdiek/ifpdf.sty)  [...] Output written on src/ocamlunix-image.pdf (160 pages, 849607 bytes).   Any hints about what may be going on ?


Let $f = x^3 + x + 1$. How many elements does $\mathbb{Z}_2[x]/(f)$ have? Write out all of the elements of this field, and find the inverse of each nonzero element.  I know that $f$ is irreducible in $\mathbb{Z}_2[x]$ and thus has no roots. How would I calculate what kinds of elements are contained in $\mathbb{Z}_2[x]/(f)$? What's the form of elements in $\mathbb{Z}_2[x]/(f)$?


What is the difference between "general" and "generic"?

I am finding an example to clearly differentiate and demonstrate the use of these two words. At the moment, I am relying more on my feelings to decide which word to use. Say I am writing an article that talks about a solution or framework, should I say:   It is a general solution to kill computer virus. It is a generic solution to kill computer virus.   I want to show that the framework is normal, does it job, nothing fancy and that's about it. If the two sentences above are correct, what are the perceived meaning of each sentence?


I'm trying to install R. I tried the instructions from the best answer on , without success. I'm using ubuntu 16.04.6 LTS 64-bit.  I tried the method but my terminal window seemed to do nothing, even though when I tried to close the window it says there were processes running. I tried it a few times. And now I have an error message in the thin grey tray up top:  An error occurred, please run the package manager from the right-click menu or apt-get in a terminal to see what is wrong.    The error message was:   Error: Opening the cache (E:type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/r-cran.list,    E:The list of sources could not be read.)  This usually means that your installed packages have unmet dependencies.   Starting the package manager (through the notification) didn't do anything, i got this message (image attached):  E: Type 'sudo' is not known on line 1 in source list/etc/apt sources.list.d/r-cran.list   E: The list of sources could not be read. Go to the repository dialogue to correct the problem.   E:_cache->open()failed, please report.    I don't know how to go to the repository, or how to report. How do I fix this issue?  I also tried the instructions on  as well, copying the source and pasting into a terminal, which is probably not how to do this, but I don't know how to access the /etc/apt/sources.list file.  @heynnema when I ran the code it says  cat:  /etc/apt/sources.list.d/r-cran.list: No such file or directory  @heynnema the fix didn't work here is the output from terminal:  (gedit:2641): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files  ** (gedit:2641): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported  ** (gedit:2641): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported  ** (gedit:2641): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported  ** (gedit:2641): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported  ** (gedit:2641): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported helwalaura@Galactica:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 Executing: /tmp/tmp.L1dGqRuvRD/gpg.1.sh --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 gpg: requesting key E084DAB9 from hkp server keyserver.ubuntu.com gpg: key E084DAB9: public key "Michael Rutter <marutter@gmail.com>" imported gpg: Total number processed: 1 gpg:               imported: 1  (RSA: 1) helwalaura@Galactica:~$ sudo apt-get update E: Type 'sudo' is not known on line 1 in source list /etc/apt/sources.list.d/r-cran.list E: The list of sources could not be read. helwalaura@Galactica:~$    @heynemma here is the result from cat /etc/apt/sources.list.d/r-cran.list   helwalaura@Galactica:~$ cat /etc/apt/sources.list.d/r-cran.list  sudo tee /etc/apt/sources.list.d/r-cran.list sudo cat <<EOF | sudo tee /etc/apt/sources.list.d/r-cran.list deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/   @heynnema when I deleted the other 2 lines of code, this showed up in terminal window:  (gedit:3157): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files  ** (gedit:3157): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-spell-enabled not supported  ** (gedit:3157): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported  ** (gedit:3157): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-position not supported


Determine whether the series $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ converges or diverges. If it converges, find the bounds for the sum of the series. A) Converges, $\frac3{2}$ < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < $\frac5{2}$ B) Converges, 2 < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < 3 C) Converges, 4 < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < 6 D) Converges, 6 < $\sum_\limits{k=1}^∞ \frac2{k^{3/2}}$ < 8 E) The series diverges I know the series converges. Using p-Series, p=$\frac3{2}$ meaning that p>1 therefore the series converges. However, I don't know how to find the bounds for the sum of the series


Accepted answer on very popular question not in the first place

On this very popular question on Unix.SE: ,  the answer by Marnanel Thurman (with approximately 1.6k votes) shows before the accepted answer (by Jaroslav Kucera, with approximately 300 votes).    I am on the sorted by votes tab, which should list the accepted answer first.   Is this a bug, or was it intentionally modified for this question specifically?


Toilet in spare bath runs automatically for 2 seconds about every 20 min!

This started a few weeks ago in the spare bath room, I replaced all internal parts in tank and problem still present. The main bath which is closer to main water source operates fine, what could be my problem?


.answered-accepted style isn't defined in StackOverflow mobile site

In my opinion, mobile site has updated in the last days. And I have noticed one issue, in user profile page we can't know if our answer is accepted or not. But, in full version and the previous mobile version it was working. Here is the snapshots:  In full site:      In mobile site:    If you can see four answers are accepted by the answerers in full site. I have inspected these elements and the class name is answered-accepted. It is also added to the elements in mobile site. But, isn't defined there.  It is not very big thing, but I hope so it will be fixed. ;)


I am playing pokemon go but suddenly I can't catch any Pokemon

Hello There I am playing  pokemon go But suddenly i can't Catch any pokemon   i am trying form 2 hrs   Even 10 cp pokemon run away   please help me


How can we make ui:inputselect in lightning to dynamically get values from an object's picklist options?

I have a requirement to create a Lightning component that contains a ui:inputselect tag which will automatically fetch out its options from a custom pick list of an Object. How can this be achieved?


If this is too broad a question, I'm sorry.  I'm looking for some solved exercises in  to get some practise using it. Do you have any suggestions?


On my MacBook Pro Retina late 2014 running OS X Yosemite, there's something weird going on.  If i look at the storage tab in the "About my Mac" menu, I use only 67 gigabytes of storage but it says 151 gigabytes are used on apps alone.   Maybe this screenshot is a better explanation:    Is someone else experiencing this problem?


What does it means when adding import static?

I saw some code over the web like:  import static org.mockito.Mockito.*;   Can someone please tell me what this static means in this case?


GrassGIS process for DTM of UAV point cloud

Using grassGIS I am attempting to produce a DTM (remove buildings and vegetation) from the las point cloud. Unfortunately the point cloud exported from  does not distinguish first and last pulses so the method based on  does not work.    I need an alternative method/tool particularly for removing buildings?  Any recommendations to transform the z-values relative to the drone take-off location to absolute ones (e.g.: sea-level,..)?


points are replaced by a lower underline in P $ _POST

On the local server ubuntu apache, PHP7.0, mysql when I pass the $ _POST variable to the value wefwe.wf, then on the server I get wefwe_wf, how to do it normally, that is, if wefwe.wf betrayed that and in $ _POST wefwe.wf in php.ini all so  register_argc_argv = On register_globals = On  magic_quotes_gpc = On


unable to install from canonical partners after update

I had ubuntu LTS and decided to upgrade to the normal version. after than I'm unable to install anything that requires canonical partners. I can select the option in software source, but I'm still unable to install. when I try to update this is what I get: ~$ sudo apt update Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease Hit:2 http://archive.canonical.com groovy InRelease Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu groovy-backports InRelease Get:5 http://archive.canonical.com/ubuntu maverick InRelease [6,170 B] Get:6 http://archive.ubuntu.com/ubuntu groovy-security InRelease [108 kB] Err:5 http://archive.canonical.com/ubuntu maverick InRelease   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 Reading package lists... Done W: GPG error: http://archive.canonical.com/ubuntu maverick InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 E: The repository 'http://archive.canonical.com/ubuntu maverick InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  The last thing I tried was install the snap-store base on something i read online. It didn't change a thing. At this point I'm thinking in downloading and installing clean from a USB but I'd prefer not to. any sugestions?


$f:[a,\infty)\to\mathbb R$ be continuous such that $\int_a^\infty f(x)dx$ exists finitely , then $\lim_{x \to \infty}f(x)=0$ ?

Let $f:[a,\infty)\to\mathbb R$ be a continuous function such that $\int_a^\infty f(x)dx$ exists finitely , then is it true that $\lim_{x \to \infty}f(x)$ exists and is equal to $0$ ? If not , then what if we restrict the range of $f$ to be non-negative only ?


Add a point to the Moore plane to get a normal space

I've got the following question, and I'm having trouble with it. I was hoping that someone here could help me.     Show that by adding one point to the Moore plane $\mathbf{M}$ one can obtain a normal space of which $\mathbf{M}$ is a subspace.   My definition of the Moore plane is just like on . That is, as a set $\mathbf{M} = \{ (x,y) \in \mathbb{R}^2 : y \geq 0 \}$, the points $(x,y)$ for $y > 0$ have as basic open neighborhoods the usual open discs centered at $(x,y)$, and the points $(x,0)$ have as basic open neighborhoods open discs of radius $r>0$ centered at $(x,r)$ together with the point $(x,0)$.  I know that $\mathbf{M}$ is not normal (and for us normal implies Hausdorff), since, for example, the closed sets $A = \{ (x,0) : x \in \mathbb{Q} \}$ and $B = \{ (x,0) : x \in \mathbb{R} - \mathbb{Q} \}$ cannot be separated by disjoint open sets. I know that $A$ and $B$ cannot both be closed in this new space. But I'm having trouble figuring out how to add a point to $\mathbb{M}$ to get a normal space.   Any help would be appreciated!


What does it mean for my manuscript if the publisher's website says "decision letter being prepared"?

I submitted a paper to Physics of Plasmas. After 101  days the current stage says     decision letter being prepared.   And there is bold sentence saying     days to render final decision 101.   My question is:   Has the journal already made a decision regarding the paper or is the review process ongoing? Because not once it came to me for review. Acceptance in one go is rare so does it mean a rejection?


Why does this code work on my local machine but not on Leetcode?

I'm solving the Defanging an IP Address Question on Leetcode, and it works fine when I run it locally: char * defangIPaddr(char * address){     char *defangedAddress;     defangedAddress = malloc(sizeof(address) + 10);     int j = 0;          int length = strlen(address);     for (int i = 0; i < length; i++)     {         if(address[i] == '.')         {             defangedAddress[j] = '[';             defangedAddress[j+1] = '.';             defangedAddress[j+2] = ']';             j = j+3;         }         else         {             defangedAddress[j] = address[i];             j++;         }     }     return defangedAddress; }  But I get this error when I try to run on leetcode: ================================================================= ==33==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x603000000022 at pc 0x000000402033 bp 0x7ffdcaf4f350 sp 0x7ffdcaf4f340 READ of size 1 at 0x603000000022 thread T0     #3 0x7f741cc6b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) 0x603000000022 is located 0 bytes to the right of 18-byte region [0x603000000010,0x603000000022) allocated by thread T0 here:     #0 0x7f741dc86f88 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10bf88)     #3 0x7f741cc6b82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f) Shadow bytes around the buggy address:   0x0c067fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0x0c067fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0x0c067fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0x0c067fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   0x0c067fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 =>0x0c067fff8000: fa fa 00 00[02]fa fa fa fa fa fa fa fa fa fa fa   0x0c067fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa   0x0c067fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa   0x0c067fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa   0x0c067fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa   0x0c067fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa Shadow byte legend (one shadow byte represents 8 application bytes):   Addressable:           00   Partially addressable: 01 02 03 04 05 06 07    Heap left redzone:       fa   Freed heap region:       fd   Stack left redzone:      f1   Stack mid redzone:       f2   Stack right redzone:     f3   Stack after return:      f5   Stack use after scope:   f8   Global redzone:          f9   Global init order:       f6   Poisoned by user:        f7   Container overflow:      fc   Array cookie:            ac   Intra object redzone:    bb   ASan internal:           fe   Left alloca redzone:     ca   Right alloca redzone:    cb   Shadow gap:              cc ==33==ABORTING  I tried installing GDB on my local to debug, though, well, I get a GDB error: (No debugging symbols found in ./defanging-an-ip-address)  And I've seen Valgrind but not had a lot of experience in it, so I'm totally blanking on how to debug and figure this out. I know I can solve it in another language (I have some experience in JS, PHP, Python), but I want to nail C and hence trying to figure out where I'm going wrong and what I need to do to fix it, without getting discouraged and losing hope. Thanks!


What to look for when buying a light microscope?

I am a science lover and want to buy a microscope to explore things around me. Like studying cell structures, microorganisms, blood and plants. It would be great if there is way to photograph slides. Just curious to know and explore things around me.  I want to know which features I should consider while buying it?


In Bell's inequality, why is the expected correlation given by $C_q(\mathbf a,\mathbf b)=-\mathbf a\cdot\mathbf b$?

In its , wikipedia states  that the value of the correlation: $$ C_q(a, b) = \left\langle A \left|(\boldsymbol\sigma \cdot \mathbf b)^{(2)}(\boldsymbol\sigma \cdot \mathbf a)^{(1)}\right| A \right\rangle $$ is $$ C_q(a, b) = -\mathbf a \cdot \mathbf b $$ without any reference nor explanation. I'm interested in understand these expressions and how to pass from first to second one. Please, could someone provide an explanation or proof, or a reference to a free text where this explanation could be found. At least, a key term that I can use to Google for it :-). No success with "antisimetric spin particles correlation" nor similars.


Is there an implicit default constructor in C++?

In the book I'm reading at the moment () it says that if you don't declare a default constructor for a class, the compiler supplies one for you, which "zeroes out each data member". I've experimented with this, and I'm not seeing any zeroing -out behaviour. I also can't find anything that mentions this on Google. Is this just an error or a quirk of a specific compiler?


Through googling (the thing that one should do before asking a question) I found a site paleo.stackexchange.com, which redirects to paleohacks.com. It does not seem to have any relation to the Stackexchange network, and it looks like it belongs to Answerhub (link present in the footer).  What is this page? If it does not belong to Stackexchange, why does it forward to this page?


How to assign rows in multiples of a number (Excel/Google Docs)

For example, I want the first entry in Column B (B1) to show A5, then B2 shows A10, then B3 shows A15.  How would I go about doing this?


Display object label (using blenderGIS addon) in final render

I'm using the blenderGIS addon for some bathymetry data to show to clients with sample locations. It's brilliant but I have a small problem.  I can fix it manually but it's tedious when there are many many objects.  Each object needs a label, when I import the objects they're named as I want to display them so by:  Clicking on the object then going on the menu >object>display and ticking "name" they're all labelled in the 3D viewport.   Each label faces the camera at all times. However I can't find an option to display them in the final render  Is the only way to manually create text for each object and get them to face the camera?


Who were the Kingsguard escorting Cersei?

This pertains to Season 6 and Season 7 of Game of Thrones if you have not caught up this point... Beware the Spoilers! Now to the question...  During the scene where Cersei sits on the Iron Throne and is "sworn in" we see her escorted by seven members of the Kingsguard. Now this is what I would expect as that is the correct number. However, I have no idea who they are!                                The books pay more attention to detail in this area, but the show is also diverging and outpacing in this regard. We can see that a few of the names are not possible on the show. I have listed the names from the books and given why the reason they could not be members on the show in bold.  Ser Jaime Lannister, Lord Commander - Stripped of title Ser Loras Tyrell - Dead and also was never a KG on the show. Ser Osmund Kettleblack - Possible, but not mentioned by name Ser Balon Swann - Possible, but not mentioned by name Ser Meryn Trant - Dead Ser Boros Blount - Possible, but not mentioned by name Ser Robert Strong (aka Zombie Mountain) - Confirmed  I know it can be confusing mixing the books and shows, but the question still remains the same... Who are the current members of the Kingsguard? Bonus Question: Who is the Lord Commander, if any? ETA: This question can also apply to the Kingsguard escorting her throughout Season 7.


I'm trying to print an array of linked list in java, but I get a "NullPointerException" error

I'm relatively new to programming and here I'm basically making an adjacency list (adjacency graph concept), using and array of linked list.  Scanner newSC = new Scanner(is_not_a_file);         int noOfNodes = newSC.nextInt();         LinkedList<Integer>[] adjlist = new LinkedList[noOfNodes];         int i = 0, m = noOfNodes;         while(i<=8){ //0 to 8. There are 9 lines of data in the text file              //(SmolFile.txt) after the first line (nOfNodes, which is 6).             int temp = newSC.nextInt();             int temp2 = newSC.nextInt();             if (adjlist[temp] == null) {                 adjlist[temp] = new LinkedList<Integer>();             }             adjlist[temp].add(temp2);             i++;         }         System.out.println("Adjency list with length of "+adjlist.length+": ");         for(int x = 0;x<adjlist.length;x++){             System.out.print(x+"-->");             System.out.print(adjlist[x].toString());             System.out.println();          }   I get the error on the "System.out.println(adjlist[x].toString());", which is a NullPointerException. But I have no idea why it should have such an error given the array has a length of 6 elements and the "x" is stopping at x=5  The error output:  0-->[3, 1, 5]  1-->[4, 5]  2-->[4]  3-->[4, 5]  4-->[5]  Exception in thread "main" java.lang.NullPointerException     at cselab1.CSELab1.main(Work42.java:80) 5-->C:\Users\Lenovo\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)  the "5-->" coming in the line of "C:\Users\Lenovo..." is a visual glitch, and not the problem. Its just that when x = 5, I have a null pointer exception.  For reference, the adjacency graph is "Directed" and the textfile contents than I'm reading from is:  6  0 3  0 1  0 5  1 4  1 5  2 4  3 4  3 5  4 5  Here is the adjacency matrix that runs from the same text file, for a visual representation:      0  1  2  3  4  5  0|  0  1  0  1  0  1   1|  0  0  0  0  1  1   2|  0  0  0  0  1  0   3|  0  0  0  0  1  1   4|  0  0  0  0  0  1   5|  0  0  0  0  0  0   I don't know where I'm doing wrong on printing it. Any advice will be heavily appreciated. Thank you.


What can I do to lift a 10 year ban for making a mistake in my UK visa application?

I am a Nigerian citizen.  In 2007 I was twice denied a visa to the UK.  Recently I was filling out an application for another UK visitor visa and by mistake I answered no to the question whether I had ever been denied a UK visa, instead of yes.  When reviewing my application, the visa officer found out about the previous visa rejections and as a result I got a 10 year ban on travel to the UK.  What can I do to lift my 10 year ban?   Will this ban affect my chances of obtaining a visitor visa to the USA?


How do I make pages which were "intentionally left blank"?

I have a scrbook document with an openright option, i.e. every once in a while a blank left page appears in the document. Not that I really want to do this, but how could I include the infamous "This page has been intentionally left blank" in those blank pages cleanly, i.e. without too many hacks?  Bonus points for including a different famous quote on each blank page instead of the dull default ;)


Prove that every prime larger than $3$ gives a remainder of $1$ or $5$ if divided by $6$

Can we prove that every prime larger than $3$ gives a remainder of $1$ or $5$ if divided by $6$ and if so, which formulas can be used while proving?


documentclass[border={5mm}]{standalone} \usepackage{tikz}  \begin{document} \begin{tikzpicture}[scale=1,     default rectangle/.style={rectangle, draw=black,thin, minimum size=1cm},         ] %---------------------------------------------------------------------------- % fuel Assembly %---------------------------------------------------------------------------- % Water around the assembly   \foreach \x in {-10,-5}{     \foreach \y in {-1,4}{       \draw[black,very thin, fill=blue!50!white] (\x,\y) rectangle (-10,4);  % side plate left         \foreach \x in {-9.9,-9.4}{          \foreach \y in {-0.9,3.9}{                  \draw[black,very thin, fill=gray!20!white] (\x,\y) rectangle (-9.4,3.9);  % side plate right             \foreach \x in {-5.6,-5.1}{             \foreach \y in {-0.9,3.9}{                     \draw[black,very thin, fill=gray!20!white] (\x,\y) rectangle (-5.1,3.9);  % 19 fuel plates                  \foreach \position in {(-5.6,-0.8)}{                  \draw[black,very thin, fill=gray!50!white] \position rectangle (-9.4,-0.7);                     }                 }               }              }            }          }        }   \end{tikzpicture}  \end{document}   I am trying to reproduce the picture of a fuel assembly below. My problem is to repeat the 19 plates of the assembly using the loops, i.e. \foreach. Is there a way to avoid repeating the use of \foreach loop for all the 19 plates? Basically I need to build the plate once and just repeat it 19 times as in the attached picture. Thanking you in advance for your assistance.


How to change subitem bullets from square to minus in Beamer?

How to change subitem bullets from square to minus in Beamer ? (setbeamertemplate) I'd like a small horizontal line, showing like a minus symbol. Just simple char: -.  I know that there are : triangle, square, and ball.  The question is a new question, and it is different compared to other ones. It is specific to given issue.  \documentclass[bigger]{beamer} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx}    \setbeamertemplate{itemize items}[triangle] \setbeamercolor{itemize item}{fg=red}    \setbeamertemplate{itemize subitem}[square] \setbeamercolor{itemize subitem}{fg=red}  \begin{document}   \begin{frame}{Introduction} \begin{itemize} \item 1 \item 2 \item 3 \end{itemize} \end{frame}  \end{document}   The improved version looks like this but it has issue with page numbering:  \documentclass[12pt,t]{beamer}  \usepackage{url} \usepackage{hyperref} \usepackage{graphicx} \usepackage{grffile} \usepackage{color}  \usetheme{CambridgeUS} % %gets rid of bottom navigation bars, then reset with {} \setbeamertemplate{navigation symbols}{} \setbeamertemplate{headline}{}{} \addtobeamertemplate{headline}{}{\textcolor{white}{\rule{\paperwidth}{5pt}} }  \setbeamertemplate{footline}[frame number]{} \usebackgroundtemplate{\includegraphics[width=\paperwidth,height=\paperheight]{background.jpg}}   \newcommand{\unititle}[1]{\title{#1}} \newcommand{\uniauthor}[1]{\author{#1}} \newcommand{\uniinstitute}[2]{\institute[#1]{#2}} \newcommand{\unisection}[1]{\frametitle{#1}} \newcommand{\unimaketitle}[1]{ \begin{frame} \maketitle \end{frame} }  \usepackage{calc} \newcommand{\unifig}[2]{ \begin{center} \hspace{-1cm}\includegraphics[width=#2\textwidth*\real{0.91},keepaspectratio]{#1} \end{center} }     \usepackage{xparse,calc} \newlength\fitimageht \newlength\fitotherht \newsavebox\fitimagebox \NewDocumentCommand \fitimage { m m O {} }{%   \sbox\fitimagebox{%      \parbox{\textwidth}{%        #1\par        #3     }%   }%   \settototalheight{\fitotherht}{%      \usebox\fitimagebox   }%   \setlength\fitimageht{\textheight}%   \addtolength\fitimageht{-\fitotherht-\topskip-\footskip-3\baselineskip}%   #1\par    \centering    \includegraphics[width=\textwidth,height=\fitimageht,keepaspectratio]{#2}\par   #3}  \definecolor{UniRed}{RGB}{204,0,0} \setbeamertemplate{itemize item}{$>$} \setbeamercolor{itemize item}{fg=MyMadrid} \setbeamertemplate{itemize subitem}{$-$} \setbeamercolor{itemize subitem}{fg=MyMadrid}   \begin{document}  \section{Section} \begin{frame} \frametitle{\thesection.~\insertsection} \begin{itemize} \item Header \begin{itemize} \item this is an example \end{itemize} \end{itemize} \end{frame}   \section{Section Two} \begin{frame} \frametitle{\thesection.~\insertsection} \begin{itemize} \item Header \item Header \item Header \item Header \begin{itemize} \item this is an example \bigskip \end{itemize} \item Header \begin{itemize} \item this is an example \end{itemize} \end{itemize} \end{frame}    \end{document}   The improved solution isnt still working, because there is a red foot note (page numbering) :(  + TexMaker under Windows gives "beamerbasemodes.sty not found" !


beginner here. Somehow I managed to reduce the camera view to this little square. How can I make it so the bounds are bigger? I've tried changing render dimensions,  focal length and camera sensor size, but this seems to only change the ratio. Simply scaling the camera does not work either.   Thnx


I tried factoring the denominator and performing partial fraction decomposition, but the algebra becomes too cumbersome for me...  Is there a cleaner approach for this integral?


Many OS X app store apps are listed as "app" is damaged and can't be opened

Without having changed anything, I now get this message when I try to open the app "Breeze" - Other apps fail similarly on other Macs:    I tried to get rid of this message by re-installing it from the App Store, but nothing changes. Rebooting and changing gatekeeper security preferences also doesn't help by choosing "allow Apps downloaded from anywhere".   What the heck is going on?


Moving files one directory level up fast on filezilla?

I have a website on a test directory folder:  www.example.com/tst/   I want to move the whole website a directory up to become live (/root folder).   Is there a fast way to do it rather than wait for filezilla to copy every single file which might take hours??


Clarification on normality and separability in the context of field extensions.

I'm a little confused in regards to the definitions of normality and separability of field extensions in the context of Galois theory . The definitions seem very similar . In class they were defined as follows  Note: I'll give my interpretations using the example $x^3-5$ so it will be easier to spot any misunderstandings.  Separability:  Given a field $F$  i) We say $f(x)\in F[x]$ is separable over $F$ if each irreducible factor of $f$ has simple roots in a splitting field.   My interpretation: $f(x)=x^3-5$ has 3 distinct roots $\sqrt[3]{5}, w \sqrt[3]{5}, w^2 \sqrt[3]{5}$. As they are distinct, i.e. appear once, they are simple roots in some splitting field $E$, so $f(x)$ is separable.  ii) Given $E/F$ and $\alpha \in E$, algebraic over $F$, we say $\alpha$ is separable over $F$ if it is the root of a separable polynomial over $F$.  My interpretation:  As in (i)  I gave reasons to why I thought $x^3-5$ is separable, then we know each root $\alpha$ is separable.  iii) We say an algebraic extension $E/F$ is separable if each $\alpha \in E$ is separable over $F$.  My interpretation : The splitting field of $x^3-5$ is $E(\sqrt[3]{5},w)$, by ii) $\sqrt[3]{5}$ is separable. For $w$ this is a root of $x^3-1=(x-1)(x^2+x+1)$. It can't be equal to $1$, therefore it's a root of $g(x)=x^2+x+1$. This equation has  distinct roots $w,w^2$, so they are simple in any splitting field, so $g(x)$ is separable over $F$. Using this with ii) and iii), we see that $E/\Bbb Q$ is separable.  Normality :  For $E/F$ if $m(x) \in F[x]$ is irreducible and $m$ has a root in $E$, then $m$ splits over E.  My interpretation: $E/\Bbb Q$ is normal as $m(x)=x^3-5$ is the minimum polynomial. containing the roots $\sqrt[3]{5}, w \sqrt[3]{5}, w^2 \sqrt[3]{5}$  is  irreducible over $\Bbb Q$, $m$ has a root in $E$ and splits in $E$.  Additional note :So to my understanding separability of an extension is basically saying each element of $E$ is the root of some polynomial which can be split over E, while normality is saying all minimum irreducible polynomials which have roots in $E$ split over $E$. These seem like the same statements in reverse except for the additional caveat of minimum polynomial in the normality definition. Could someone explain the deeper difference of these two concepts to me please?  Edit: There is a link to an answer but I do not feel it is a duplicate to mine for the following reasons :It certainly asks the same thing, but I feel like my question is much more specific , at least in the part where I gave my interpretation . Also in the answer of the linked question he talks about the characteristic of the field , I was trying to understand he concept without using this. Additionally I had a different concrete example than the ones used in the answer so the reasoning is different. Although I see how the linked question is similar to mine in an over arching way, I feel like the details of the two are sufficiently different to say that they are not duplicates.


I have a question regarding the random $k$ number of ECDSA encryption. As far as I know, it is possible to retrieve $k$ (and thus the private key) from two signed messages if both used the same $k$. This was done for the PlayStation 3 hack. I'm now trying to reproduce it in Python, using this library:   My problem is that the hack only works in some cases (at least I think so). I've not been able to reproduce it, so I hoped you could help me.  Initially we have two equations:  $s1 = k^-1 * (z1 + y) \space\%\space n$  $s2 = k^-1 * (z2 + y) \space\%\space n$  (where $y = r*privkey$)  We want to get rid of $y$ and figure out $k$. In all explanations I've seen so far, they'll do something like this:  $s1 - s2 = k^{-1} * (z1 + y) - k^{-1} * (z2 + y)$  $s1 - s2 = k^{-1} * (z1 - z2)$  $(s1 - s2) / (z1 - z2) = k^{-1}$  $k = (z1 - z2) / (s1 - s2)$  This doesn't work in my code, because the modulo operation here is just ignored. It actually should look something like this:  $i*n + s1 = k^{-1} * (z1 + y)$  $j*n + s2 = k^{-1} * (z2 + y)$  I got rid of the modulo by adding $x*$n to the left side, where $x$ is unknown. Now I'll just do the same thing as above but keep the $+ x*n$:  $i*n + s1 - j*n - s2 = k^{-1} * (z1 - z2)$  $(s1 - s2) + n*(i-j) / (z1 - z2) = k^{-1}$  $k = (z1 - z2) / ((s1 - s2) + n*(i-j))$  Obviously we do not know $i$ and $j$. We can ignore them if $i == j$ (as we did in the first calculation), which is only the case when $z1$ and $z2$ are close together or $k^{-1}$ is very small (so that it pulls the result down and therefore prevents $z1-2$ from making too much difference).  In theory $k^{-1}$ is pretty small and therfore the exploit works. But in practice I've seen that $k^{-1}$ is not used, but instead the smallest inverse modulo of k%n that is a whole number is used. This number can be really huge, which actually amplifies the difference between $z1$ and $z2$, making $i-j$ pretty large. With this implementation, I can't use the exploit as explained in theory.  My questions are:   Why is it that many implementations use the inverse modulo instead of $1/k$? (I've seen it in two so far) Wy doesn't it work when I change the implementation to use $1/k$? Is there another way to retrieve $k$, even if the $k^{-1}$ part is really large?    Since this is part of an assignment for Uni, it has to work somehow. But I already spent too much time on it without any results. Any gurus out there that can help me? :)  best regards


The question is this:  Prove that $\mathrm{Aut}(\mathbb Z_{11})$ is isomorphic to $\mathbb Z_{10}$.    I tried to construct a mapping from $f\colon\mathbb Z_n\to \mathbb Z_n$ and $f([k])=[ka]$ where $f$ is in $\mathrm{Aut}(\mathbb Z_n)$ (I have proven that..) But I still have no idea how to keep think along this idea. Maybe it is not helpful.I am not sure..  I also confused about is that, $\mathrm{Aut}(\mathbb Z_{11})$ is a group that has a bunch of mappings, and $\mathbb Z_{10}$ is a group. How can I have a mapping, that maps from a mapping to a element of group?  How to understand about that?  Could you give some hints about this problem or help me better understand, if possible?  Thanks!


Whenever I issue command sudo apt-get install ** it does not ask for password, not in my admin user too.  How to make it prompt for password?  My sudoer :  ubuntu:~$ sudo cat /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # Please consider adding local content in /etc/sudoers.d/ instead of # directly modifying this file. # # See the man page for details on how to write a sudoers file. # Defaults    env_reset Defaults    secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root    ALL=(ALL:ALL) ALL  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d ALL ALL=(ALL) NOPASSWD:ALL


Scala's Range with Float performance does not meet expectations

I typed the code below in scala console and get the return:  scala> 1.0F to 5.0F by 1.3F res10: scala.collection.immutable.NumericRange[Float] = NumericRange(1.0, 2.3, 3.6, 4.8999996)   why the ret is NumericRange(1.0, 2.3, 3.6, 4.8999996) instead of NumericRange(1.0, 2.3, 3.6, 4.9) ?