Mounting VFAT SD card on Ubuntu 14.04 not possible w/ x-gvfs-show option?

[Ubuntu 14.04.3  x86_64]  I have a 128MB SD card that I want to use as a read-only tripwire binary and database volume. Using UDisks I reformatted (complete wipe) that card with FAT-16 bit version as lone FAT option, along with NTFS and Ext4.   Next I tweaked the mount options from within UDisks, so my /etc/fstab entry is  (EDIT-1):  /dev/disk/by-label/TW_db-bin /mnt/TW_db-bin auto nosuid,nodev,nofail,x-gvfs-show,x-gvfs-name=TW-db-bin,x-gvfs-icon=TW-db-bin 0    EDIT-2: In UDisks, after successfully FAT re-formatting, I had:  Partition type: W95, FAT32(LBA)   # (*) Content: FAT (16-bit version)   (*) LBA mapping is late W95 FAT format style, i.e. total overkill on 128 MB SD media  Last I tried to mount it with the following result:  Error mounting system-managed device /dev/mmcblk0p1: Command-line `mount "/mnt/TW_db-bin"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/mmcblk0p1,        missing codepage or helper program, or other error        In some cases useful info is found in syslog - try        dmesg | tail  or so   (udisks-error-quark, 0)   dmesg | tail -f only gives me ufw related stuff.  Re. "Wrong fs type" per the chatty err mesg above... presumably because I used FAT-16 bit (FAT32 LBA)...   EDIT-3:  $ sudo fdisk -l /dev/mmcblk0  Disk /dev/mmcblk0: 125 MB, 125960192 bytes 8 heads, 32 sectors/track, 961 cylinders, total 246016 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000          Device Boot      Start         End      Blocks   Id  System /dev/mmcblk0p1              97      246015      122959+   c  W95 FAT32 (LBA)   I first tried Ext4 but ran into a formating error. Then I tried NTFS it mounted. Question: Is a FAT-16bit (FAT32 LBA) fs out of bound for Ubuntu 14.04 ?  =======================================================  EDIT-4: Apparently in gnome-disk-utility 3.10.0 (UDisks), you're outaluck when you want to format and mount a FAT SD32 LBA, as well as specify *"Show in user interface". That corresponds to the mount option: x-gvfs-show. Taking that out as well as:  - not specifying a label to mount on, such as `/mnt/foobar`  - not specifying an icon name (`x-gvfs-icon=foobar`)  - not specifying a display name (`x-gvfs-name=foobar`)   seems to solve the pbm. BUT WHY ?


My object mesh have some sort of serious tile pattern glitch

I think the problem I have has something to do with overlapping faces, because the pattern becomes more repeated each time i subdivide the object. I have tried to delete double vertices and recalculate normals to no end. However, the pattern disappears when i go into Sculpt mode, and the pattern stays no matter what material I assign to it. The pattern is still visible when the object is rendered.


I have a reference containing a name: Hornbaek. The author's used a ligature when writing their name. The citation uses Hornb\aek, which doesn't work in the bibliography, but does work in text. Here's an example:   \documentclass{article}  \usepackage{filecontents}  \begin{filecontents}{\jobname.bib} @inproceedings{Rasmussen:2012:SIR:2207676.2207781,  author = {Rasmussen, Majken K. and Pedersen, Esben W. and Petersen, Marianne G. and Hornb\aek, Kasper},  title = {Shape-changing interfaces: a review of the design space and open research questions},  booktitle = {Proceedings of the SIGCHI Conference on Human Factors in Computing Systems}, } \end{filecontents}  \begin{document}  Here's a ligature: \ae  \nocite{*} \bibliographystyle{alpha} \bibliography{\jobname} \end{document}   This doesn't work - it gives this error:           ! Undefined control sequence.     l.5   Hornb\aek      but if the \ae are removed from the citation, the correct ligature is displayed in the body of the document (so the \ae is right, just not in the citation). I attempted wrapping the command in {..}:   author = {... Hornb{\ae}k, Kasper},   but this gave me the same error. If I remove \ae from the citation, though, I don't get the ligature inserted for me.    How can I use an explicit ligature in a bibliographic reference?


How do i use XDM to download youtube videos on 16.04LTS?

I copied and pasted the url, but the downloded file is in html , not in video format.


Vertices of equilateral triangle inscribed in the unit circle

Prove that if $z_{1}+z_{2}+z_{3}=0$ and $|z_{1}|=|z_{2}|=|z_{3}|=1$ then the points $z_{1},z_{2},z_{3}$ are the vertices of an equilateral triangle inscribed in the unit circle $|z|=1$.  My idea was the following: since the sum of the numbers has to be $0$ and they have equal modulus, the interior angles between them should be equal to $120º$.   Later I could use the Inscribed Angles Theorem to prove that   $$\arg \left(\frac{z_{j}-z_{i}}{z_{j}-z_{k}}\right)=\frac{1}{2}\arg\left(\frac{z_{i}}{z_{k}}\right)$$   and since all $\arg(z_{i}/z_{k})=120º$, all angles would be equal. So the triangle formed would be equilateral.  I am wondering if this is correct and if would there be a more organized way to prove this.


Is it possible to combine two photons of different energies to get a single photon of a higher (combined) energy?

The question itself is pretty self explanatory. I asked this to my chemistry teacher when he was doing the photoelectric effect while teaching atomic structure, and he just shrugged it off.  One possible mechanism that I thought up, is an atom with a unpaired electron (say hydrogen) to absorb one photon, and jump to a higher energy level, and then just immediately be hit by another photon with a different energy which raises it to an even higher level. Then finally the electron falls back into its proper non exited state releasing not two but only one photon which has the energy of both the initial photons, ideally combining photons.  Is this mechanism correct? Does it occur in nature? Do photons have other ways in which they merge? or do they not merge at all?


The only information Tom Marvolo Riddle has about his parents are in his name.  In HP 6 Dumbledore shows Harry how Voldemort found the house of the Gaunts before learning about his father, who might have been easier to find, given that he knew his whole name.  So how did he find out about the Gaunts and how did he find their house?


How is the generator used in Feldman's Verifiable Secret Sharing scheme determined?

According to the Wikipedia description of      First, a cyclic group G of prime order p, along with a generator g of G, is chosen publicly as a system parameter. (Typically, one takes a subgroup of (Zq)*, where q is a prime such that p divides q-1.)   Why is it necessary to use a generator g in this process? What is the procedure to be followed to implement a method which produces this generator for a given prime order group Zp?


Is there any PERFORMANCE - difference between inner join and simple join?

Is there any performance - difference between inner join and simple join?  i.e. does either of them have a better execution plan and/or execution time? And will both these approaches always yield same result sets?


I know that IList is the interface and List is the concrete type but I still don't know when to use each one. What I'm doing now is if I don't need the Sort or FindAll methods I use the interface. Am I right? Is there a better way to decide when to use the interface or the concrete type?


As the topic says. How can I counter the knife attack? I've read about it somewhere and saw a video, but I still can't figure out how to counter the knife.  Like to the video:


Is there a program that tells ram usage?

Possible Duplicate:          I have Ubuntu 12.4 LTS and I need a program that will be able to monitor my ram usage. Any suggestions?


While studying the Fibonacci sequence I encountered this problem in the handout, and I can not understand how to do it.     Show that if the Fibonacci sequence has a term divisible by a natural number $m$, then there are infinitely many such terms.


Can there be black light? I mean is it possible to devise a machine that outputs darkness?

I understand there are various colours that light can have. But i was wondering why there is no 'black' light. What is the logical explanation for this? I mean I am expecting an answer that goes beyond mentioning the spectrum details. All I could think of was a machine as powerful as a blackhole; it could bend the light so hard that all we would see is darkness. But is there any other way?  P.S. I am a programmer and didn't study much Physics beyond high school. This question is not a goof. I am not asking this question for fun. I seriously have this curiosity.


Debatable questions/answers, public insight on vote counts

Some context:   provide some insights as to why vote counts are not displayed by default.  It is, for me, a rather unsatisfying reason. Not because it is not valid, but because it really is a shame that something that helpful has a restrained access for a very technical down-to-earth reason...  Now, I'm not sure showing the vote counts publicly for every post is the solution either. But first, why I think getting some information as to how much debate there is over a post is important.  Why I think such info might be useful:  I believe a 0-average or even a negative-average vote count may still have merit if 10 people voted up and say 10 people voted down (or even 11).  I feel negative votes put a lot of pressure on the poster (and that's good that it makes you re-think your answer), but sometimes, things are not that black and white.  Not to mention that there is quite a trend factor, I could sometimes witness some mimetism, to a mild extent of course. I think it is good for a user to see what the community thinks as a whole. Average votes are one thing, but is it significant all by itself? I am unsure.  Talking about peer pressure, when your post is down-voted, you (should) consider removing it, but if people are divided about it, then it might have some merit if only to show that, that people are divided about it.  Hence my feature request:  I think it would be interesting to have a way to measure how debatable (and debated) a question/answer is. If you can't show the votes explicitly, then I suggest something like an attribute saying that people are debating over it.  For instance, if a post has received more than n votes we might provide attributes like:   "unanimous", if most post go in one direction "debatable"/"debated"/"discussed"/"subject to discussion" or even "to be considered carefuly" (although this one seems biased), if there are many votes on either side   Of course, n, most and many are yet to be defined.  Not to mention that doing this instead of showing vote counts has two good points on top of provided that information:   only posts with more than n votes would be featuring this, so overall, the overhead is reduced, the accusation that less-experienced users might use vote counts to balance out questions/answers doesn't hold anymore since the vote count is unkown and since it requires many votes, adding one isn't that significant.   Discussion:  I think there is much to debate on this one.  What do you think? Why do you think it is a good/bad idea? Do you see the merit of such a feature? Do you even agree that such a feature would help the users evaluate their answers and those of others?


Regex exact match with special characters

Lets say I have three records:  1. Test() 2. Test () 3. Test   Right now I am having an issue where 'Test()' is returning both 'Test' and 'Test()' when it should just return 'Test()'  My regex is as simple as: /Test()/i  It looks like it is not reading the special characters properly. How can I go about fixing this regex?


Is it possible to make a tiny approximation in the equations of General Relativity so that they collapse to Newton's law of gravity?

GR and Newton give almost exactly the same result for the orbits of planets and the acceleration of falling bodies. Is it an incredible coincidence, or does GR have some tiny term (e.g., ict) that accounts for the difference? Is it possible to make GR collapse to Newton's law by ignoring that tiny term?


How can a question be tagged with a tag synonym?

The question  seems to be tagged with , which, last I checked, is a synonym of . How is it possible that a question can be tagged with a synonym? Don't synonyms automatically get replaced on questions?


How can I recover a drive partition lost while uninstalling ubuntu

I have a windows XP (SP2) desktop with 4 partitions C:14 GB ; D: 14 GB ;E: 55 GB; F: 55 GB; (approximate size)  I had installed Ubuntu 10.04 by creating space for it using existing disk partition (as guided by the installer)  Two new partitions were created by the installer (one with 10GB and the other 500MB) which dint have any name like windows partitions (ex: c,d,e,f) So, in the disk management I could see two unnamed partitions and 4 windows partitions (C,D,E,F) . Using Dual Boot I was able to use both windows and Ubuntu  Recently I wanted to uninstall Ubuntu , so followed steps given in the internet.  As guided, I went to Disk Management, right clicked on the first unnamed partition(which belonged to Ubuntu) and clicked Delete Volume.  According to the tutorial only that particular partition should have been deleted. But both my E and F drives disappeared including the other unnamed partition of Ubuntu. Now I can see only C drive (14gb) and D drive (14gb) and another partition which is seen as "120 GB free space" .  Also, I don't have a windows installation CD and I'm getting screen which shows GRUB rescue in the command prompt when I start my computer.  Just when I found out I lost 2 of the drives I shut down my computer. When I started it again I got the GRUB rescue screen and have not been able to login since then.  And I see "120GB free space" instead of E and F drives in the Disk Management.  In MyComputer I can see only C and D drives.  I lost both E and F drives where I had stored most of my data. I badly want the data back.


Logic - how to write $\exists !x$ without the $\exists !$ symbol

What is $\exists !$ equivalent to? I need to write $\exists !x \,P(x)$ without using the $\exists !$ symbol; thus, I am wondering what the $\exists !$ symbol is equivalent to.


Replacements for switch statement in Python?

I want to write a function in Python that returns different fixed values based on the value of an input index.    In other languages I would use a switch or case statement, but Python does not appear to have a switch statement.  What are the recommended Python solutions in this scenario?


Make if statment not care about capitalisation

I want to make if comparisons not care about the capitals. I have tried to Google this but nothing shows up with the answer im looking for. Example Code: word = input() if word == 'banana':     print("Apples")


Why is $\sum{(x_i-\overline{x})^2}$ = $\sum{(x_i-\overline{x})x_i}$ true?

I have seen this equality many times in books but I never found an explanatory derivation.


Why are tires that fit 622mm wheels called 700C

where does the 700 come from and what does the C stand for in 700c?


I  have a list of saved items that the user can delete if he wants. They are inside a #div, a delete button next to each item. If I press the delete button after the favorite items list page is loaded, it works fine.  But, if I want to delete another item, as I press on the delete button, the delete function would not run.  There is my AJAX:  $(".substitut").on('click', function(event) {     event.preventDefault();           var product = $(this).val();                    var url = '/register/delete/';        $.ajax({                 url: url,                 type: "POST",         data:{             'product': product,                         'csrfmiddlewaretoken': $('input[name=csrfmiddlewaretoken]').val()         },         datatype:'json',         success: function(data) {           if (data['success'])                         $("#fav_list").load(" #fav_list > *");                }     });  });   and my HTML:  <button type ='button' class=' btn substitut' value='{{ saved.id }}'>{% csrf_token %}<i class='fas fa-trash-alt'></i></button>    One quick trick I found was to add location.reload(true); after the div refresh but the point of all of this is not having my page refreshing.


Do professors tailor recommendations to universities?

Preferably from a professor's candid viewpoint. When writing graduate recommendations for an undergraduate, do professors write general recommendations describing why #insert name# is a great fit for graduate school or do they tailor each letter to the school. I know this can vary from professor to professor, but what is a common practice.   I ask because I will be applying to graduate schools (quite a few of them on my list currently) and just wondering how much extra work each school is for my professors.


How to Know the MIME type of file manually? in my case type is showing "FILE" and don't have extension

Need to know the MIME Types of file without program file name don't have any extension


Risk of Installing a Custom ROM, with no more future updates

What is the risk of installing a custom ROM whose build has been terminated by the developer(which may be a stable). I think no more future build updates will be available. I know there will be having higher chances of security risk. What are the other risks should I bother?   As there is no security updates further, how to can I use it securely?  ROM is the one which I have previously used, possibly having least bugs. Is it safe for continuing or switch to other ROM?   Device : rooted Redmi 1S, nougat 7.1.1


I think we need a flag for non-English speakers

It would help everyone if we provided a mechanism that people could use to flag their post if English is language they are not comfortably fluent in. A lot of non-English speakers have to go to English forums for tech support and find it embarrassing to ask questions in broken Englis.   Worse, people reading a post often cannot tell if a badly-worded post results from a poor English or just laziness and sloppiness on the part of a native English speaker. Personally, I will take the time to puzzle out a poorly-worded post if I know the author is struggling with English, but if I think they're just lazy and careless I won't bother.   A simple check box could flag the author as a non-English speaker and allow everyone to adjust accordingly.   Edit01:  Some answers below have accused me of being 'elitist'. I'm not sure where they got the idea that I was sneering down at anyone because their abilities at either English or coding. That was not my intent.   When I said I would not bother with post that appeared to incoherent owing to laziness or carelessness, I am not being elitist. I'm giving priority in my time budget to people who are respectful enough of my time to spend the their time writing as clear a question as their grasp of English and coding allows. Why should I spend time answering a careless and slapdash post when I could spend that time helping posters who took more of their time writing their questions?   I am perfectly willing to burn a lot of time helping someone struggling to write code in their non-native language. I have a hard enough time coding myself in English that I can't even imagine what a dog's breakfast I would make of it if I had to code in, say, Korean.    I have seen many instances in which questions have been downvoted when a quick glance at the poster's profile gives a strong hint they are not native English speakers. I would like a system that would spare those posters from being downvoted or ignored by using an interface element that clearly communicates in a standardized way whether the poster natively speaks English or not.   I don't see what's elitist about that.    Edit02:   (original unedited) I'm talking about:     Hy, I have a childe view that put it   self over other brother views. The   problem is that when i touch it the   brother also reacts at the touch   event. How can I disable touch   propagation on the underlieng brother   views?   I'm not even exactly sure what he is describing. I can guess that he has a sibling view that extends over its siblings but I'm not sure. If I edited it, I might not end up asking the same question the poster intended.   To answer the question, I will either have to (1) first ask for more detail and then keep checking back until I get it or (2) try to answer what I think the question is and possibly mangle it then have to come back and edit my answer all the while risking a downvote because I answered the wrong question.   I will take the time and the risk of down vote if the poster is not a native English speaker (or is a child) and the confusing question represents their honest best effort. If they're just being lazy, I have other people to help.   I would like a mechanism that would help me decide how to allocate my time and would protect the non-English speaking posters from unjust downvotes.


Stop Edit/Rollback Wars: Limit Number Of Edits/Rollbacks Per User Per Post Per Day

I came up with an idea for how to begin putting an end to the edit/rollback wars and then the ensuing comments battle...   What if you are only allowed to edit a post (not the author) once a day. What if you are also only allowed to rollback one edit to your post a day. There would not be a overall limit on the users ability to edit other posts other than the one edit per post per day. There would also not be a limit on the number of times a single post could be edited or rolledback (multiple users), but each edit/rollback would trigger the 24 hour wait... There is currently some threshold in place that allows a post to be edited after it is posted without calling it an edit.  This same threshold could apply to the edit in case a mistake is made (fat fingered, mis-tagged, etc.) which would allow the editor a window of time to correct a mistake before getting locked out.     If either the editor or rollerbacker feel that the current state of the post is not acceptable and they are out of mods for the day, then a moderator can get flagged through the current process.


How to compute inverse polynomials modulo an integer

I am working with polynomials in the ring $\mathbb{Z}[X]/(X^n-1)$, so only polynomials with degree at most $n-1$ are allowed, and multiplications must be reduced modulo $X^n-1$. The thing is that I have a polynomial $f(X)$ and I want to compute its inverse modulo an integer $p$, $f_p(X)$, such that $$ f * f_p \equiv 1 \bmod p $$ How could I do that? Any known algorithm? I have heard about the extended Euclidean algorithm, but I'm not quite sure how to use it, for example, given $f(X) = -1+X+X^2-X^4+X^6+X^9-X^{10}$.


Why is Methane a more effective greenhouse gas compared to Carbon dioxide?

Over 100 years, Methane has a  34 times bigger than Carbon dioxide. Over 20 years, it's even 86 times bigger. How does one arrive at these numbers?  Looking at the following graphic doesn't help either, as the area for Methane barely covers the left margin of the upgoing thermal radiation and Carbon dioxide is at the right margin. The area under the absorption curve for Carbon dioxide is definitely bigger than the one for Methane.    Source:   So what makes Methane a more effective greenhouse gas?


Wifi disconnects after laptop is suspended

I'm experiencing WiFi disconnects after suspending my laptop or closing the lid. I'm relatively new to Linux, so after I restarted my PC the problem was fixed again. However, it still says that I have disconnected from the internet whenever I suspend/close the lid of my laptop. I've noticed that I actually haven't disconnected from the internet and I can still access websites. The menu no longer shows a WiFi logo but shows two arrows in opposite directions and when you click on it the WiFi Networks are grayed out.


Can I use Empowered Spell on spells cast with a Wand of Magic Missile?

The Sorcerer's metamagic features has the following general rules:  At 3rd level, you gain the ability to twist your spells to suit your needs...You can use only one Metamagic option on a spell when you cast it, unless otherwise noted.  The Empowered Spell metamagic states:  When you roll damage for a spell, you can spend 1 sorcery point to reroll a number of the damage dice up to your Charisma modifier (minimum of one). You must use the new rolls.  The Wand of Magic Missiles states:  While holding it, you can use an action to expend 1 or more of its charges to cast the magic missile spell from it.  My question is does the process of activating the Wand equate to the sorcerer casting the Magic Missile spell and thus it becomes a suitable target spell for enhancement using the Empower Spell metamagic? Or does the casting occur from the wand and not from the sorcerer, thereby rendering the spell invalid for metamagic enhancement?


Net Use command with relative target path

I have a batch file located in several folders and in this file I need to replace the old subst T: . command for net use because the units (drives) have different properties in windows 7.  However, I have only found that net use only allows for absolute paths such as:  net use T: \\path\to\folder   I cannot work with absolute paths, but net use T: . is not allowed (it throws an error).  Is there a way to execute the net use command from a folder so that it uses the current .bat directory?  I think the best solution for me it would be to be able to get the absolute qualified path (\path\to\folder) with a batch command. (%cd% and chdir variables do not work in this case). Questions about getting the current directory or folder name are not useful since the net usecommand does not allow paths such as x:\path\to\folder


How to permanently block 'Sign in with Google' suggestions from websites?

Some websites pop-up a message suggesting Sign in to 'me' with Google:    Examples:   medium.com seems to do this once (the setting is stored in a cookie; when I remove that the pop-up appears again); pinterest.com keeps nagging me everytime I follow a link to it (often from a Google image search).   How can I block these suggestions, from any website from now on? My Google-Fu fails me here because most search results are about Google search suggestions or automatically logging in with Google.  Notes:   I'm always logged into Google and want to keep that; I'm using FireFox; I'm using AdBlock plus, maybe there's something I can configure there?


Pre and post increment/decrement operators in C#

In C#, does anybody know why the following will compile:  int i = 1; ++i; i++;   but this will not compile?  int i = 1; ++i++;   (Compiler error: The operand of an increment or decrement operator must be a variable, property or indexer.)


For Einstein's equation $E= mc^2$ is it energy that increases or mass as the velocity increases?

I will be surprised if no one asked this before and I would be happy if it is answered already although I haven't located it just yet! From Einstein's original paper "Does The Inertia of a Body Depend on it's Energy Content" 1905. I am wondering if maybe my original thinking is not right. I always thought that energy increased as velocity increased. End of story. But as I hear videos and read books the mantra seems to be  mass increases as velocity increases. So which is right I wonder. I know I left gamma out of the equation in the question. Assume it is there thank you.


Is the set of cardinalities totally ordered?

If there exists no injection $X \rightarrow Y$ does that mean that there exists a surjection $Y \rightarrow X$ ?  If there exists no surjection $X \rightarrow Y$ does that mean that there exists an injection $Y \rightarrow X$ ?  In other words, are two sets always comparable by size ?


Task Manager for Firefox (like in Chrome?)

I was looking over Chrome and the task manager feature and really wishing something like this was in Firefox (as i have lots of addons [probably too many] and lots of tabs open). I looked for an addon or something but perhaps I have missed something? Anyone know of something like Chrome's task manager but for FF?


Is time really a 1-dimensional object that we only traverse through?

Is time really a 1-dimensional object that we traverse || is it possible that time can also be traversed horizontally.  I think the later would also put it on a 2 dimensional plane.


What will be the variation in potential in a zero resistance wire connected to a battery?

Consider an electric circuit with a battery and a resistor connected through a wire of zero resistance. Since the wire offers no resistance, all points on the wire are at same potential, then why on earth does the electrons flow towards the resistor? And what if there was no resistor at all. Why would a potential difference arise in such a case? What would be the source of potential drop in this case?


How can I create Icons on the Desktop. Using Ubuntu 14.04(Unity). I think terminal will help, the problem is that I am new to Ubuntu. Linking can not work I Tried it. Thanks in advance


Best IDE for php/web developement in Ubuntu

Can anyone suggest an IDE for php development in ubuntu 14.04.  In Netbeans fonts looks narrow and ugly. Is there anyother alternative ?  What about Aptana Studio 3 ?


With my team we are trying to agree on some common terminology, conventions etc. for a new testing scheme. We are mostly done, however we can't agree on whether verify or validate is the better term for checking if something is as specified.  Which term should be used to describe the action?  Why are we debating on this? Here are the Oxford Dictionary's definitions:  verify:     make sure or demonstrate that (something) is true, accurate, or justified   validate:     check or prove the validity or accuracy of [something]


Having problems with static error on java

I am new to java and i have a project about making a quiz with a timer, but that's not what i was going to ask since i am trying my best to make this project on my own, but this "static" error is something that i think that is hindering me from getting what i wanted from my code, i tried googling many ways to program what i wanted to do and this is the code that i ended up making, just dont mind the logic or my code, its just my code is full of static, i tried removing them all except the one from my main method, but i only get errors out of it, please help me or guide me what do i have to do to remove static. thank you  import java.util.Timer; import java.util.TimerTask; import java.util.Scanner; import java.io.IOException; public class q2 { static int seconds = 0;  static Scanner a=new Scanner(System.in); static Timer timer = new Timer(); static int number = 1; static int score = 0; public static void mema(){     TimerTask task = new TimerTask ()  {     public void run()      {         seconds++;         System.out.print(seconds);   } };  timer.schedule(task,1000,1000); }     public static void tanong1(String... args)throws IOException,InterruptedException {   System.out.println(""); System.out.printf("%72s\n","QUIZ FOR PHILIPPINE HISTORY"); System.out.println(""); System.out.printf("%64s\n","Question #1"); System.out.println(""); System.out.println("\t\t\t\t\t     WHO DISCOVERED PHILIPPINES?"); System.out.println("\n\t\t\t\t\t\tA. Fernando Magellan"); System.out.println("\t\t\t\t\t\tB. Ferdinand Megallan"); System.out.println("\t\t\t\t\t\tC. Ferdinand Magellan"); System.out.println("\t\t\t\t\t\tD. Fernando Poe");  System.out.println("\n\t\t\t\t\t\tTYPE YOU ANSWER HERE: ");  char sagot1 = a.nextLine().charAt(0);            switch (sagot1)         {             case 'B':             case 'b':                 score++;                     seconds=30;                 System.out.print("You are CORRECT!");                 Thread.sleep(3000);                 break;                 default:                 System.out.print("You are WRONG");                 seconds=30;                 Thread.sleep(3000);                 break;          }  }  public static void tanong2(String... args)throws IOException,InterruptedException {   System.out.println(""); System.out.printf("%72s\n","QUIZ FOR PHILIPPINE HISTORY"); System.out.println(""); System.out.printf("%64s\n","Question #2"); System.out.println(""); System.out.println("\t\t\t\t\t     WHO DISCOVERED PHILIPPINES?"); System.out.println("\n\t\t\t\t\t\tA. Fernando Magellan"); System.out.println("\t\t\t\t\t\tB. Ferdinand Megallan"); System.out.println("\t\t\t\t\t\tC. Ferdinand Magellan"); System.out.println("\t\t\t\t\t\tD. Fernando Poe");  System.out.println("\n\t\t\t\t\t\tTYPE YOU ANSWER HERE: "); char sagot2 = a.nextLine().charAt(0);         switch (sagot2)         {             case 'B':             case 'b':                 score++;                 seconds=60;                 System.out.print("You are CORRECT!");                 break;             default:                 System.out.print("You are WRONG");                 seconds=60;                 break;         } }  public static void main(String... args)throws IOException,InterruptedException {   mema(); while(seconds<=5){     tanong1();         } while(seconds<=60||seconds>=6){     new ProcessBuilder("cmd","/c","cls").inheritIO().start().waitFor();     tanong2(); }   } }      this is the error that i am getting in case i remove the static on my seconds variable error: non-static variable seconds cannot be referenced from a static context. i just want to know what do i have to do, thank you in advanced.


i can't get the use of #import and @class  let's try to make things clear with a simple classical example: the employee case.  I have a class employee, a class manager and a class department.  Employee is superclass of manager and also contain an object department ( so where should i import department? in employee.h or employee.m and should i use #import or @class ? )  Department contains an array of employees so it should so should import the class employee.h ( should i use import or class? and where? )  i know theres a better way to solve this problem, using databases or so but that's not my point, i want to understand when and where to use #import and where and when use @class   i tried to read similar post but i didn't understand how that works...


Latent variables motivation for ordinal and binary logistic regression

The latent variable motivation for losgistic regression goes thus. There exist $Y^*=\beta^tX+\epsilon$ which is continuous. We can only observe $Y$ at specific thresholds of $Y^*$, say at $Y^*\leq \alpha_1$, $\alpha_1<Y^*\leq \alpha_2$, $\alpha_2<Y^*\leq \alpha_3$ and $\alpha_3<Y^*\leq \alpha_4$, with $Y=1, 2, 3,4$ respectively  Therefore $P(Y\leq j)=P(Y^*\leq \alpha_j)=P(\beta^tX+\epsilon\leq  \alpha_j)=P(\epsilon\leq  \alpha_j-\beta^tX)$  Assuming  that $\epsilon$ is logistic then we have: logit$(P(Y\leq j))=\alpha_j-\beta^tX$  My question goes like this: With only one threshold say say $\alpha$: We get a binary logistic model of the form  logit$(P(Y=j))=\alpha-\beta^tX$.  and with $n$ thresholds for large $n$ we observe almost all of $Y^*$ so we can use  ordinary least squares regression for modeling. Can someone illustrate to me in a nice way what we gain and what we loose for large $n$ and for small $n$ where $n$ refers to the number of thresholds?.


Do there exist any 3-regular graphs with an odd number of vertices? I'm starting a delve into graph theory and can prove the existence of a 3-regular graph for any even number of vertices 4 or greater, but can't find any odd ones.


How many hits per second do the weapon speeds indicate?

I am trying to find which does more damage per second: The polished silver sword or the trolls bludgeon. The one thing I don't know the frequency of hits from the weapon speeds eg. fast, slow, very slow. so i want to know: How many hits per second does each weapon speed do?


Better resolution for pdf file in Texstudio

I notice that the quality of the viewer of Texstudio is much better than that of the pdf file it creates. It seems that some quality is lost during the conversion. See below for the comparison. Is there a way to retain the same quality of the viewer in the pdf file? Thanks in advance for any tips.  Viewer:   Pdf:


How to populate the geometry column in a PostGIS table?

After loading a polygon shapefile into PostGIS, the geometry column (geom) is blank for several features. In one case, only a single feature has the geometry calculated and all others are blank. I'm using the PostGIS SHP and DBF loader v.2.0. I am creating a spatial index, and using COPY rather than INSERT. I have loaded several other point datasets and they geom column is populated just fine... (Otherwise, things are working just fine for the polygons: when I create a new feature, the geometry is calculated / geom field populated...etc.) Have I done something wrong when importing the data?  Solution by @ThomasG77 (in comments) PgAdmin3 [doesn't] display features that are too complex but they are present.  You can try SELECT length(ST_astext(the_geom)) from your_table to confirm or you can find "true" empty geometry with SELECT * from your_table WHERE the_geom IS NULL;.


using @misc to cite a text but get odd output

I am struggling with the bibtex for a long time, could you help me?  I want to cite a text from on a website without author. Therefore, I am using @misc in bibtex to cite it. The code is as follows:  @misc{sensitivity_and_specificity,     key={sensitivity-specificity},     Publisher={Emory University Medical School Evidence Based Medicine Course},     title = {Sensitivity and Specificity},     url = {http://www.med.emory.edu/EMAC/curriculum/diagnosis/sensand.htm},     urldate = {2017-08-30} }   But I only get the output which is not what I want to have  As shown in the figure above, the colon ( : )  in front is not wanted, and in the end, the wort "Zugriffsdatum" is expected to be changed in English. I have serched online for long and find the code should be correct. I think the problem may be caused by the template which I am using right now. But I have totally no idea how to change it. Could you help me. Thank you in advance.  Best regards YQ


Ubuntu and Windows 8.1 Dual Boot on Toshiba Satellite

I recently bought a Toshiba Satellite P50, I tried installing Ubuntu 12.04.3 and 13.10 alongside Windows 8.1.  If I disable Secure Boot, but leave the UEFI mode on, I can get to the screen that asks If I want to try Ubuntu. When I select that option the screen just goes black and nothing happens.   I'm only able to load Ubuntu from a usb when the Secure Boot and the UEFI mode are both enabled. But, after I install it, the computer loads only into Windows. I ran the boot-repair after from the usb, after disabling Secure Boot, and it told me that I should disable Secure Boot, but when I did I was again unable to load it from the usb.  Thanks for taking the time to read this. Any help or suggestions with would be greatly appreciated!!


Explanation for the command "kill -n 9 0"

I am searching kill command's full manual, but in man kill or even with Google, I cannot find this command's meaning below:  kill -n 9 0   I am sure it has a very easy answer.


Citing two authors gets displayed incorrectly

I have a problem with my citations, I want to cite an article with two authors, A Surname and B Lastname. I write it as following in my .bib file:  @article{crillersen, Author = {Surname, A and Lastname, B}, Title = {Random title}, Year = {2006}, Pages = {1,9 and 14}, Journal ={some journal}, url={http://www.someurl.com/}, }   I get the result:      Surname, A and B Lastname (2006). "Random title". I:some journal, 1, 9 and 14. url:.   The setup I am using is:  \documentclass{article}  \usepackage[utf8]{inputenc} \usepackage[swedish]{babel}  \usepackage[backend=biber, style=authoryear]{biblatex}  \usepackage{floatrow} \usepackage{graphicx} \usepackage{csquotes}  \begin{document}  \tableofcontents \listoffigures \listoftables  \printbibliography  \end{document}   Why do I get the surname first on the first person and the first name first on the second person? I have tried to look though previously asked questions but found nothing about this.  How can I print this correctly?


Why do I need to run commands as administrator if my account is member of administrator group?

If my account is already a member of the administrator group why do some functions on Windows 7 require me to run them as administator? I kind of thought that was implied?


I have a mesh that was created from an SVG file (using InkScape) and I want to bend it around a smooth curved wall. I am using a lattice but there's not enough vertical cuts and I don't know how to create them in this instance, so I end up with a deformed mesh. Can anyone help? Thanks


I have a strange hard drive error that is happening about once per second. Googling I see that people are suggesting: 1. a bad SATA cable, or 2. a bad PSU. Does anyone have any experience with this? Seems very unlikely that a bad SATA cable can actually happen.  [   44.024915] ata4: irq_stat 0x00000040, connection status changed [   44.024918] ata4: SError: { CommWake DevExch } [   44.024922] ata4: hard resetting link [   46.243456] ata4: SATA link down (SStatus 1 SControl 300) [   46.243468] ata4: EH complete [   46.260369] ata4: exception Emask 0x10 SAct 0x0 SErr 0x4040000 action 0xe frozen


What is the opposite category of $\operatorname{Top}$?

My question is rather imprecise and open to modification. I am not entirely sure what I am looking for but the question seemed interesting enough to ask:   The opposite category of rings is the category of affine schemes. This is usually thought of as the category of spaces. Can we run the construction backwards for categories usually thought of as containing spaces?  For instance, does $\operatorname{Top}^{\operatorname{op}}$ have a nice description as some "algebraic" category?  Note that it does not seem easy to describe the opposite category of all schemes. Therefore, the above question might be asking too much. Perhaps the following is a more tractable (or not) question:  Can we find an "algebraic" category $C$ such that we can embed $C^{\operatorname{op}}$ in $\operatorname{Top}$ such that every topological space can be covered by objects in $C^{\operatorname{op}}$? Perhaps one would like to replace this criterion of being covered by objects by a more robust notion in general.  One can repeat the question for other categories of spaces like:   Category of manifolds (perhaps closer to schemes than general topological spaces) Compactly generated spaces Simplicial Sets   and so on. A perhaps interesting example is the category of finite sets, it's opposite category is the category of finite Boolean algebras.


Scroll problem with mouse and my tablet android

I  have a  I use it with a mouse connected to USB thanks to . For some time with my mouse, I can no longer scroll through the pages of browsers like Firefox or Chrome. Rather than scrolling the text from top to bottom or vice versa, it selects the text for me! I can no longer also do a copy / paste in the web pages, it selects but without displaying "copy / paste" I reset my tablet but it doesn't change anything. I have tried with a bluetooth mouse and have the same problem. The funny thing is that when I take control of my tablet with my computer and with teamviewer I use my computer mouse! Well it works. I can scroll web pages through my computer. An idea ? Thank you


ls -l *.txt | wc -l | tee count.txt ls -l *.txt | wc -l > tee count.txt   I am learning basic Unix commands. I thought those two commands mentioned would do the same thing, but they do not. Only the first command writes to count.txt. How come the output redirection used in the second command is not doing anything?


I am trying to catch and exception message as below and running into below errors,can anyone provided inputs on how to fix this?is there a better way to handle string matching?              catch (Exception ex)             {                 ////catch                 {                     if (ex.Message.Contains("Reading from the stream has failed", StringComparison.OrdinalIgnoreCase))                     {                         throw;                     }                      else                     {                         throw;                     }                  }       }      Error  1   Instance argument: cannot convert from 'string' to 'System.Linq.IQueryable'       Error  2   'string' does not contain a definition for 'Contains' and the best extension method overload 'System.Linq.Queryable.Contains(System.Linq.IQueryable, TSource, System.Collections.Generic.IEqualityComparer)' has some invalid arguments      Error  3   Argument 3: cannot convert from 'System.StringComparison' to 'System.Collections.Generic.IEqualityComparer' C:\Users\gnakkala\gnakkala_dashboard\source\qcom\qca\wconnect\wbit\automation\Dashboard\sandbox\Dashboard.Data.Repository\BuildRepositories\LookaheadGerritsRepository.cs


I have a distance matrix that I want to cluster. What methods can I use to cluster the elements just based on the distance matrix (beside hierarchical clustering)?


I'm developing an Android application with Android Studio and since today I can no longer run the app because when Android Studio installs the apk on my device, the package installer crashes with the following message "Unfortunately, package installer has stopped". The strange thing is that when I run the application I can see for a second the main activity and its components but then everything crashes. This is the exception:  10-15 22:16:48.185 1793-1793/? E/AndroidRuntime: FATAL EXCEPTION: main      Process: com.android.packageinstaller, PID: 1793 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.packageinstaller/com.android.packageinstaller.permission.ui.GrantPermissionsActivity}: java.lang.NullPointerException: Attempt to get length of null array     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2434)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)     at android.app.ActivityThread.access$900(ActivityThread.java:153)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)     at android.os.Handler.dispatchMessage(Handler.java:102)     at android.os.Looper.loop(Looper.java:148)     at android.app.ActivityThread.main(ActivityThread.java:5451)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) Caused by: java.lang.NullPointerException: Attempt to get length of null array     at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.computePermissionGrantState(GrantPermissionsActivity.java:312)     at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.updateDefaultResults(GrantPermissionsActivity.java:362)     at com.android.packageinstaller.permission.ui.GrantPermissionsActivity.onCreate(GrantPermissionsActivity.java:105)     at android.app.Activity.performCreate(Activity.java:6323)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2387)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2494)      at android.app.ActivityThread.access$900(ActivityThread.java:153)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1347)      at android.os.Handler.dispatchMessage(Handler.java:102)      at android.os.Looper.loop(Looper.java:148)      at android.app.ActivityThread.main(ActivityThread.java:5451)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   Thank you very much in advance


If/else statement in java is crashing my android app. The if statement works but the else just crashes

My login works fine when I enter the correct username and password and it starts a new activity. But for some reason when I enter incorrect username and password it doesn't proceed and the app just crashes. protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);     myDB = new DBHelper(this);      EditText txtUser = (EditText) findViewById(R.id.txtUser);     EditText txtPassword= (EditText) findViewById(R.id.txtPassword);      Button btnLogin = (Button) findViewById(R.id.btnAdminLogin);     Button btnCreateAcc = (Button) findViewById(R.id.btnCreateAcc);     Button btnAdmin = (Button) findViewById(R.id.btnAdmin);      btnLogin.setOnClickListener(new View.OnClickListener() {         @Override         public void onClick(View v) {             u = new User();             String username = txtUser.getText().toString();             String pass = txtPassword.getText().toString();              u = myDB.readUser(username);              if(u.getUser().equals(username) && u.getPass().equals(pass)){                 Intent menu = new Intent(getApplicationContext(), MainMenu.class);                 startActivity(menu);             }             else {                Toast.makeText(MainActivity.this, "Incorrect username or password!" + pass, Toast.LENGTH_SHORT).show();             }          }     });  This is in my DBhelper, readUser. public User readUser(String user){     SQLiteDatabase db = this.getReadableDatabase();     User u =null;     String where =  col_uname + " = ?";     String[] selectionArgs = {user};     Cursor cursor =db.query("tblUser", null, where, selectionArgs, null, null, null);      try {         if(cursor.moveToNext()) {             u = new User();             u.setUser(cursor.getString(0));             u.setPass(cursor.getString(4));             u.setFname(cursor.getString(1));             u.setMname(cursor.getString(2));             u.setLname(cursor.getString(3));             u.setMobile(cursor.getString(6));             u.setCity(cursor.getString(5));         }     } catch(Exception ex) {}      db.close();     return u; }  I don't know what I did wrong with my if/else statement. Pls help.


Example of finite field extension where root not separable

My class notes has as theorem (without proof): "Let $K/F$ be finite field extension, with $K=F(\alpha_1,\ldots,\alpha_n)$ and $\alpha_k$ is separable for all $k$. Then $K/F$ is separable".  My question is: in either finite field, or field characteristic $0$, will the $\alpha_k$ always be separable? (by "$\alpha_k$ separable" I mean that its minimal polynomial is separable). Also, could somebody give me an example for which an $\alpha_k$ is not separable?


Transformed data due to non-normal residuals - how to see if it actually improved the model?

I am trying to run a linear regression model (ideally) to see whether age (continuous variable) affects levels of stress hormone (also continuous, dependent variable), i.e. hypothesis testing. My hormone level results are right-skewed and non-normal, and the residuals of a simple linear model have a similar distribution (see plots of residuals below). Age is normally distributed.  Scatter of raw data (has a couple outliers):  Histogram of residuals:    I have also tried various transformations of my dependent variable (hormone levels) to improve the outcome of the model. The best normality plots came from the Tukey transformation. See plots below.  Scatter of transformed hormone level on age:  Histogram of residuals:    However, the transformation yields a lower multiple R-squared and adjusted R-sqaured value than the original.  Further to this post (), I tried a model where the hormone level is log transformed and fitted with the exponent of age to correct for the log transformation. This is because I didn't know what the opposite of Tukey transformation would be and log seems to be the next best transformation for my data. The normality of residuals is good but the R2 values are even lower.  Given this information, which model is best - the one with best normality of residuals and lowest R2 or worst normality of residuals and highest R2?  Alternatively, is there another form of regression better suited to this data, given that it is continuous and has non-normal residuals?


I hatched a Gastly egg, with average stats and a Mild nature. I trained it with Exp. Share to about level 50 and evolved it to Haunter. With the Haunter I went EV training in the Pokémon Tower, killing Gastly and Haunter for Special Attack, and then Diglett and Dugtrio in Diglett's Cave for Speed. My Haunter always wore a Macho Brace. After I was sure I killed enough Pokémon, I finished up by killing 4 Caterpie for HP. Then I evolved it to a Gengar by trading and leveled it to Lv. 100 by killing Machoke and stuff.  Now the Final Stats:   Gengar (female) Nature = Mild Hp. 247 Atk. 223 Def. 121 SpA. 387 SpD. 173 Spe. 248   So, my question is: was it just not working, or are my IVs really that bad?


Set theory seems to pop up in many different fields of mathematics. As someone with a CS degree, I've only encountered very basic set theory; dealing with non-specific sets, and their intersections, unions, and complements. Furthermore, this turned out to be useful in logic and probability which are central in a CS degree.  I was wondering, what are the motivating factors for learning set theory on a deeper level? Where is it useful, and do you have any good examples of real life problems (I assume they will be vocational problems, and not personal life problems) that can be solved using set theory?  EDIT: It has been correctly pointed out that this is a duplicate. The suggested duplicate simply didn't show up in my searches.


I am an undergraduate student and recently took an introductory course containing properties of  groups, homomorphism, normal subgroups, group action, sylows theorem and a bit about simple groups. Does anybody think starting the book "Finite groups: An introduction" by jean pierre serre be a bad idea with this amount of knowledge ?


I am new to javascript. i would like build a regular expression for "IN12345678" (i.e., starts with IN and ends with eight digit, totally 10). i was bit confused by creating this expression. kindly help me solve this...


toLowerCase() converts the string to lowercase but when i use it in a logic it gives bizarre results. I can do the logic in some other way without even using toLowerCase() but please tell me what's wrong here  char gender = 'M'; System.out.println((gender+"").toLowerCase());          //prints "m" System.out.println((gender+"").toLowerCase()=="m");     //false  if ((gender+"").toLowerCase()=="m") {     System.out.println("if it went through loop"); }


Time change in Windows after booting to Ubuntu

Whenever I boot to Ubuntu and boot into Windows again my time changes to GMT. Why is this and how can I fix this?


How to prove that all primes of the form $4k+1$ can be represented by the sum of two squares in only one way regardless of the order?

I am reading a book about Number Theory as a new learner.  The book has proved that all primes of the form $4k+1$ can be represented by the sum of two squares.  This question is given as exercise and I truly have no idea for the solution.  The only thing that I found may be helpful is that one of the squares is even and one is odd.  Thanks for any help ^_^    Edit: About duplication, I suppose that question is about the process in a specified proof.  Will Jagy has given a complete proof.  Thanks so much for the answer!


Prevent subdomains created for minecraft from directing to the webserver on the machine

So I have my own windows server, and on it I am using Multicraft to host multiple Minecraft servers. I have also purchased a domain through google. I have a subdomain set up for each Minecraft server instance on different ports, as well as a subdomain for the Multicraft webserver. All domains work fine, but my issue is I only want multicraft.example.com to direct to the webserver, however all other subdomains when put into a web browser instead of Minecraft also direct to the Multicraft panel. I've looked at  but it does not answer my issue. I have the pointers already working with A records and SRV records for the webserver and Minecraft server. But because they're on the same IP, every subdomain for a Minecraft server points to the webserver. I only want the webserver domain to point to the webserver. Not the Minecraft subdomains.


Can eating food cause you to gain more weight than the mass of that food, over time

NOT A DUPLICATE OF:  That question diverges off into stuff about calories and energy density and other stuff, which I'm not interested in here. And doesn't seem to talk much about time-frames. The answers either address the calories, or talk about conservation of mass, which is clearly not what is interesting.  Suppose I eat a pound of something (cake, or chocolate, say. Or a second portion of pasta salad).  Obviously, 1 minute after I eat it, I will be 1 pound heavier, but that's not very interesting.  And 1 week later, it seems extremely likely that I will be some amount heavier than I would have been if I had done everything else exactly the same, but not eaten the cake.  Note, that I'm deliberately excluding any behavioural changes! Assume that the difference between eating it and not eating is literally the only the food entering my mouth.   Are there complex biological processes that could lead to me being more than 1 pound heavier, after that week? Or is the weight-gain tied to a single consumption strictly bounded by the mass of that consumption?    For those wondering what I might be imagining ... I don't know, maybe the body stores 2 extra molecules of X (that it would otherwise have not digested at all) for every molecule of Y that it ingested, in the previous day. i.e. having eaten the cake on Monday means that I retain more of the food I ingest on Tuesday, than I would otherwise have retained. Or maybe there's some complex process whereby oxygen in the blood gets captured and stored with the ingested food over time, so that the extra mass comes from air breathed in over the course of the next day. I'm no biologist, so I haven't the faintest idea what could be plausible and what could be utterly ridiculous. Hence the question :)


Flash with Chromium or Google Chrome broken on Ubuntu 19.04

I tried loading Adobe Flash player in Chromium on Ubuntu 19.04 (Lubuntu in this case) using various answers on AskUbuntu.com. I get to the point where the Allow Flash popup happens. But when I click to allow it, it says "Right-click to run Adobe Flash Player". When I rightclick and choose Run this Plugin, nothing happens. I've tried to apply fixes using the Pepperflash technique, as well as the Adobe Flashplugin technique.


I have two 4-ft x 4" x 4" wood posts, and each post has a screw eye. There's 12 feet of distance between each post.  How can I tighten a piece of 1/2" diameter rope that goes through each screw eye and it's stretched tightly without having to buy turnbuckles?  There has to be a knot just for this.


Using the Creation spell to smash foes with a heavy block of metal

The spell Creation (PHB, p. 229) states:     You can also use this spell to create mineral objects such as stone, crystal, or metal. The object created must be no larger than a 5-foot cube, and the object must be of a form and material that you have seen before.        The duration depends on the object’s material. [...]       Precious metals — 1 hour   Gold (which could be clearly counted as a "precious metal") has a density of 19.32 g/cm³. A five-foot cube of gold weighs roughly 62 tons.  Note that the spell does not limit whether the material has to be created on the floor or in the air. It doesn't declare any specific physic rules, either, so we can - and have to - assume that the physics apply as if it were normal materials of their respective kind.  If someone were to drop a 62-ton 5-foot-cube on top of you, you would be obliterated. Using a 9th-level spell slot, you could even create a 25-foot cube, if you so desired.  Are there any rules that would indicate how to rule / handle a situation like this?  How can I balance this spell if it can create an object that will instantly kill most creatures below it?


Is the question "The new iPhone is out?" valid english?

My friend asked me over text:  "The new iPhone is out?"  Is this valid English? I say it's not, but he believes it is. I believe the correct question would have been:  "Is the new iPhone out?"  The grammar just seems backwards to me, is it correct English?


What does this folder icon with two blue arrows mean?

While browzing through my Windows directory, I found the Panther subdirectory, which had this icon:    Does anyone know what this signifies? I was able to open it normally, and it was, to all appearances, a normal directory.


Can I use the valid Schengen visa in old passport?

I'm an Indian National. I have a Type C Schengen Business Visa which is valid from 26-11-2015 to 26-11-2020. I received it when I intended to travel to Netherlands, although I have not used it.   When I applied for a spouse endorsement, the passport on which the visa is stamped was cancelled and a new passport was issued.  Now, I plan to travel to Italy on business from July 8th to 16th.    Can travel with the same visa in old passport, or should I cancel the existing visa and apply for a new one?  I contacted the Netherlands Embassy call center (not VFS Netherlands) which responded that I can use it without any issues. However, they have not confirmed it by email.   I asked about any immigration issues in Italy and was told me that, if I have a valid itinerary and invitation letter from the office, there should be no problem. I was also told that Italian immigration authorities are able to contact the Dutch, if necessary.   I emailed the Italian Embassy in Mumbai (visa.mumbai@esteri.it) and await its response.


How is the authenticity of Ubuntu updates verified?

I couldn't find much info on the security of Ubuntu (and Linux in general) update verification/security.  The connection appears to be plain ftp. but the packages are signed using a private key and the corresponding public key is stored in the system as a trusted key.  So what are the details? Is the package itself signed or just the hash? Is it an RSA 4096 bit key? What are the chances of a malicious entity being able to mess with the updates and who owns the private key?


Fatal Error: Call to undefined function drupal_mail()

Very new to drupal, I am playing around with the mail function to test how I can send mails using drupals API.   I used this tutorial from .   Whenever I try to call the PHPScript which should send the test mail, i get this error:      Fatal error: Call to undefined function drupal_mail() in   /drupal_dev/sites/all/modules/configurator/Trader/PHPScripts/testMail.php   on line 14   Fyi: my configurator.module is located in /drupal_dev/sites/all/modules/configurator/. I saw a couple of examples where the drupal_mail() function is implemented in the .module file, but the tutorial mentioned above said I may place this function anywhere.   So what am I doing wrong?   Here goes my code:   $to = "recipient@host.com"; $email_from = "donotreply@host.com";  $params['var'] = 'test_var1'; $params['more'] = 'test_var2';  $sent = drupal_mail('testMail', 'key', $to, language_default(), $params, $email_from, TRUE );  if (!$sent) {     echo "Failure"; } else {     echo "Success"; }  //drupal mail looks for a function that matches the first parameter _ mail to build the message function testMail_mail($key, &$message, $params) {     $language = $message['language'];     switch ($key)      {         case 'key':              $message['subject'] = t('Subject', $vars, $language->language);             $message['body'][] = "Hallo Jannik. This is the body of the email, and might contain vars from params.";             break;      } }


dotted outline coming for  tag in firefox

On focusing of the <button> tag, I'm unable to remove dotted border around its text.  I tried  border:0, outline: 0    properties. These properties only remove border and outline from <button> but border around text comes on focusing of button.  Here is my fiddle: https://jsfiddle.net/souviksarkar86/4shqvaq8/


I want to get a grep -v command that will remove the rows for that particular string found, without reading into the first row:   orderID,change_timestamp,Condition,State OD10,2017-04-25 07:21:13.069,A,D OD11,2017-04-25 07:21:13.069,A,D orderID,change_timestamp,Condition,State OD14,2017-04-26 07:21:13.069,A,D OD15,2017-04-26 07:21:13.069,A,D orderID,change_timestamp,Condition,State OD16,2017-04-27 07:21:13.069,A,D OD17,2017-04-27 07:21:13.069,A,D   Desired:   orderID,change_timestamp,Condition,State OD10,2017-04-25 07:21:13.069,A,D OD11,2017-04-25 07:21:13.069,A,D OD14,2017-04-26 07:21:13.069,A,D OD15,2017-04-26 07:21:13.069,A,D OD16,2017-04-27 07:21:13.069,A,D OD17,2017-04-27 07:21:13.069,A,D   It would need to output to another file without touching the original.


What does the letter S mean below? The file in question is a folder.                                                                    I read  that an upper-case S can represent that the setgid bit is active for a binary executable. But this is a folder. Does it still mean that the setgid bit is activated for it? If so, what does that mean?


Beef dripping - how long can it safely be kept for in the fridge

I buy beef dripping in tubs from the butcher - usually use a teaspoon when making a roast or a cottage pie.  It never seems to change colour, or smell; so how long is it safe to keep for?


I am trying to find a single word antonym for "exceed". I am using the word as a verb (so "beneath" doesn't work) and it should have a positive connotation (as in a golf score which falls below par).  I thought of "subceed", which I like, and found a few Google hits but it doesn't show up in any reputable dictionaries.  I've reviewed answers to similar questions and found no suitable alternatives.  For example, the selected answer to  suggested:   "eluded" — has a mostly negative connotation and implies intention "beneath" — is not a verb "are below"/"did not meet" — phrases   I'm looking to replace "exceeded" in the following quotes with a single word (meaning something like "went below", "were under", etc.):     "He never gets tickets because he always exceeds the speed limit."   "To win the match, Tiger Woods must exceeded 4 strokes on the twelth hole."   "To prevent freezing, do not exceed -20 degrees centigrade."


To prove $\frac{1}{2} \times \frac{3}{4} \times \frac{5}{6} \cdots \frac{(2n-1)}{2n} \le \frac{1}{\sqrt{3n+1}}$


I want to improve the resolution on this dragon, it's from an old game, so of course its highly pixelated, how can this be made smoother, more modern?


What are the benefits to using procedural textures VS image textures?

I have been seeing a lot of cool tutorials for procedural textures in Cycles lately, but I was wondering, are procedural textures actually more efficient rendering-wise than image textures? Do they help speed up the render, or would image textures be a better choice? What are the benefits to procedural textures?


Can @StackStatus tweets be posted to StackStatus.net automatically?

While it sounds crazy, some of us do not actually have twitter accounts and really do not use twitter at all, so we don't see tweets from .  This is especially true for users behind corporate firewalls where Twitter access is blocked.   So when there are access issues, the first stop for many users is , but it seems that updates there much less frequent than tweets, especially during an outage, and usually only after the fact.  Additionally, only major planned events are ever announced in advance there.  Minor outages, such as the recent  were never even mentioned, so unless someone was following @StackStatus on twitter (which would require an account), or thinks to check twitter feed, they won't be up to date on any on-going issues.  I realize updating a blog while in the middle of an outage or to announce a minor (and temporary) outage due to maintenance is not a productive use of time, so can StackStatus.net display the twitter feed, or even better, can tweets from @StackStatus automatically be added to the blog?  It would save many users from having to check 2 places every time they have an access issue.    Note there is similar sounding but essentially different suggestion:  - about attaching the twitter feed to the maintenance page for Stack Exchange sites. This request is different in that it is about posting twitter feed posts to the Stack Status blog.


"Libkmod: EROR... ignoring bad line" start-up issue

Just started using Linux Ubuntu 14.04 and when i try to boot it, it gives me this error message. After error message it boots successfully.   The point is, i had this "ath9k.conf" file in directory but i deleted it. Thought that its going to stop giving this error (beginner, sorry), but its not. The error is still here.  I created this ath9k.conf file few days ago because my notebook have a wifi button problem so i found solution to create it and add few lines in it. It didn't help and i forgot to delete it. I successfully fixed that problem by binding my WiFi toggle to another key (instead of Fn+F2, just on F2) because almost every Asus notebook has that problem.  What should i do? That error is just annoying.    If you need more information, let me know.  I'm running Asus X552V.


My country does not allow Dual nationality.....but my 2nd country has no issue

My original country does not allow dual nationality but the adopted country does.   I have visas for US & Canada on my original country passport and i need them to visit these countries, my new passport does not give me visa free access.  As per the laws of my country i must surrender my passport but if i do i loose my visas.....should i retain my passport. Do other countries consider it a crime that i own 2 passports?


How can I dump a specific table or set of tables without including the rest of the db tables?


When $f(x) = g(y)$ for almost every $(x,y)$, must $f$ and $g$ be constant almost everywhere?

Consider two measure spaces $(X,\mathcal{A},\mu)$ and $(Y,\mathcal{B},\nu)$, where $\mu\times\nu(X\times Y)>0$. Given two measurable functions $f:X\to \mathbb{R}$ and $g:Y\to\mathbb{R}$ such that   $$f(x) = g(y)   \qquad\mu\times\nu \,\,\text{a.e,}$$  does it follow that there exists a constant $\lambda$ such that $f(x)=\lambda$ for $\mu$-a.e. $x$ and $g(y)=\lambda$ for $\nu$-a.e. $y$?  Clarification: The displayed statement means that $\mu\times\nu\big(\{(x,y):f(x)\neq g(y)\}\big)=0$.  I know that this is true when you assume $\mu$ and $\nu$ are $\sigma$-finite, by applying Fubini's theorem to $\int |f(x)-g(y)|\,d(\mu\times\nu)$. In the general case, the only first step I can think of is to find a countable set of rectangles with arbitrarily small total area where $f(x)=g(y)$ on the complement of their union. But there I'm stuck.


Proving $\left\{ \frac{1}{n} \right\}$ is Cauchy

I am trying to understand better Cauchy sequence in the book that I am reading he is trying to provide counter argument that in general metric spaces we can find sequence that are Cauchy but aren't convergent for example $\frac{1}{n}$ is Cauchy but doesn't converge in the space T = (0,1].  I am trying to prove that the sequence is Cauchy to begin with if we consider $n \geq m > 0$ Consider $|a_n - a_m| = \frac{m - n}{mn} < \frac{m}{mn} = 1/n < \epsilon$. So if we choose N = $\frac{1}{\epsilon}$ that should work since for $n, m > N = \frac{1}{\epsilon}$   we have the following:  $|a_n - a_m| = \frac{m - n}{mn} < \frac{m}{mn} = \frac{1}{n} < \epsilon$.  what do you guys think any the proof is good or is there anything to make it better ? It is always good to learn from the extra bit of details as it makes my brain understand the subject more !


I read about volatile keyword, but I don't know in what situations I should use it.  When the memory (variable) is getting updated and process is not aware of that?  In what cases should drivers use volatile variables?


Prove that a function $f:\mathbb R \to\mathbb R$ given by $f(x) = x\left|x\right|$ is a bijection

So I know in order to prove a function is bijective, you need to prove that it is both injective and surjective. I know that to prove it is an injection, I need to make $f(x) = f(y)$, and try to get $x=y$ from that, but I can't seem to manipulate the equations to do so.   Also, how would I prove that this is surjective?


I have done my masters in Statistics and am well acquainted with probability, though I am out of touch for last few years. Currently I am preparing for an exam which has a paper for probability and the syllabus is given below. I would prefer to follow a single book and make my own notes from it. I don't need over simplified starters guide kind of thing. I would prefer some of the classical books on the subject. I used to follow William Feller in my college days but am not sure if it covers everything in this syllabus (I don't have a copy with me right now). Thanks in advance for all your suggestions.   Syllabus   Sample space and events probability measure and probability space random variable as a measurable function distribution function of a random variable discrete and continuous-type random variable probability mass function probability density function vector-valued random variable marginal and conditional distributions stochastic independence of events and of random variables expectation and moments of a random variable conditional expectation convergence of a sequence of random variable in distribution, in probability, in p-th mean and almost everywhere, their criteria and inter-relations Chebyshev's inequality and Khintchine's weak law of large numbers strong law of large numbers and Kolmogoroff's theorems probability generating function, moment generating function, characteristic function, inversion theorem Linderberg and Levy forms of central limit theorem standard discrete and continuous probability distributions.


Orphaned users with their respective database name

I need to get a list of the orphaned users in each DB, together with the database name in which they are found in. I did the below which gives the orphaned users in each DB, but I cannot figure out how to include another column next to each user found to show in which the DB. I tried using the DB_NAME() but to no avail.  use master; GO  CREATE PROCEDURE orphaned_u AS BEGIN DECLARE @command varchar(1000)  SELECT @command = 'use ?  if DB_ID("?")>4 EXEC sp_change_users_login ''Report'' ' EXEC sp_MSforeachdb @command END  CREATE TABLE tempTable (     user nvarchar(1000),     User_sid sql_variant  )  INSERT INTO tempTable EXEC master..orphaned_u  SELECT * FROM  dbo.tempTable    I have already looked at  but preferable I use the above code and find a way to display the database name in a column with the already built-in stored procedure sp_change_users_login ''Report''


Why mysql_real_escape_string returns boolean?

I have wrote a PHP script to handle user login. To prevent SQL Injection attack, I have used 'mysql_real_escape_string' function. Everything works good till today. I have traced code and finding the problem; the line using 'mysql_real_escape_string'. I have change it to basic command following:  $username=mysql_real_escape_string('sample'); var_dump($username)   The output is:  bool(false)   On my local web server (WAMP) everything is ok, but on remote host the problem appears! What is wrong? (Host PHP is 5.4.12)


let $G$ be  a group of order $30$ .How many non-isomorphic groups of order $30 $ are there?  Before doing this I have shown that every Sylow 3 and Sylow 5 subgroup is normal in G and G has a normal subgroup of order 15.  Using these information Herstein has asked to classify all groups of order 30.  I am stuck here.Any help  Note: I don't know why this has been marked as duplicate because the duplicate question has answers which don't suit the way I want to solve the problem or rather the author has asked to solve it which i have mentioned explicitly in my question


How to calculate point from lat/long, angle, and distance?

I am trying to calculate the point from a given lat/long, a bearing, and a distance.  This is for plotting weather given a aeronautical way point.   For example:  Given a waypoint with a known lat/long (LAX airport control tower), with a bearing of North by Northwest and a distance of 45 nautical miles, where is the point?  I could treat the world as flat, but I think the resulting calculations would be inaccurate the further north the point is since longitudes get more narrow near the poles.  I am mainly interested in plotting these points in the US.  Is there a projection that would help me do this?  This is for a Python application I'm writing, and the libraries I have access to are GDAL and Proj4 for projections. So no fancy tools like ArcGIS are available to me.  Ultimately I want to combine 4 or these calculated points to form a polygon that should roughly be about 100-200 miles in width and height.  Thanks!


I have a 32 GB micro SD card which got kind of corrupted during file transferring from my computer. Now, I am not able to format it. On Linux: I have tried Disks utility of Linux, it has no effect on the SD card or its partitions. Sometimes it shows the error: error synchronizing after initial wipe: Timed out waiting for object (udisks-error-quark, 0)  GParted shows that it has completed the formatting successfully, but when it refreshes, the SD card comes to its previous state, unaffected. Below is the output of fsck/dosfsck (which claims to fix the issue, but actually it does not): snehasish@asus-x200ma:~$ sudo fsck /dev/sdb1 fsck from util-linux 2.27.1 fsck.fat 3.0.28 (2015-05-16) 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt. 1) Remove dirty bit 2) No action ? 1 /Attack on Titan - Season 2/[Cleo]Attack_on_Titan_S2_-_09_(Dual Audio_10bit_720p_x265).mkv   File size is 209715200 bytes, cluster chain length is > 209715200 bytes.   Truncating file to 209715200 bytes. Free cluster summary wrong (189446 vs. really 189430) 1) Correct 2) Don't correct ? 1 Perform changes ? (y/n) y /dev/sdb1: 5469 files, 778346/967776 clusters  By default the SD card is getting mounted in read-only mode, and sometimes only the defected folder is labelled read-only. I have tried to delete all the contents of the SD card by remounting it in writable mode, but the contents come back when I re-insert the card. I have also tried to re-write the whole SD card with dd using the following command: dd if=/dev/zero of=/dev/sdb bs=16MB  dd if=/dev/zero of=/dev/sdb1 bs=16MB  It completes normally, but the SD card is again unaffected. The utility parted did not proved to be useful either. On Windows: I have tried formatting on Windows from the File Explorer, it says "Windows was unable to complete the format" for both quick and full format. Disk Management also showed the same error message when I tried to format from there. DISKPART also failed to format it. CHKDSK detected the corrupted file, but in the process of fixing the issue, it ended normally after showing "6% completed...". On windows, I am not able to delete the corrupted folder as well. It does not show any error message. It just does nothing when I tried to delete the folder.  All I want is to format the SD card and reuse it. I have already taken back up, so I don't want any data to be recovered. I have tried many other ways of deleting the contents/formatting which I don't remember. Any help in fixing this ghostly issue will be much appreciated.


Modal for images in Stack Exchange community?

I've noticed that these forums do lack a LightBox for the images posted by users.  When I click an image in a question to view the full size, it will simply open the image in the parent window, resulting in loss of any answer or comment already written by me. (Yes, there is a autosave for drafts.)  Shouldn't there be a modal or something to view the images in a more friendly way? Is it possible that there is a modal but my browser can't display it? I tried different browsers, but the same effect.


What is the frequency of a single photon?

What frequency means for a single photon?


If monotone decreasing and $\int_0^\infty f(x)dx <\infty$ then $\lim\limits_{x\to\infty} xf(x)=0.$

Let $f:\mathbb{R}_+ \to \mathbb{R}_+$ be a monotone decreasing function defined on the positive real numbers with $$\int_0^\infty f(x)dx <\infty.$$ Show that $$\lim_{x\to\infty} xf(x)=0.$$   This is my proof: Suppose not. Then there is $\varepsilon$  such that for any $M>0$ there exists $x\geq M$ such that $xf(x)\geq \varepsilon$. So we can construct a sequence $(x_n)$ such that $x_n \to \infty $ and $x_n f(x_n ) \geq \varepsilon$. So $$\frac{\varepsilon}{x_n}\leq f(x_n) \implies \sum_{n\in\mathbb{N}}\frac{\varepsilon}{x_n} \leq  \sum_{n\in\mathbb{N}} f(x_n) \leq \int_0^1 f(x)dx.$$ So we get a contradiction.  I feal like I have the correct idea but some details are wrong.  Any help would be appreciated.


I'm trying to dynamically sum the values of some inputs generated with jQuery based on the number set on other input, but cant make them properly sum,I'll be searching a bit more for another way since .each and .click won't work and .on('click' seems to just add the numbers to the variable but if any number is lowered it'll just add it again, if anyone can come with any creative idea, it would be a lot of help  $( document ).ready(function() { var existimos = 0; $('#sacos').change(function() {     var cantidad = $('#sacos').val();      var inputeador = '
';     function imprimesacos(){         if(cantidad > existimos) {             inputeador += '<input id="yosoy' + existimos + '" name="yosoy' + existimos + '" />';             existimos++;             imprimesacos();         };     };     imprimesacos();     inputeador += '
';     $('#imprimidor').html(inputeador);  });  });


Mandelbrot-like sets for functions other than $f(z)=z^2+c$?

Are there any well-studied analogs to the Mandelbrot set using functions other than $f(z)= z^2+c$ in $\mathbb{C}$?


Manually mount second VirtualBox virtual disk in Ubuntu Server guest (no GUI)

I use the VirtualBox UI to add a second virtual disk (belonging another VM) to my Xubuntu 18.04 guest. After I boot the guest I see a desktop icon named "20 GB Volume" with the tooltip "Removable Volume. Not mounted yet.". At this point df shows me    Filesystem     1K-blocks      Used Available Use% Mounted on udev             1989308         0   1989308   0% /dev tmpfs             403956      1044    402912   1% /run /dev/sda1       61663020   6819780  51681232  12% / tmpfs            2019768         0   2019768   0% /dev/shm tmpfs               5120         4      5116   1% /run/lock tmpfs            2019768         0   2019768   0% /sys/fs/cgroup tmpfs             403952        12    403940   1% /run/user/1000   Double-clicking the desktop icon mounts the volume, after which it shows up in the df output as /dev/sdb1  Filesystem     1K-blocks      Used Available Use% Mounted on udev             1989308         0   1989308   0% /dev tmpfs             403956      1048    402908   1% /run /dev/sda1       61663020   6819456  51681556  12% / tmpfs            2019768         0   2019768   0% /dev/shm tmpfs               5120         4      5116   1% /run/lock tmpfs            2019768         0   2019768   0% /sys/fs/cgroup tmpfs             403952        12    403940   1% /run/user/1000 /dev/sdb1       19478204   9814968   8650756  54% /media/gord/4554a2b5-26d3-4568-8127-41418ca654f4   My question: If I wanted to mount the volume on a guest running Ubuntu Server (no GUI) how would I do it without Xfce available to do the magic for me? I assume that it would involve the mount command, but    where would I find the necessary information about the second virtual disk in the guest OS environment, and what would the mount command look like?


All definite integrals evaluate to 0 using periodic functions.

I know that my reasoning is incorrect, I just don't know where I went wrong. I did discuss this with my Maths teacher, and even she could not find what I did wrong.  Let us begin by assuming a function, $f(x)$ that is continuous and has an antiderivative in the interval $[0, 2\pi]$. Let $A$ be the area under the curve for $f(x)$ in the interval $[0, 2\pi]$  $A = \displaystyle \int_{0}^{2\pi}{f(x)\space\mathrm{d}x}$  Now there must exist a function, $g(x)$ such that:    $f(x) = g(x)\cdot \cos(x)$  Substituting the value of $f(x)$:  $A = \displaystyle\int_{0}^{2\pi}{g(x)\cdot \cos(x)\space\mathrm{d}x}$  Using t substitution: Let $t = \sin(x)$ Then: $\mathrm{d}t = \cos(x)\space\mathrm{d}x$ And:  $x = \arcsin(t)$  Changing the limits: $t = \sin(x)$ $0$ becomes $\sin(0) = 0$ $2\pi$ becomes $\sin(2\pi) = 0$  Substituting in the definite integral:  $A = \displaystyle \int_{0}^{0}{g(\arcsin(t))\space\mathrm{d}t}$  But Definite Integral where the lower and upper bounds are the same is $0$. So:  $A = 0$, which is not possible.  Thanks for the help.


I am as a beginner I want to know is there any relation between eigenvalue and rank of a square matrix  Please help.


how to keep two iMac's in different locations completely synchronized

I alternatively live in two different places, a few month in Europe and then a few months in Asia. In both places I have an iMac with OSX version 10.8.5  I started by copying the complete content of one of the iMacs to the other one; so at that moment they were identical. Now I will be in Europe for some time and work on my machine there.   Once I move back to Asia, what can I do to make my iMac there identical to the one I just left in Europe and vice-versa ?


Java array in if statement not working as expected

So I have been writing a game and was looking to make the code base more useable. I originally wrote the following code once and worked fine. But for reuse and fewer lines, I was adjusting it. Now it's not working Main java file: builder.setStats("p, divine,0,1,2,2,1,2,4");  Builder file: String [] holder = new String[8];  public void setStats(String sentstats){      holder = sentstats.split(",",8)       if(holder[0]== "p"){          charsheet.style = holder[1];      } }  So the issue is the if never does the proper response. I know I have full access to all associated files as I have tested for that. And I know I could get it to work other ways. But to reduce redundancy. And make parts of the code recursive I have done it like this.


Data lost after installing ubuntu. Any chance of recovery?

while upgrading from ubuntu 12.04 to 13.04 and i used those default options "delete ubuntu and install"  but unfortunately all my other partitions also got deleted and they got combined into one in which ubuntu is installed  is there anyway to recover data?


How to combine MP3 files one over another in PHP

I need to put an MP3 file over another one in a specific time slice of whole file.  Is it possible to do this? If so, is there any library or method?  I dont want to put them one after another. Such as;  file_put_contents('combined.mp3',     file_get_contents('file1.mp3') .     file_get_contents('file2.mp3'));


Prove that the line joining the midpoint of parallel sides of a trapezium passes through the point of intersection of diagonals.   I want to use theorems in geometry to solve this question.  The method using vectors is given .  Let $ABCD$ be the trapezium and let $O$ be the point of intersection of diagonals. I need to prove that one of the lines through $O$ can pass through both midpoints of adjacent sides. Let $AB$ and $CD$ be the parallel lines.  I started by considering a line through $O$ that passes through midpoint $E$ of $AB$. I need to show that if the line is extended, it also passes through midpoint $F$ of $CD$.  I tried using similarity of triangles but it did not help much.


Reading from file in Java is throwing a `NullPointerException`

I have made a main class as well to run it, but it is throwing out an NPE NullPointerException at the readFile() method. I'm not sure why this is occurring.  /* this code is to read from a file testfile.txt which is already made beforehand with data in it*/ import java.io.*; //imported files import java.util.*;  public class file_read {   private Scanner x; //for reading from file    public void openFile() {     try {       x = new Scanner(new File("testfile.txt"));     } catch (Exception e) {       System.out.println("error occurred");     }   }    public void readFile() { //error in this method(NPE)     while (x.hasNext()) {       String a = x.next();       String b = x.next();       String c = x.next();       System.out.printf("%s %s %s \n", a, b, c);     }   }    public void closeFile() {     x.close();   } }  public class file_read_main {   public static void main(String[] args) {     file_read obj = new file_read();     obj.openFile();     obj.readFile();     obj.closeFile();   } }   This is one class. The other class is already made having main() in it having object of this class as well as calling of the methods from the object.


Can I use C-1/D visa as a transit visa through the US?

I have a C-1/D visa valid until 2019, but I am not working on a cruise ship right now. I work at the Atlantis in Nassau, Bahamas. I want to travel to India via a US airport. Would I be able to use the C-1/D visa to transit through the USA, or do I need a separate transit visa to make the trip?


Do the amd64+mac versions of Ubuntu work on Windows too?

I've been pulling my hair out trying to get a full Ubuntu installation running on my USB, and I think I just got it working for Windows (by disconnecting my hard drives during Live CD installation...).  However, the result isn't bootable on my Macbook Air. After more reading, it seems that it's a U/EFI problem which Ubuntu solved by creating an amd64+mac version of the installation.  I'm downloading that now, but I'm wondering: will this ONLY work for my Macbook, and stop working on the Windows computer?  Thanks.


accidentally set chrome so it never asks me whether I prefer chrome or stack exchange app. how do I fix this?

I have an android phone and use chrome. I have the stack exchange app. But I happened to be googling and went to the stack exchange via chrome. A pop up came up that asked me whether I would prefer to use chrome or the stack exchange app whenever I click on a stack exchange link.   Unfortunately, I accidentally set it so that it always chooses chrome. Really, I would prefer to be asked each time. Is there a way to reset this?


The entire  site is blank right now.  The header and footer are shown, but no questions.


Proof of Stirling's Formula using Trapezoid rule and Wallis Product

I need a proof of stirling's formula which uses the riemann's sum and trapezoid approximation to come up with $ \frac {n!}{(n/e)^n \sqrt n}$ $ \rightarrow C$ where $C$ is derived from Wallis product. I tried searching the internet but was not able to come up with anything.


Can you play pen & paper roleplaying games over the Internet?

I'm sad to say that I have absolutely no friends who would like to play D&D with me however I would love to play. I know about Neverwinter Nights and I've played quite a bit of it, but I'm looking for more of the pen & paper experience.  Is this even possible?


Help to do something or help do something?

I wrote:      I will help you to acquire Russian.    A native English speaker corrected me saying that 'to' is unnecessary here. Is it correct to say      "I will help you acquire Russian"


compiler giving NullPointerException error, dont know why. please help?  public List<DBObject> findByDateDescending(int limit) {      List<DBObject> posts = null;     // XXX HW 3.2,  Work Here     // Return a list of DBObjects, each one a post from the posts collection     DBCursor cur=postsCollection.find().sort(new BasicDBObject("date",-1)).limit(limit);    while(cur.hasNext()){ /*==>> error */   posts.add(cur.next());     }//end while       return posts; }


When i use arraylist.add it replaces all data with what I currently am adding, help is needed

I am working an an imitation of a Pac Man game, currently I'm trying to implement an algorithm that searches for a path to a certain goal. The algorithm checks available paths and adds every step to an ArrayList containing int[] named stack. My problem is that every time it has found a new available step and tries to add it to the arraylist using the .add method it replaces all current data with what i am trying to add.  I have tried all kinds of solutions but they won't work (that's also why my code is so messy)  private Position tempPos; private int distanceFromRoot = 0; private int[] toStoreInStack = new int[3]; private int[] tempStore = new int[3]; private ArrayList<int[]> stack = new ArrayList<>();   if (findValidPosition(tempStore[0], tempStore[1]))     {         distanceFromRoot++;         toStoreInStack[0] = tempPos.getX();         toStoreInStack[1] = tempPos.getY();         toStoreInStack[2] = distanceFromRoot;         stack.add(toStoreInStack);         System.out.println(Arrays.toString(stack.get(distanceFromRoot)));         System.out.println(Arrays.toString(stack.get(0)));     }   The print should then show what i just entered and what i initially entered something along the lines of   [1, 2, 1] [1, 2, 1] [1, 3, 1] [1, 2, 1] [1, 4, 1] [1, 2, 1]   but in reality it just prints  [1, 2, 1] [1, 2, 1] [1, 3, 1] [1, 3, 1] [1, 4, 1] [1, 4, 1]   i tested a few different positions in the arraylist and seems to replace all other data with the same that was just entered.


I am really lost trying to understand the difference between the logical connective "implies", $\to$, and the metalogical symbol (or maybe it's also a connective?) $\vdash$. (This is all focusing on prepositional logic here).  In metalogical terms, for example with modus ponens, it is said that $P, P \to Q \vdash Q$, which means "If we have a proof of $P$, and we have a proof of $P \to Q$, then we can infer / make a proof of $Q$". But I don't understand what the difference is between that and saying something like $P \land (P \to Q) \to Q$ which is similar but uses $\to$ instead of $\vdash$.  For example the $P \to Q$, at least in my experience, means "it is possible to go from $P$ to $Q$" but I don't see how "going to $Q$" is different from "inferring $Q$." Simply telling me that one is metalogical and one is not doesn't really help me understand what's going on.   I've also been given the example of  but I don't understand this, either. It sounds like the tortoise is constantly rejecting implications because "who says I have to accept conclusions just because the premises are true?" but then somehow introducing a metalogical $\vdash$ solves this? "We use the metalogical symbol $\vdash$ to basically force that stubborn tortoise to accept the conclusions and we've now circumvented the issue."  Unless I've grossly misunderstood something I just don't see why that's even a thing. Who says then I have to accept $\vdash$? Is $\vdash$ just a stronger form of $\to$, like a "sudo $\to$" or something (to borrow a Linux term), a form of implies that forces the conclusion to be accepted from the premise(s)?   What's the difference? How are they working here? Why do we need them? Are there any concrete examples showing the difference of both?


Does using Tor prevent my ISP/sysadmin from seeing what sites I visit?

Does using  prevent my Internet Service Provider or system administrator from seeing what websites I visit?


Received an email intended for another person

I'm not really sure how email routing works, but someone ordered something on Amazon and I received the email instead of them.  Or maybe we both got it, I don't know.  The order doesn't show up in my account, so I'm certain I wasn't charged for it, but I shouldn't be getting other peoples' emails.  We'll say that my email is johndoe1@gmail.com, and somebody who's email is john.doe1@gmail.com places an order on Amazon.  The confirmation email is sent to me at johndoe1@gmail.com.  I checked the email header, and it did say To: john.doe1@gmail.com which is not my email address.  At first I thought that Google ignores periods in email addresses, but I tested the account setup and it doesn't give any error when you put a period in the address.  I didn't create the account; I just used the "check availability" function and the address I chose with a period was fine.  Maybe someone with knowledge about how Email works could tell me why this happened.  Is this a bug in the way Amazon sends emails?  Or is it a bug in how Google receives them?  Who should I report this issue to?


How can I petition to reopen a question which was - in my opinion - incorrectly closed?

I asked a question, which was closed as a duplicate of another question. It isn't a duplicate, it asks something similar, but not answered by the alleged duplicate. It seems to me the closers didn't take enough time to understand my rather esoteric question.  .   Is there a way to petition a question to be reopened when one believes it has been incorrectly closed?


I have set up a Google spreadsheet for managing projects and due dates, and I need to apply the following formatting to a column of dates, but I'm not sure how:   Dates more than 7 days from today: Black   Dates less than or equal to 7 days from today: Green   Dates before today (late projects): Red   , but this doesn't actually do what it needs to do. It turns dates that are only 1 week LATE orange. It does not change dates that are one week AWAY orange. So this isn't working... unless I'm missing something.


Im making a calculater in python 3.4 and have an error


Proving a logical implication using modus ponens and metatheorems

Using the law of inference the axiomatic system and metatheorems prove that  $${(\neg A > B),(A > C),(B > D)} \vdash (\neg C > D)$$ Where > is 'implies' and ~ negation. I know how to use the Laws of Logic to prove logical equivalent, but no idea about logical implication.  Another question i have is using all logic laws to this impication legit?Whats the steps (a general understanding for solving this)?


Why the slope of a line is change in y divided by change in x?

Why the slope of a line isn't  the change in x divided by the change in y?