I have to transfer roughly 250gb of data from a Master Drive to lots of USB drives, all of identical size and brand. When I copy using the GUI in Mac OSX, it waits to copy all the files to one drive and then copies the same files to drive 2.  Is there a way to copy the files across so that each file/bit is only read once and then written multiple times? This would presumably be faster than reading the same data over and over again. I have seen this question asked before, but I couldn't understand how the terminal commands worked.  Just so you know, I have very little experience with terminal, so if anyone has any great code, could they please explain how I would adjust it work with for me?  Many thanks  James

I have a several large files on optical media I would like to copy to multiple targets - in this case I have two hard drives attached to the same computer. Is there a utility that can function like:  copy source target1 target2 ... targetN


Until recently my wife and I shared one Apple ID to allow us to have synced calendars and contacts.  The only thing she used her ID for was the Messages app.  When I learned that I could set her phone up with both of our IDs and then choose which one it pulls from for each item I changed to this approach.  So now the only things turned on for my ID on her phone are Calendars and Contacts.  This works great other than on her phone under the "Contacts" heading of "Mail, Contacts, Calendars" it has my info selected.  If she changes it on her phone it will update mine as well.  Does anyone have a better solution for how we can sync our contacts book (other than using a 3rd-party service like Google)?  Thanks.  -James

I have one iCloud account, and my wife has another.  I have an iPhone, and so does she.  It's easy to share calendars in iOS 8, and I'd like to do something similar with our contacts.  How can we keep our contacts synchronized between the two accounts/devices?


I am on an Ubuntu system that has the multiverse repository enabled, and I'd like to see whether I can disable it.  How can I check whether any package from multiverse is installed on the system?

I'm trying to find what packages I have installed from a repository using terminal commands.  I found a post somewhere saying I could use aptitude search "?origin (<repository>) ?installed", but I couldn't get it working. I tried searching for a packages that came from ppa:ubuntu-wine/ppa and got nothing with these:  aptitude search "?origin (http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/) ?installed" aptitude search "?origin (http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/) ?installed" aptitude search "?origin (http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu/ raring/main) ?installed"   It would be nice if I could get something that works with PPAs.


Error log here:   I am trying to install Ubuntu through WUBI, and am unsuccessful. I believe this is because my c: drive is corrupt, however that does not make sense to me because I have this installed on my e: drive.  Any help would be appreciated.    Okay well due to that "bad" word someone edited my post in a really weird way. I want ubuntu installed on C not E, its giving me an error that E is corrupt(according to the log). And my C harddrive is not corrupt.   But how can I install ubuntu while keeping windows 7 without using Wubi?  "Just install Ubuntu in virtual machine and play around with it" Yeah I tried that after I posted this last night, diden't go that well either. The installer diden't wanna add 64bit and it diden't want to start the machine itself. Gonna take another look at it today!

Is there any Windows installer (wubi) for Ubuntu 14.04 LTS?  When I mount the .iso file with Daemon Tools and run wubi.exe, it just asks me if I want to reboot (I think that's useful only when the .iso  is burned on CD), so is there no "real" installation?


Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease              Ign:2 https://download.sublimetext.com apt/stable/ InRelease              Err:3 https://download.sublimetext.com apt/stable/ Release   Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown.  Could not handshake: Error in the certificate verification. [IP: 104.236.0.104 443] Reading package lists... Done                              W: https://download.sublimetext.com/apt/stable/InRelease: No system certificates available. Try installing ca-certificates. W: https://download.sublimetext.com/apt/stable/Release: No system certificates available. Try installing ca-certificates. E: The repository 'https://download.sublimetext.com apt/stable/ Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


I have this line in my ~/.pam_environment:  PATH             DEFAULT=${HOME}/bin:${HOME}/.local/bin:${PATH}   and it worked perfectly well on Ubuntu 12.10, but since I've updated to 13.04 it is completely ignored:  $ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games   Any ideas why?

Running Ubuntu 13.04, I'm trying to add variables to PATH for the session, which is , but nothing seems to work. Here's what it looks like:  JAVA_HOME          DEFAULT=/usr/lib/jvm/java-7-oracle IDEA_HOME          DEFAULT=/usr/local/idea-IU-129.451/bin LIGHTTABLE_HOME    DEFAULT=/usr/local/LightTable CLOUDIFY_HOME      DEFAULT=/home/eliranm/builds/gigaspaces-cloudify PATH               DEFAULT=${PATH}    OVERRIDE=${PATH}:${JAVA_HOME}:${IDEA_HOME}:${LIGHTTABLE_HOME}:${CLOUDIFY_HOME}   It seems all variables are set but the PATH, or that it is overridden somehow. I tried to prepend or append the ${PATH} variable, to use DEFAULT only, OVERRIDE only, tried to just set a hard-coded path as a value, all to no avail.  I'm following the recommendations from the Ubuntu help community, and I want to avoid concatenating hard-coded paths to the PATH inside /etc/environment as it's not the right scope, plus, it will be hard to maintain with no variables.  Others may be affected by this issue, , but no one provided a solution so far.  How to make this work?


There is an English grammar problem which has been troubling me for a long period of time. The problem is with the construction "We refer to your letter dated XXX and addressed to YYY".    As per my knowledge, both of the "date" and "address" are acts which have been done, i.e. the date XXX has been written on the letter, and the name YYY has been written on the letter, and therefore, we should use past tense in the relative clause, and the full sentence should be "We refer to your letter which was dated XXX and [was] addressed to YYY". However, I have found that present tense can be used for the two past acts i.e. "date" and "address" (even they have been done), and the full sentence will become "We refer to your letter which is dated XXX and [is] addressed to YYY".  An example provided by the online Oxford Dictionary is "The document is dated Aug.24, 2004, but it has apparently just been put on the Web site very recently." ()  Hence, I would like to know what proper tense should be used in the relative clause or for the two acts "date" and "address".

Some one asked this question: He is loved. This is something that I've always kind of wondered.  In a sentence like this, is loved a verb or an adjective? Can it be considered either?  The simple answer was this: Loved is still a verb, but it's the past participle, so it plays a similar role to an adjective.  My question is why is loved here classified as a past participle and not simple past.  If the sentence was: He was loved. In that sentence would loved still be a past participle or would it be simple past?  Thank you.


When Sauron returned to Mordor, he had his forge, Mount Doom, and probably all of the tools that he has used to make the One Ring, so why didn't he just create a second Ring? Was it because he put too much of himself into the One Ring?

Was there anything stopping Sauron from making another "one ring"? Was he too weak since his separation from the ring to craft another? Or would it have taken a long time?


I noticed that a question on the Area 51 discussion site shows up as "Unknown Site" in the Android app:    This should say "Area 51 Discussion Zone".

I came across something rather interesting today. I was browsing Area 51 on Chrome when I happened to click on . To this, I was greeted with a prompt asking:    As , and fully expecting a crash, I clicked on SE. However, that didnt happen.     Now, since Area 51 Meta is working correctly as far as Q&A is concerned, I think it should be added to the All Sites list and if at all possible, made directly browsable from within the app.


I'm a frequent user of Math SE, and I think the SE community has people who have similar interests as me (in math) and are overall very insightful: so naturally, when I have "softer" questions about math (perhaps bordering on opinion-based), I wonder what people on the SE community have to say about it; yet, a lot of times these get put on hold because of being opinion based. While I understand that Stack Exchange is meant for productive and to-the-point questions on things relevant to an area, is there no scope for talking about questions requiring insight as opposed to a strict answer to a problem?   Examples include: asking Math SE for views on how the ideal math class should be structured, asking History SE about the "good things" done by people regarded as evil rulers, etc. These are all productive and constructive things to discuss among people interested in math or history, but are usually struck down. Is there any way to frame these questions to fit SE guidelines, or is there no place for such questions on SE?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


I'm working on a project with a registration form. The form asks the user to  enter a password of their choice in a JPassword Field, and to enter it again in another JPassword Field.  I'm using a JOptionPane to prompt the user if the passwords do not match. but when i use passwordField.getPassword().toString() on the two, they don't match.  I have tried entering a basic "12345" for example on both but i still have no luck.  i know you should use .equals(), but what is the equivalent to this for "not equals" without using the "!=" operator.   here is the following code.      if(e.getSource() == submit)     {            String name = nameTextField.getText();         String address = addressTextField.getText();         String phoneNumber = numberTextField.getText();         String dob = datePicker.getDateFormatString();         String password = passwordField.getPassword().toString();         String password2 = passwordFieldTwo.getPassword().toString();           try         {             //If the user leaves the field empty             if(name == null || address == null || phoneNumber == null || dob == null                  || password == null || password2 == null)             {                 //Error message appears to prompt the user to                  //complete the form                 JOptionPane.showMessageDialog(null, "All fields must be complete to submit.", "Woops", JOptionPane.ERROR_MESSAGE);             }              if(password != password2)             {                     JOptionPane.showMessageDialog(null, "Passwords do not match.", "Woops", JOptionPane.ERROR_MESSAGE);                     passwordField.setText(null);                     passwordFieldTwo.setText(null);             }   Any help with this would be much appreciated.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am trying to create buffer zones in meters/kilometers around a series of sites in Montreal, Canada. I used Google maps to obtain the coordinates for each site, and saved them in a .csv file. After importing my .csv file using the open data source manager, and adding an .shp layer I downloaded from the government of Canada, I get an initial map that looks like this:  First inconsistency: I notice that even though my site layer CRS is projected in web mercator, the default from Google maps (EPSG:4326 WGS83), but my project and layer CRS is EPSG:3347 Statistics Lambert Canada, however both layers align just fine after I import my points file  When I try to create my buffer zones, I find I can only use degrees, and QGIS suggests reprojecting my points file into a local CRS.  I then change the points file CRS to match that of the project, and my sites end up somewhere in the Pacific ocean, despite the matching CRS (EPSG 3347)!  I tried the solution from a similar post at , but it didn't do the trick since my points were already aligned with the .shp file after importing them. What am I missing ? How can I use a local coordinate system to allow buffer zones in meters/kilometers, while keeping both layers aligned ?

I put 4 different layers into my ArcMap document, but only one of them will show up on the map! I should be seeing the other 3 layers as well. When I do a Zoom to layer, I can see one layer, but I cannot figure out how to make the other 3 show up at once on top of each other.  Before I opened ArcMap, I used ArcCatalog where I right-clicked 3/4 of the shapefiles and  clicked Properties → Coordinate system → Import and then clicked on my Trees layer, which has the coordinate system I want the other 3 to have. But when I opened ArcMap the 4 layers did not overlap, nor could I move them above or below each other.


I wrote a .NET app that does some automation on a google page using the Chrome Selenium Driver. My app works perfect if I have the Chrome window visible or in the background, but fails if I minimize it. I get a QpenQA.Selenium.ElementNotVisibleException error.  So, all I need is a way for me to start the Google Chrome browser without a minimize box and, if it's possible, almost out of view of the screen. I've solved the out of the bounds of the screen problem by setting :      cdriver.Manage().Window.Position = new Point(-2000,0);   So the user doesn't see the window now. The problem is that he can still minimize it by clicking on the taskbar icon. Is there a way to prevent minimizing on a specific window or block it from appearing in the taskbar?

Is there an easy method to restore a minimized form to its previous state, either Normal or Maximized?  I'm expecting the same functionality as clicking the taskbar (or right-clicking and choosing restore).  So far, I have this, but if the form was previously maximized, it still comes back as a normal window.  if (docView.WindowState == FormWindowState.Minimized)     docView.WindowState = FormWindowState.Normal;   Do I have to handle the state change in the form to remember the previous state?


I just got a 144 hertz Samsung monitor and I'm using mini display port to HDMI. Also, settings are set to mirror.

I just purchased a Dell P2175Q monitor for my 15" MBP w/Touchbar. I'm connecting with a USB-C to DisplayPort cable, but when I go to Apple > System Preference > Displays, there is nothing about the Refresh Rate. Pressing the Option key does not show any additional options.  I've seen countless screenshots where this information should appear. Is there another way to check the refresh rate?  I'm on macOS 10.13.4  Thanks.


I've been working on a logo for a local church and I finally created something their board agreed upon. But, when they asked me to do a copyright check I found ONE similar logo in particular that has a copyright that has me concerned. My design:   I made my design from scratch and it has an overall similar feel, but a different crop and flame to a copyrighted logo design for a potential grain fumigation company. Meaning that this logo copyright is owned solely by a designer and not a commercial grain fumigation company. The other logo:    Should I be concerned even though there are differences and they are in two COMPLETELY different industries (NPO Church and Agricultural)?

Note: This is a canonical post created so that we can close the many similar questions as duplicates as discussed in .   We have created a logo for a client and they love it. We've already started preparing the materials that will feature the new logo.   However, after we had created the logo, we found a logo for another company that looks eerily similar. We did not intentionally create the new logo to look like the one of the other company, in fact we didn't even know it existed beforehand, but it does regardless.  What should we do? Is this plagiarism? Can our client use the logo we have created? Should they? Or do we need to come up with another logo that's more different?


I have what will probably be a silly problem, but Im out of resource. Im building an simple little object to learn more on how to use shift registers, And i wanted to be able to use a shift register as an extension of digital output/input.  Id like to access that object like the folowing Ex: R.digitalWrite(BitNumber,TrueOfFalse);  But the problem is that I need to remember the state of every output, since when im going to edit a pin value, all of the pin will have to be written to the shift register with pulse/clk  So I store the values of every pin in an array of bytes( in case i have multiple shift registers in line )  My problem is if I have a pin already on, and want to turn it off  void ShiftRegister::DigitalWrite(unsigned int Bit, bool isOn){  byte Tmp = B00000000;  Tmp += isOn;  Tmp << Bit%8;  Output[Bit/8] |= Tmp;   Write(Output[Bit/8]); }   So in this example this happen  0  0  1  1    operand1 0  1  0  1    operand2 ---------- 0  1  1  1    (operand1 | operand2) - returned result   Where my twos bit isnt going to 0    after posting my op, I realized that i make it seams like the result i receive isn't expected, what i am receiving is totally expected, but looking for what bitwise i should use, or how to proceed when the bit wanted is 0

How do you set, clear, and toggle a bit?


In Firefox, after searching for some keyword in Google and getting a list of results, I would like to copy the link address of a particular result. But I find that the link address is not the actual address, but some modification by Google to include some information about Google itself.   For example, search "regex Is it worth using Python re.compile" in Google, and the first result is "regex - Is it worth using Python's re.compile? - Stack Overflow" whose address is .   Right-clicking the result, and selecting "copy the location", I will get         But I wish to get just .  I remember Google search used to work in the same way as I wish, but now it has changed. I was wondering if I am missing something and how to do as I wish?

In Google search results, in Firefox or Chrome, I get URLs that go through Google and not directly to the target site. For example, at     the first result is     I don't really care that Google is tracking what I click, and I don't really care about the extra indirection when I click on a result (though both are concerns). But I find it annoying that I can't copy-paste a result by simply right-clicking on a link and choosing “copy link address” (I want to get the real result, not Google's redirection to it).  I want to have the direct URL , at least for copy-paste purposes, in Firefox and Chrome.  Google's behavior changed several times:   When I asked this question, in a browser without Javascript, you got direct URLs in results: . The indirection was added via Javascript. Some time later, Google changed to provide indirect results in all browsers. Since 2012-09-04, it seems that:   In a browser without JS, the HTML still contains indirect results. In a browser with JS support (at least in recent Firefox and Chrome), the HTML contains a direct result in the href attribute, but there is an onmousedown attribute that invokes the  which does rewrite the link. You see the direct link when you hover, but you get an indirect link like the one above when you click or copy-paste.


i Just joined to linux.   But i have a problem with app installing. i'm using mint 16. The first app i tried got installed but i get this warning during installing every other apps.    But i connected to the internet.  How can i fix it?  I got this when i'm trying to install via terminal  E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   In addition, i can't install a new language. I got this error:

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


Prove that    $$\cos\frac {2\pi}{7}+ \cos\frac {4\pi}{7}+ \cos\frac {8\pi}{7}=-\frac{1}{2}$$   My attempt   \begin{align} \text{LHS}&=\cos\frac{2\pi}7+\cos\frac{4\pi}7+\cos\frac{8\pi}7\\ &=-2\cos\frac{4\pi}7\cos\frac\pi7+2\cos^2\frac{4\pi}7-1\\ &=-2\cos\frac{4\pi}7\left(\cos\frac\pi7-\cos\frac{4\pi}7\right)-1 \end{align} Now, please help me to complete the proof.

Possible Duplicate:          Prove $$\cos(\alpha) + \cos(\alpha + \beta) + \cos(\alpha + 2\beta) + \dots + \cos[\alpha + (n-1)\beta] = \frac{\cos(\alpha + \frac{n-1}{2}\beta) \cdot \sin\frac{n\beta}{2}}{\sin\frac{\beta}{2}} $$


I have a method that return an object and I need to call multiple times two methods. All of this has to be written in a performed action event.  Which one according to you is the better solution? Which one consume less resources and it's faster?  public void actionPerformed(ActionEvent e) {      Object obj1 = getObject().getSomething1();     Object obj2 = getObject().getSomething2();      doSomething1(obj1);     doSomething2(obj2);     doSomething3(obj1); }   or it's better  public void actionPerformed(ActionEvent e) {     doSomething1(getObject().getSomething1());     doSomething2(getObject().getSomething2());     doSomething3(getObject().getSomething1()); }

How do you write (and run) a correct micro-benchmark in Java?  I'm looking for some code samples and comments illustrating various things to think about.  Example: Should the benchmark measure time/iteration or iterations/time, and why?  Related:


I have an equation written in the following way  \usepackage{amsmath} .................  \[ f(x)= \begin{cases}  e^x, & x\in [-1,1], \\ [x], &  x\notin [-1,1]. \end{cases} \]   However, this leaves the equation with no number. Adding a \label{test} does not help. How do I fix that?

I want to build a package that can optionally typeset line in double-space. Something like this:  \ProvidePackage{mypackage} % actual functional codes   Then I can use the package in this way:  \usepackage[doublespc=yes]{mypackage}   So that all line will be typeset in double-space. If I omit that optional argument in the preamble, then all line will be typeset in single-space.


It is possible to add icons to tags as part of promotions. However, several tags exist that would benefit of an icon but without any likely sponsor (E.g. open standards, some programming languages, and several open-source projects)  Stack Exchange sites would look more interesting if such tags had icons, and possibly that would also make potential sponsors more interested in sponsoring tag icons.

Currently "sponsored" tags are only available for tags in which a sponsor has ponied up cash for.  Since most open source communities cannot afford or justify the expense of purchasing a "sponsored" tag, I propose that each eligible open source community should receive a free sponsored tag among those relating to their project.  Eligible projects would include, but not be limited to Python, PHP, Java, HTML5, Drupal, etc….  I  regarding the use of Java's BSD licensed Duke mascot since Java is curated by the OpenJDK project and was pointed here to sort out the general case.  I do realize some projects do have corporate sponsors behind them, such as Oracle to Java; however I believe these types of projects have more community momentum and would continue even without the corporate backer. Other projects depend on the corporate backer for momentum, such as IIS, Oracle DB, etc.  However I contest it's very commonplace for products sold by companies to be given gratis to open source communities and projects, as a way of giving back to the FLOSS communities (as it's challenging to find any software that is not based on or influenced by the hard work of the FLOSS movement). I see no difference here -- if Microsoft wants to "sponsor" the IE tag, they can since it's a proprietary for-profit product. But if Apache wants to sponsor the httpd tag, they should receive it gratis since its a free open source project anyone may use.


I'm confused about using phrases like "can be easily accessed". When I'm deciding which of the following I should use:   it can be potentially provided it can potentially be provided   by searching google it's almost obvious that the second one is correct (about 3,470 results for "can be potentially provided" vs. about 899,000 results for "can potentially be provided"). But when it comes to "can be easily accessed" vs "can easily be accessed", Google showed more results for the first one (about 475,000 vs about 338,000). According to the question in , it may be understood that the first one is indeed better. But I cannot distinguish between these two phrases. Why should one grammatical rule apply to one of them and another rule to the other? Is there a general rule for similar circumstances?

For example:     Ever wish you could share information broadly   Could it be rewritten to:     Ever wish you could broadly share information   Are there any rules for the position of the adverbs.


I am running Windows 7 Home Premium (64-bit).  I have read that the difference between "C:\Program Files" versus "C:\Program Files (x86)" is that one is for 32-bit executables whereas the other is for 64-bit executables.  Could someone please point out to me which is which? (I ask because I have been following the installation instructions for some software I downloaded and the instructions do not make it clear which is which). Thanks.    NOTE: This question is a simplified version of , which contains more detail on the issue.

I've been using the 64-bit version of Windows 7 since the CTP and have run into a few problems with applications that get installed in the C:\Program Files (x86) folder. What's the purpose of having 2 separate Program Files directories anyway?  Every program I've installed has gone into the C:\Program Files (x86) folder. It doesn't seem to matter if the app is 32 or 64 bit. Why don't 64-bit apps get placed in C:\Program Files?  Is there a way to change the default to be C:\Program Files instead? Would it mess anything up if I just put everything into C:\Program Files?   If indeed there is some benefit to having a separate folder for 64 bit apps, it seems like the more sensible default would have been to use C:\Program Files for x86 apps and create a new C:\Program Files (x64) folder for the new 64-bit apps. This would help maintain backwards compatibility. I work as a software developer and some of my projects contain path references to libraries under C:\Program Files. Now those references are broken on the Windows 7 machine that has placed them in C:\Program Files (x86). I even tried to change the target location in the installer to be C:\Program Files, but that was ignored and the app went into C:\Program Files (x86) anyway.  This is very frustrating because I need to share source code between 32 and 64 bit machines and I don't want to have to mess with some configuration file that sets the path to these libraries differently on different machines.  Edit regarding environment variables: (Using only default English values of variables for simplicity.) On a 64-bit machine %ProgramFiles% will be C:\Program Files while the brand new variable %ProgramFiles(x86)% will be C:\Program Files (x86). So, if you have a 32-bit program that needs to find the folder path that it would be installed under, it would need to check to see if it was running on a 32-bit or a 64-bit version of Windows in order to know which environment variable to use. Any 32-bit apps that were written without this consideration would need to be updated in order to work correctly on a 64-bit machine. So even using environment variables, the backwards compatibility is broken.  Also, %ProgramFiles(x86)% doesn't exist on 32-bit versions of Windows. If it did, then 32-bit apps could just always use that environment variable and wouldn't need any conditional logic based on which OS they're running on.


I want to get 50 GB from my ubuntu machine(bootcamp), to my macintosh. I have released the 50 GB from my ubuntu machine with gparted, but i dont know to transfer it over to my mac.   Thanks

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?


I just found out if a keyword is searched inside of Google Chrome on a Mac, then if I go to the Terminal app and search there, the keyword will go across there.  That is different from what I know before: each app's search is independent and they would not go across. How come it is happening and is there a way to make them independent?  (this Mac is still running Mavericks but I am wondering if High Sierra is doing the same thing)

On my MacBook Pro I have found that several applications seem to share the value for a find.  For example, I searched 'applestackexchange' in Safari's unified address bar, then I switch to Xcode and click into a Find field.  The first word of my search in Safari then appears there.  iTerm2 and Sublime Text 2 also seem to participate in this sharing.  Running latest Mountain Lion on  a 2012 MBP.


Have a look at the image below,   It depicts Electric and Magnetic field components of electromagnetic wave.  I'm a bit confused about whats happening here.I mean is the electric field changing with time or position and what do the waves actually represent(the intensity or direction)...

I'm having trouble understanding the diagrams of elctromagnetic waves.  I have no problem with any concept in classical mechanics, and I think this can be answered without any relativity (which I don't know yet). I hope for an answer which is as intuitive as possible but any answer will be good.  So in the common diagram of an electromagnetic wave:     What exactly do the vectors represent? The wave is propagating though an eletromagnetic field. Are the lines just the field created by a particle?  We learned in physics that a charged particle creates a field in all of space, Is this a picture of changes in the field when it moves? And if so, how does it move? does it move up and down with the amplitude of this wave?  Lastly, It's not clear to me why the E-field part is not in the direction of the motion of the wave, because usually an electric field is depicted as so:    i.e it is in a direction "outwards" from the source of the charge.  This is really running through my mind for some time, so thanx for reading this!


I'm making a delegation system. Users can hand over their votes to delegates (the noun). I am wondering what is the opposite of a 'delegate'.     I just delegated my vote to John, now he has a new ________.   I looked around, and found 'delegator' but I'm not sure if it's the right word.  If delegate is confusing or wrong in this context, I also found 'delegatee' and 'representative'.

I am trying to find the correct opposite of a delegate in the context of a person being a representative of someone else that have allowed or chosen them to be their delegate. What would you call that "someone else?" The only word I could find is a delegator (which isn't a real word in English) or assigner, but they are technical words rather than descriptive.    Any other word I could use?    Think of it in a sentence like this:       Here is a list of all the delegates in the company.   But that is the list of their _ _ _ _ _ (what can go here?).   I am trying to avoid fillers such as:  bosses, agents, managers, etc.


I have a TextBox and a button. In TextBox I want to type text and then be able to click enter and press my button. When I press button I can redirect to text box by using button1.Focus();  Now if I type text and press enter nothing happens. I can use tab to switch to a button, but I just wonder if I can just press enter instead.  Any ideas?

How can I capture enter keypresses anywhere on my form and force it to fire the submit button event?


I want to know whether a particular key is present in a HashMap, so i am using containsKey(key) method. But it is case sensitive ie it does not returns true if there is a key with Name and i am searching for name. So is there any way i can know without bothering the case of the key?  thanks

Is there a good way to have a Map<String, ?> get and put ignoring case?


EDIT: OK, I have been asked to clarify my question(s).   At what altitude do we start to see the curvature of the Earth? Distance to the horizon at this altitude. The angle between line of sight of the observer and vertical.   My reasons for these questions are:  1) I have read pilots' comments saying they cannot discern a curve at 40,000 feet. I was surprised because I have been on open sea and believed I could see the curve at the periphery of my vision. I thought about it and realised if every point on the horizon is equidistant to me, then I would probably have to get really high to see the curve. So maybe my brain created the curve, as peripheral vision is largely deduced rather than 'seen'?  2) Flat Earthers are bugging me.

Virgin Galactic will take passengers aboard SpaceShipTwo  above the surface of the earth. But from this altitude, passengers will only be able to see a certain segment of the curvature of the earth through .  How much further into space would SpaceShipTwo have to travel to give passengers a view of the entire sphere of earth through one of these windows?


when i type up testfor in the command block then put my username it doesn't register MORR15 (my username is SMASHER MORR15) what do i need to do?

My username in Minecraft is sun solar arrow. This name includes spaces. Situation - When I want to get OP privilege, a user who has OP privilege will enter: /op sun solar arrow  But my username includes spaces. So it shows an error message:  Invaild syntax  How do I enter my username?


Let $A$ be an $n \times m$ matrix and let $T_A : \mathbb{R}^m → \mathbb{R}^n$ be the linear transformation $T_A(x)=Ax.$ Also let $B$ be an invertible $m × m$ matrix and let $C$ be an invertible $n × n$ matrix.  How do I prove that prove that the matrices A and CAB have the same rank?  I was thinking of using the rank-nullity theorem but I don't see how that would work.

I need to find the prove for any rectangular matrix $A$ and any non-singular matrices $P$, $Q$ of appropriate sizes,  rank($PAQ$)= rank($A$)  I know that when singular matrix multiply by non-singular the result will be singular matrix. However, It is not relevant to the rank of the matrix. If A is singular with rank 2, why rank($PAQ$)= 2 not any numbers.


I recently set up a server running Ubuntu 10.04 LTS on a Dell PowerEdge 2950 server - it has 6 500 gb 7200RPM SATA drives setup in a RAID 10 config.  I am seeing extremely poor disk performance - the RAID array reports all disks are normal and using MegaCLI, it looks like the BBU is fine.    hdparm -tT /dev/sda reports:   Timing cached reads:    90 MB in  2.05 seconds =  43.96 MB/sec Timing buffered disk reads:   24 MB in  3.11 seconds =   7.72 MB/sec   So as you can see, it takes forever to something as simple as an apt-get upgrade and even logging into the server.    How do I go about troubleshooting what is causing this?  I upgraded the firmware on the PERC 6i RAID controller to the latest, but didn't see any improvements.

I'm having a serious issue with dell server PE2950. The server has really slow IO rates, so slow that I'm not able to use it anymore  I tried few things to solve this:     changing disks to new disks (configured them as raid1)   changing perc card + perc cables   reinstalling the OS of course, had to cause of changing of disks, centos 5.5 x64bit   firmware update to everything   virtual disks policy: No Read Ahead,Write Back, disk cache policy disabled.   openmanage doesn't alert about anything, also i ran dell's diag tests, everything passed, also dell didn't see anything in deset log.   dell offered to reseat everything, including the cpu, we did that as well, still io rates are slow     I have several PE2950 servers, and I never had such a thing with any of those. All have similar or exact hardware as this one, all configured the same, with the same os centos 5.5 x64, same disks, same raid, same policy.  Just for comparison:   the problematic PE2950 server:  [root@bad ~]# time sh -c "dd if=/dev/zero of=/tmp/ddfile bs=8k count=200000 && sync"    200000+0 records in   200000+0 records out   1638400000 bytes (1.6 GB) copied, 27.7946 seconds, 58.9 MB/s    real    0m33.968s   user    0m0.531s   sys     0m26.000s   good PE2950 server (with the exact same hardware):  [root@good ~]# time sh -c "dd if=/dev/zero of=/tmp/ddfile bs=8k count=200000 && sync"    200000+0 records in   200000+0 records out   1638400000 bytes (1.6 GB) copied, 3.19999 seconds, 512 MB/s    real    0m7.694s   user    0m0.053s   sys     0m4.057s    Hopefully you will have an idea what can cause the problem.


What query should I use to check the SRID of the features in a feature class? The storage type of the feature class in st_geometry?  I tried the following query but no luck :   select top 1 [geomColumnName].STSrid from [schema].[feature class];

What is the function for getting SRID from Geometry field.   I have inserted a shapefile into SQL Server table with a Geometry field defined. I know the projection of shapefile is Swreff99_1800 (EPSG:3011).   Now my question is How I get this SRID:3011 by using some OGC method of the geometry field?


I want to copy current string (or select and then copy with help ctrl+shift+c) to clipboard. How do I make this?

I am about to press enter to run a command in terminal, but before doing that, I want to copy the command to clipboard without using the mouse.  How?  If you're somewhere other than the terminal, Ctrl+Home does it.   Is there a way of arbitrarily selecting text like that in the terminal?  EDITED:    assume that using other programs like screen is not a good alternative the text is to be pasted outside the terminal, so Ctrl+y and similar sequences do not solve it either


How to get a table in latex which is parallel to the page length (like landscape) and not the page width (like portrait)?  Using package 'booktabs'

First of all I would like to thank everyone here for being so helpful this website is doing a really great job helping new people fall in love with latex. I have another question. I have to put a few tables in landscape mode since they are to big to look nice in normal portrait mode. I would also like to have my header and page numbering on that page as well. Can anyone guide me in how to do this. With a simple code. I am actually scared of ruing my current document so I am going to make it on a separate file and then add it with a PDF tool later into my original document. So i would probably need to add custom numbering to those page. I am providing the code I used from a user here for my header and number can you guys tell me how to add a custom number in here for example if the landscape table is on 23rd page. Also I am adding an image of how I want my page to look with a table in landscape. Thanks alot    and here is the code where I want to put custom numbers  \usepackage{fancyhdr} \usepackage[margin=0.75in,head=2cm,top=1.5cm,bottom=2.5cm,includehead]{geometry} \usepackage{lastpage} \usepackage{graphicx} \renewcommand{\headrule}{}% to remove the line \lhead{\includegraphics[width=6cm]{lol.png}}% use your logo \rhead{% \begin{minipage}[b]{5cm} \flushright \today\\ IND/Q-85/15 \\ Page \thepage{} of \pageref{LastPage} \vspace{6mm} \end{minipage}} \cfoot{}   I think I would need to change the '\thepage{}' with a normal 23 if it was the 23rd page I am not sure though =/. Sorry if I am asking a very easy question.


The problem is described as follows:  Newton's Law of Universal Gravitation: $F=G \frac{m_1 m_2}{r^2}$ for any point masses $m_1,m_2$ with the distance between them $r$.    The factor $G≈6.67∙10^{-11}  N(m/kg)^2$ is a universal constant.  Denote the mass of Earth as $m_E≈5.972∙10^{24}  kg$,  the mass of the Moon as $m_M≈7.348∙10^{22}  kg$.  The unknown mass of the object will be $m$ and the distance in question will be $R$.  Then the distance between the object and Earth is  $\frac{1}{10} R$ and the distance between the object and the Moon is $\frac{9}{10} R$. The force from the Moon and Earth acting on the object is equal.  Now, I worked on the problem and found that from the law we obtain:  $$G \frac{mm_E}{\left(\frac{9}{10} R\right)^2} =G \frac{mm_M}{\left(\frac{1}{10} R\right)^2}$$  It seems like there is no solution to the question as not enough information is given. However, I was given this question as an assignment in math class and believe that steps should be shown towards a solution whether it exists or not. I fail to see how to solve this problem, at least to an approximate value, which is what is needed. If anybody knows, help will be immensely appreciated. Thank you.

Problem:  $F = \frac{(G m_1 m_2)}{r^2}$  An object of unknown mass is placed directly between the Earth and the Moon such that the forces of gravity acting on the object are equal from both the Earth and the Moon. The distance from the Moon to the object is exactly one-tenth of the distance from the Moon to Earth. Using the above formula, determine the distance from the Moon to the Earth.  Given is:  The factor $G≈6.67∙10−11\mathbf{N(\frac{m^2}{kg^2})}$ is a universal constant.  Mass of Earth $≈5.972∙10^{24}\mathbf{kg}$   Mass of the Moon as $≈7.348∙10^{22}\mathbf{kg}$  Mass of unknown object = $m$  My solution:  $F = \frac{(6.67 *10^-11) m (7.348*10^{24})}{R^2}$  $F = \frac{(6.67 *10^-11) (5.92* 10^22) m}{10R^2}$  As gravitational force acting on the object is equal   $\frac{(5.92\cdot 10^22)}{100r^2} = \frac{(7.348*10^{24})}{r^2}$  $R = 1.24 \cdot 10^4 KM$  Is this a viable solution to the problem? Please provide feedback. Thank you!


I need a sample DELETE Query where SQL Server by default takes an X lock at Page Level and not at Row Level. BACKGROUND: In our purging SP, we are using DELETE Query with ROWLOCK hint and I want to proof to my manager that if we remove that ROWLOCK Hint, SQL Server might go to acquire locks at PAGE Level. We are suspecting that LOCK ESCALATION is happening because of the ROWLOCK hint which we have explicitly mentioned in the DELETE Query.

We currently have some indexes where ALLOW_PAGELOCKS is set to off. This presumably was done in order to reduce deadlocks. However I doubt that it would really had an effect back then.   Now I am trying to understand WHEN SQL Server actually chooses to start locking pages rather than keys in a clustered index. I asked Jonathan Keyhaisas recently and he told me that this could happen if I am touching rows on several subsequent pages. However I didn't manage to get any exclusive page locks by updating rows in a clustered index with a sample query.   Could you help me understand page locks better with a sample query and table? I am running SQL Server 2008 SP4.  Thanks in advance  Martin


Hi I'm unable to edit particle settings on the right, under emission its grey

The particle number on my settings appear in gray, I don't think i'm able to change the number even thought i need it, how can i make it white again?


I set the ISO on my Canon 6D to 200: 1081 estimated shots remaining.  I set the ISO to "auto": 728 estimated shots remaining.  I'm shooting in RAW, if that makes a difference.

I have a Canon 550D with a 16GB SD card. I noticed that, when in P-mode, if I choose an ISO of 100 I can shoot 595 raw files on an empty card. If I choose an ISO of 200 this is 590. And if I choose 400 this number decreases to 583. Here below is the rest of the ISO vs. space     ISO  __ | __  Amount of raw files that fit on 16GB   800  __ | __ 569   1600 _ | __ 556   3200 _ | __ 539   6400 _ | __ 510   12800_| __ 477     Does anybody know, why the filesize of one raw photo increases with the ISO?


According to this post  this should be fixed. But it happened again.  See Image below (link to )  There was also another migrated question () in the list where the name was missing, but it was edited on meta.

I just noticed . Its author doesn't have an account on this site, which makes it show up like this on the homepage:        It looks like a simple thing - but it gets in the way of the 'flow' of the page:        Couldn't we somehow get the author's name, so that migrated questions with authors that don't have an account here still show up, like this:        Much better. Please?


I love doing things the command-line way and need to install some proprietary softwares that are available free of cost but have to be "bought" from the software center:    How do I install such softwares from the command-line?

In the Ubuntu Software Center, there are lots of $0 apps that I can 'purchase': for example:           As these applications are free (as in beer), I wonder how I can install them using apt-get.


I have a set of pictures named as hex representation of UUIDs. I want to see them ordered alphabetically as strings, but regardless what I try, the app shows me it differently:    I have these settings about grouping:   and sorting:   I think I figured out the order it represents. It looks like it tries to cut the longest string of decimal digits from the beginning of the name, interprets it as a number, and orders by this number. Albeit it can be convenient in some cases, it is not desired for me.  Is it possible to switch off this feature in Finder and obtain normal alphabetical sort order?  EDIT:  shines a light on the sorting algorithm but does not suggest how to switch it to normal string sorting.

I can't figure it out how to sort folders by name in Finder.   My expected results should look like this:  0629e7bc-8110-4db9-aaa9-b67b0b73743d 06a409e1-98c6-4bf4-afa4-c814f7899d82 0a3a5c12-e459-4aa0-b9cb-30b544013215 0c14581f-31d8-4961-a14f-11afc40e47f9 0fe8970c-6338-46ca-bc16-f7867b271480 129855c4-7dbe-4a9f-a100-28b1d3d02340 1522e288-8a81-4298-aefc-f334cb088a53 180d430b-76f9-401f-845a-cb395bc1eba0 1a01a936-bedf-4758-971a-d4886ee8d281 ....   But instead it looks like this:    Here are my settings:    Grouping is turned off.  I think this is a bug.  (grouping doesn't change anything here). I've deleted .DS_Store files.   I am running macOS Mojave 10.14.5 (18F132)  Even if I switch to another view, it does not work.    What else could I try to fix this?


I want to redirect all the request like url/api/something to a different port (say 8000) with the same base URL  RewriteCond %{REQUEST_URI} ^/api/\w*$ [NC] RewriteRule ?   What is the RewriteRule?  Thanks for helping!

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


The  rule states:  When you take the Attack action and attack with a light melee weapon that you're holding in one hand, you can use a bonus action to attack with a different light melee weapon that you're holding in the other hand.  If the character can make multiple attacks as part of the Attack action, do all of them need to be done with a light melee weapon to qualify for making the bonus-action attack? Specifically, can I make one attack with a light melee weapon in one hand and make one bite attack with a natural weapon, and then use my bonus action to make an attack with a second light melee weapon in the other hand?

Pick a class that has access to the Extra Attack feature. For my example, I'll use my standby, Fighter McFighterson.  Let us say that McFighterson is 20th level, and possesses the Dual Wielder feat. He is currently holding a greatsword, and has two longswords accessible.  As a reminder, two weapon fighting says:     When you take the Attack action and attack with a light melee weapon that you're holding in one hand, you can use a bonus action to attack with a different light melee weapon that you're holding in the other hand...[snip]   And Dual Wielder:     [snip]... You can use two-weapon fighting even when the one handed melee weapons you are wielding aren’t light.   You can draw or stow two one-handed weapons when you would normally be able to draw or stow only one. ...[snip]   Can McFighterson make all of the attacks granted by Extra Attack (3, in this case) with his greatsword, drop the greatsword "for free", draw two longswords (as permitted by Dual Wielder), use his last attack to attack with one longsword, then two-weapon-fight with the second longsword?  Making the attack sequence look something like: Greatsword, Greatsword, Greatsword, Longsword1, Longsword2.    Related:


In the book Eragon, what species is Angela? I am confused because she looks like a human not an elf, but she is super old.   Is she a different species?

Throughout the Inheritance Cycle, Angela plays a frequent, mysterious role. There are some vague hints as to an interesting back story, including:   Saphira makes mention of her as a person with a "Young body, old mind" She indicates that she might be quite old. The Elves have considerable respect for her, for reasons which are never noted. She seems to have considerable power, but not as much as King Galbatorix. She seems to know things she shouldn't, such as how to protect herself against Elva, what was going to happen to Eragon at the end of the 4th book before he had mentioned it to any but a VERY few trusted people, etc. Solembum, the werecat, seems to trust her a great deal, but doesn't seem to know why.   So, what is her back story?


I was refused for a Schengen visa in February 2018 for justification for the purpose and conditions of the intended stay was not reliable. I had an invitation letter from a sponsor company and all other documents were clear. I appealed and was refused.   I tried again in August and was refused again for the same reason. The company in Spain sent many emails to the Embassy to try to help me, but didn't get a  clear answer.  What should I do now? I appealed and was refused on the same day. I don't know what the Consulate has against me. I have to travel to check the company production lines and finish financial transactions. Can I ask the company to invite me via the police authority?

Schengen refusal formulae can be difficult to understand sometimes.  Sometimes an applicant receives a refusal with:       Justification for the purpose and conditions of the intended stay was not reliable.     often accompanied by:       Your intention to leave the territory of the Member States before the expiry of the visa applied for could not be ascertained.   What is meant by this refusal reason?  What are they trying to say?


I understand that if $X \sim N(\mu, \sigma^{2}$), then the sample mean for a sample size of N is $\overline{x} \sim N(\mu, \frac{\sigma^{2}}{N})$ but I am not sure how was this derived $ \overline{\sigma}^{2} \sim N(\sigma^{2}, \sigma^{4}\frac{2}{N-1}) $.   Furthermore, the standard error (standard deviation of the parameter) for $\overline{\sigma}$ is  $SE(\overline{\sigma}) = \overline{\sigma} \sqrt{\frac{1}{2N}}$, and I didn't find derivation for this either. Most of what I found is on the standard deviation of the sample mean, or $\frac{s}{\sqrt{N}}$ for unknown population standard deviation.  Standard error of $\overline{\sigma}$ and standard error of $\overline{\sigma^{2}}$ are completely different and they do not connect right? (Is there an intuition behind this?)  Could you show me the derivation for those two quantities? Also, should it be $\overline{\sigma}$ or $\hat{\sigma}$?   Thanks!

This is a more general treatment of the issue posed by  . After deriving the asymptotic distribution of the sample variance, we can apply the Delta method to arrive at the corresponding distribution for the standard deviation.    Let a sample of size $n$ of i.i.d. non-normal random variables $\{X_i\},\;\; i=1,...,n$, with mean $\mu$ and variance $\sigma^2$. Set the sample mean and the sample variance as  $$\bar x = \frac 1n \sum_{i=1}^nX_i,\;\;\; s^2 = \frac 1{n-1} \sum_{i=1}^n(X_i-\bar x)^2$$  We know that  $$E(s^2) = \sigma^2, \;\;\; \operatorname {Var}(s^2) = \frac{1}{n} \left(\mu_4 - \frac{n-3}{n-1}\sigma^4\right)$$  where $\mu_4 = E(X_i -\mu)^4$, and we restrict our attention to distributions for which what moments need to exist and be finite, do exist and are finite.  Does it hold that  $$\sqrt n(s^2 - \sigma^2) \rightarrow_d N\left(0,\mu_4 - \sigma^4\right)\;\; ?$$


I am working for a project in netbeans. When i'll finish my project how can i execute my application (out of Netbeans)? I'm working for a little and simple guide of a game.

How do I run a .jar executable java file from outside NetBeans IDE? (Windows Vista).  My project has a .jar file created by Netbeans.  We'd like to run it.  Either: how do we run the file or how do we create a 'proper' executable file in NetBeans 6.1?


About an hour or so ago, my stack overflow reputation dropped from well over 1000 to just 41. What's going on?  At the same time, my username got reset to one of those numeric ones (user123456 or similar), though I've changed that back to "tobyink" now.  My account is  - you can see the history is fine, so it's not like I accidentally signed in with a different Open ID and ended up creating a new user with lower reputation.

This user is only displaying 56 rep.   But surely (s)he has much more than that.        The user has also never given out any bounties.  Also, badges are missing:


I am pretty lost with the attribute table, so I couldn’t figure out the already existing answers about it (using QGIS 2.12.3.). I have a shapefile with all the protected areas in one region. Since I don’t need all of those protected areas, I would like to know how I can hide all the other objects? I have to search for the objects through their name and really don’t know how to use the dialog with all its functions.

Not sure if this option ever existed, but the new QGIS version hides a lot of things somewhere else and this seems so simple that I'm kind of convinced it was possible to do this before. I have quite a large data set with ship tracks. I now want to analyse individual ship tracks (made from point layer with  Plugin). However, it is so crowded that it is hard to look at individual tracks. I don't want to save each single track as a new layer, so I wonder if it is possible to select one track in the Attribute table and display only that one on the map/hide the others?


With photography covering such a wide range of topics, it's clear that a lot of photographers are likely to face an issue when it comes to being active in social circles - You don't want to expose people who are interested in your "U" rated work to coversations where you express your liking for "18+" rated content.  So it makes sense to split up your accounts a little, or maybe a lot?  Do any of you ( ON A PERSONAL LEVEL ) simply split yourself into 2 ( Regular & NSFW ), do any of you split your personal interstes further ( Sport . Erotic . Falmily Portrait ), or do any of you dare to use one single account ( Anything goes ).  I'm particularly interested in how you how to split up regular content if it could be deemed as NSFW in a non pornographic way. For example, an interest in modelling which is non nude, but contains gore or fictional graphic violence. This makes it not suitable for family viewing, but it's not going to appeal to fans of the erotic either. So should you have 3 presences ( Universal / Regualar / NSFW )?   In other words:  So lets say as a photographer you own several web/business presences:  Your Name Photography - Fashion, Family Portrait, Local, Street FA Media - Alternative, Dark, Music, Live Events, Light Fetish Dark Eye Promotions - Main Fetish - BDSM The Erotic Studios - Nude - Erotic   From a business perspective, you should own each of these as a site and a social media account, but on a personal level, how do you keep up with all interests without needing to set up another 4 mirror accounts for personal use?  Any examples of how multi-niche photographers out there run their personal presences would be appreciated.

This may be seen as a bit off topic, but I'm hoping it's a question that some photographers can associalte with and clear up for me.  I'm an amateur wanting to get more serious in the new year, and aiming to build up a portfolio of work that I will showcase on my own website, which will hopefully build up a client base.  I figured that a good way to get started would be to create a few 365 style projects that I can publish on my site and on social media. However, my interests vary a great deal, and therefore my photography will more than likely range from nature and local events, to more NSFW style topics.  My problem is, how to successfully communicate with people who will be interested in certain aspects of my work, without losing touch with those interested in others.  In theory, I'd like to set up a single social media presence, preferably Twitter, where I can freely post anything I want, and connect with anyone I want. Essentailly pointing people in the direction of whatever content they will be interested in. Problem is, social media sites like Twitter publicise ALL of your posts to ALL of your followers, so people who are following for nature/local photography will possibly unfollow me for my NSFW content. At the same time, some SFW followers may be potential clients in other areas, and vice versa.  So as a multi niche photographer, how can you engage with all potential clients, and showcase all portfolio peices ( in my case all 365 project shots ) via a single or limited number of social networks? How are you doing it?


It seems a trivial question:  Prove/disprove: If we have a vector space $X$, then for any subset $A$ of $X$, we have $A+A =2A$.  It seems that $2A$ is always subset of $A+A$, but I don't think $A+A$ is subset of $2A$. I am thinking in set of integers modulo $p$, for $p$ a prime, as a counterexample. Am I right?

Let $X$ de a vector space and $A\subset X$. If we define $A+B :=\{a+b|a\in A, b\in B\}$ I am trying to show that    $$ \begin{equation} 2A \subsetneq A+A, \end{equation} $$  i.e., it might happen that $2A \neq A+A$. I was able to show that $2A \subset A+A$, but I am not able to come up with a counterexample to show that the converse is not necessarily true. If I assume $A+A\subset 2A$ and let $x\in(A+A)$, then by its definition we have $x=a_1 + a_2$ for some $a_1,a_2\in A$ I guess I could naively say that $a_1+a_2 = 2(a'_1+a'_2)$ where $a_i=a_i/2$ for $i=1,2$ and I guess $(a'_1+a'_2)$ might not be an element of $A$ in some concrete case but I am not able to come up with anything and I've spent more time than I would like to admit. Any suggestions?  Thank you.


I want to follow a tutorial that uses a build from July 13th, but the layout has changed a bit.

I was trying to re-download the original Blender 2.8, however it goes directly to the 2.81 download page instead.  How can I access downloads for previous versions of Blender and installers for older releases?


When browsing on questions that I would like to answer or flag, I now ended up to a question that was put on hold. I had to open the question to realize it was not an eligible one and it was already put on hold. So nothing to do about, basically.  On software design one rule is to avoid clicks. If I look for questions to answer, I normally skip ones marked as green on list because these have an accepted answer already there. For put on hold questions the only indicator is maybe a flappy title, put for being sure there is no need to even flag the question, I would like to see a yellow color on status (votecount, answer count) box to tell the question is on hold. That way my moderating and answering double focus would immediatedly go for the next one. Desicion of open or not would be easier.  (You may discuss the color, light grey is ok, too.)

When I stared at  () and I even thought [question refined] as offical status of the post.    <somebody  it now, So, I've edited this question to get same effect>  How about official status [closed] as   different font color or  different font size or put the text [closed] outside the question link   Or   put a special tag as suggested in the    to clarify from those?


Currently when a moderator or gold tag badge holder closes a question as a dupe, they are limited to duping it to just one question. However, when several users vote to close the question, you can end up having a question closed as a dupe of two or more separate questions.   In some cases it would be beneficial if moderators and gold tag badge holders could include more then one question when closing as a dupe, if more then one question would better answer the question. On the  we run into this issue occasionally; other stacks may not face this issue.

When searching for duplicates of a question often multiple ones turn up, but when voting to close only one of them can be specified.  It would be useful to be able to add more than one duplicate link when voting to close.  This is not a duplicate of  as that feature only allows gold-badge users to add multiple targets; this proposal would allow everyone to propose multiple duplicates.


I want to trigger logout when I close any tab of my application. I tried $(window).on('unload', logout); and $(window).on('onbeforeunload', logout); That works fine but events also triggered when I reload page. How can I prevent this on reload? Before asking I found some options like event.currentTarget.performance.navigation.type but no posibility to separate reload and close in this way. Is there any opputurnity to trigger logout only on tab closed?

I am currently looking at the "unload" event of a window to try to determine how the "unload" event was triggered, but am having little success. Is there a way to determine how the javascript event was triggered?   Page Refresh Back Button (or navigate away from the page) Closing the Browser   Essentially I need to execute some code only when the browser window is being closed, not refreshed or navigated away from.  Purpose: When a customer does an update of our software, the update will redirect their first Internet request to an offer page. There is a button for a "Do Not Bother" option, but some users will simply close their browser. Upon closing the browser, I need to duplicate the "Do Not Bother" functionality so the user no longer gets redirected to the offer page. Simply attaching to the "unload" event will not work due to the different ways of leaving a page.


I would like to determine the general term of the following sequence defined by an infinite integral: $$ I_n = \int_0^\infty \left| \frac{\sin t}{t} \right|^n \, \mathrm{d}t \, , $$ wherein $n =3, 5, 7, \dots$ is an odd integer. It can be checked that the integral is convergent for all values of $n$ in the prescribed range. The case of even $n$ is solved in . Also, . I have tried to use the method of multiple integrations by parts but in vein. I was wondering whether there exists a suitable approach to address this problem more effectively.

The following question comes from   post $$\int_0^{\infty} \left(\frac{\sin x }{x }\right)^n\,\mathrm{d}x$$ but now I'd be curious to know how to deal with it by methods of complex analysis. Some suggestions, hints? Thanks!!!  Sis.


I'm on the  quest line where I have to unlock the  shout.. I have already learned the Earth but of the shout but I can't learn Mind and Dragon because I don't have any dragon souls saved up, And I can't absorb any more souls thanks to  stealing them all from me. Anyone know what I can do or is it game-over for me?

After reading the book Waking Dreams and seeing Miraak, I couldn't absorb a dragon's soul. I killed more than 10 dragons and Miraak took all the souls. Is this supposed to happen?


Following is the code to display the tuples which has the username and password matching the strings  String usr = tf1.getText(); String pwd = tf2.getText();  System.out.println("Username is " + usr + " Password is " + pwd);  String sql = "select * from student where first = '"+usr+"' and last = '"+pwd+"';"; System.out.println("SQL is " + sql);  try {     rset = stmt.executeQuery(sql);     if(rset.next()){           JOptionPane.showMessageDialog(null, " Login Successfull...");     } } catch(SQLException e){     JOptionPane.showMessageDialog(null, e); } // TODO add your handling code here:   }                                          Is there any mistake in framing the query here.pPlease check the string 'sql'. The null pointer exception is at the following statement.  rset = stmt.executeQuery(sql);  This sql string is not null because, when I print it on console it shows me  select * from student where first = 'rohit' and last = 'rocks';   So, its not null at the runtime. If sql is not null then why am I getting the NullPointer Exception?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I am trying to create new Apple ID, but when I enter the details it shows me an error saying my email is valid and ok but it's not available even though I didn't use this email before for any Apple ID.  According to documentation I checked, "not available" means it would be used or associated with any other Apple ID but when I try to sign in and use the option that I forgot the password it shows me that there is no record for this ID.  What do these errors mean?

I have my own AppleID ("Bob") but I don't use this email addy "Bob" anymore. I want to add my current, daily used email addy ("Jim") to my ID, or better yet, make it my only AppleID and delete "Bob". BUT... I already used "Jim" for an AppleID for an older friend who had no email address, so set it up for him on mine, "Jim".  My older friend now has an email address ("Ivan") so can I   add "Ivan" to his AppleID, make it the primary email address, and then delete "Jim" from it? Or... delete his AppleID and create a new one for him "Ivan" knowing he would lose his minor purchases   And most importantly, this would all be pointless unless: - will deleting/removing "Jim" as linked to my friend's AppleID then make "Jim" available for me and no longer registered to another account?


It is possible for a iframe to redirect the page it is on?   Example:  You go to www.fuu.com  On fuu.com there is a iframe  In that iframe is a website the redirects to another website.  Is it possible for fuu.com to be redirected? instead on just the iframe going to another page?

What JavaScript do I need to use to redirect a parent window from an iframe?  I want them to click a hyperlink which, using JavaScript or any other method, would redirect the parent window to a new URL.


How would I find the sum of an infinite number of fractions, where there are Fibonacci numbers as the numerators (increasing by one term each time) and numbers (starting at one) which double each time as the denominators?  I'm assuming this has something to do with limits.

I presented the following problem to some of my students recently (from Senior Mathematical Challenge- edited by Gardiner)  In the Fibonacci sequence $1, 1, 2, 3, 5, 8, 13, 21, 34, 55,\ldots$ each term after the first two is the sum of the two previous terms. What is the sum to infinity of the series: $$\frac{1}{2} + \frac{1}{4}+ \frac{2}{8} + \frac{3}{16} + \frac{5}{32} +\frac{8}{64} + \frac{13}{128} +\frac{21}{256} +\frac{34}{512}+ \frac{55}{1024} + \cdots$$  Now, I solved this using an infinite geometric matrix series (incorporating the matrix version of the relation $a_n= \frac{a_{n-1}}{2}+ \frac{a_{n-2}}{4}$), and my students, after much hinting on my part, googled the necessary string to stumble across Binet's formula (which allows one to split the series into two simple, if rather messy, geometrics). Both of these are good methods, but neither really seems plausible for a challenge set for 15-18 year olds under exam conditions. So how is one supposed to do it?


Quite often, when making simple mistakes (like using underscore outside of math mode), LaTeX (or rather tex?) attempts to insert missing math mode delimiters.  e.g. in  \documentclass{standalone} \begin{document} x_2 \end{document}   latex yields:  ./test.tex:3: Missing $ inserted.   And then, instead of telling me that the underscore was not allowed, it spits out multitudes of warnings about missing delimiters etc.  Apparently the original idea was to implement some sort of error-correcting parser. However, at least in my case, this simply does not work and -worse- yields even more confusing error messages.  Is there a way enforce a strict mode that simply bails out on the first error?

In case of a syntax error, pdflatex usually (in \errorstopmode) gets interactive and asks you what to do. I know I can press:   X to terminate S to enter \scrollmode (continue processing without stopping if further syntax errors arise, but stop for other errors) R to enter \nonstopmode (continue processing without stopping if further errors arise) Q to enter \batchmode (continue processing without stopping if further errors arise and suppress further output to the terminal)   Apparently, only the latter three (SRQ) can be provided implicitly by the respecive \...mode commands or the -interaction=...mode command line option. However, what I need is a mode that mimics the implicit pressing of X, that is, to make the pdflatex process terminate after the first error.


Prove or disprove: For any sets X,Y,Z and any maps f:X→Y and g:Y→Z, if f is injective and g is surjective, then g ◦ f is surjective.  sorry im back to sets again. but then i realised all my workings are wrong after i gone through with my tutor on this question. i think a more strong proof would be stating an example to help me better on this. an example where f is injective and g is surjective, but gof is neither surjective nor injective, thus proving the statement is false. thanks a lot and sorry for the trouble... :(

(1) Prove or disprove: For any sets $X,Y,Z$ and any maps $f:X \to Y$ and $g:Y \to Z$, if $f$ is injective and $g$ is surjective, then $g \circ f$ is surjective.  So i proved previously that $f$ is injective if $g \circ f$ is injective, but then i also proved that if $g \circ f$ is surjective then $g$ is surjective. then this question appears, so how do i prove it that it is true or false? I'm saying it's true, because $g \circ f$ is bijective, so how do i go around proving it? Or my idea is already wrong? I need some help thanks.  (2) Show that (it is true in general that) for any sets $A,B$, one has $P(A) \cup P(B) \subseteq P(A \cup B)$.  I know that power set has exactly all the subsets of $A$ for $P(A)$. but I dont know how to start.


I am new to c# - I want to trigger button click event on pressing enter. My code not working properly -   issue is that when i press enter on submitting some value, it displays messagebox which it should show but on pressing Enter for OK button of Messagebox, it automatically triggers button click event again even i don't press enter or enter any other value.    public partial class Form1 : Form {     int n1, n2 = 0;     private static readonly Random getrandom = new Random();     private static readonly object syncLock = new object();     public int GetRandomNumber(int min, int max)     {         lock (syncLock)         { // synchronize             return getrandom.Next(min, max);         }     }      public int tQuestion()     {         n1 = GetRandomNumber(2, 11);         n2 = GetRandomNumber(2, 11);          string tQues = n1 + " x " + n2 + " = ";          label1.Text = tQues;          return 0;     }       public Form1()     {         InitializeComponent();     }      private void Form1_Load(object sender, EventArgs e)     {          tQuestion();      }      private void label1_Click(object sender, EventArgs e)     {      }      private void textBox1_TextChanged(object sender, EventArgs e)     {         textBox1.KeyDown += new KeyEventHandler(tb_KeyDown);     }      public void button1_Click(object sender, EventArgs e)     {          string tAns = textBox1.Text;         int answer = n1 * n2;          string tOrgAns = answer.ToString();          if (tAns == tOrgAns)             MessageBox.Show("Your answer is Corect", "Result", MessageBoxButtons.OK,MessageBoxIcon.Exclamation );         else             MessageBox.Show("Your answer is WRONG", "Result", MessageBoxButtons.OK, MessageBoxIcon.Stop);         textBox1.Text = "";         textBox1.Focus();         tQuestion();     }      static void tb_KeyDown(object sender, KeyEventArgs e)     {         if (e.KeyCode == Keys.Enter)         {             button1_Click(sender, e);         }     }   Moreover, code only works if i remove static from static void tb_KeyDown(object sender, KeyEventArgs e) - otherwise it gives error:      An object reference is required for the non-static field, method, or   property   Please help me - i am new to c# & .Net

I'm working with a WinForm app in C#, after I type something in a textbox I want to hit the Enter key but the textbox still has focus (flashing cursor is still in textbox), how can I achieve this?


I am writing a master thesis using the Book class, sometimes the name of the chapter is too long so that the section name and chapter name overlaps in the page header. How can I change the text size and the type in the page header?  Are there any solutions rather than changing the text size?  MWE:  \documentclass[a4paper,french,11pt,oneside]{book} \usepackage[left=25mm,right=25mm]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{fancyhdr} \usepackage{lipsum}   \renewcommand{\headrulewidth}{0.3mm}  \pagestyle{fancy}    \begin{document}  \chapter*{Introduction générale}  \lipsum[2-4]  \part{Cerveau et modélisation de l’activité neuronale} \chapter{Modalités d'exploration de l'activité neuronale} \section{Introduction}  \lipsum[2-10]  \end{document}

I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the   \chapter[short title]{long title}   command. But then, "short title" appears in the table of contents instead of the original/true/long one.  How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?  For reference, here is the code I use:  \documentclass[11pt,a4paper]{book} \begin{document} \tableofcontents  \chapter[Short title]{Very vey very very very very very very long title     i can't display in the header} Lorem ipsum dolor sit amet, consectetur adipiscing elit. \end{document}


first_operand = random.randint(0, 9)      numbers = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine']     first_operand = numbers[first_operand]      #funcynum is the name of another module. it contains the functions print_zero, print_one, etc.       first_number = 'funcynum.print_' + first_operand     return first_number   I have 10 different functions (not shown above), all similarly named (i.e. print_zero, print_one, print_two, print_three, etc.) The point of my program is to generate a random number and call a function according to its number. For instance, if the program randomly generates the number 3, it would call the function print_three. So far, I have a list that contains the written words for numbers 0 - 9. The program then retrieves the word according to the generated number. However, the program returns a string of the function but does not actually call it. How would I change my code so that it would call the function instead?

What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this.


I have a lenovo v110 15iap and the cpu is soldered in the motherboard is there any way I can upgrade it?

I want to upgrade the CPU of my T430s laptop from i7-3520M to i7-3632QM. I'm sure i7-3632QM is supported (same socket (BGA1224), same TDP (35W) and microcode found in BIOS (306A9.PAT)).  So my question is: 1) is it possible to de-solder the current CPU without damaging it, and to solder the new CPU without damaging it and the motherboard ? 2) if so, what tools are necessary? who can do that at a reasonnable cost?  Until now, I was unable to find anyone able (or willing) to do that (I'm located in France, and I have tried a local fablab, electronics shops, TV repair shops, ...). Any hint would be appreciated.


Does anyone know Dell Laptops well - most use same hardware.. I can use Latitube 3460 according to the database... Can I use Ubuntu on Dell Vostro 3460?

I have a device on which I would like to install Ubuntu. How do I find out if Ubuntu will work on it?


Einstein has suggested that light can behave as a wave as well as like a particle i.e, it   has dual character. In 1924, de-Broglie suggested that just as light exhibits wave and particle properties, all microscopic material particles such as electrons, protons , atoms, molecules, etc. also have dual character. They behave as a particle as well as a wave. This means that an electron which has been regarded as a particle also behaves like a wave. Thus, according to de-Broglie,       all the material particles in motion possess wave characteristics.     According to de-Broglie, the wavelength associated with a particle of mass m, moving with velocity v is given by the relation, $$\lambda=\frac{h}{mv}=\frac{h}{p}$$ where h is Planck's constant, v is the velocity and p(=mv) is momentum of the particles. The waves associated with material pariticles are called de Broglie waves.   My book says that:        "Although the dual nature of matter is applicable to all material objects but it is significant for microscopic bodies only. For large bodies, the wavelengths of the associated waves are very small and cannot be measured by any of the available methods. Therefore, practically these bodies are said to have no wavelengths. Thus, any material body in motion can have wavelength but it is measurable or significant only for microscopic bodies such as electron, proton, atom or molecule. This may be illustrated as follows:   The wavelength of an electron with mass $9.11*10^{-31}$kg and moving with the velocity of $10^6$ m/s is $7.28$ m as shown below:   $$\lambda=\frac{h}{mv}=\frac{6.63*10^{-34}kg m^2 s^{-1}}{(9.11*10^{-31}kg)(10^6m/s)}=7.28*10^{-10}m$$   This wavelength associated with the moving electron is of the same order of magnitude as of $X$-rays which can be easily measured."    I made an attempt to check the wavelength associated with a car of mass $10^{6}$ kg and moving with velocity of $9.11*10^{-31}$ m/s, and I got the wavelength associated with it as shown below: $$\lambda=\frac{h}{mv}=\frac{6.63*10^{-34}kg m^2 s^{-1}}{(10^6kg)(9.11*10^{-31}m/s)}=7.28*10^{-10}m$$ This shows that a car or any material object with mass $10^{6}$kg and moving with velocity $9.11*10^{-31}$m/s (almost at rest) has the wavelength same as that of an electron, but this result in contradiction with the statement of my book. And even I thought that it is practically impossible to see any wavelength associated with such mass of $10^{6}$kg.     I have heard about rest and relativistic mass, and theory of relativity, but I have naive idea about it. If I have made mistake there, correct me. Or else "is it that macroscopic body can have same wavelength as that associated with an electron?" Please explain.

Many introductory quantum mechanics textbooks include simple exercises on computing the de Broglie wavelength of macroscopic objects, often contrasting the results with that of a proton, etc.  For instance, this example, taken from a textbook:     Calculate the de Broglie wavelength for      (a) a proton of kinetic energy 70 MeV      (b) a 100 g bullet moving at 900 m/s   The pedagogical motivation behind these questions is obvious: when the de Broglie wavelength is small compared to the size of an object, the wave behaviour of the object is undetectable.  But what is the validity of the actual approach of applying the formula naively? Of course, a 100g bullet is not a fundamental object of 100g but a lattice of some $10^{23}$ atoms bound by the electromagnetic force. But is the naive answer close to the actual one (i.e. within an order of magnitude or two)? How does one even calculate the de Broglie wavelength for a many body system accurately?


I'm getting a nullpointerexception in my program and can't figure it out. These are the portions of code it is highlighting.  public int size()           throws IOException    {       return (int) (file.length() / RECORD_SIZE);    }  public int find(int accountNumber)          throws IOException    {       for (int i = 0; i < size(); i++)       {          file.seek(i * RECORD_SIZE);          int a = file.readInt();                   if (a == accountNumber) { return i; }             // Found a match                   }        return -1; // No match in the entire file    }   I believe this line is the main problem but don't really know what to do.   int position = data.find(accountNumber);  Exception in thread "main" java.lang.NullPointerException     at BankData.size(BankData.java:43)     at BankData.find(BankData.java:79)     at BankSimulator.main(BankSimulator.java:35)   If you need any other parts of my code to look at just let me know. The purpose of the program is to create a file, create bank accounts and/or delete them. It will then calculate the file size before and after a transaction. Thanks!

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


New to photography taking classes lol need help

I have seen this term a lot and I was wondering what, in basic terms, what bracketing/autobracketing is.  Also, why would one want to 'bracket'?  P.S. - there are other questions asking what DoF and WB bracketing is but none asking quite the same as this.


I have an unregistered account on one of the stackexchange domains. The problem is, I only get logged in as that account on the PC I used to ask that question. Is it a possibility to transfer this unregistered account (as a cookie file or I don't know what) to another PC, so I can use it from there?

I asked and answered a question on an SE site without registering. I was accessing my unregistered account through my browser, which kept me logged in. However, someone reset my cookies and now I've lost my account.   Is there anyway to regain it, or should I give it up for lost?


Prove that :- $$\frac{x^2}{y}+ \frac{y^2}{z}+\frac{z^2}{x} \geq x+y+z$$ Where $x,y,z$ are positive real numbers My attempt :- L.H.S = $\frac{x^3 z +x y^3 + y z^3 }{xyz} $ We need to show that $x^3 z + x y^3 + y z^3 \geq xyz (x+y+z) $ I tried the AM-GM $3(x^3 z + x y^3 + y z^3) \geq (xyz)^{\frac{4}{3}}$ But i could not go on any more !

I've tried getting everything on the left side and transforming it into something squared so that I can prove it's bigger or equals to 0 but I've been unsuccessful.


Solve the equation  $$x^4-10x^3+26x^2-10x+1=0$$   I tried for the values of $x = \pm 1, \pm 2, \pm 3$  but I didn't get the solution.

Find the root of the  equation  $$x^4 -10x^3 + 26x^2 -10x +1 = 0$$   My attempt:  If $a,b,c$ and $d$ are a roots then $a+b+c+d = 10,$  $(a+b)(c+d)  + ab +cd = 26$  $(a+b)cd  +ab(c+d) = 10$  $abcd =1$  Now  i'm not able  procceed further.


I was navigating on Internet, had rythmbox reading a song and LibreOffice open developing a chart when suddenly on Firefox all freezed  and a ahotdown and reboot was necessary.   For all the similar cases, in particular a had a repository file missing, so I guess this was reason, I've removed both repository files missing 10 min after dealing with freezed ubuntu.  Best regards!

Otherwise stable Ubuntu machine have an issue since installing that is critical freezing without apparent reasons. There are high probabilities that the issue been caused by NVDIA videocard.       sudo blkid output:  /dev/sda2: UUID="0E5C95E45C95C73D" TYPE="ntfs" PARTUUID="1ef0523b-02" /dev/sda5: UUID="16EA-1372" TYPE="vfat" PARTUUID="1ef0523b-05" /dev/sda6: UUID="fe90c52c-c1b7-4845-971e-e7ed5cb45ac4" TYPE="ext4" PARTUUID="1ef0523b-06"   /etc/fstab:  # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / was on /dev/sda6 during installation UUID=fe90c52c-c1b7-4845-971e-e7ed5cb45ac4 /               ext4    errors=remount-ro 0       1 /swapfile                                 none            swap    sw              0       0 /dev/mapper/cryptswap1 none swap sw 0 0   /etc/crypttab:  cryptswap1 UUID=f09a516a-22c0-475c-b749-31ffed5c7bda /dev/urandom swap,offset=1024,cipher=aes-xts-plain64   ls -alh /swapfile:  -rw------- 1 root root 2.0G May  3 13:31 /swapfile


I'm trying to strip a string of all sequences that begin with a string "GUGU" and and end with something like "AGAG". The closest I've gotten is   replaceAll("GUGU(.*)AGAG", "")   but all that does is replace the "largest" instance. Meaning if there are multiple occurrences of GUGU*AGAG in a string, it only matches the outermost. So what could I do to get this to work for every instance of the regex in the string?

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I am having problem to admit why in a laminar flow of a fluid we assume a small area and take a direction normal to it.Similarly in stress tensor analysis introductory diagram area of each face of the cube is treated as a plane with direction.Please explain me why area turns from a directionless quantity to a quantity with direction and also in that context explain me what is a tensor in a simple language.

I have a pretty good knowledge of physics, but couldn't deeply understand what a  is and why it is so fundamental.


Having issues using string to extract string between two characters. I need to get the everything between these characters including the line breaks:  reprEx <- "2100\n\nELECTRONIC WITHDRAWALS| om93 CCD ID: 964En To American Hon\nELECTRONIC WITHDRAWALSda Finance Corp 295.00\nTotal Electronic Withdrawals $93,735.18\n[OTHER WITHDRAWALS| WITHDRAWALS\nDATE DES $93,735.18\n[OTHER WITHDRAWALS| WITHDRAWALS\nDATE DESCRIPTION AMOUNT\n04/09 Pmt ID 7807388390 Refunded IN Error On 04/08"  desiredResult <- "| om93 CCD ID: 964En To American Hon\nELECTRONIC WITHDRAWALSda Finance Corp 295.00\nTotal Electronic Withdrawals $93,735.18\n[OTHER WITHDRAWALS| WITHDRAWALS\nDATE DES $93,735.18\n["   I have tried using:  desiredResult <- str_match(reprEx, "ELECTRONIC WITHDRAWALS\\s*(.*?)\\s*OTHER WITHDRAWALS")[,2]   but I just get NA back. I just want to get everything in the string that is between the first occurrence of ELECTRONIC WITHDRAWALS and the first occurrence of OTHER WITHDRAWALS. I can't tell if the new lines are what is causing the problem

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


Preferably in a more idiomatic kind of way.  I was thinking 'chaff', as in 'to separate the wheat from the chaff' (to separate the important details from the unnecessary ones), but am I right in thinking that that's used more in terms of people?

Can you tell me what the word is for "Unnecessary detailed info on a topic which is given after the prominent parts is given"?


Please don't get confused by my full complex code. Let me walk you through my code and problem.  I have built a class (CharDrawing), in which I am calling one method (charDrawing) inside another method (stringDrawing), let's say two times, in full code below. And it is returning me desired object.  Now, I am trying to replace these 2 calls of charDrawing() method, using for loop. See the commented part below.  sr=charDrawing(sr,x,y,w,h,pw,"G"); sr=charDrawing(sr,x+w+5,y,w,h,pw,"B");      /*for (int i=0;i<l;i++)     {                              sr=charDrawing(sr,x+i*(w+gap),y,w,h,pw,Character.toString(s.charAt(i)));     }*/   But my for loop is not behaving same as above two lines? What is the difference?  After applying for loop I am not getting same result.  Debugging: These are my debugging result of objects in both cases. Refer full code below.  Code run without for loop:  simple object line 1com.badlogic.gdx.graphics.glutils.ShapeRenderer@1ef3e2e simple object line 2com.badlogic.gdx.graphics.glutils.ShapeRenderer@1ef3e2e   Code run using for loop:  for loop objectcom.badlogic.gdx.graphics.glutils.ShapeRenderer@13841b8 for loop objectcom.badlogic.gdx.graphics.glutils.ShapeRenderer@13841b8   My Analysis: As you can see, in both cases, same objects are getting updated in each line. Then why am I not getting same results?  Full Code:  public class CharDrawing {      public ShapeRenderer stringDrawing(ShapeRenderer sr,float x, float y, float w, float h,float pw,float gap,String s) {          int l=s.length();         sr.begin(ShapeType.Filled);         /*for (int i=0;i<l;i++)         {                                  sr=charDrawing(sr,x+i*(w+gap),y,w,h,pw,Character.toString(s.charAt(i)));           System.out.println("for loop object"+sr);         }*/         sr=charDrawing(sr,x,y,w,h,pw,"G");         System.out.println("simple object line 1"+sr);         sr=charDrawing(sr,x+w+5,y,w,h,pw,"B");         System.out.println("simple object line 2"+sr);         sr.end();         return sr;     }     public ShapeRenderer charDrawing(ShapeRenderer sr,float x, float y, float w, float h,float pw,String c)     {          if(c=="G")         {             //sr.begin(ShapeType.Filled);             sr.setColor(200/255f, 245/255f,112/255f, 1);  //color1             sr.rect(x,y,w,h);             sr.setColor(107/255f, 107/255f,107/255f, 1);   //color2             sr.rect(x+pw,y+pw,w*0.35f,h-2*pw);             //sr.setColor(407/255f, 107/255f,107/255f, 1); //for debugging             sr.rect(x+pw+w*0.35f,y+pw+h*0.5f-pw,0.65f*w-pw,h*0.5f-pw);             sr.rect(x+2*pw+w*0.35f,y,0.65f*w-3*pw,h*0.5f-pw);                    //sr.end();         }          if(c=="B")         {             //sr.begin(ShapeType.Filled);             sr.setColor(200/255f, 245/255f,112/255f, 1);  //color1             sr.rect(x,y,w,h);             sr.setColor(107/255f, 107/255f,107/255f, 1);   //color2             //sr.setColor(407/255f, 107/255f,107/255f, 1); //for debugging             sr.rect(x+pw,y+pw,w-2*pw,0.5f*h-1.5f*pw);             sr.rect(x+pw,y+0.5f*h+0.5f*pw,w-2*pw,0.5f*h-1.5f*pw);             //sr.end();         }          return sr;     } }   FYI.. I am using this libGDX ShapeRenderer api to draw few shapes.   Apologies if it's very basic concept and I am unable to figure it out  Thanks.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


Let $a, b, c, d > 0$. Prove that $\frac{a^2}{b} + \frac{b^2}{c} + \frac{c^2}{d} + \frac{d^2}{a} \geq a + b + c + d$.   I'm supposed to prove this by AM-GM, but I can't see how. Any help would be appreciated.


I am having confusion in whether you can dribble the ball above your shoulder or not.

I heard that while dribbling the ball, if the ball rises above shoulder level then it is a turnover. I don't have any idea about this rule.


I am trying to output the salary for each shift, but when outputted the salary shows up as 0.00 how can i correct this problem  ? I have tried declaring the salary as float but i was unsuccessful ............................................................................................................ package overtime.pay; import javax.swing.* ; import java.util.Scanner; /**  *  * @author whitneykenny  */ public class OvertimePay {      /**      * @param args the command line arguments      */     public static void main(String[] args) {         // TODO code application logic here               Scanner Hours_worked = new Scanner(System.in);     System.out.println("Enter how many hours worked ");     int total_hours = Hours_worked.nextInt();          if (total_hours == 40||total_hours < 40){                  System.out.println("Employee did not make any over time ");              } else {                          System.out.println("The employee made overtime");               }         final double first_shift = 17.00;        final double second_shift = 18.50;        final double third_shift =  22.00;                  Scanner selected_shift = new Scanner(System.in);     System.out.println("Which shift was worked  ");     String shift_worked = selected_shift.nextLine();                       double salary = 0 ;                    if (shift_worked == "first") {  salary =  first_shift;           }  else if (shift_worked == "second")            {salary = second_shift;                          }else if (shift_worked == "third")             {                          }   System.out.println("Your salary is " + salary );                         }                                                    }


How to solve this alignment?    I wrote \[a^2+...\] but I couldn't align it in my document. What's the best way to center a long equation like this one?  I use LaTeX

I am having the following equation:  \begin{equation}   Q(\lambda,\hat{\lambda}) = -\frac{1}{2} P(O \mid \lambda ) \sum_s \sum_m \sum_t \gamma_m^{(s)} (t) \left( n \log(2 \pi ) + \log \left| C_m^{(s)} \right| + \left( \mathbf{o}_t - \hat{\mu}_m^{(s)} \right) ^T C_m^{(s)-1} \left(\mathbf{o}_t - \hat{\mu}_m^{(s)}\right) \right) \end{equation}   which does not very well fit on one line. How can I split this over two lines? What I have in mind is that I specify the splitting place, and that the first line is left aligned and the second line right aligned to make clear that it is still the same equation.  The linebreak \\ does not work.