In   - Context is for Kings, we see a prison transport .   Later there is a discussion between  and Captain . In it Captain Lorca suggests he has  her file, and that Burnam has the kind of attributes he is looking for.   It's not clear if he read the file prior to the prison transport accident, or after he got them onto the ship.   My question is: Did Captain Lorca arrange the prison transport incident in Context is for Kings?  EDIT I believe this is not a duplicate because the subject of the other question isn't clear - nor is the question - it is merely an open-ended invitation to comment on the plot.


I am using Samsung Galaxy Y Device . The device has only 512 MB RAM  available. I want to upgrade the RAM memory to 1 GB. I have a SannDisk 8 Gb class 10  memory card. Is there any way to boost the RAM?


Recent switcher from Mac here.   I use a programming app called Xojo that is downloaded from the authors website, not available on the software store. It comes as a folder with an executable in it. I can run the app by double clicking it but I don't know where to place the containing folder. At the moment, it's just in my downloads folder.   On the Mac, I would just drop the executable into the Applications folder. Is there a Linux equivalent?   Also the executable doesn't show up when I type in the dash and doesn't seem to have an icon (although icons for it are provided for it in the folder). How do I get it to show up in dash searches too?  Thanks.


How do I change time and weather of my world?

What command do I use to change the weather or time? I've tried everything on the wiki but I could not get it to work. I tried doing /changeweather because the forums has suggested the command, but it didn't work.


looks shifted to the right now:        But according to the wayback machine :


List of String from List of object in java 7

I've a list of user object. And I want to get list of user name except using loop.  Is there any collection or util function in java 7??


Summation involving a factorial: $1 + \sum_{j=1}^{n} j!j$

$$1 + \sum_{j=1}^{n} j!j$$  I want to find a formula for the above and then prove it by induction. The answer according to Wolfram is $(n+1)!-1$, however I have no idea how to get there. Any hints or ideas on how I should tackle this one?


Let $\lambda>1$ and show the equation $\lambda - z -e^{-z} = 0$ has exacly one solution in the half plane $\{z:Re(z)>0\}$. Show that this solution must be real. What happens to the solution as $\lambda \rightarrow 1 $?


Comment on posts that you have an open bounty on, despite reputation

I think it would be very useful.  I have a question that I have an open bounty on. Putting up said bounty brought my reputation below the point where I am allowed to comment on other peoples' posts. It's so frustrating not to be able to comment and give feedback on the answers given!  Especially since it would be helpful, for them, me, and the readers, to know particularly what is good and isn't good about their answer, and therefore give some better guidelines to future answerers on how they can win the bounty.


Bayes Theorem: How to get an intuition for it?

I have taken a handful of statistics/ data science-oriented courses. And to this day, I feel like I grasp the underlying concept but I do not comprehend the in-depth understanding. I am asking this because it's been more of a formulaic relationship, and since it is so applicable and important, I was wondering if anybody had any readings or mental breakthroughs to what Bayes Theorem is!


The edge of Jupiter .    Even more bothersome, the  looks sharp, aside from kind of a soup of particles floating above it.    The sun's surface has an incredibly low density.  I mean, $10^{-6} g/cm^3$ kind of density ().  The Earth's atmosphere looks very hazy, and rightly so, because it's a gas.    Since Jupiter and the sun are 100% gas, why don't they appear as smudges on our telescopes?  To say "smudge" in a more scientific way, why isn't the transition zone between opacity and transparency a significant fraction of the radii of gaseous bodies?


history + display date and time for each command

we have redhat Linux machine version 7.2  when we type history we get the history but without date and time      1  ifconfig     2  cd /etc/udev/rules.d/     3  ls     4  cat 99-vmware-scsi-udev.rules     5  nano /etc/sysconfig/network-scripts/ifcfg-ethde032     6  ifconfig     7  service libvirtd statua     8  service libvirtd status     9  chkconfig -list | grep -i lib    10  chkconfig -list    11  chkconfig    17  virsh net-destroy default    18  virsh net-undefine default    19  serice libvrtd    20  serice libvirtd stop    21  service libvirtd stop    22  service libvirtd status   how to display from history command also the date & time for each number


Get a date based on week number (python)

I'm writing a script where the user needs to input a week number and a procedure will be ran based on that. However, I ran into a small issue, I know I can get week numbers via something like this:  >>> a=datetime.datetime.now() >>> a datetime.datetime(2015, 1, 22, 15, 51, 57, 820058) >>> a.isocalendar()[1] 4   But I can't find how to do it backwards. Also, the date I require has to be Sunday of that week at 6:00am. Once I have that datetime element I can just do   begin_date = datetime.datetime.strptime(a, "%Y-%m-%d %H:%M:%S")   To get the format I want. I'm still missing the step to get the date. Any thoughts?


I've lost a lot of rep when the question with my answer has disappeared

I had a chosen answer with a significant amount of upvotes and bounty awarded. Months after answering, the question disappeared and I lost the 400 rep.  I am not in this for the points, but when you get close to a certain rep threshold you get excited for that certain privilege and it pushes you to participate more. To lose 1/4 of my rep instantly has made me a little bitter to the whole experience.  Why are people able to delete questions months afterwards when there are numerous answers with many votes? Also, why should I lose the reputation for an answer that many found helpful. It was no less helpful during that period of time, and would have remained helpful had the question not been deleted.  Edit:  Thanks to Bill the Lizard's answer I see that the question was migrated to Programmer's SE.   While it's nice to know that it wasn't deleted it still leaves me with the same problem in the end. I was 100 rep from being able to edit and then it was ripped away due to (imo) over-organization. The question was on SO for months. Would be nice to just have a central rep repository rather than splitting it between a dozen similarly themed sites.


beef ribs thawing overnight in sink will meat be good

I laid frozen beef ribs out about midnight in the sink, got up around 9 am   and remember I laid them out. will they still be safe to grill???


run ubuntu crontab every 19th of the month in 2am

i'm not sure about something and that's why asking i want a process to run every 19th of the month in 2am   i don't want the cron to run after that time or before and only when the date is 19th - in every month and in every year  is that the right code?  2 0 19  * * /usr/local/ss/script.sh 2>&1 > /dev/null &   i just want to make sure


I'm trying to create a trigger in Oracle, but it's returning the error      ORA-00942: table or view does not exist   Here is the table:   CREATE TABLE quartos(     idQuarto NUMBER(11),      numeroQ NUMBER(11),      limitePessoas NUMBER(2),      valorDiaria NUMBER(10,2),      situacao NUMBER(1), CONSTRAINT idQuarto_pk PRIMARY KEY (idQuarto) );   Here is the sequence:  CREATE sequence "quartos_seq";   And here is the trigger:  CREATE trigger "bi_quartos"   before insert on "quartos"   for each row begin   select "quartos_seq".nextval into :NEW."idQuarto" from dual; end;   I've creatend another trigger before the same way and nothing went wrong. I just changed the parameters and now its returning that error


Is it possible to get an assistant professor position that does not require doing research?

I know the Lecturer position is a purely teaching role (and can even be obtained with just a Master's degree). However, is the Assistant Professor role necessarily tied with research (or can it also be exclusively teaching as well)?  The reason I ask is because I have just finished a Master's degree and want to teach at the university or community college level. I believe obtaining a PhD will open up more doors at various universities and community colleges, and was wondering if that would enable me to land higher up academic positions that are exclusively teaching roles.  Any insight is highly appreciated!


Does it hurt battery life to not fully charge and disconnect?

If I charge my device and let it charge not fully but say, 60% and disconnect, does that hurt battery life? If so, what are the 'safe' ranges?


Substituting multiple resistors with one

Hi am a beginner in Electronics and I have been working with a LED project. I have a requirement where i need to connect 6 LED's in a way shown in the below diagram. Forward voltage of these LED's are 3v and current consumption around 20mA.         – Schematic created using   But I felt the above schematic is so bulk due to the presence of resistors, So I am thinking to replace the above one with something like this below.         Am i doing it right in simplifying the circuit? Kindly advice.


I need to check if a form field is a valid URL (it can be done through HTML5, but not every browser has it yet), and I can't find a good URL checker function. It's strange, because with email-checking, there are lots of already-done functions.  I've seen (I just discovered it) the filter_var() function, but as I read, there are some issues with urls. I can find some regular expressions, but they don't seem very exhaustive.  Do you know any good url checker function?


How do you perform JSON parsing in Apex scripting?

I obtained some JSON output from a REST response and I want to parse that directly in my Apex script to either run if-tests or determine which JSON key contains information to run further actions. Salesforce doesn't seem to have good documentation here on how to do it, but I've seen references to a JSON2Apex module that can perform some of what I need. How can I learn how to properly parse JSON text responses to run follow-up actions? Is everything done by making calls to nextToken() or getCurrentToken() down the line until you find what you need?


I've been reading an  ( eMagazine) relating to the Raspberry Pi; "An ARM GNU/Linux box for $25."  In the article, page 17 at the bottom it shows an area on the Pi where a track zigzags next to a straight one with the explanation text:     The “wiggles” in tracks, ensure signals are matched  electrically,   reducing interference and signal delay.  This is particularly   important for high speed video  data and HDMI signals.     I have very limited knowledge of electrical engineering so perhaps this is a very simple question but why would you incorporate these 'wiggles' in a PCB design?  I realise the quote gives me an answer and I sort of understand the interference point due to problems with power cables and coaxial cables running next to each other but I'd appreciate something assuming very little knowledge that explained why you would get the problems and how wiggles help. For example, why isn't the board covered in wiggles?


I use a lot of whole lemons in cooking and not sure whether waxed or unwaxed lemons are best.  I have used both but concerned about both coatings on lemons. I stopped using waxed lemons when I found unwaxed ones but they are treated with chemical fungicides and pesticides (Imazalil and propiconazol) for a longer shelf life.  These are toxic and carcinogenic! Where can I buy unwaxed and untreated lemons from?


Compute $e^{e^z}$, where z is a complex number

I am self-studying the MAT 67 linear algebra course and I got stuck at a problem in Chapter 2:     Compute the real and imaginary parts of $e^{e^z}$ for $z$ $\in$ $\Bbb C$.   I tried to expand it using Euler's formula but it seemed endless. Any help?


Archives of Nethys, had a archetype called Psychic Marauder  I am looking for the psychic marauder archetype.  It was on the archives of Nethys site, which is down, and now I'd like another site I can find it at please or a copy of it.  Archives of Nethys: Pathfinder RPG Database ... archivesofnethys.com/ArchetypeDisplay.aspx?...Psychic%20Psychic%20Marauder Psychic Marauder. Source Heroes of the Darklands pg. 22.  Thank you.


Definition of Stochastic Time-series Variable

I am seeking an exact mathematical definition of a stochastic time-series variable.  Suppose we have a filtered probability space $(\Omega,(F_t)_{t\geq0},P)$.  Then, a stochastic process is a collection of random variables indexed by time $X:[0,\infty)\times\Omega\rightarrow\mathbb{R}$.  So, I think when one loosely speaks of a time-series variable that is stochastic, it is simple the stochastic process defined above.  (1) Is this correct?  (2) When we talk about economic variables such as GDP and unemployment, do we also implicitly assume these variables are adapted (i.e. $X_t$ is $F_t$-measurable for all $t\in[0,\infty))$? In other words, is it required for a stochastic time-series to be adapted?


The image below is from ConText. Does anyone know what the family font it is from in LaTeX?  Thank you.


How to change element's background-color with animation in click function?

Is it possible to animate a background color change in a click function? I saw many examples with mouseover/hover functions but none with a click function. Only without animation following line works:  $('#element').css({ backgroundColor: "#99cc00" });   I tried to add an animation effect with:  $('#element').animate({ backgroundColor: '#ffffff' }, 2000);    and   $('#element').css({ backgroundColor: "#99cc00" }).animate({}, 2500);   but without an effect. Please have a look at my fiddle:   Any ideas?


Create MBTiles from geojson in raster format

I am trying to create raster file in the Mbtiles format. I tried , $ gdal_rasterize -ot Byte  -burn 255 -burn 0 -burn 0 -ts 4950 4090 -of MBTiles station.geojson station.mbtiles   I'm using,  $gdalinfo --version : GDAL 2.1.3, released 2017/20/01  Error:  > ERROR 1: Cannot find min and max zoom_level >  > ERROR 6: Could not find an appropriate zoom level that matches raster > pixel size >  > ERROR 6: Only EPSG:3857 supported on MBTiles dataset > 0...10...20...30...40...50...60...70...80...90...100 - done. >  > ERROR 6: IWriteBlock() not supported if georeferencing not set >  > ERROR 6: IWriteBlock() not supported if georeferencing not set >  > ERROR 6: IWriteBlock() not supported if georeferencing not set   EDIT:  $ ogrinfo station.geojson -so -al  INFO: Open of 'stations.geojson' using driver 'GeoJSON' successful. Layer name: OGRGeoJSON Geometry: Point Feature Count: 86 Extent: (-77.272622, 38.766522) - (-76.842038, 39.119927) Layer SRS WKT: GEOGCS["WGS 84", DATUM["WGS_1984",    SPHEROID["WGS 84",6378137,298.257223563,         AUTHORITY["EPSG","7030"]],     AUTHORITY["EPSG","6326"]],  PRIMEM["Greenwich",0,    AUTHORITY["EPSG","8901"]],  UNIT["degree",0.0174532925199433,    AUTHORITY["EPSG","9122"]],  AUTHORITY["EPSG","4326"]] name: String (0.0) marker-color: String (0.0) marker-symbol: String (0.0) line: String (0.0)`


ArrayList throwing `ConcurrentModificationException` when trying to run `.size()` method

Update  As was pointed out by Jiri Tousek, the error that was being thrown in my code has misled many amateur (and experienced) Java developers. Contrary to what the name seems to imply, ConcurrentModificationException does not have anything to do with multi-threading. Consider the following code:  import java.util.List; import java.util.ArrayList;  class Main {   public static void main(String[] args) {     List<String> originalArray = new ArrayList<>();     originalArray.add("foo");     originalArray.add("bar");     List<String> arraySlice = originalArray.subList(0, 1);     originalArray.remove(0);     System.out.println(Integer.toString(arraySlice.size()));   } }   This will throw a ConcurrentModificationException despite there being no threading involved.  The misleading exception name led me to think my problem was the result of how I was handling multi-threading. I've updated the title of my post with the actual issue.  Original (title: How to inform Java that you are finished modifying an ArrayList in a thread?)  I have code that looks roughly like the following:  class MessageQueue {     private List<String> messages = new ArrayList<>();     private List<String> messagesInFlight = new ArrayList<>();      public void add(String message) {         messages.add(message);     }      public void send() {         if (messagesInFlight.size() > 0) {             // Wait for previous request to finish             return;         }          messagesInFlight = messages.subList(0, Math.min(messages.size, 10));         for( int i = 0; i < messagesInFlight.size(); i++ )         {             messages.remove(0);         }          sendViaHTTP(messagesInFlight, new Callback() {             @Override             public void run() {                 messagesInFlight.clear();             }         });     } }   This is utilized in my code for analytics purposes. Every 10 seconds I call messageQueue.send() from a timer, and whenever an event of interest occurs I call messageQueue.add(). This class works *for the most part* -- I can add messages and they get sent via HTTP, and when the HTTP request completes the callback is run  The issue lies on the second tick of the timer. When I hit the line if (messagesInFlight.size() > 0) {, I get the following error:  java.util.ConcurrentModificationException         at java.util.ArrayList$SubList.size(ArrayList.java:1057)   It seems like I can't read the .size() of the array in one thread (the second timer's callback) because it thinks the array is still being modified by the other thread (the first timer's callback). However I would expect the first timer's thread was destroyed and cleaned up after my call to sendViaHTTP, since there was no additional code for it to execute. Furthermore, the HTTP request is completing within 500 milliseconds, so a full 9.5 seconds passes without anything touching the empty messagesInFlight array  Is there a way to say say "hey, I'm done modifying this array, people can safely read it now"? Or perhaps a better way to organize my code?


Smart object anti aliasing Photoshop CC 2015

I get the new version of photoshop CC 2015.  Now when I past a vector from illustrator directly on photoshop they create me a smart object but they are no anti-aliasing at all.  May someone help me? Thanks


For $n\in{N}$ let $P_{n}$ denote the vector space of all polynomials with real coeffecients of degree at most $n$. Define $$ T: P_{n}\rightarrow P_{n-1} $$ by   $$T(p)(x) = p'(x)-\int_{0}^{x} {p(t)dt} $$  Then how to find dimension of the null space of $T$?


Reducing size of KML file (after converting from Shapefile)

I have a shapefile of size 224 MB. I am using ArcGIS to convert it to a KML file. The process involves converting the shapefile to a feature layer and then converting the layer to KML.   An alternative method that I have tried is using ogr2ogr.  In both the cases, the KML file produced is around 500 MBs. I need it to be less than 250 MBs, so I can import it as a Google Fusion table.  I was informed that one of the best ways to cut size is to reduce precision of the coordinates to 5 decimal places (from its current 10 or so).  How do I go about changing the decimal places using either ogr2ogr or ArcGIS? Is there some other software that may help in this and also, are there any other strategies I may use to reduce the size of the KML file?  I tried using Notepad++ to open the KML file and then use regular expressions to change coordinate precision but for some reason this method is not working. If I make the change and try and save the file, all the data gets deleted and the KML file size changes to 0 bytes.  An alternative strategy that I was thinking of was to split my shapefiles into two or three files and convert them to KML separately, upload them to Google fusion tables and then append those. However, I am not sure of two things.   How to split shapefiles into two or three smaller shapefiles? Whether I can easily append fusion tables together to create a larger fusion table?


Can a body which is in pure rolling move forever?

Meaning of pure rolling here: Rolling without slipping. Now moving to the question: In pure rolling there is only one type of force which is static friction which helps to start the pure rolling motion of the body. But I want to know that what will happen after pure rolling, will the body move forever ? as in reality the body stops because nothing is ideal in reality, the tire compresses or even nothing is purely rigid. But in physics we assume them to be ideal. So what will happen after pure rolling is started ? and if it stops how it will stop.


What is the difference between time series analysis and panel data analysis?

Do time series analysis and panel data analysis use the same analytic method?  If I know how to conduct time series analysis, what else I should know before I start to conduct panel data analysis? for example, different analytic methods or some important issues I should pay attention to, while conducting panel data analysis?


I am trying to do some SEO activites for my website   When i looked into google search console. I found site is not indexed.  But i could list the site in google search.  What the reason for the same?  PS: I have recently submitted sitemap and its still indexing and its just 50% indexed


What is explicit interface member implementation and why

I was always using interfgaces similarly to abstract classes - just to make sure all objects will have consistent external methods etc.  But from MSDN, I do not get that:  interface ISampleInterface {     void SampleMethod(); }  class ImplementationClass : ISampleInterface {     // Explicit interface member implementation:       void ISampleInterface.SampleMethod()     {         // Method implementation.     }      static void Main()     {         // Declare an interface instance.         ISampleInterface obj = new ImplementationClass();          // Call the member.         obj.SampleMethod();     } }   Why there is explicitly mentioned interface name in the method declaration and why it does not work without it? Also why is the interface being instantionated, shouldn't be just instance of class implementing it?


Are There Any Details on Calculation of CS:GO Player Ratings

I know that the player rating system for Counter Strike: Global Offensive is based on Glicko 2, and I know that the details of the algorithm isn't made public as one would expect.  However, I'm wondering if there are any details that somehow showed up on public domain, either through official channels such as blog posts or through unofficial channels like developer comments in Reddit, etc. Ideally one would want to know the whole algorithm, or the formulae used for calculating the ratings, but of course it's out of the question here. Instead I was hoping to get any bits of information that may have found their ways into public domain.  I'm particularly interested in what kind of tweaks have gone into the algorithm that powers the rating system, and hence the ranks, in order to make it better handle the team based nature of the game. Especially any mechanics that attempt to compensate for teams composed of players that have extremely different ratings.  Note: This question is not covered by the  question, and the information provided on ELO rating algorithm (which is not used in CS:GO) in the answers of that question do not address the specifics asked here. This isn't about how one can go up the ranks in CS:GO, and it's not about ELO at all. I'm asking if there are any specifics available on the tweaks that went into the customization of Glicko 2 as it's implemented by Valve.  Note 2: I believe the question  is way too generic in regard to my actual question as it simply asks an overall summary of the ranking system behind CS:GO matchmaking. Furthermore, the only acceptable answer provided over there is also a generic answer, summarizing what one would expect from a rating system (heed, it is also referring to the ELO rating system which is not used by CS:GO).  In all honesty, my question here is quite specific, and I'd expect anyone reading my question and comparing it to the suggested duplicates to come up with the same conclusion as well, easily. However, I'll leave the final decision about duplication to the mods.


I understand that C14 decays at a given rate. I also interpret this to mean that 100% of the atoms of C14 in an object will all decay at the same right, individually.  So if I have 4 C14 atoms, will they all be gone in a full-life? or will two be 100% in a half-life while the other 2 are 0%?  Please explain how the decay of C14 works.


Should noun be singular or plural in a phrase like "... one (if not many) [noun]"

Consider the phrase:     You have come one (if not many) times to my house ...   I am not sure if the noun "times" should be plural or not. It sounds better with plural, but  states that parenthesis are used for things which can be safely removing without affecting the meaning of the sentence. In that sense, if you get rid of the info in parenthesis the singular should be used.   Is there a canonical answer here?  has just one answer, which to be honest is not very helpful (and has just one vote). Also, my question has the extra issue of having a parenthesis, which surely makes it distinctive from the one linked above.


My Macbook (Snow Leopard OS) was giving me the rainbow wheel of death so I tried booting into safe mode and repairing the disk, with no luck. So I decided to pull the drive out and plug it into my Ubuntu 12.04 desktop with a SATA to USB cable to recover some data before reinstalling the OS. I'm having a lot of trouble trying to mount the drive. I have installed hfsplus hfsprogs and hfsutils and run the following command.  sudo mount -t hfsplus /dev/sdd1 /mnt/"AppleMount"   Which gives me this error.  wrong fs type, bad option, bad superblock on /dev/sdd1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail  or so   Running dmesg tells me this.  [39666.815423] end_request: critical target error, dev sdd, sector 536 [39666.815429] Buffer I/O error on device sdd1, logical block 62 [39670.526393] sd 6:0:0:0: [sdd] Unhandled sense code [39670.526397] sd 6:0:0:0: [sdd]  Result: hostbyte=invalid driverbyte=DRIVER_SENSE [39670.526402] sd 6:0:0:0: [sdd]  Sense Key : Medium Error [current] [39670.526407] sd 6:0:0:0: [sdd]  Add. Sense: Unrecovered read error [39670.526412] sd 6:0:0:0: [sdd] CDB: Read(10): 28 00 00 00 02 18 00 00 08 00 [39670.526422] end_request: critical target error, dev sdd, sector 536 [39670.526427] Buffer I/O error on device sdd1, logical block 62 [39763.562415] hfs: unable to find HFS+ superblock   So I think I'm stuck at this point. Can anyone guide me in the right direction? Thank you!


When does serial down voting script run?

I just got serial downvoted, and I suspect it's .  When do the scripts run, and would this instance be detected?  It also looks like someone serial un-upvoted said nemesis, which is also poor behavior, as much as I dislike the guy. Is that detected as well?


Unlike the browser version, when I tap on "edited X minutes ago" in the Android app, nothing happens (instead of sending me to the edit history page).  How do I see edit history in the Android app?


Show that $\mathbb{Q}[X]/(X^2 + X + 1)$ and $\mathbb{Q}[X]/(X^2 + 1)$ are not isomorphic

How do I show that $\mathbb{Q}[X]/(X^2 + X + 1)$ and $\mathbb{Q}[X]/(X^2 + 1)$ are not isomorphic?


Did John Doe manage to complete his 'masterpiece' in Se7en?

I recently watched David Fincher's 'Se7en' for a second time. I was thinking about the ending and I am kinda confused.  So clearly John Doe (Kevin Spacey) has a plan of killing seven different people based on . Now, near the end we come to know that John Doe himself is the representation of Envy. He then incites Detective David Mills (Brad Pitt) to kill him and become 'Wrath' in the process, which Mills clearly does. Now we are left with Mills, the representation of wrath, still alive. Detective Somerset (Freeman) tells Mills not to kill John Doe and further says,     If you kill him, he will win.   But doesn't that leave John Doe's plan incomplete? I mean Mills is still alive and I'm pretty sure that he wouldn't be sentenced to death for that and John Doe clearly set out to kill all the seven people. How exactly would John Doe 'win' in this situation?


Biblatex - style = alphabetic - change plus sign

I use biblatex with Biber and alphabetic style. In the case your citation has more than three authors this style will put a plus sign (+) in the label. I try to get this plus sign into superscript. Does anyone know how to accomplish this?  Just in case you might not exactly know what the alphabetic style looks like. For entries with two or three authors it will take the first letter of each authors' surname and put the last two digits of the year behind them. If there are more than three authors the label will carry the first letters of the surnames of the first three authors (EDIT BY LOCKSTEP: only if you set minalphanames=3, hereby overriding its default value of 1), put a + for the remaining one and put the last two digits of the year at the end. An example looks like this:        A. ASurname, B. BSurname, C. CSurname (2003): Title.      --> [ABC03]   A. ASurname, B. BSurname, C. CSurname, D. DSurname (2004): Title.      --> [ABC+04]


What if the school asks the students to submit the letters themselves?

I have been applying to a bunch of grad programs recently and I have noticed that some schools, specially those based in the UK, ask students to upload the reference letters themselves to the application platform, instead of sending an e-mail to the nominated referees. This puts me in an awkward position because the point of the letters is to be confidential and asking the professors to send them to me would mean that they would either refuse or send me a "plain" letter, as I have heard from colleagues that those are the replies they have been getting. What is the proper way to proceed in this situation? How do I ask a professor to send me a decent letter that they would not mind me seeing?


lim sup $(x_n)$ = largest limit point of $(x_n)$

Let L be the set of limit points of the sequence $x_n$. Just assume that L is closed so that sup L is also a limit point and it is the largest limit point.   Hence, there exists a subsequence $x_{n_m}$ such that $\lim_m x_{n_m} = \sup L$. For every $\epsilon > 0$, there exists an $M$ such that for all $m > M$, we have $|x_{n_m} - \sup L| < \epsilon$. Let $y_M = \sup \{x_{n_m} : m > M \}$. Then, it is clear that $|y_M - \sup L| < \epsilon$. In fact, $|y_p - \sup L| < \epsilon$ for all $p > M, p \in \mathbb{N}$ by the way we have constructed $y_p$. Hence,  $\lim_p y_p = \sup L$ or   $\lim_p \sup \{x_{n_m} : m > p \} = \sup L$.   Since $\sup \{x_n : n > p \} \geq \sup\{x_{n_m} : m > p \}$ $\implies $   $\lim_p \sup \{x_n : n > p \} \geq \lim_p \sup \{x_{n_m} : m > p \}$ $\implies $  $\lim_p \sup \{x_n : n > p \} \geq \sup L$ (ineq 1)  (??) Since $\inf_p \sup \{x_n : n > p \} \leq \sup\{x_{n_m} : m > p \}$ $\implies $  In the above inequality, the LHS is independent of $p$ so taking $\lim_p$ on both sides, we get:   $\inf_p \sup \{x_n : n > p \} \leq \lim_p \sup\{x_{n_m} : m > p \}$ $\implies $   $\inf_p \sup \{x_n : n > p \} \leq \sup L$  But $\inf_p \sup \{x_n : n > p \} = \lim_p \sup \{x_n : n > p \} $ $\implies $   $\lim_p \sup \{x_n : n > p \} \leq \sup L$ (ineq 2)  Therefore, by (ineq 1) and (ineq 2)  $\lim_p \sup \{x_n : n > p \} = \sup L$.  Can someone tell my if (??) is valid? If not, what is the way to show that lim sup $(x_n)$ is sup L? I was only able to show lim sup of a subsequence is equal to sup L?   I am constructing my own proof so I need help in my own working.


Why is my code executing both 'IF' and 'ELSE' with '==' but not with '.equals'?

Java newbie here, I'm experimenting with some simple code using NetBeans. The program simply takes in a few strings into an Array of a predetermined length, while not allowing the previously used ones to be added.  String[] AnArray = new String[3];  for (int i=0; i<AnArray.length; i++) {     System.out.println("Insert a string:");     Scanner s = new Scanner(System.in);     String astring = s.next();     for (String AnArray1 : AnArray) {         if (astring.equals(AnArray1)) {   /* THIS IS WHERE I CHANGE astring.equals(AnArray1) TO astring == AnArray1   */              System.out.println ("String already used");              break;         }         else             AnArray[i] = astring;         }  }     for (String AnArray1 : AnArray) {     System.out.println(AnArray1); }   If the string was already used, it should print out a message "String already used" and not add it, leaving the field empty (null).   If I use .equals, it works correctly (well, as I expect it to). However, if I use '==' it prints out the message, but still adds the (already used) string to the Array.   Note: All advice is appreciated, but I'd be most grateful for an explanation as to HOW/WHY this IS happening (as opposed to what I should do to improve my code).  EDIT: I don't see how this is a duplicate. If someone can paste the relevant part of the answer to my question, I would be grateful. My question is: since the condition is True in BOTH cases (using == or .equals) why does the .equals() follow the break command while == triggers else AS IF it's ALSO false?


C language: Switch cases weird example not ending with ";" nor "break"

I've been weirded out with this example I stumbled upon in my courses of C language, normally it should be incrementing nb_chiffres everytime c happens to be a digit (it's like a loop in which everytime we put c = getchar();) and increment nb_non_chiffres when it's otherwise.  My problem is that cases do not end in ";" nor do they end in "break;" so I see it as if case '1' is included in case '2' and case '3' in '2' etc.. and I don't see the program working as intended. I know if case '0' is not true it will execute all cases below save for default but why didn't my teacher put the ";" at the end of the cases? Here's the code  switch(c){     case '0':     case '1':     case '2':     case '3':     case '4':     case '5':     case '6':     case '7':     case '8':     case '9':         nb_chiffres++;         break;     default:         nb_non_chiffres++; }


Solving permutation problem sequentially.

We have four dice and we want to know the number of ways in which at lease one dice shows 3. This is pretty simple if we judge it directly by saying that the number of ways in which all the dice can show any number is $6^4$ and the number of ways in which $3$ does not appear anywhere is $5^4$. Subtracting the two gives us the right answer i.e $679$.  I am new to combinatorics and hence when I tried to solve it sequentially by writing out things like the number of ways through permutation formula in which we count the number of ways one by one, first assuming that we have only one $3$, then two $3s$ and so on, I get confused a lot.  Can anybody help me with the procedure of solving this by writing permutation formula for each and every sequence (one three at a time, two threes at a time etc.) That would be of great help since I can find no other way through which I can remove my doubts.


Stay in academia or become professor without overworking, is it possible?

I am referring more to young scientists after the PhD than professors, although I am also wondering about people with a stable position.   I see many people overworking themselves, burning-out, being overworked and with pressure to work well, fast, and produce a lot (publications). I am discussing an average person who has completed a PhD that has all the skills for the job. Let's leave the top professors 5-10% of the field that are super-productive for whatever reason, those are exceptions. I also assume that there is passion for research, but that work balance is also important.  Is it possible to survive/remain in academia by working normal hours (8-9 hours per day) without working evenings, weekends, holidays, without feeling guilty about taking a 2-3 weeks vacation? I imagine to become professor would include many of the above sacrifices. Some professors (tenured) have told me they work 50-60-70 hours per week.  Is overworking basically the rule/working culture in academia? Is it unusual to reach/maintain a stable position in academia without regularly overworking?  Consider mentioning the cultural, country, institution type of your answer, as there are variations in different contexts.


In Ernest Cline's book 'Armada', the protagonist calls Obi-Wan a 'bold faced liar', referencing Obi-Wan's time on Tatooine watching over Luke as he grew up, and the training that Obi-Wan provided Luke with. I know that Obi-Wan's story of what happened to Luke's father wasn't exactly the truth, but it wasn't exactly a lie either. Is there any time in the original trilogy when Obi-Wan bold-faced lied to Luke?


Careers site missing "Apply Now" on iPad

I was browsing through job postings and noticed the "Apply Now" button was nowhere to be found.  I tried Mobile and Desktop versions, but when I checked it out this morning on my Mac everything was fine. I suspect a media query or other CSS style is hiding it.


Could an argument with false Premises and a true Conclusion be logically valid?

Am unsure (leaning more towards no): true P and true C is valid, false P and false C is valid, True P and false C is invalid, how about false P and true C?  P= Premises; C= Conclusion.  People who says.. Yes, it is valid, I would like to hear some answers for   How can we derive the truth out of falsehood?  If we can, then True P - False C is valid too (tell me why it is invalid?).


How to access depth (z) buffer data of a render result from python

My issue is that I want to access the buffer data from python, pixel after pixel, for being able to use it for arbitrary computations. How can I achieve this?  (Please dont tell me about exporting to different kinds of formats like exr etc, because I want to do computations  in place).   Also I'm talking about blender 2.68 or higher.


I have an equation long enough to occupy two lines. I want to break it to improve readability. How can I break it?  \begin{equation} F = \{F_{x} \in  F_{c} : (|S| > |C|) \cap  (minPixels  < |S| < maxPixels) \cap  (|S_{connected}| > |S| - \epsilon)   \} \end{equation}   I want to break it in 3 lines after \cap. But \\ or \n didn't work.


How do Americans address this location? (The red part on the attached image)

Does the following address sound idiomatic to you:  13 – Fifth street - Independence Avenue – Apt 8 -  4th floor Istanbul – Turkey – (Zip code)


When someone asks me to describe a character from a story or explain the story briefly, should I use "past tense" or "present tense"  Below is the story about the character of the novel "Devi Chaudhurani" (written by Bankimchandra Chattopadhyay) from which I was asked a question in the exam: Here is the link that expalins the novel and the character briefly    Prafulla is married but is shunned by her wealthy father-in-law, Haraballabh, because of a spat between him and her father on the day of her wedding. By custom prevalent at that time, a girl, once married, could not be divorced or remarried. Heartbroken at the fate of his only child, her father died after a few years, leaving the family in penury. Prafulla takes the drastic step to flee in the middle of the night to find the house of her in-laws whom she has never known, without any money, with knowledge of only the name of the village and name of her father-in-law.   Here is the question that was asked in the exam "Who is Prafulla? Describe her character briefly." Should I answer in past tense or present tense in the answer?   Prafulla is the main character of the novel Devi Chaudhurani. She lives/lived in a small village of Bengal. She is idolized in the novel as an Inspiration to women in Bengal that time. Prafulla is/was shunned by Haraballabh, Her father-in-law. This made/makes her father feel heart broken and depressed which leads/led him to death. This made/makes Prafulla more stronger than ever. By the character of Prafulla the author described/describes a hard and successful life of a woman.   I think both tenses are correct but not sure. Could you please explain? Can I use both tenses?


Why isn't this functioning properly? I'm aware of the advanced slice ([::-1]) option but I would like to figure out how to reverse the str this way as well.  word = input("Please enter a word to reverse: ")  cut = len(word) print(word[cut:-cut])


Correlation analysis with dichotomous variables

Could correlation analysis with Pearson correlation or Spearman rank correlation be done between continuous variable and categorical dichotomous variable  eg, presence or absence of hypertension? My understanding is that correlation analysis is performed between two continuous variables but I found in some published studies that they do correlation analysis between dichotomous variables and continuous variables using Spearman rank correlation.


Where does Ubuntu (or Linux in general) install its applications?

In Windows, all installed applications go into the Program Files/Program Files(x86) of the hard-drive in which the application is installed on.  What is the equivalent in Linux or Ubuntu specifically?  When I install a program using APT, flatpacks, snaps or using manual methods such as .deb among others - where should I be installing these? Or do these methods automatically follow a convention?  Additional small question: Does the same convention apply to servers?


What are these Internet Explorer parameters

Any idea what this command line does in Internet Explorer? Why would it be running on my work laptop when I only ever use Chrome?  "C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE" SCODEF:23528 CREDAT:75014 /prefetch:2


I want to write a function in c which is able to print the array we created. However, there is a problem. When I want to create the loop I need to know the number of elements in the array. So, I used the sizeof function in order to fix that.   I wrote the line size = sizeof(list) / sizeof(list[0]); in order to get the size of the whole array and divide it to size of one element in order to get the number of elements in the array. However, when I build the code I get the following warning:     warning : 'sizeof' on array function parameter 'list' will return the size of 'int *'     #include <stdio.h>  void displayArray(int myarray[]);  int main() {     int list1[] = {0, 5, 3, 5, 7, 9, 5};     displayArray(list1);     return 0; }  void displayArray(int list[]) {     int size;     size = sizeof(list) / sizeof(list[0]);     printf("Your array is: ");     for (int i = 0; i < size; i++)     {          printf("%d ", list[i]);     }     printf("\n");     return; }


I have gone through various sites and some say there is NADPH2 and some say there is no NADPH2 there's only NADP+ ...WHich is the correct view....Please dont mark this answer as duplicates since I have asked a similar question related to photosynthesis in the past but there too I have not received any satisfactory answer bythe community .


Autostart a graphical application in ubuntu 14.04

I want an application to get opened after any user is logged in. I read about some menu about autostart. etc. But, unfortunately I don't have GUI access now. Please help.


What is the relationship name of my (brother/sister)-in-law's (brother/sister) to me?

For example:   I have a sister named Charlotte Martin has a brother named William Charlotte is married to Martin   Martin is my brother-in-law, but what is William to me?  I originally posted  on English.StackExchange. A commenter referred me to ask it on this stack.


Can a bounty be awarded to a non-accepted answer?

I have a problem one of the users who asked awhile ago about something related to SQL injection. I provided an answer for his problem, and some solutions, but he did not accept my answer nor did he accept any other users' answers. Yesterday, someone opened a bounty on that question, to give my answer there some respect (it's really a good answer).    I want to know if I can be awarded that 500 pt. bounty even though the asker has not accepted my answer.


Why have we chosen our number system to be decimal (base 10)?

After learning about the binary number system (only 2 symbols, i.e. 0 and 1), I just thought why did we adopt the decimal number system (10 symbols) after all?  I mean if you go to see, it's rather inefficient when compared to the octal (8 symbols) and the hexadecimal (16 symbols)?


While running the code below, I'm getting this output--1) Addition 2) Subtraction Enter 1 or 21 First number: 17 Second number: 13 Add two random numbers10 Traceback (most recent call last):   File "C:/Users/rafis/PycharmProjects/pythonProject1/Problem120.py", line 51, in <module>     main()   File "C:/Users/rafis/PycharmProjects/pythonProject1/Problem120.py", line 43, in main     verify(r_ans, user_adds) NameError: name 'r_ans' is not defined  Process finished with exit code 1 ............................... But I can't seem to find any error in the code. How do I "define" the variable? TIA import random  menu1 = input("1) Addition") menu2 = input("2) Subtraction") choose = int(input("Enter 1 or 2"))    def random_generator():     r_1 = random.randint(4, 19)     r_2 = random.randint(4, 19)     print("First number: " + str(r_1))     print("Second number: " + str(r_2))     user_adds = int(input("Add two random numbers"))     r_ans = r_1 + r_2     return r_ans, user_adds     def random_generator3():     r_1 = random.randint(24, 49)     r_2 = random.randint(2, 24)     print("First number: " + str(rando_1))     print("Second number: " + str(rando_2))     r_ans = rando_1 - rando_2     user_adds = int(input("Work out random number 1- random number 2: "))     return r_ans, user_adds     def verify(r_ans, user_adds):     if r_ans == user_adds:         print("Correct")     else:         print("Incorrect. The answer is: " + str(r_ans))   def main():     if choose == 1:         random_generator()         verify(r_ans, user_adds)     elif choose == 2:         random_generator3()         verify(r_ans, user_adds)     else:         print("Invalid input")   main()


How do I force a  to be inline with the checkbox using only CSS?

I have this, and I am not allowed to touch the HTML.
     <input type="checkbox" class="checkbox" name="dynamic002" id="dynamic003">
  Sample Text

     Is there any way to force Sample Text to be inline with the checkbox, using only CSS?


Prevent Widows10 taskbar search to search in online resources

I don't want to see something like this:  Let's say I would like to restrict the search only on applications. Or applications and local files, local documents. I conside it very dangerous. I have already entered some relatively sensitive data there by mystake. And with that they entered remote logs of some external seach engine. I think it's powered by Bing. In that case my question can be aslo formulated as how to prevent integration of taskbar search, or start menu search, and Bing.


PHP script not running when I submit form

This is my HTML form:

Choose your difficulty level

                         <fieldset>                             <form action="backup.php" method="POST">
What is your difficulty level?
                                 <select name="startdiff" class="form-control">                                     <option value="5">5</option>                                     <option value="10">10</option>                                     <option value="15">15</option>                                 </select>
                                 <input type="button" name="subdiff" class="btn-primary btn-lg btn-success" value="Let's go!">                             </form>                         </fieldset>

   And this is what "backup.php" looks like:  <?php include('connect.php'); include('my_class.php');  $admin = new User();  if (isset($_POST['subdiff'])) {      $difficulty = $_POST['startdiff'];      $admin->set_difficulty($difficulty);      header('Location: getstarted.php');  }   ?>   Note that I named it backup.php because my POST methods were all contained in one huge switch method but this specific form is the only one giving me problems, so please don't advise me on conventional naming methods.  What could be the problem?


If $f$ is a contraction map and $X$ is compact, show that there exists a fixed point

Let $(X, d)$ be a compact metric space, and $f: X \to X $ is a map such that $d (f(x), f(y)) < d(x, y)$ where $x \neq y$. Show that there exists a point such that $f(x) = x$.  My idea is to make compact sets where any finite intersection is non-empty and then use the fact that an infinite intersection will also not be empty to show existence. I don't want to use continuity as that has not been covered in my notes yet.  Thus take $A_n = \{x \in X:d(f^{n-1}(x), f^n(x)) < a \}$, where $f^n$ is $f$ iterated $n$ times. Since $A_n \subset X$, they are compact and any finite intersection is non-empty. Thus an infinite intersection is also non-empty.   Since $a$ was arbitrary and distances are always positive, I can create a series of non-empty $A_n$'s between $0$ and $a$ no matter how small $a$ is. Thus there exists a point where $f(x) = x$.  How do I know that you can always find points with distance less than any $a$? Because $X$ is compact, it is bounded and so there is a maximum distance between any 2 points. So start there, iterate $f$ once and now you have points with distance less than $a$. Repeat as needed.  I feel like it's missing some rigor though, or at least could use some clean-up or an extra piece that I've overlooked.


Change my Facebook Page's username/link more than once

How can I change my Facebook Page's username/link more than one time?


Boot is full can't get apt-get to upgrade

I've followed most instructions an clearing boot found on the interwebs, I'm a bit n00bish on linux inwards I use it mostly for web dev testing, but am pretty good at following command instructions ;)  Unfortunately my box seems to be stuck with the /boot full and I can't get my head around the correct steps to get clear it.  I believe I can't clean the boot because kernel 39 is pending install, but I can remove it from pending install because the boot is full?   This is the sequence of steps I attemped:  pedro@lamp01:~$ sudo apt-get autoremove Reading package lists... Done Building dependency tree Reading state information... Done You might want to run âapt-get -f installâ to correct these. The following packages have unmet dependencies.  linux-image-generic-lts-quantal : Depends: linux-image-3.5.0-39-generic but it is not installed E: Unmet dependencies. Try using -f.   pedro@lamp01:~$ sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve "$(uname -r | sed -r 's/-[a-z]+//')") Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies.  linux-headers-generic-lts-quantal : Depends: linux-headers-3.5.0-39-generic but it is not going to be installed  linux-image-generic-lts-quantal : Depends: linux-image-3.5.0-39-generic but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   pedro@lamp01:~$ sudo apt-get -f install Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   linux-headers-3.5.0-32-generic linux-headers-3.5.0-27-generic   linux-headers-3.5.0-30-generic linux-headers-3.5.0-28-generic   linux-headers-3.5.0-30 linux-headers-3.5.0-31 linux-headers-3.5.0-26   linux-headers-3.5.0-32 linux-headers-3.5.0-27 linux-headers-3.5.0-28   linux-headers-3.5.0-31-generic linux-headers-3.5.0-26-generic Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   linux-image-3.5.0-39-generic Suggested packages:   fdutils linux-lts-quantal-doc-3.5.0 linux-lts-quantal-source-3.5.0   linux-lts-quantal-tools The following NEW packages will be installed   linux-image-3.5.0-39-generic 0 upgraded, 1 newly installed, 0 to remove and 27 not upgraded. 3 not fully installed or removed. Need to get 0 B/40.7 MB of archives. After this operation, 157 MB of additional disk space will be used. Do you want to continue [Y/n]? Y (Reading database ... 269199 files and directories currently installed.) Unpacking linux-image-3.5.0-39-generic (from .../linux-image-3.5.0-39-generic_3.5.0-39.60~precise1_amd64.deb) ... Done. dpkg: error processing /var/cache/apt/archives/linux-image-3.5.0-39-generic_3.5.0-39.60~precise1_amd64.deb (--unpack):  failed in write on buffer copy for backend dpkg-deb during `./boot/vmlinuz-3.5.0-39-generic': No space left on device No apport report written because the error message indicates a disk full error                                                                               dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.5.0-39-generic /boot/vmlinuz-3.5.0-39-generic Errors were encountered while processing:  /var/cache/apt/archives/linux-image-3.5.0-39-generic_3.5.0-39.60~precise1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1) pedro@lamp01:~$   It's a bit odd the autoremove appears to be forcing the install, the current kernel is 37:  pedro@lamp01:~$ uname -a Linux lamp01 3.5.0-37-generic #58~precise1-Ubuntu SMP Wed Jul 10 17:48:11 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux   Can anyone help?  Many thanks, P.


Evaluate the sum $\sum_{k=1}^n {n \choose k-1} {n \choose k}$

Evaluate the summation of: $$ \sum_{k=1}^n {n \choose k-1} {n \choose k} $$ I have been trying to solve this problem by translating C(n, k-1) into C(n, k), because I know that: $$ \sum_{k=1}^n {n \choose k}^2={2n \choose n} $$ However, I haven't been having any luck. Am I on the right track? What am I doing wrong?


Is it possible to recover a NTFS partition after it was formatted to NTFS using Gparted Live CD?

I had a NTFS partition on my ASUS laptop that had Windows 7 on it. I formatted it using Gparted Live CD because I thought there are some problems in Windows but then found out it was a problem of hardware... Now I would want to recover the partition and use the old Windows 7 that I had on it... Is it possible? :-)  Now I have 2 partitions on my laptop harddrive. 1st partition - NTFS that is empty (the one that I formatted) and has 200 GB and the 2nd partition - NTFS that has data on it and has 300 GB...  It was most probably a quick format since it took only like 1-2 seconds to format the partition... I didn't change the size of the partition or moved or resized other partitions on the harddrive...  I would want to "travel in time" and recover the partition, so that I would not have to install Windows 7 from scratch...


Why does $987,654,321$ divided by $123,456,789 = 8$?   Is it a coincidence or is there a special reason?  Note: The numbers are a mirror of each other


How to close a note to more than one person and their family?

I wrote a note addressed to more than one group. Do I close the note to you and your family or to you and your families? My memory would say either or is correct.


I want to know how to create a menu with previews for an add-on. Until now I know that this is related with the bpy.utils.preview. I'm making an add-on that appends objects from a .blend file, I know how to append objects but what I want to do is to create a menu with previews of the objects /(similar to the matcaps menu - see below), select them and then press an "import button" to append the object. Here's some documentation about the module:    Also, as this is an add-on I don't know if I should have a def register() and a def unregister() inside this .py file as well as in the __init__.py file.


How do I avoid 'No GPS signal' in Pokemon Go on an iPad with a GPS?

My iPad does have a GPS, and it's active, but I'm still getting the message:     GPS signal not found   The game makes it hard by not requesting for access. Is there a way to stop this message?


Use #ifdefs and #define to optionally turn a function call into a comment

Is it possible to do something like this  #ifdef SOMETHING #define foo // #else #define foo MyFunction #endif   The idea is that if SOMETHING is defined, then calls to foo(...) become comments (or something that doesn't get evaluated or compiled), otherwise it becomes a call to MyFunction.  I've seen __noop used, but I don't believe I can use that.  EDIT(s):  I don't think I can really use a macro here, because MyFunction takes a variable number of arguments.  Also, I'd like to make it so the arguments are NOT evaluated!  (So doing something like commenting out the body of MyFunction doesn't really give me what I need, as the arguments will still be evaluated)


How can I change the default styles for Google Docs?

For a Document (Word-like) in Google Docs, I want to be able to change the font size, family and spacings for the built-in in styles. How can I do that?


Does $\sum \limits_{n=1}^\infty\frac{\sin n}{n}(1+\frac{1}{2}+\cdots+\frac{1}{n})$ converge (absolutely)?

I've had no luck with this one. None of the convergence tests pop into mind.  I tried looking at it in this form $\sum \sin n\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n}$ and apply Dirichlets test. I know that $\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n} \to 0$ but not sure if it's decreasing.  Regarding absolute convergence, I tried:  $$|\sin n\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n}|\geq \sin^2 n\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n}=$$  $$=\frac{1}{2}\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n}-\frac{1}{2}\cos 2n\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n}$$  But again I'm stuck with $\cos 2n\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n}$. Assuming it converges then I've shown that $\sum \sin n\frac{1+\frac{1}{2}+\cdots+\frac{1}{n}}{n}$ doesn't converge absolutely.


My format is whereis directory | cd but I get no output (not even a warning).  Where as you have other posts that require variables, my question asks how to do it without them.


Do we have theories about why gravity exists/how it works?

For years I have been very fascinated by the "mystery" aspect of gravity. Functionally, we understand it for our applications, but in my (limited to my 3 quarters of undergrad general physics) understanding, we don't know why it exists or how the "pull" works.   To provide an example of what I mean: there has to be some "measurable material" of gravity between, say, the earth and the moon -- some kind of 'graviton' (not that it needs to be a particle or anything, I have zero claims as to the nature of how gravity does what it does). The [butchered] saying of "pluck a flower and move the furthest moon" originates because gravity in theory, has an infinite range (right?) and moving a flower on earth could maybe move an atom on Jupiter ever so slightly.  Anyway, similar to how we had "very good" hypotheses about the existence of Higgs boson that the LHC 99%+ confirmed, do we have any "very good" hypotheses in regards to the fundamental way how gravity does what we have long-known it to do?


Add 'k' suffix for question score where appropriate

I suggest using the k suffix for question scores where appropriate, just as it is used when displaying for instance reputation, view counts, "people reached" etc.  Example: I suggest changing this    to this:    The fact that the question has a score of exactly 10851 isn't really that interesting, and suffixes are used consistency elsewhere on the site.


Why does the speed of light in vacuum never change?

why  does the speed of light in vacuum never change? Under any circumstances, The speed of light in vacuum never change, why?


I want to check if my string contains all the upper case value or not for that I am using the below code but It does not work as expected for case 1 and only work for case2.  Case 1   string myString = "SWEET POTATO"; myString.All(char.IsUpper)   Case 2  string eval = "POTATO";   eval.All(char.IsUpper)   It does not give me any error but I want in both the cases it will return true because in both the cases string value is in Upper case letter


Expected Value of the Ratio of Independent Variables, E(X/(X+Y))

If $X$ and $Y$ are independent random variables, is the following true? Is there an easy way to show this? $$E\left[\frac{X}{X+Y}\right]=\frac{E[X]}{E[{X+Y}]}=\frac{E[X]}{E[X]+E[Y]}$$ If this is not true in general, are there special cases when it is true (e.g. what $X$ and $Y$ are strictly positive and finite)?


How to execute a command with "=" sign in a desktop shortcut?

I'm trying to modify my Firefox shortcut in Unity so that it started with a specific parameter. From a terminal, I would start like this:  VDPAU_DRIVER=va_gl firefox   I tried modifying the firefox.desktop file so that the Exec line looked like  Exec=VDPAU_DRIVER=va_gl firefox   But this doesn't work (the application doesn't start). I thought it could be a problem with two "=" signs, so I tried  Exec="VDPAU_DRIVER=va_gl firefox"   but this doesn't work either. What should I do?


When I use include_once('menu.php') into my index.php the charset UTF-8 does not work for menu.php and somewhere shows this mark - � . This is happening until I copy this code <meta http-equiv="content-type" content="text/html;charset=utf-8" /> from head directly into menu.php file. This meta tag should be in head not in the menu.  After that is this meta tag twice in the index and that is a nonsense. Does anybody know why is this happening and how to fix it? Thaks a lot.


I've compiled a java project into a Jar file, and am having issues running it.  When I run:  java -jar myJar.jar   I get the following error  Could not find the main class: myClass   The class file is not in the root directory of the jar so I've tried changing the path of the main class to match the path to the class file and I get the same issue.  Should I be flattening the file structure? if so how do I do this. I'm using Ant to build the Jar file if thats of any use.  UPDATE   Here is the contents of the jar and the relevant Ant sections, I've changed the name of the firm I work for to "org":  META-INF/ META-INF/MANIFEST.MF dataAccessLayer/ dataAccessLayer/databaseTest.class org/ org/eventService/ org/eventService/DatabaseObject.class org/eventService/DatabaseObjectFactory.class org/eventService/DbEventClientImpl$HearBeatMonitor.class org/eventService/DbEventClientImpl.class org/eventService/EmptyQueryListException.class org/eventService/EventHandlerWorkItem.class org/eventService/EventProcessor.class org/eventService/EventTypeEnum.class org/eventService/EventWorkQueue$MonitorThread.class org/eventService/EventWorkQueue$PoolWorker.class org/eventService/EventWorkQueue.class org/eventService/FailedToLoadDriverException.class org/eventService/IConnectionFailureListener.class org/eventService/InvalidEventTypeException.class org/eventService/JdbcInterfaceConnection.class org/eventService/NullArgumentException.class org/eventService/OracleDatabaseObject.class org/eventService/ProactiveClientEventLogger.class org/eventService/ProactiveClientEventLoggerException.class org/eventService/PropertyMap.class org/eventService/SQLServerDatabaseObject.class org/eventService/TestHarness.class org/eventService/Utilities.class   And the ant target:  <target name="compile" depends="init" description="compile the source ">     <javac srcdir="src" destdir="bin" classpathref="project.class.path"/> </target> <target name="buildjar" description="build jar file" depends="compile">     <mkdir dir="dist"/>     <jar destfile="dist/myJar.jar" basedir="bin" includes="**/*.class" >         <manifest>             <attribute name="Main-Class" value="org.eventService.ProactiveClientEventLogger"/>         </manifest>      </jar> </target>


i'm tring to insert into my database the following string: "è" but each time i try in the database nothing is added. This is the code that i use to insert.  $string = mysql_real_escape_string($_REQUEST['string_passed']); $query = "UPDATE my_table SET my_field = '$string' WHERE id = '$id'";   In my connection.inc.php file i have following code.  mysql_connect("localhost", "root", "") or die("Problem: ".mysql_error()); mysql_select_db("my_db") or die("Poblem: ".mysql_error()); mysql_query('SET NAMES utf8');   I know, i can insert $string using htmlentities but there is any other solution?


Why does this question still show an expired bounty?

had a bounty that was posted 8 days ago.  Its grace period expired earlier today (according to the revision history), and in fact the question does not show a bounty on the front page:    However, it does still show a bounty notice -- one that even says the grace period has expired -- on the question:    Should I blame caching?  I would if the notice showed in both places (question and front page).


How to use Ubuntu and also use Windows with a partition?

I've been using Ubuntu or 4 years now, and haven't used windows since, and I need windows to do some important developing things, that Ubuntu can't (well it can but i can not figure it out) So I still need Ubuntu but I also wanna be able to run windows when i need to, with a partition. I know how to use partitions but I don't know how to use another operating system with partitions. So I have the .iso windows thing installed, so all i need to do is run it with a partition. I just dont understand how to use it with the partition. I know it is possible, I've seen it, but I don't know how to do it for myself. Do I need to use UFEI to do so? Or is it just partitions. I've searched and can't find anything that works properly.


I am trying to extend my class initialization using super in python. In the below example I want Class A to initialize a parameter multiplied by 4 and I want this parameter to be available in class B via inheritance. I then want another initialization in B to take that same parameter and multiply it by 8 instead. This second initialization doesn't have to be available in A.    class A():     def __init__(self,parameter):         self.initialize_parameter=4*parameter  class B(A):     def __init__(self,parameter): #note this parameter is intended to be the same parameter from Class A         self.another_parameter=parameter*8         super(B,self).__init__(parameter)   The documents I've been reading seem to indicate that the above is the correct syntax (I think) but the doc on this subject is rather confusing. The above code returns TypeError: must be type, not classobj.  This is my first time using inheritance, can anybody suggest what I'm doing wrong?


A special solution for a functional inequality from $\mathbb{R}\times \mathbb{R} $ onto $\mathbb{R}$

Is there a bijection solution $\eta:\mathbb{R}\times \mathbb{R}\rightarrow \mathbb{R}$ (with an explicit formula, if it is possible)  for the inequality $$\min\{x,y\}\leq \eta(x,y)\leq \max\{x,y\}\;\; ; \;\; x\neq y?$$


is there a way to place a variable as the value in HTML?

I am working on a simple side project and can't figure out how to put the "varColor" variable's value as the background color of a web page. (I omitted the lightswitch portion of the code because it is functional)  I tried many different ways to call the value but haven't gotten any results yet.   okay, so I tried lots of methods from the answers and can't seem to get it to react based off the light switch's value. some help on that too?       <meta name="viewport" content="width=device-width, initial-scale=1.0">

          <title>Link catalog</title>            lightSwitch
         <input type="checkbox" name="onoffswitch" class="onoffswitch-checkbox" id="lightSwitch">
     the new code is in the same location in comparison to the original file, on the bottom of the page.  yes I am aware the words aren't visible while the page is white, I'll fix that after I get the switch functional.


What should $n$ be equal to, so that $5^{2n+1}2^{n+2} + 3^{n+2}2^{2n+1}$ is completely divisible by $19$?

What should $n$ be equal to, so that the number: $$5^{2n+1}2^{n+2} + 3^{n+2}2^{2n+1}$$ is completely divisible by 19? I broke it into this: $$20\cdot 2^{n}\cdot 25^{n}+18\cdot 3^{n}\cdot 4^{n}$$ But what should i do next?


How does Apple AppStore rank search results?

I have an iOS application - an alarm clock. I released it a little over a month ago. Initially it was paid, but when I saw there were virtually no purchases (from 0 to 4 a day), I changed it to be free for a period of time. When it become free, in less than 10 days it has been downloaded more than 30,000 times, and more importantly (I think) it moved much higher in the search results when the user searches "alarm" - it reached 20th place in the results. During that time I also received very good reviews in the AppStore. But today I changed it back to paid, and now when I search "alarm" my app is shown at the bottom of the 4TH PAGE. Given that one page contains 120 apps, this is very bad for me and I don't understand why this happened. Can anyone tell me how does AppStore ranks search results and is there a way to move my app higher in the rankings, please? :) Huge thanks!


Gravitational time dilation at a point between two stars?

What will be the time dilation between a point on a line connecting the centre of mass of both stars? ( Gravitation time dillation at point p ) Assuming both stars have equal mass.


Java LinkedList addLast() method implementation error

So I'm implementing a Singly LinkedList in Java. However, my addLast() method kept throwing a NullPointerException. Here is the error message: Exception in thread "main" java.lang.NullPointerException: Cannot assign field "next" because "list.tail" is null at SinglyLinkedList.SLinkedList.addLast(SLinkedList.java:39) at SinglyLinkedList.SLinkedList.main(SLinkedList.java:98) Process finished with exit code 1  I don't understand why tail is null. Any help would be appreciated. Here is my code public class SLinkedList {     private SNode head;     private SNode tail;     private static int size;      private static class SNode {         String name;         SNode next;          //constructor         SNode(String name) {             this.name = name;             next = null;         }     }      public static SLinkedList insertNode(SLinkedList list, String name) {         SNode newNode = new SNode(name);         newNode.next = null;          if (list.head == null) {             list.head = newNode;         } else {             SNode last = list.head;             while (last.next != null) {                 last = last.next;             }             last,next = newNode;         }         size++;         return list;     }      public static SLinkedList addLast(SLinkedList list, String name){         SNode newNode = new SNode(name);          list.tail.next = newNode;         list.tail = list.tail.next;          size++;         //return the list         return list;     }      // a method that add head to the list     public static SLinkedList addFirst(SLinkedList list, String input) {         SNode newNode = new SNode(input);         newNode.next = list.head;         if (list.head == null) {             list.tail = newNode;         }         list.head = newNode;         size++;         return list;     }      //a method to remove the head of the list     public static String removeFirst(SLinkedList list) throws Exception {         SNode temp = list.head;         // edge cases         // size 0         if (size == 0) {             throw new Exception("The LinkedList is empty.");         }          list.head = temp.next;         temp.next = null;         size--;          // edge cases         // size 0         if (size == 0) {             list.tail = null;         }          return temp.name;     }      public static void printSList(SLinkedList list) {         SNode current = list.head;         System.out.print("Singly LinkedList is: ");          while (current != null) {             System.out.print(current.name + " ");             current = current.next;         }     }      //driver code     public static void main(String[] args) throws Exception {         SLinkedList list = new SLinkedList();          insertNode(list, "nuggie");         insertNode(list, "cloud");          addLast(list, "cotton");         // addLast(list, "jamie");         // addLast(list, "pot-roast");          addFirst(list, "kennedy");         addFirst(list, "hoegaarden");          System.out.println("The element removed is " + removeFirst(list));          System.out.println("Size of the Singly Linked List is " + size);         printSList(list);     }  }


Video sequence editor as 3d view background

I want to render 3D objects and grease pencil animation over an image sequence i have in the Video sequence editor, Is there a way to make the video sequence editor become the background video for the 3D view?


Cannot execute Java program: UnsupportedClassVersionError

I have installed JDK 6, but I can't execute a Java program.   For example, I have made test.java.  I compile it with javac tes.java and there's no error when I compile it, but when I want to execute that program it always displays an error.  I execute the Java program with java tes.  Exception in thread "main" java.lang.UnsupportedClassVersionError: tes : Unsupported major.minor version 51.0     at java.lang.ClassLoader.defineClass1(Native Method)     at java.lang.ClassLoader.defineClass(ClassLoader.java:634)     at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)     at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)     at java.net.URLClassLoader.access$000(URLClassLoader.java:73)     at java.net.URLClassLoader$1.run(URLClassLoader.java:212)     at java.security.AccessController.doPrivileged(Native Method)     at java.net.URLClassLoader.findClass(URLClassLoader.java:205)     at java.lang.ClassLoader.loadClass(ClassLoader.java:321)     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)     at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: tes. Program will exit.   My javac version is 1.7.0, my java version is 1.6.0.  Here is my tes.java code:  class tes{      public static void main(String[]args){         System.out.println("hello");         }     }


Converting code written in Python to PHP

I have the following Python code snippet and I am trying to convert this to PHP. This actually generates .  Python:  x,n=0,1<<int(sys.argv[1]) while n>x:print bin(n+x^x/2)[3:];x+=1   PHP  <?php  fscanf(STDIN, "%d\n", $number); $x=0; $n=1<<$number  while($n > $x) {     print decbin($n+$x^$x/2);     x++; }   Now, in the Python code there is a code at 2nd line inside the while loop:   bin(n+x^x/2)[3:];   I have converted this line to:  decbin($n+$x^$x/2);   but, what should be this: [3:] in PHP? And am I right for as far as I converted?


I'm a beginner in Python and I'm studying from the book Learning Python 5th edition by Mark Lutz.  In studying scoping and object reference, I've run across one thing that I quite did not understand. I understand that when you assign an object to other object, they're merely sharing a reference to the same address unless you perform top-level copying. However, I noticed that when you 'nest' the object, two objects no longer share the same address.   For example,  >>> L = [4, 5, 6] >>> X = L * 4                   # Like [4, 5, 6] + [4, 5, 6] + ... >>> Y = [L] * 4                 # [L] + [L] + ... = [L, L,...]  >>> X [4, 5, 6, 4, 5, 6, 4, 5, 6, 4, 5, 6] >>> Y [[4, 5, 6], [4, 5, 6], [4, 5, 6], [4, 5, 6]]   >>> L[1] = 0                    # Impacts Y but not X >>> X [4, 5, 6, 4, 5, 6, 4, 5, 6, 4, 5, 6] >>> Y [[4, 0, 6], [4, 0, 6], [4, 0, 6], [4, 0, 6]]   This is the part I don't understand. Why does changing L object impact Y but not X?


Is the locus of a point with the ratio of its distances from two given points being a constant $\neq 1$ always a circle?

Here is Prob. 29, in the Additional Problems For Chapter 1, in the book Calculus With Analytic Geometry by George F. Simmons, 2nd edition:  A point moves in such a way that the ratio of its distances from two fixed points is a constant $k \neq 1$. Show that the locus is a circle.  My Attempt:  Let the two fixed points be $Q = (a, b)$ and $R = (c, d)$. If $P = (x, y)$ is any point such that $$ \frac{PQ}{PR} = k, $$ then upon squaring and multiplying out by the denominator we obtain $$ k^2 (x-c)^2 + k^2 (y-d)^2 = (x-a)^2 + (y-b)^2, $$ which we can also rewrite as $$ \left( k^2-1\right) x^2 + \left( k^2-1\right) y^2 - 2\left( k^2 c - a \right) x - 2 \left( k^2 d - b \right) y = a^2 + b^2 -  k^2 \left( c^2 + d^2 \right), $$ and since $k > 0$ and $k \neq 1$, therefore we have $k^2 -1 \neq 0$, and thus upon dividing both sides by $k^2-1$, we obtain $$ x^2 + y^2 - \frac{ 2\left( k^2 c - a \right)  }{ k^2 - 1} x - \frac{ 2 \left( k^2 d - b \right)  }{k^2-1} y = \frac{ a^2 + b^2 -  k^2 \left( c^2 + d^2 \right) }{ k^2-1},  $$ and upon collecting together the terms in $x$ and the terms in $y$, we get $$ x^2 - 2 \frac{ \left( k^2 c - a \right)  }{ k^2 - 1} x  + y^2 - 2 \frac{  \left( k^2 d - b \right)  }{k^2-1} y = \frac{ a^2 + b^2 -  k^2 \left( c^2 + d^2 \right) }{ k^2-1},  $$ and upon completing the two squares on the left-hand-side, we get $$ \begin{align}  & \ \ \ \left( x - \frac{ \left( k^2 c - a \right)  }{ k^2 - 1}  \right)^2 + \left( y - \frac{  \left( k^2 d - b \right)  }{k^2-1} \right)^2 \\  &= \frac{ \left( k^2 c - a \right)^2  }{ \left( k^2 - 1 \right)^2 }  + \frac{  \left( k^2 d - b \right)^2   }{ \left( k^2-1 \right)^2 } + \frac{ a^2 + b^2 -  k^2 \left( c^2 + d^2 \right) }{ k^2-1} \\ &= \frac{ \left( k^2 c - a \right)^2  +  \left( k^2 d - b \right)^2   + \left( k^2-1 \right) \left( a^2 + b^2 \right) -  k^2 \left( k^2-1 \right) \left( c^2 + d^2 \right)   }{ \left( k^2 - 1 \right)^2 } \\ &= \frac{  k^2 \left( 2c^2 + 2d^2 -ac - bd + a^2 + b^2  \right) - k^4 \left( c^2 + d^2 \right) }{ \left( k^2 - 1 \right)^2 } \\ &= \ldots. \end{align} $$ Now the locus of the point $P = (x, y)$ is a circle if and only if $$ \frac{  k^2 \left( 2c^2 + 2d^2 -ac - bd + a^2 + b^2  \right) - k^4 \left( c^2 + d^2 \right) }{ \left( k^2 - 1 \right)^2 } > 0, $$ which is the case if and only if $$ k^2 \left( 2c^2 + 2d^2 -ac - bd + a^2 + b^2  \right) - k^4 \left( c^2 + d^2 \right) > 0. $$  Is what I have done so far correct in each and every detail? If so, how can we show that the last inequality always holds? Or, can we show this for all possible $a, b, c, d, k \in \mathbb{R}$ such that (i) $(a, b) \neq (c, d)$,  and (ii) $k > 0$ and $k \neq 1$? Or, are there any exceptions?


How do I integrate the following? $\int{\frac{(1+x^{2})\mathrm dx}{(1-x^{2})\sqrt{1+x^{4}}}}$

$$\int{\frac{1+x^2}{(1-x^2)\sqrt{1+x^4}}}\mathrm dx$$   This was a Calc 2 problem for extra credit (we have done hyperbolic trig functions too, if that helps) and I didn't get it (don't think anyone did) -- how would you go about it?


Why is my Mac trying to connect to 10.0.1.2:7000?

While working on other networking issues, I discovered my Mac, running El Capitan, was trying to make a TCP connection to 10.0.1.2:7000. What is trying to make that connection, why, and how do I turn it off?  Note: 10.0.1.2 is a "private" IPv4 address and should not be used by any site on the internet. None of our local networks use anything on 10.x.x.x, they are in other private subnet ranges.   Also note: the Mac is trying to initiate this outgoing connection. There is no inbound traffic. netstat shows nothing listening on 10.0.1.2:7000 (and indeed the traffic is being forwarded to a router, which is how I discovered it) and I have not been able to get lsof to show me any information about it.   Update/Answer  Not really a duplicate of the linked question (that question was about LittleSnitch and why it was complaining, and problems with its filtering rules regarding local networks), but related to the same issue. I would prefer to post the following as an answer but cannot while this is closed as duplicate.  Using tcpdump -k NP (from ) as suggested by klanomath confirmed that this is coming from AirPlayXPCHelper.  provides a list of AirPlay related ports. In particular, port 7000 is used for AirPlay Video, 5000 for Audio, and 5001 for Audio-related Events.


How do I prove that: $\sum_{i=0}^{\infty} \frac{i^2}{i!}=2e$

I've seen in Wolfram Alpha that $$\sum_{i=0}^{\infty} \frac{i^2}{i!}=2e$$ but I have no idea how to prove that.  Can anyone help me?  Thanks.


Someone accessed my EC2 Ubuntu 14.04 and installed some malicious cron to do port scanning with user eric. I removed user eric and the file executed, but in syslog I see  Sep 19 15:27:01 ip-xxx CRON[9388]: Authentication failure Sep 14 08:45:01 ip-xxx CRON[9389]: (eric) CMD (/var/tmp/.muh/y >/dev/null 2>&1) Sep 19 15:28:01 ip-xxx CRON[9389]: Authentication failure Sep 19 15:29:01 ip-xxx CRON[9391]: Authentication failure Sep 19 15:30:01 ip-xxx CRON[9392]: Authentication failure Sep 19 15:31:01 ip-xxx CRON[9526]: Authentication failure   Can anyone tell me how to find the cron installed (crontab is empty)?


Is the sum of all natural numbers countable?

I do not even know if the question makes sense.  The point is rather simply. If I have the sum of all natural numbers,  $$\sum_{n\in \mathbb{N}}n$$  this is clearly "equal to infinity".  But since almost a century ago, we know that there are (a lot of) different "infinities".  So, is this sum equal to something countable or something bigger?  I tried to look for references, but couldn't find anything and, since I am not an expert in Logic, Set Theory or Foundations of Mathematics, I thought that it would be good to ask here.  Thanks in advance, Davide  PS: This question is about sum of cardinals. It is not about Calculus.


Speed of light in a gravitational field?

How do I solve the speed of light in gravitational field?  Should I just add gravitational acceleration in speed of light?  $$c'=c_0+g(r)t~?$$


Problem  How to calculate center of each custom tile as a point (x,y) or (x,y,z) where z is zoom level, in a projection: EPSG:3857?  What I know about the tiles   Originally they are served as TMS They represent png images 256*256 They are in projection: EPSG:3857 In OpenLayers2 they were coded like TMS layer In OpenLayers3 (v.3.8.2) they are coded like XYZ layer (that includes -y) as shown in this example:   -    var baseLayer = new ol.layer.Tile({       source: new ol.source.XYZ({         url: 'http://path/to/the/tiles/base/{z}/{x}/{-y}.png'       })     })


I have just upgraded to Ubuntu 15.04 and get this on first and subsequent restarts "ACPI PCC probe failed, starting version 219" which just hangs my computer. I have to use recovery to get the computer to boot so I can send you this message. I am relatively new to Linux and would appreciate any help to resolve this issue. I have a dual boot with Windows 8.1 and don't want to upset anything that might mean a re-installation of both Windows and Ubuntu. Thanks in advance.


Teens on an island, forced to kill each other, collars prevent cooperation

This is something I heard mentioned in passing several (around five?) years ago, so I haven't read the book, nor have I watched the movie.  I think I heard about the movie, but I believe it's based on a book.  It's really more horror than sci-fi/fantasy, but I guess it could qualify for some sci-fi/fantasy sub-genres...  In retrospect, I've thought that what I remember is a lot like "The Hunger Games" and that I may have heard early talks about the film adaptation, but I don't really think so...  Some (young?) teens have been abducted and placed on an island (or somewhere else remote and isolated). (I assume) Only one of them will be allowed to leave, so they'll have to fight and kill each other. To prevent them from co-operating - or hatching a plan to escape - they've all been collared with something akin to shock-collars that will shock them (and possibly kill them) if they spend too much time in proximity to each other.  I believe it's somewhat Saw-like.


This might sound weird. I have a scene with alembic files. There are chunks in the timeline which do not need to be rendered. For example in a 200 frames timeline I want to skip say 20-51 and then 110-167. I cannot do this manually as I will be leaving my PC to render overnight and to save the render time I do not want to render the redundant parts. Is there a way to setup the file so that I render the parts I want from the timeline?


going to or will if there are evidences that something is going to be done

Florence: Oh, look at that mountain of dirty dishes! Who is going to wash     all of those?   Jack: I promise I will do them when I get home from work.    Why "going to" and not "will "is it because there are evidences that the dishes is going to be done or is it because it has been planned before. I think the first solution is right, there are a mountain of dirty dishes so I can conclude that the dishes is going to be done soon  Am I right? //www.englishpage.com/verbpage/verbs23.htm


Error message:  You do not have privileges to manipulate with the users!   Appears in PhpMyAdmin using Mariadb 10.3.7 on MacOs High Sierra installation from Homebrew  I'm logged in as root installed and rebooted with multiple server options: Mysql 5.7, Mysql 8.0 Mariadb 10.2 and 10.3.7.  I've tried everything from granting tables, flushing the permissions.  I need to be able to edit users from the PhpMyAdmin page and its not allowing me even though I have root access (with password set)


find /home/karl/dev/beer/ -printf "%P\n" | tar --exclude='./.git' -czf beer.tgz --no-recursion -C /home/karl/dev/beer/ -T -   The command still includes the .git directory.


Can I completely remove snappy packages from Ubuntu 20.04 without affecting the system?

I am using ubuntu 20.04 LTS on my hp-notebook ( i5-6th gen, 8GB RAM, 1GB AMD  Radeon graphics card). The snapd.services are causing my pc to boot slow (about 1 min 15 sec in userspace). Also, it takes about 15 sec from login screen to desktop. Is there any way to completely remove all snaps, snappy package manager and snap files and cache without breaking any other packages?


In trying to download the latest release, I see there are no alternate CDs available.  Previously I have needed them in order to install with a linux software raid root.  Does the lack of alternate CDs mean that all of those features are within the others? or have they not been finished yet?  I ideally wanted a kubuntu alternate CD but I see there is not an ubuntu one either.  Thanks


Failed adding custom icon for add-on button

How I add custom icon for add-on button? I have ready a 32x32 size photo for my icon but dob't know how to add it I have copy the code of:  But when I run script, it shown this   Besides, I don't know how to write the ID of my photo. I am trying. Please tell me how where could I type my photo ID.


show that if gcd(b,c) = 1 , gcd(a,bc) = gcd(a,b)gcd(a,c)

Show that if $\gcd(b,c) = 1$ then $\gcd(a,bc) = \gcd(a,b)\gcd(a,c).$   Everyone, I'm stuck on this proof. I know that: $$\gcd(a,bc)=\gcd(a,b)\cdot\gcd(a,c)\gcd(a,bc)\\=\gcd(a,b)\cdot\gcd(a,c),$$ but I don't know how I use $\gcd(b,c)=1$ to get that $\gcd(a,bc)=\gcd(a,b)\cdot\gcd(a,c)$


I am receiving email from daily running crontab which executes a php script. I want it to send me email if only it has errors or fails.  How to do that ?  Note: I am using cpanel to add cron job.  Thanks


Ubuntu 14.04 do not start up (latest kernel deleted)

Today I did install Ubuntu 14.04.3 LTS on a new PC (no dual boot!) After fine tuning the whole day, I did delete per accident the latest sub kernel of 3.19.0-30-gen. Now the pc do not start up at all, only the UBUNTU logo is visible. How can I repair this problem please, perhaps with the Live-CD or other programs or things? The Live CD is that the one I can dowload from the Ubuntu  site, so to try or install Ubuntu? Please help??!


I've noticed a few Survey type questions, which rely on feedback entries from the community which then get voted up or down. Unfortunately, there is no way to prevent duplicate entries, or easily identify them and merge them, or restrict entries to a single answer. This results in the same entry getting split votes.  e.g.   stackoverflow.com/questions/130095/most-useful-free-java-libraries stackoverflow.com/questions/529757/are-there-any-famous-one-man-army-programmers   This made me think of categorising the question types, similar to . There when the question is being composed, the author selects the answer type:     Multiple Choice Free Text etc.   It would be nice to be able to mark a question as "Extensible Survey", and identify unique answers based on a keyword, and allow merging of similar answers with the resuly being summed.


Minimal Makefile for pdflatex bibtex with output-directory

Does someone have a minimal Makefile, that compiles a latex document using    pdflatex bibtex pdflatex pdflatex   while putting all ouput files in a special output-directory to avoid cluttering the root-directory?


Book about a kid who gets pulled out of his reality right as a car accident happens

I have been trying to find this book for years to share with my kids, it would have been from the 90s. It was young adult sci-fi. The cover had a boy falling and a silver orb floating next to him.  The story is about a kid who gets pulled out of his reality right as a car accident happens, and I believe that they replaced him or his body with a clone, Millennium style. The world he is pulled into is covered by a dome, and run by silver orbs. The weather is controlled and it only rains on certain days, at the same time, with no thunder or lightning because it scares to kids and old folks.  The people are forbidden from leaving the dome, so of course the boy and a friend he makes do just that and adventure ensues. I can't remember the end of the book.


How to restart nautilus without logging out?

How do I just restart the nautilus after adding a nautilus script without having to log out.


Does using keywords in the image URL help the image rank for those keywords in Google image search?

I've always been told to use URL Rewriting on my sites because it was better for SEO. (http://example.com/articles?id=255 => http://example.com/articles/rewriting-img-links)  Now, I can see on  that it might not been as important as it seemed before. Anyways, because it's more visual for the user, I'm going to keep my URIs like this.  However, I can't find any documentation on the impact of img url rewrited. Here two examples of what I call an img with URL rewrited, and one without:
My Article

         ...         Rewriting IMG links is the best         ...

My Article

         ...         Rewriting IMG links is just a waste of time         ...
    Now, I want my image to be indexed by Google Images and that people can find it when they type "rewriting img links".  Does rewriting the img link have an impact in Google Image or is google Image juste basing itself on the content of the page where the image is based? (Or image recognition or whatever except link)


I have a JSP page and I managed to multiply each cena with kolicina.  <c:forEach items="${proizvodKorpa}" var="proizvod">
         ${proizvod.proizvod}	         ${proizvod.cena}	         ${proizvod.kolicina}	         ${proizvod.cena * proizvod.kolicina}
 </c:forEach>
     	     	     Ukupno	     SUM GOES HERE
   Now the problem is how  to sum total of each dynamically generated value and display it outside the foreach loop? Here's what I want to get :


How to prohibit write letters in a textbox? C#

I am learning to code in c#, so if I do not explain everything ok, do not kill me! I an practising with c#, trying to do a very simple calculator(only add), but when I write a letter(not number), the program crash because the textbox is saving data in a Int. I ask how to prohibit writting letters, but no numbers, so it doesn´t crash. Thanks! Sorry for not commenting the code, i am still forgetting doing that! Here is the relevant code:  using System; using System.Windows.Forms;  namespace calculadora { public partial class Suma : Form {     public Suma()     {         InitializeComponent();     }      private void Suma_Load(object sender, EventArgs e)     {      }     public int resultadoint, op1, op2; //declaracion de variables.     public string resultado; //declaracion de variable a mostrar.      private void button1_Click(object sender, EventArgs e)      {         resultadoint = op1 + op2;         resultadotext.Text = resultadoint.ToString();     }      private void label2_Click(object sender, EventArgs e)     {         //solo indicador de suma     }      private void label4_Click(object sender, EventArgs e)     {      }      private void operador1_TextChanged(object sender, EventArgs e) //se intruduce aquí el primer operador, op1.     {         op1 = int.Parse(operador1.Text);     }      private void operador2_TextChanged(object sender, EventArgs e) //se intruduce aquí el segundo operador, op2.     {         op2 = int.Parse(operador2.Text);      } }   My code do Not use KeyPress.


make awk print the line that match a variable and the next n lines and use a variable in awk

With an array of elements, and an input-file I want to loop through the array and match each element with the input-file. I then want to get the line in the input-file where this element is occurring and the 3 lines that follows directly beneath. I have tried doing it this way:  for variable in $array do awk -v var="$variable" '/var/{x=NR+3}(NR<=x){print}' inputfile.txt done   But this did not return the desired out put. I then tried grep:  for variable in $array do grep -A 3 "$variable" inputfile.txt done   And this works. I guess I solved my problem, but as I would like to get a better understanding of awk, I decided to post this question, as I am curious to know what I am doing wrong when I try and feed awk a variable. I think I might be confused because the awk piece I have picked up, is without a BEGIN part? I am guessing a BEGIN part is assumed , and not necessary? Can my problem be solved with awk? Is awk the best tool for this task? And can my awk example be rewritten to have a BEGIN and END section, so it matches the examples and tutorials in awk I have looked at elsewhere on the internet? Thanks


tail files in a directory without file name and header

The following script works to cat all files in a directory without header but prints the file name. How can I cat without file name.   tail -n +2 * >> Compile


Overlapping \part labels when using mulitple multicols environments in a \question (exam.cls)

I am creating an answer key booklet using exam.cls for a question sheet that I had made for some students.  Along with that, I've used the multicol package to create a 2-column structure within a question that is composed of multiple parts. To be more specific, I've used 3 multicols environments (as seen in the code further below), and my reason for this is so that the labels are ordered horizontally and not vertically. What I mean by horizontally is having (a), (c), (e) on the left side and (b), (d), (f) on the right so that (a) and (b) are on the same line, (c) and (d) together on the next and so on (what the screenshot below would have looked like had the letters not overlapped); which is contrary to the vertical-style labelling where (a), (b), (c) are in the left column and (d), (e), (f) in the right. I've been trying to achieve this horizontal-style labelling, but I am faced with the issue of the part letters being in the wrong places:    As you can see, part (c) and (e) are placed at the positions of (d) and (f) respectively, causing quite a mess. I would like to avoid repeating the question's original text (from the question sheet) after \question as I want (a) and (b) to be in-line with the question number. Here is my code:  \documentclass[11pt]{exam} \usepackage{multicol} \begin{document}     \begin{questions}         \question             \begin{parts}                 \begin{multicols}{2}                     \part answer                     \part answer                 \end{multicols}                 \begin{multicols}{2}                     \part answer                     \part answer                 \end{multicols}                 \begin{multicols}{2}                     \part answer                     \part answer                 \end{multicols}             \end{parts}     \end{questions} \end{document}   I am aware that placing the \part commands in a single multicols environment fixes the issue of overlapping letters, but this causes the labelling of the letters to be vertical and not horizontal. I also understand that the parts environment is used as the text for \question, but I can't understand why the output appears as such. How can I modify my code to fix this problem? And is using exam.cls inappropriate for this purpose?


Prove that $n^2 -1$ is divisible by $8$, for every odd integer $n$.

Prove that $n^2 - 1$ is divisible by $8$, for every odd integer $n$.    I tried to factorize and find something but still have no idea.


As a photography beginner, should I spend more on a lens or settle for a low end model?

I'm new to photography. I'm looking at getting a mirrorless Olympus camera, and am at present selecting the lens to accompany it. There is a good deal available on a package including a camera body + average rated lens (3.5 / 5).  The lens specs are 28-84mm equivalent (Olympus - M.Zuiko Digital ED 14-42mm f/3.5-5.6 II R Lens).  My question is, as someone who is starting this as a hobby am I best to spend more on a higher quality lens, or would the supplied lens be sufficient?


How does a pre-amplifier work and why is it needed?

I am making an amplifier and came across the fact that, if I want to operate a microphone then I will need a pre-amp.   What is the difference between power amplifiers and pre-amplifiers? Do both of them have the same gain, and if so then why do we need pre-amps?  Detailed explanation would be more more helpful to get the concept.