I often find myself frustrated when reviewing suggested edits, as too often they appear to be minor and insignificant, stuff like adding backquotes on a single term, making some of the words bold, or removing a "thank you". If this is too obvious I just reject it, but these edits are often still accepted by others who probably care less or think that even tiny edits are justified.  On top of that, I can already recognize some users as serial editors, and judging by their rep summary I can see they often reach the daily cap of edits. In some cases most of their rep comes just from editing, without questions or answers (they're hardly bounded by the 1000 max on editing since they're under 2k anyway).  Now, I know the +2 bonus is there to encourage making the site better, and in most cases I think an edit totally deserves it and I usually approve helpful edits even if they're minor things like indentation and formatting, but I can't help thinking that we've got a hole in the rep system - should minor touch-ups on any 5 questions off the top of the list (and there's always something to edit, especially junk questions), really equal an upvote on a decent answer? In some topics a good answer might get no more than 1-2 upvotes simply because there aren't enough people browsing them, so what you get from taking the time to answer and explain if often less than what you could get by just editing random stuff.  Is there a way to close this hole? for e.g.:   Add "approve without rep" button for cases where the edit doesn't really merit it. Auto-detect tiny edits (adding just backticks or bold/italic changes for e.g. - not including whitespaces used for code formatting and indentation) Lower the rep bonus Reduce the daily/total cap for edits Increase the min edit size (currently 6 characters, excluding whitespaces)   Or is it perfectly acceptable activity and I should approve these edits without an afterthought?

I regularly review suggested edits on the . One common situation is that a user will propose a tiny edit, like , or removing only the salutation from a post. In many cases there are still multiple further improvements that could be made, but that editor hasn't seen them - or can't be bothered.  I feel uneasy accepting such edits. On the one hand, it reminds me of the army of 'twiddlers' on Wikipedia, who spend their time making tiny inconsequential edits when they could be doing something much more useful. It also feels lame to award someone any points at all for capitalising a single letter in a title. I sometimes feel that this may be a kind of gaming of the system on the part of some users - suggesting multiple small edits for point gain rather than just fixing the whole post. I also see this with tag wiki editing.  On the other hand, it is a valid edit, and it does objectively improve the post.  There has been a prior ruling on part of this. There was some substantial discussion about the aggressive removal of salutations during the Rich B era (remember that wonderful chap?). I seem to remember that the conclusion was that removal of "hi! / thanks!" on their own was not sufficient grounds for a post edit, although I can't find that now ( is relevant, but inconclusive).  I have been erring on the side of 'this edit is pointless' and voting to reject, but I notice I am often overruled by other reviewers.  Perhaps one answer would be to provide a third option, after accept/reject:insufficient?  What behaviour are we intending to reward here?


I tried many link for creating test class for Rest Api, but still not getting the value.  My class  @RestResource(urlMapping='/claimApi') global with sharing class UserClaimApi {     @HttpGet     global static User getClaimUser() {         List<User> userList = new List<User>();         String phoneNumber = RestContext.request.params.get('phoneNumber');         String claimNumber = RestContext.request.params.get('claimNumber');         System.debug('phone number'+phoneNumber);          if(phoneNumber != null || phoneNumber != '' && claimNumber == null || claimNumber == '') {             List<Contact> contactList = [Select Id from Contact where Phone_Numbers_for_Search__c =: phoneNumber];             if(contactList.size() == 1) {                 List<Claim_Contact__c> claimContactList = [Select Claim__c from Claim_Contact__c where Contact__c =: contactList[0].id];                  if(claimContactList != null && claimContactList.size() > 0) {                     System.debug(claimContactList[0]);                     List<Claim__c> claimList = [Select OwnerId from Claim__c where id =: claimContactList[0].Claim__c];                     if(claimList.size() > 0) {                         User claimUser = [Select Email,Name,Team__c,Overflow_Team__c from User where Id =: claimList[0].OwnerId];                         userList.add(claimUser);                     }                 }else {                     return null;                 }             }else {                 return null;             }         }else if(claimNumber != null && claimNumber != '') {             List<Claim__c> claimList = [Select OwnerId from Claim__c where Claim_No__c =: claimNumber];             if(claimList.size() > 0) {                 User claimUser = [Select Email,Name,Team__c,Overflow_Team__c from User where Id =: claimList[0].OwnerId];                 userList.add(claimUser);             }         } else {             return null;         }         return userList[0];     } }   Test Class:  @isTest public class UserClaimApiTest {     public static testMethod void getPhoneUser() {         Profile profileId = [SELECT Id FROM Profile WHERE Name = 'Standard User' LIMIT 1];          Contact con = new Contact();         con.lastName = 'test';         con.Email = 'test@gmail.com.com';         con.Phone_Numbers_for_Search__c = '9876543210';         insert con;          User usr = new User(LastName = 'Test',             FirstName='EML',             Alias = 'EmlT',             Email = 'eml.test@gmail.com',             Username = 'eml.test@gmail.com',             ProfileId = profileId.id,             TimeZoneSidKey = 'GMT',             LanguageLocaleKey = 'en_US',             EmailEncodingKey = 'UTF-8',             LocaleSidKey = 'en_US'             );         insert usr;          Claim__c claim = new Claim__c();         claim.Claim_No__c = 'C-12345';         insert claim;          Claim_Contact__c claimContact = new Claim_Contact__c();         claimContact.Contact__c = con.id;         claimContact.Claim__c = claim.id;         insert claimContact;          RestRequest req = new RestRequest();          RestResponse res = new RestResponse();          req.requestURI = '/services/apexrest/claimApi';          req.addParameter('phoneNumber', '9876543210');         req.httpMethod = 'GET';         RestContext.request = req;         RestContext.response = res;            User usr1 = UserClaimApi.getClaimUser();         System.debug(usr1);     } }   Not getting value of phoneNumber and claimNumber.  My question is almost similar to the solution of  . In my case that won't worked, and the answer suggested by NITHESH K was right.

I´m having problems with url parameters (req.requestURI) in my test class.  This is my code.  REST CLASS:  @RestResource(urlMapping='/Accounts/*') global class StoreController {       @HttpGet     global static String getAccounts() {           integer pageNumber=integer.valueof(RestContext.request.params.get('page'));         string  ptime=RestContext.request.params.get('time');         string  hash=RestContext.request.params.get('hash');      }   REST TEST CLASS:  @isTest private class StoreControllerTest {      static testMethod void testGet() {       //do request     RestRequest req = new RestRequest();      RestResponse res = new RestResponse();      req.requestURI = 'https://dev-my-my.cs14.force.com/mine/services/apexrest/Accounts?page=0&time=1390296387&hash=1wer2547';         req.httpMethod = 'GET';     RestContext.request = req;     RestContext.response = res;          String results = StoreController.getAccounts();      } }   When i run test class i get the error:  System.NullPointerException: Argument 1 cannot be null    for line :  integer pageNumber=integer.valueof(RestContext.request.params.get('page'));   Looks like parameters are not taken from url ''  when i run the test class.Please can you help me with this?


I came across some images of schematics and have never seen this component before - what is it?

In the datasheet for a A3503 Hall Effect Sensor, I saw a circuit diagram labeled 'Functional Block Diagram', and it shows a symbol I have not seen before. It's shown here between 3 - Output and 2 - Ground.  What is this supposed to represent?    The full datasheet is available


I use the LaTeX and specific MikTeX and i have a problem.   I finish a text.It works good,i take the pdf.Now,if i do an error into preamble it won't run.a Ok until now there isn't problem.Now i correct the false statement or command.The curiousness is that i must delete the file ending with .aux to run the text.If i don't delete it,the latex can't translate the text into pdf,although,the preamble doesn't errors.  This is the problems.If someone could help me,i would be grateful.

I have a couple of LaTeX files with the same problem. If I produce an error, fix it, and then try to compile a pdf, I get the following error.  )Runaway argument? {{ ! File ended while scanning use of \@newl@ablel. <inserted text>                 \par l.90 \begin{document}   If I then click on the console or trash my .aux file, it compiles fine. Any thoughts on what is going on and how to prevent this annoying extra step?


I have web element set like below ..
              My Team
   There, the number in GHC1 change depending on place, but text "My Team" is unique for particular set of element.  I tried to locate it with   By.XPATH,'//*[contains(@id,"ctl00_LeftPanel_LeftNavigationMenu_nbMenu_GHC") AND contains(text()="My Team")]'   But failed. How to do that correctly ? can not use by.text since "My Team" text could be exist in other parts of web page.

How to Handle Dynamic Changing IDs In XPath? for example :   //div[@id='post-body-3647323225296998740']/div[1]/form[1]/input[1]   In this xpath id "3647323225296998740" is changing every time when reloading the page.   Is there any way to handle this type of situation in Selenium?


I know that a rectifier converts AC voltage into pulsating DC voltage.  However, when would you use a half wave rectifier as opposed to a full wave rectifier ?   Can you give an example of some appliances that use half wave and full wave rectification.

I am curious if there are practical differences between a DC power supply based on a half wave rectifier or a full wave rectifier.  I mean I have a few small DC power supply units which should give 12V 0.1A each. They all have a transformer 240V->18V, then 1 diode or 4 diodes, then 78L12 (0.1A regulator) and one or two capacitors (typically 220uF or 470uF).  My question is if the power supply can give a good quality DC voltage with just a half wave rectifier (a single diode) when a 470uF capacitor and 78L12 is added, or if bridge rectifier (4 diodes) is better.  I also have one old 12V 0.2A power supply based on a Zener diode instead of 7812 regulator. It also has 18V going to just a single diode, then 33R resistor which limits current to 0.2 Amp, then Zener diode parallel with a 1000uF capacitor. Again: Would it be better to have 4 diodes there, or is the half wave rectification good enough here thanks to the 1000uF capacitor?  (All my power supplies work well, I am just curious "why" and "how" these things work.)  Update:  I found two more interesting information:   Capacitor should be approximately 500 uF for each .1 Amper of output (or more). This applies to full wave rectifier. Since I saw the same values in half wave rectifiers, it isn't enough and they are bad design. 4-diode rectification cannot be used when we want to have a combined 5V/12V output (or any other two voltages) with a simple transformer, because it can't provide a common ground for two different circuits. (A more complicated real example: I have got a power supply with four output wires from transformer -7/0/+7/+18 Volt. Then it uses 2-diode rectification to get full wave 7V output, and 1-diode rectification to get half wave 18V output. The 18V line can't be "upgraded" to 4-diode rectification here.)


I have done some research on this and found this question many times. However, all the answers I have found only address how to change a partition label. I am talking about what is reported by lsblk -o label not lsblk -o partlabel.  I have created a new partition table and created new partitions with both parted and fdisk and I am quite surprised that the old label is still there. I have tried msdos and gpt as partition tables.  This is all the more confusing because parted has this mklabel command with the description "create a new disklabel" but it is equivalent to mktable and does not change the label.  How is the device label stored so that it's independent of the partition table? How can I change it?  The USB stick did not always have this label, it was named when I put a Debian Live System on it. Now where I would like to use it as a normal USB stick again I would like to give it a different name.    EDIT:  With  # fatlabel /dev/sdb1 TEST   I can change the label of a partition which is a good step in the right direction but I can not change the label of the device:  # fatlabel /dev/sdb TEST Currently, only 1 or 2 FATs are supported, not 251.   Same goes for mlabel which I have installed with pacman -S mtools:  # mlabel -i /dev/sdb1 TEST   works but  # mlabel -i /dev/sdb TEST init :: non DOS media mlabel: Cannot initialize the device   I have created the partition table for gpt with:  # parted /dev/sdb GNU Parted 3.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mktable                                                           New disk label type? gpt                                                   Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes                                                                (parted) mkpart                                                            Partition name?  []? test partition parted: invalid token: partition File system type?  [ext2]? fat32  Start? 0%                                                                  End? 100%                                                                  (parted) q   and for msdos with:  # parted /dev/sdb GNU Parted 3.3 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mktable                                                           New disk label type? msdos                                                 Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? yes                                                                (parted) mkpart  Partition type?  primary/extended? primary                                 File system type?  [ext2]? fat32                                           Start? 0%                                                                  End? 100%                                                                  (parted) q     EDIT2: The output of lsblk -o +label,partlabel before I executed dd if=/dev/zero of=/dev/sdb:  NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT LABEL                       PARTLABEL sdb      8:16   1   3.8G  0 disk            Debian Jessie-DI-rc1 i386 1 └─sdb1   8:17   1   3.8G  0 part            Debian Jessie-DI-rc1 i386 1

I know I can set the volume name when I format the partition with the -n option of mkfs.vfat. But how to just change the name without formatting?  I especially want to be able to use lower and uppercase letters. In worst case, I can use a windows tool, but windows by default transforms all letters to uppercase (but works fine with lowercase letters in volumes created with mkfs.vfat).


I'm new to apex rest services.Normally in Apex rest services the input json body automatically deserializes to apex class object. but my json body contains reserved key words.For Rest services automatically deserialization happen if we define method parameters so we don't have control to replace json string.  Can anyone please let me know how to overcome this problem.  I'll receive input in the following way  {  "reqId":"DNMFJP00029279",  "buyerDetails":{  "company":"DNMF(DunderMifflin)",  "coordinatorLastName":"Hamilton",  "coordinatorFirstName":"Susan",  "department":"PaperProcessing",  },  "rates":{  "taxStatus":"w-2",  "currency":"USD",  "billRateMax":"30.88",  "billRateMin":"8.00",  "payRateMin":"7.50",  "payRateMax":"22.00",  "targetPayRate":"45.00",  "targetBillRate":"72.00"  },  "reqDetails":{  "responseDeadline":"2015-2-10T00:00:00+00:00",  "category":"Professional",  "reason":"Project",  "education":"Bachelor'sDegree(Required)",  "skills":"MicrosoftWord-4years(Required)",  "workDays":"Monday,Tuesday,Wednesday,Thursday,Friday",  "endTime":"5:00PM",  "startTime":"8:00AM",  "createdDate":"2015-1-31T00:00:00+00:00",  "totalOpenings":1,  "hours":"40.00",  "endDate":"2015-12-31T00:00:00+00:00",  "startDate":"2015-04-13T00:00:00+00:00",  "comments":"WillrequireoccasionaltripstoScranton,PA",  "description":"Thisjobrequiresexpertiseinsalesandpapermanagement.",  "qualifications":"Mustbeabletooperateastapler",  "title":"BusinessAnalystIII",  "positionType":"Temp",  "location":"1725SloughAvenue,WashingtonDCUSA20008"  },  "submittalMax":2,  "reqStatus":"hold",  }   please help me how to deserialize the above string in apex rest service

Is there any way to deserialize JSON into an object using JSON.deserialize if some of the property names in the JSON are reserved words in apex? I want to do something like this:  string jsonString = '{"currency" : "ABC"}'; public class JSONResult {     public string currency; } JSONResult res = (JSONResult) JSON.deserialize(jsonString, JSONResult.class); system.debug(res);   but of course I get an error that the identifier name is reserved.


Is there a rule for this? For example, is it correct to say     To whom will the package be delivered?   or does it have to be     To whom will the package be delivered to?   I'm sorry if this is a duplicate, I didn't know how to properly search for this construction.

This is a tooltip in an application:     Identifies the site name to which the GL code belongs to.   Can I say that it is incorrect to use "to" twice here and we should remove 1 of them?  Other examples:       Identifies the vendor to which the port speed is associated with.   Provides the vendor to which the milestone is associated with.   (They are both tooltips, too)  The repetitions here are incorrect, aren't they? Please confirm.


I'm writing a document in LaTeX, using the package setspace with the onehalfspacing setting.  I'm satisfied with the space between two lines of text, but I can't find a way to start a new paragraph leaving only one blank line: if I leave a blank line in the code, the output starts a new paragraph without leaving a vertical space between the two lines of text; if I use \\ and then leave an empty line in the code, the resulting output presents itself with too much space between the lines of text. Unfortunately, answers to similar questions posted here didn't solve my problem.  Summarising, I want to know how I can leave just an empty line in the pdf output when I start a new paragraph. Can anyone help me?  Edit: I found useful for my purpose this page , posted by Runar Trollet in the accepted answer. This solved my problem. In order to start a new paragraph it's enough to leave a blank line in the code. This will result in output as a carriage return with the new line indented and no vertical space between lines - to be precise, no more than the normal space between them. If you want to leave some space between the end of a paragraph and the start of a new one, just use the commands \smallskip, \medskip or \bigskip before leaving the empty line in the code.

I would like to have my whole document showing a blank line (or space) between paragraphs and no indentation. I know how to do it line by line, but is there a way to change that with just one or a few lines at the beginning of the document? Like a package you can install, or a new command?


How should I set up each layer to get the final image? I tried to set them all on "multiply" but it doesn't look right. I'm using the 3d-io EXR plugin for Photoshop but I can't find any tutorial to help me, because apparently when you import the multilayer EXR into photoshop the layers should be already set up, but my layers are set to "normal".

I'm trying to take my Cycles render passes into photoshop and combine them there. The purpose of this is to be able to manipulate the passes individually with various photoshop tools. However, photoshop does not support the way that Cycles passes are usually combined.  Normally, you have ((Diffuse Direct + Diffuse Indirect) * Diffuse Color) + ((Gloss Direct + Indirect) * Gloss Color). However, Photoshop does not have the Add blend mode.  So to do this, I need a different way to combine passes that does not rely on the Add blend mode. Is there another way that will be reasonably accurate?


I am not convinced with this sentence somehow. " My Dad focused on my and my brother's education" It doesn't sound right to me. How can I write it in a better way?

Despite being a native speaker of American English, I cannot find a construction that sounds natural when trying to form a possessive from coordinated subjects including a first person pronoun, like "He and I" or "My brother and I." If it's "You and I," I can just use "our." But what is the proper way to form a possessive in these other instances?  The cat which belongs to my brother and me ran away.  ? My brother and I's cat ran away. * My brother's and my cat ran away. */? Me and my brother's cat ran away.   Oddly enough, the one which sounds the most natural to me (and which I hear most often in natural speech, is the last: "me and my brother's." My hypothesis is that this is used to avoid the issue with the first-person possessive form, but that could very well be wrong. However, I'm not sure this is the best answer, either, as it introduces some pretty bad ambiguity in some places.  A person who is a friend to both my brother and me got married yesterday.  */? Me and my brother's friend got married yesterday.   I think you can see the obvious problem. What is the proper way to possessivize coordinated first-/third-person subjects? Edit: I would much prefer an answer which does not require rephrasing the entire sentence.


I deleted my last question. It fixed itself  Anyway after my computer fixed its slow performance problems it now will turn off Windows Update whenever it wants to. I figure this is some sort of virus or security flaw that is making it turn off, but I am very concerned because i have ran multiple virus/malware scans with 2 different scanners (Avast and Malwarebytes) and they have picked up nothing.   In Application in Event Viewer there are multiple cases of Software Protection stopping by an unknown user.   Most of security was logging on and off, besides some misspelled passwords.  And then in System: The Windows Update service entered the stopped state. Then a couple hours later i turned it back on. User is N/A.   What i am asking is how can i fix this? I am concerned about my security of this computer and files that are on it. I havent updated my computer lately, even though Windows Update says i should, but i am nervous to do so because i am afraid this virus/malware/rootkit could do more damage.  This trusty (but dusty) old computer of mine has always filled my needs and i would hate to have to get a new computer or erase my hard drive.  Thank you, and any help is appreciated.

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


I have a code that is badly disorganized. I wish to receive input from experts regarding how I can make it more understandable for me and for others.   Is that a question suitable for SO or is it 'too vague/not a real question' ?

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


I read that heat cannot flow from cooler body to hotter because for that entropy of the system becomes negative. Why is that so? Why we cannot have negative entropy?

My book uses the argument that the multiplicities of a few macrostates in a macroscopic object take up an extraordinarily large share of all possible microstates, such that even over the entire lifetime of the universe, if each microstate had an equal chance of being accessed, fluctuations away from equilibrium would never occur.  My question to this statistical proof is this: In the real world, is there really an infinitesimal but nonzero chance that macroscopic systems could access some of the more unlikely macrostates (e.g. heat transfer from a cold object to a hot object)?


I load a delimited text layer and it get's visuialized. Unfortunatly I don't know why I can't switch to edit mode. I already worked with similar .CSV files in edit mode before, under the same setup :(  I already checked that files aren't write protected. A workaround is to copy to a shapefile, but I like to work native with CSV.

I imported the coordinates from an Excel table. They show as single points as intended. Now I want to add columns to the attribute table, but I'm not able to edit it. I wanted to import the following columns from Excel as well, but that doesn't seem to work either.  Sorry for the noob-question, but I couldn't find anything relating the theme through google and such.  Ok, with pictures then: I want to use that to add columns with information to these       You see, the small pensil thingy is greyed out, so I can't edit anything in this layer and I can't add any information to my points.  If I try Ale suggestion I get this error:


Why 3 phase is preferred over any other phase power transmission ?  My instructor was explaining this topic in my Electrical machines class. And he mentioned the following points   In single phase, system there is double frequency oscillating component. So, it is not preferred. In 2 phase system, there is no double frequency oscillating component. So, it is ok to use it. And it can be used to transfer 1.414 times output rating in the same frame size as single phase. Also, we have return neutral current which is 1.414 times the peak value which is not good. In 3 phase system, we can transfer 1.5 times output rating in the same frame size as single phase. Also, we have zero return neutral current which is also a good thing. In infinite phase system, we can transfer 1.57 times output rating in the same frame size as single phase. There is not much improvement from 3 phase so we went with 3 phase.   Now, I am confused with the thing how he got the values 1.414 for 2 phase, 1.5 for 3 phase and 1.57 for infinite phase and what does it mean by saying in the same frame size. Please someone help me with this concept.   EDIT: I want to understand how the 3 phase is 50% more efficient than 1 phase whereas infinite phase will be only 57% more efficient than 1 phase. I am not asking why 3 phase over 1 phase as that I have already mentioned in my question.

Is there a reason, beyond historical reasons, that three phases has become the dominant number of phases?  I am aware of the advantages against one phase and two phase, namely the reduced amount of conductor needed, and that motors can provide torque when stalled (and less pulsation).  Is this solely due to diminishing returns, with only a small increase in smoothness of torque application, at the cost of increased complexity (increased number of wires (albeit of smaller CSA)).  To be clear, the phases are all evenly distributed, that is, five phases separated by 72 degrees.


I've the following XML-File:  <SyncCustomerPartyMaster xmlns="http://schema.infor.com/InforOAGIS/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:schemaLocation="http://schema.infor.com/InforOAGIS/2 http://schema.infor.com/2.9.1/InforOAGIS/BODs/Developer/SyncCustomerPartyMaster.xsd" releaseID="9.2" versionID="2.9.1">     <ApplicationArea>         <Sender>             <LogicalID>lid://infor.ln.dach_nausveln1_200</LogicalID>             <ComponentID>erp</ComponentID>             <ConfirmationCode>OnError</ConfirmationCode>         </Sender>         <CreationDateTime>2014-10-09T13:47:48Z</CreationDateTime>     </ApplicationArea>     <DataArea>         <Sync>             <TenantID>infor</TenantID>             <AccountingEntityID>200</AccountingEntityID>             <LocationID/>             <ActionCriteria>             <ActionExpression actionCode="Add"/>             </ActionCriteria>         </Sync>         <CustomerPartyMaster>             <PartyIDs>                 <ID accountingEntity="200" lid="lid://infor.ln.dach_nausveln1_200" variationID="108">10100</ID>                 <DisplayID>10100</DisplayID>             </PartyIDs>         </CustomerPartyMaster>     </DataArea> </SyncCustomerPartyMaster>   And I'm trying to access the DisplayId via XPath: '/SyncCustomerPartyMaster/DataArea/CustomerPartyMaster/PartyIDs/DisplayID'  <?php     $xml = simplexml_load_file("example.xml");     $displayId = $xml->xpath('/SyncCustomerPartyMaster/DataArea/CustomerPartyMaster/PartyIDs/DisplayID');      print_r($xml);      echo '
';     echo '
';      print_r($displayId);  ?>   But print_r($display_id) just returns an empty array. I fiddled around a bit with registerXPathNamespace] which did not do the trick - can anyone please point me into the right direction?

A strange thing happened after a supplier changed the XML header a bit. I used to be able to read stuff using xpath, but now I can't even get a reply with  $xml->xpath('/');   They changed it from this...  <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE NewsML SYSTEM "http://www.newsml.org/dl.php?fn=NewsML/1.2/specification/NewsML_1.2.dtd" [ <!ENTITY % nitf SYSTEM "http://www.nitf.org/IPTC/NITF/3.4/specification/dtd/nitf-3-4.dtd"> %nitf; ]> <NewsML> ...   to this:  <?xml version="1.0" encoding="iso-8859-1"?> <NewsML   xmlns="http://iptc.org/std/NewsML/2003-10-10/"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xsi:schemaLocation="http://iptc.org/std/NewsML/2003-10-10/ http://www.iptc.org/std/NewsML/1.2/specification/NewsML_1.2.xsd http://iptc.org/std/NITF/2006-10-18/   http://contentdienst.pressetext.com/misc/nitf-3-4.xsd" > ...


There is some way of extruding all the selected faces toward outside  so that the extrusion is symmetrical in the object, using blender. Thanks for answer my question.    The I want is to do this in a symmetrical way, an extrusion outwards,  I maked this selecting the faces indeviduously and extruding them outwards.

I am trying to extrude faces of a cylinder along local normals. 3dsmax can do it easy, couldn't find how to do it in blender.  The extrude region option extrudes it as shown in the first example. I want it done like the 2nd example.


Let's assume I run putty on windows and connect to Debian Jessie remotely. I run Midnight commander, and run long term task. Than got power loss on Windows, so putty connection is lost.  Of course I should use screen, but i forgot.  After reconnection I can see mc in ps ax.   1864 pts/3    S+     0:10 mc   Is there a way to reconnect to this process? (And is it running?)

I'm doing some test-runs of long-running data migration scripts, over SSH. Let's say I start running a script around 4 PM; now, 6 PM rolls around, and I'm cursing myself for not doing this all in screen.  Is there any way to "retroactively" nohup a process, or do I need to leave my computer online all night? If it's not possible to attach screen to/nohup a process I've already started, then why? Something to do with how parent/child proceses interact? (I won't accept a "no" answer that doesn't at least address the question of 'why' -- sorry ;) )


Trying to get the state of a service that is running (or not).  I use service --status-all | grep <service> and no matter what I enter for <service>, I always get:  [ + ]  <service I grepped>  [ ? ]  rng-tools  Any ideas on why I am getting [ ? ] rng-tools in the result?

It seems weird here while running  service --status-all | grep mysql   why I get so many wrong result?  It works fine on Centos where i am getting:  mysql is running xxxxxxx   This is what i am getting on Ubuntu:


Is there any way to get cursor position in custom function? I also know that the example bellow able to get the x and y.  $(".myelement").mousemove(function (e) {     var y = e.pageY - $('.myelement').offset().top;     console.log(y); });   However my html is come from an ajax, so example is not working. So I was thinking about a custom function. But custom function not able to set an event, am I right? Is there any suggestion or other way to get cursor position in an element (div) ?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


so I have grand theft auto 5 for ps3 but I want  play it on ps4 so how can like I get it on my ps4 like I don't wont  buy another one so what do I do?

We have a large collection of downloaded games from the store, mainly PSX gen (Crash Bandicoot, Spyro, FF7 etc.) and I was wondering if we can move them/re-download them onto the PS4?


Anybody has any idea on how to customize the dock so that the "show application" button is on the lower left edge of the screen and the "app icons" are centered on the bottom edge of the screen on Ubuntu 20.04? I've installed dconf-editor but couldn't find the setting.

Ubuntu 17.10 introduces the GNOME Shell with the  (based on  GNOME Shell extension) and it allows you to put the Dock on the bottom of the desktop:    However, there is no easy way to move the Show Applications icon (shown on the right) to the left of the Dock. There is no such setting in GNOME Control Center. There is already a  filed, but does anybody know any workaround until it gets fixed by Ubuntu Dock developers?


I've come across an issue whilst doing some homework. The problem is to take three strings and sort them. I've gotten this down for numbers but I don't know how to accomplish this with strings.  Here it is verbatim from the book:  Write a program that reads three strings and prints them in lexicographically sorted order.  Please enter three strings: Tom Dick Harry The inputs in sorted order: Dick Harry Tom   My Tester:  package Chapter_5;  import java.util.Scanner;  public class StringOrderTester  {     public static void main(String[]args)     {         Scanner in = new Scanner(System.in);          System.out.println("Please provide three strings:");          StringOrder str = new StringOrder(in.nextLine(),in.nextLine(),in.nextLine());     } }   My Code:  package Chapter_5;  public class StringOrder  {     public StringOrder(String str1, String str2, String str3)     {         String index;          int i = str1.compareTo(str2);          System.out.println(i);     } }

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 have a div with a button inside that must update the same div...  Example
   click
  $( "a.item" ).click(function() {   val = $(this).data("value");   alert(val);   $("#result").html('click'); });   but the button works only first time  This is jsfiddle


I have a five year old Ubuntu system that I've been upgrading, mostly cleanly, but recently there is too much crud in the OS.  I'm planning to do a clean install to lubuntu 12.10.  However, I don't want to lose any of my system configuration.  Luckily, /home is in its own partition.  I do know most of my configuration changes are in /etc/ so I will definitely make a backup of that directory.  Is there any script or tool which will let me detect changes made in the OS configuration directories (essentially, detect if there is a diff) so I can more safely do my clean install.  I'm sure without it, I could rebuild a system, but it would definitely save me a lot of time if I knew what has changed.

I'm new to Ubuntu and recently started using it on my PC. I'm going to replace that PC with a new machine. I want to transfer my data and settings to the nettop. What aspects should I consider?  Obviously I want to move my data over. What things am I missing if I only copy the entire home folder?  This is a home pc (not corporate) so user rights and other security issues are not a concern, except that the files should be accessible on the new machine!  Please take into account that the new machine is a nettop that doesn't have an optical drive and doesn't allow me to hook the old SATA disk into it, so any data transfer must be handled via home network (I can have both the old and the new machine turned on and connected to the home LAN) and I have an USB thumbdrive with limited capacity (2GB). This sounds like it might limit the general applicability, but it would in fact make it more general.


On a critical hit where for example you roll 2 d4 instead of 1. Do you add your ability modifier twice (one for each roll) or just add it once to the total of the two rolls?

If a player has a +1 Dagger (example), and then he score a critical hit, is the "+1" thing doubled too or just the damage dice? Will the damage be 2d4 +1 +ability mod or 2d4 +2 +ability mod? If a sword deals 1d6 +2 necrotic damage, is only the "+2" necrotic or all of the damage? On the 2nd question, if crits, the +2 is doubled too?   I'm trying to use only the official rules.


Is it  Ever wonder whom has the skills  or  Ever wonder who has the skills?  I believe it is who but unsure.  Ever wonder whom you could team up with  , or  who  In the second case I could use him or her in the answer, therefore I think whom is right. ?

I can never figure out whether I should use who and whom. Most people use who for both colloquially, but some people say this is not correct.  What’s the rule for using who and whom correctly?


I define "Repeating words" as this regex (use PyPI package, not builtin re):  import regex repeating = regex.compile(r"(\w+)(?:\W+\1){4,}")   It will catch words that are repeated 5 times or more, for example     Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer   However, if the word varies by capitalization, the regex fails:     Answer answer Answer answer Answer answer Answer answer Answer answer   How can I modify the regex so it catches "repeating words" that varies in capitalization? I want it to match     answer ANSWER ansWER Answer anSwer AnSwEr   Note: str.lower() is not an option because I need the exact capitalization of the captured group.

In Python, I can compile a regular expression to be case-insensitive using re.compile:  >>> s = 'TeSt' >>> casesensitive = re.compile('test') >>> ignorecase = re.compile('test', re.IGNORECASE) >>>  >>> print casesensitive.match(s) None >>> print ignorecase.match(s) <_sre.SRE_Match object at 0x02F0B608>   Is there a way to do the same, but without using re.compile. I can't find anything like Perl's i suffix (e.g. m/test/i) in the documentation.


i have this question: When i start write  \begin{... , Latex give me automatically a list of commands to choose, for example it gives,  \begin{ theorem lemma proof  ... etc  and when i choose one of them it gives automatically \end{ "the chosen command" } the problem that it doesn't give \begin{definition}, so i have to write it all by my hands (\begin{definition} and \end{definition}) do someone have any idea about this problem ? Thank you and sorry for my english

I have knowledge about 'Kile' more or less. Now  I am using 'Texmaker'. But  there is a problem in it. In Kile when we write \begin{env} it automatically write \end{env} from the following :  Settings => Configure Kile => LaTeX => Environments => making tick mark on "Automatically complete \begin{env} with \end{env}" we can set it. But in 'Texmaker' automatic environment is not working. How can I do so.


Which skill should be used for finding secret doors or traps: Perception or Investigation?  If I only look at the SRD, it seams pretty cut and dry; all the examples for Wisdom (Perception) are creatures and all the examples for Intelligence (Investigation) are objects, but if I look at the Player's Handbook, page 178, the green box example is using Perception for secret doors or traps.   Specifically, under Investigation:     deduce the location of a hidden object,   And the green box:     When your character searches for a hidden object such as a secret door or a trap, the DM typically asks you to make a Wisdom (Perception) check.   Which is correct?

So I have been trying to figure out the problem of when to call for a Perception check vs. an Investigation check. I have read over  extensively, but there is no accepted answer, and the most upvoted answer states that both perception or investigation could be used.  I am looking for a simple RAW way to decide whether the player is rolling Perception of Investigation, i.e., exactly when does the perception apply and when does the investigation apply?  An example of the kind of answer I'm looking for is: "Investigation is only used when the PC has a clue about whatever they are looking for. Perception is used when the PCs don't know what they're looking for."   The goal of this answer is to allow me, the DM, to quickly decide whether Perception or Investigation is being used AND to be able to explain my reasoning to my players.  Bonus points if the uses of Investigation don't paint it into an obscure corner or rely on first making a perception check.


I was explaining something to my friend when we ran into this question that I couldn't clearly answer.  Does $(a,b)=\begin{bmatrix}a\\b\end{bmatrix}$? Are these different notations for a single object sitting in one particular space, or are these distinctive objects in different spaces?  We say that $(a,b)\in \mathbb{R}^2$, but we also say $\begin{bmatrix}a\\b\end{bmatrix}\in\mathbb{R}^2$. No big deal...but then do we say $\begin{bmatrix}a&b\end{bmatrix}\in\mathbb{R}^2$ also?  I have only learned Cartesian product, $$\mathbb{R}\times\mathbb{R}=\{(a,b)\mid a,b\in\mathbb{R}\}.$$ Is $$\mathbb{R}\times\mathbb{R}=\left\{\begin{bmatrix}a\\b\end{bmatrix}\mid a,b\in\mathbb{R}\right\}$$ another common definition? Are these even distinct or just two ways of naming the set?

I'm writing a mathematical library; and I have an idea where I want to automatically turn column matrices and row matrices to vectors, with all of the mathematical properties of a vector.  Answer I'm looking for:  Someone with good mathematical reasoning explaining why:  column matrices, column vectors, row matrices, row vectors should not be treated as the same thing. (The library will ofcourse understand operations like [[1,2],[3,4]] * [1,2], where [1,2] is a vector)  or:  some kind of showcase or example where it is impossible for a library that can't differentiate between row vectors and column vectors to know which one of several possible answers are correct.  or:  some kind of evidence that it is in fact possible to do this.  please note: inner vector multiplication will be easily integrated by using a special function for that function rather than the * sign.


In order to log out from a session in xfce4, I usually click onto the icon in the upper left corner, click onto a further icon captured as log out, thereupon a window opens, where I can choose between:    log-out restart shutdown suspend   I click onto log-out and I am at the log-in shell.  Is there a way to get into this log-in shell without the clicking onto icons and buttons but by typing some commands inside the command line?

Is there a terminal command that will log you out of your current desktop session and take you back to the login screen?


To the less well acquainted, inflation theory seems like a rather far fetched proposal.  It makes very specific claims about the earliest moments of the universe, without being explainable in terms of well established physical theories, e.g. QFT or GR (correct me if I'm wrong).  Specifically, it suggests rapid expansion of space in the first $\sim 10^{-33}$ seconds after the big bang.  That is a very very short time, billions of years ago, to make such a strong claim about a large, formative event of our universe.  I understand there exists evidence ( such as large scale inhomogeneity ), but couldn't this be explained with a simpler model?  Are there competing theories that also explain evidence used to support expansion theory?  In short, help a skeptical non-cosmologist understand why this theory is so strongly supported.

The theory of Inflation explains the apparent consistency of the universe by proposing that  the early universe grew exponentially for a 1E-36 seconds. Isn't a simpler explanation that the universe is just older and so the homogeneousness comes from a slower more steady growth? Is there any evidence that rules out a slow growing universe and supports Inflation theory?


$$\int_0^{\frac\pi2}\frac{dx}{1+\sin^2(\tan x)}$$  First, I tried to set   $$t=\tan x$$  Then I got $$\int_0^\infty\frac{dt}{(1+t^2)(1+\sin^2t)}$$  applied a trig identity, $1+ \sin^2t=\frac{1}{2}(3-\cos2 t)$  I got   $$\int_0^\infty\frac{dt}{(1+t^2)\left(\frac12(3-\cos 2t)\right)}$$  I don't know how to keep going to solve it.  can some one give me a hint?  Thanks

Prove the following integral   $$I=\int\limits_{0}^{\frac{\pi}{2}}\dfrac{dx}{1+\sin^2{(\tan{x})}}=\dfrac{\pi}{2\sqrt{2}}\left(\dfrac{e^2+3-2\sqrt{2}}{e^2-3+2\sqrt{2}}\right)$$   This integral result was calculated using Mathematica and  I like this integral. But I can't solve it.   My idea:  Let $$\tan{x}=t\Longrightarrow dx=\dfrac{1}{1+t^2}dt$$ so $$I=\int\limits_{0}^{\infty}\dfrac{dt}{1+\sin^2{t}}\cdot \dfrac{1}{1+t^2}$$  then I can't proceed. Can you help me? Thank you.


I'm trying to remove a certain part of a string but currently not getting the correct answer. The string is:  new_text = "'Bob' is currently 'Absent'. Hi, my name is Matt. 'Bob' is currently 'Active'. Bob: Hey Matt"   I want the two substrings: 'Bob' is currently 'Absent'. and 'Bob' is currently 'Active'. to disappear. The name "Bob" may toggle between names with alphabetical and non-alphabetical characters. "Absent" and "Active" are two of the more common statuses displayed, however, I'd like to keep track of any string inside the single quotes.  This is the final sentence I want to return: Hi, my name is Matt. Bob: Hey Matt.  Currently my code is:  re.sub(r"\'([\w\W\d]+)\' is currently \'[\w\W\d]+\'.\s", '', new_text)   And it's returning: Bob: Hey Matt  Can anyone help with this?

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 want to ask if that possible to extrude a vertices and connect it in a middle of a plane ?? And If that possible how to do it ? it's my first question and i hope i can find the answer here :D Thanks ..

Is there a simple and quick way to add a vertex to an existing edge? I mean in a similar manner (Ctrl+R) like a loop cut for the whole object?  My current workflow is, deleting the edge completely, then I select one of the vertices and extend it via E shortcut. Is there an easier method to get an extra vertex like:


I've received an offer from university A and I'm waiting for a decision from university B (both prestigious). Would it be sensible to inform university B about my offer from university A and tell them that I would still be interested in their program, or would university B think that I would probably not accept their offer and hence not make me one. To clarify, I haven't yet decided which university I would choose.

I have received a PhD offer from University A, but I'm also considering other programmes (say C and D), for which I will interview soon.   I was wondering: should I mention during my interviews with C and D that I received an offer from A? What effect would this information have on my interview? Positive ("university A accepted him, so he should be a strong candidate"), or negative?  And let's say the answer is that I should not mention it, what if they directly ask me which other programmes I am applying to?


New functionality to copy code to clipboard I made an  about the possibility of implementing a new feature, that is, copy code through a button. I decided to translate it into English to share it here.  I have already noted that such functionality is already available in Stack Overflow in English, but is not yet available in the Spanish version.   Here I share the translated version  I wish that a function that allows code fragments to be copied to the clipboard could be implemented in Stack Overflow; published in the questions and/or answers. That is, instead of being done on a PC, Tablet_ or Smartphone_ in a way similar to this:  Simply press a button to allow the same action described above. That is, something similar to the following example:  So, my motivation on this issue is to make it easier for people (including me) to ask questions and answers to copy the code safely and test them on site quickly, in addition to reducing the famous human errors, which is when We select code snippets, especially if they are too long. These would be the questions for a possible proposal:  What possibilities exist or to whom should we go to propose the implementation of the function described above?  And in case it is not possible, what would be the possible reason?  And finally, taking into account all the above, would you agree that this new feature should be implemented at Stack Overflow?

I might just be lazy, but do you ever find it tiresome to select all the source code from a large post on Stack Overflow to copy it?  I would like a feature, possibly a Firefox extension, but preferably a JavaScript script, for automatically copying source examples to the clipboard. It's no big deal for a small snippet, but a 1000+ line posting is cumbersome to copy.  Do you guys have a better way of copying large source posts? I'm using Firefox 3.5.5 on Windows 7.


I just upgraded from ubuntu 16.04 to 18.04  In ubuntu 16.04 when I trigger the screenshot shortcut, the notification about save/copy to clipboards/name will popped up.  However, in 18.04 when I triggered the shortcut, it will automatically save to ~/Pictures  I just want the behavior the same with 16.04  How to achieve that?

I take screenshots a lot. I usually take screenshot of an area, I then recheck if I have the desired area and then copy it to clipboard.  I want to change this behaviour so that immediately upon  pressing Shift+PrntScr the screen capture application allows me to select an area, and immediately afterwards it provides me with the option to save to a particular location or clipboard.  I want Shift+PrntScr to bring up a pop-up screen like this:


I am currently working with a SQL Server 2008 R2 database which uses the following SET commands frequently:  SET ANSI_NULLS { ON | OFF } SET QUOTED_IDENTIFIER { ON | OFF } SET ANSI_PADDING { ON | OFF }   While I was researching these settings I stumbled across the following note for ANSI_NULLS on Microsoft Technet ():     In a future version of Microsoft SQL Server ANSI_PADDING will always be ON and any applications that explicitly set the option to OFF will produce an error. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.   Because of this I would like to enforce a "global" setting. I have been searching for the better part of a day but as I understand it you can always change these settings. To be completely sure I would like to ask here:  Is it possible to either enforce a setting like ANSI_NULLS ON or to disable the possibility of changing these settings on "any" level?  I would like to use this to test if the database would "survive" if the ability to set a specific option to OFF is disabled.  I hope I was able to describe my problem. This is not my first language.  Thanks in advance.

I am currently working with a MSSQL 2008R2 Database which uses the following SET-Commands frequently:  SET ANSI_NULLS { ON | OFF } SET QUOTED_IDENTIFIER { ON | OFF } SET ANSI_PADDING { ON | OFF }   While I was researching these Settings I stumbled across the following Note for ANSI_NULLS on Microsofts technet ():     In a future version of Microsoft SQL Server ANSI_PADDING will always   be ON and any applications that explicitly set the option to OFF will   produce an error. Avoid using this feature in new development work,   and plan to modify applications that currently use this feature.   Because of this I would like to enforce a "global" Setting. I have been searching for the better part of a day but as I understand it you can always change these settings. To be completely sure I would like to ask here:  Is it possible to either enforce a Setting like ANSI_NULLS ON or to disable the possibility of changing these Settings on "any" level. I would like to use this to test if the Database would "survive" if the ability to set a specific option to OFF is disabled.  I hope I was able to describe my problem. This is not my first language. Thanks in advance.  PS: On StackOverflow I was advised to Ask this Question here too. Original Question:


I already declare b = 6 globally. But why this code shows an error instead of printing b = 6.But when I delete b = 33 inside that is inside the function the code works well & print b = 6. But why?  b = 6 def f(a):       print(a)       print(b)       b = 33  f(20)

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


While installing VLC player on ubuntu 14.04 I recieve the following error:     The following packages have unmet dependencies:  vlc: Depends: vlc-nox (= 2.1.6-0ubuntu14.04.1) but 2.1.6-0ubuntu14.04.1 is to be installed      Depends: libc6 (>= 2.15) but 2.19-0ubuntu6.6 is to be installed      Depends: libfreetype6 (>= 2.2.1) but 2.5.2-1ubuntu2.4 is to be installed      Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed      Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed      Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed      Depends: libstdc++6 (>= 4.6) but 4.8.2-19ubuntu1 is to be installed      Depends: zlib1g (>= 1:1.2.3.3) but 1:1.2.8.dfsg-1ubuntu1 is to be installed

I tried to watch a dvd and found that VLC was not installed. When I went to the Ubuntu software center I got this message when trying to install VLC. I do not know why. Here's the ouput:  "This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.  The following packages have unmet dependencies:  vlc: Depends: vlc-nox (= 2.1.4-0ubuntu14.04.1) but 2.1.4-0ubuntu14.04.1 is to be installed      Depends: libc6 (>= 2.15) but 2.19-0ubuntu6.4 is to be installed      Depends: libfreetype6 (>= 2.2.1) but 2.5.2-1ubuntu2.2 is to be installed      Depends: libgcc1 (>= 1:4.1.1) but 1:4.9.1-0ubuntu1 is to be installed      Depends: libqtcore4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed      Depends: libqtgui4 (>= 4:4.8.0) but 4:4.8.5+git192-g085f851+dfsg-2ubuntu4 is to be installed      Depends: libstdc++6 (>= 4.6) but 4.8.2-19ubuntu1 is to be installed      Depends: zlib1g (>= 1:1.2.3.3) but 1:1.2.8.dfsg-1ubuntu1 is to be installed"   Thanks in advance for any help.


I am trying to use a Nitrokey FIDO 2 on Ubuntu to login to some websites, and I know the keys are well-configured. When switching to Ubuntu, I have faced some issues that seem to originate at the browser level. With firefox it works fine, however at first it required an exception, i.e. to disable AppArmor specifically for firefox. Found a workaround that seems to work, so now firefox detects the FIDO 2 key, and is listed in the profiles in enforce mode within AppArmor. On the other hand chromium does not detect the key despite the loose policies:  I downloaded Chromium with both Snap and sudo apt install chromium-browser, In the Ubuntu software app I activated Access USB hardware directly, and Read/Write access to U2F devices exposed was enabled by default. AppArmor is deactivated for chromium with sudo ln -s /etc/apparmor.d/usr.bin.chromium-browser /etc/apparmor.d/disable  So far I did not find a way to remove the AppArmor profile of chromium, similarly to this  I have two questions:  Can this issue be solved by removing the AppArmor profiles of chromium Does chromium require further configuration or an addon so it can detect FIDO 2 keys. A similar issue was noticed but with another device .  Thanks. Here is the log of sudo apparmor_status sym@salabym:~$ sudo apparmor_status apparmor module is loaded. 52 profiles are loaded. 37 profiles are in enforce mode.    /snap/snapd/9279/usr/lib/snapd/snap-confine    /snap/snapd/9279/usr/lib/snapd/snap-confine//mount-namespace-capture-helper    /usr/bin/evince    /usr/bin/evince-previewer    /usr/bin/evince-previewer//sanitized_helper    /usr/bin/evince-thumbnailer    /usr/bin/evince//sanitized_helper    /usr/bin/man    /usr/lib/NetworkManager/nm-dhcp-client.action    /usr/lib/NetworkManager/nm-dhcp-helper    /usr/lib/connman/scripts/dhclient-script    /usr/lib/cups/backend/cups-pdf    /usr/lib/snapd/snap-confine    /usr/lib/snapd/snap-confine//mount-namespace-capture-helper    /usr/sbin/cups-browsed    /usr/sbin/cupsd    /usr/sbin/cupsd//third_party    /usr/sbin/tcpdump    /{,usr/}sbin/dhclient    firefox    firefox//browser_java    firefox//browser_openjdk    firefox//lsb_release    firefox//sanitized_helper    ippusbxd    lsb_release    man_filter    man_groff    nvidia_modprobe    nvidia_modprobe//kmod    snap-update-ns.chromium    snap-update-ns.snap-store    snap.chromium.chromedriver    snap.chromium.chromium    snap.snap-store.snap-store    snap.snap-store.ubuntu-software    snap.snap-store.ubuntu-software-local-file 15 profiles are in complain mode.    /usr/sbin/dnsmasq    /usr/sbin/dnsmasq//libvirt_leaseshelper    avahi-daemon    identd    klogd    mdnsd    nmbd    nscd    ping    smbd    smbldap-useradd    smbldap-useradd///etc/init.d/nscd    syslog-ng    syslogd    traceroute 13 processes have profiles defined. 11 processes are in enforce mode.    /usr/sbin/cups-browsed (779)     /usr/sbin/cupsd (695)     /snap/chromium/1328/usr/lib/chromium-browser/chrome (5070) snap.chromium.chromium    /snap/chromium/1328/usr/lib/chromium-browser/chrome (5195) snap.chromium.chromium    /snap/chromium/1328/usr/lib/chromium-browser/chrome (5196) snap.chromium.chromium    /snap/chromium/1328/usr/lib/chromium-browser/chrome (5198) snap.chromium.chromium    /snap/chromium/1328/usr/lib/chromium-browser/chrome (5220) snap.chromium.chromium    /snap/chromium/1328/usr/lib/chromium-browser/chrome (5222) snap.chromium.chromium    /snap/chromium/1328/usr/lib/chromium-browser/chrome (5322) snap.chromium.chromium    /snap/chromium/1328/usr/lib/chromium-browser/chrome (5335) snap.chromium.chromium    /snap/snap-store/467/usr/bin/snap-store (1591) snap.snap-store.ubuntu-software 2 processes are in complain mode.    /usr/sbin/avahi-daemon (693) avahi-daemon    /usr/sbin/avahi-daemon (738) avahi-daemon 0 processes are unconfined but have a profile defined.

It is known that Chromium browser is now  as deb "Transitional package - chromium-browser -> chromium snap". But this maybe not expected for some users and they want to get normal deb-based version. How does this possible?


Is there a way to know which cores currently have a process pinned to them?  Even processes run by other users should be listed in the output.  Or, is it possible to try pinning a process to a core but fail in case the required core already has a process pinned to it?  PS: processes of interest must have bin pinned to the given cores, not just currently running on the given core  PS: this is not a duplicate, the other question is on how to ensure exclusive use of one CPU by one process. Here we are asking how to detect that a process was pinned to a given core (i.e. cpuset was used, not how to use it).

At first, the question seems to be a little bit silly/confusing as the OS does the job of managing process execution.  However, I want to measure how much some processes are CPU/IO-bound and I feel like my OS is interfering on my experiments with, for instance, scheduled OS processes.  Take as an example the following situation: I ran the process A twice and got the following output from the tool "time" (time columns in seconds):  +---+-------+---------+-----------+---------+ |Run|Process|User Time|System Time|Wall time| +---+-------+---------+-----------+---------+ |1  |A      |196.3    |5.12       |148.86   | |2  |A      |190.79   |4.93       |475.46   | +---+-------+---------+-----------+---------+   As we can see, although the user and sys time are similar, the elapsed time of both drastically changes (diff. of ~5 min). Feels like something in my environment caused some sort of contention.  I want to stop every possible background process/services to avoid any kind of noise during my experiments but I consider myself a novice/intermediate unix-user and I don't know how to guarantee this.  I'm using Linux 4.4.0-45-generic with Ubuntu 14.04 LTS 64 bit.  I really appreciate the assistance. If you guys need any missing information, I will promptly edit my post.  CPU Info  $ grep proc /proc/cpuinfo | wc -l 8 $ lscpu Architecture:          x86_64 CPU op-mode(s):        32-bit, 64-bit Byte Order:            Little Endian CPU(s):                8 On-line CPU(s) list:   0-7 Thread(s) per core:    2 Core(s) per socket:    4 Socket(s):             1 NUMA node(s):          1 Vendor ID:             GenuineIntel CPU family:            6 Model:                 60 Stepping:              3 CPU MHz:               4002.609 BogoMIPS:              7183.60 Virtualization:        VT-x L1d cache:             32K L1i cache:             32K L2 cache:              256K L3 cache:              8192K NUMA node0 CPU(s):     0-7


Prove that polynomial $h(x)=\prod_{i=1}^{n} (x-a_i)+1$ is irreducible over $\mathbb Q$, where $a_i \in \mathbb Z, a_i \neq a_j$ for $i \neq j$. Except for $h(x)=(x-a-1)^{2}=(x-a)(x-a-2)+1$, and $h(x)=(x-a)(x-a-1)(x-a-2)(x-a-3)+1=((x-a-1)(x-a-2)-1)^{2}$   Let's prove irreducibility over $\mathbb Z$. Then we'll use Gauss's lemma to prove irreducibility over $\mathbb Q$. Let $h(x) = h_1(x) h_2(x)$, where $deg(h_1), deg(h_2)<deg(h)$. $h(a_i) = h_1(a_i)*h_2(a_i)=1$. Then $h_1(a_i) = 1$ and $h_2(a_i) = 1$, or $h_1(a_i) = -1$ and $h_2(a_i) = -1$. What can I do next? Does $h_1-h_2$ got $n$ roots?

I want to prove that for any set of distinct integers $a_1,\ldots,a_n$, the polynomial $$h = (x-a_1)\cdots(x-a_n) + 1$$ is irreducible over the field $\mathbb{Q}$, except for the following special cases which are reducible:  $$\left.\begin{cases} a_1 = a\\ a_2 = a+2 \end{cases}\right\} \implies h = (x-a-1)^2$$  and $$\left.\begin{cases} a_1 = a\\ a_2 = a+1\\ a_3 = a+2\\ a_4 = a+3 \end{cases}\right\} \implies h = ((x-a-1)(x-a-2)-1)^2$$


How would I write a Java regular expression that matches everything except the following string?  abc123DEF@domain.com   (?!abc123DEF@domain.com) doesn't work.

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). However, is it possible to match lines that do not contain a specific word, e.g. hede, using a regular expression?   Input:  hoho hihi haha hede   Code:  grep "<Regex for 'doesn't contain hede'>" input   Desired output:  hoho hihi haha


$f(x,y) := \begin{cases} \frac{xy}{x^2+y^2}, &\mbox{if } (x,y) \neq (0,0)\\  0, & \mbox{if } (x,y)=(0,0) \end{cases}$  I need to show that all partial derivatives in $(0,0)^T$ exist which I already did, but how can I show that $f$ is not differentiable in $(0,0)^T$?

Let $F:\mathbb{R^2}\rightarrow \mathbb{R}$ be a function, such as : $$F(x,y)=\begin{cases}        0 & (x,y)=(0,0) \\       \frac{xy}{x^2+y^2} & (x,y)\neq (0,0)    \end{cases}$$      Is $F$ differentiable at $(0,0)$?   My attempt :  Consider the limit, $\lim_{(x,y)\rightarrow (0,0)} F(x,y)$ along the line $y=x$. The limit equals to $\frac{1}{2}$. However, $F(0,0)=0$. Hence $F$ is not continuous at $(0,0)$ which implies that $F$ isn't differentiable as well.  Is this approach okay ?


Here is the outline of the proof, given by spaceisdarkgreen:   The models of $Th(\mathbb{N},s)$ consist of a copy of $\mathbb{N}$ and any number of copies of $\mathbb{Z}$.  For any two elements in different copies of $\mathbb{Z}$ there is an automorphism swapping them.  This means there are models of $Th(\mathbb{N},s)$ in which we cannot define an ordering (or more generally any total antisymmetric relation).  If we could define an ordering in $(\mathbb{N},s)$ the formula would define an ordering in any model of its theory.   Here is what (I think) I understand. The set $\mathbb{N}$ and the function $s$ are axiomatized by Peano axioms:   $0\in\mathbb{N}$ $\forall x\left[x\in\mathbb{N}\rightarrow s(x)\in\mathbb{N}\right]$ $\forall x\left[x\in\mathbb{N}\rightarrow\neg0=s(x)\right]$ $\forall x\forall y\left(x,y\in\mathbb{N}\rightarrow\left[x=y\leftrightarrow s(x)=s(y)\right]\right)$ $\forall K\left(0\in K\wedge\forall x\left[x\in K\rightarrow s(x)\in K\right]\rightarrow\mathbb{N}\subseteq K\right)$   Let call $\mathcal{PA}$ the set of the above statements. Then, theory $Th(\mathbb{N},s)$ is the set of all the sentences $\phi$ such that $\phi$ is a consequence of $\mathcal{PA}$:   $Th(\mathbb{N},s)=\{\phi|\mathcal{PA}\vdash\phi\}$  Models of $Th(\mathbb{N},s)$, are the structures that satisfy it's sentences. A structure has a domain $D$. The domain of a model of $Th(\mathbb{N},s)$ must contain $\mathbb{N}$, otherwise it cannot satisfy the sentences of $Th(\mathbb{N},s)$. But $D$ could contain other things also. Since $s$ must be a total function, for $x_{i}\notin\mathbb{N}$ we may also have:  • Other infinite sequences of objects with an initial element $x_{0}$: $s(x_{0})=x_{1},s(x_{1})=x_{2},...$  • Infinite sequences without an initial element: $...s(x_{i})=x_{i+1},s(x_{i+1})=x_{i+2},...$  • Circles: $s(x_{0})=x_{1},s(x_{1})=x_{2},...s(x_{n})=x_{0}$  • Finite sequences like $s(x_{0})=x_{1},s(x_{1})=x_{2},...s(x_{n})=x_{n}$   e.t.c.  Now, I'm not sure about the meaning of the expression “structure $\mathbb{N}+\mathbb{Z}+\mathbb{Z}$”, mentioned by Noah Schweber , and either for spaceisdarkgreen's statement, “The models of $Th(\mathbb{N},s)$ consist of a copy of $\mathbb{N}$ and any number of copies of $\mathbb{Z}$”, in the comments. Surelly here “$+$” does not mean union, otherwise $\mathbb{N}+\mathbb{Z}+\mathbb{Z}=\mathbb{Z}$. And surelly $D$ can not have more than one copy of each of it's elements. So, I guess, what is meant is that, along with $\mathbb{N}$, we may also have two or more infinite sequences of the form $...s(x_{i})=x_{i+1},s(x_{i+1})=x_{i+2},...$ (which is of the same form as the sequence of integers).   If the above is correct, then, obviously, Peano axioms cannot define an ordering relation that holds for objects that are not in $\mathbb{N}$, because if we rearrange them, the sentences of $Th(\mathbb{N},s)$ will still hold. PA do not say anything about these objects anyway. But, let “$\leq$” holds only for elements of $\mathbb{N}$. What is the problem with that? And why then “the formula would define an ordering in any model of its theory”?   Or, equivalently, suppose we have the following version of first-order Peano axioms:   $\forall x\left[\neg0=s(x)\right]$ $\forall x\forall y\left[x=y\leftrightarrow s(x)=s(y)\right]$ $\forall\overline{y}\left[F(0,\overline{y})\wedge\forall x\left[F(x,\overline{y})\rightarrow F\left(s(x),\overline{y}\right)\right]\rightarrow\forall zF(z,\overline{y})\right]$, where $F$ is any formula of $k+1$ variables and $\overline{y}=y_{1},y_{2},...,y_{k}$.   From them it follows that everything is in $\mathbb{N}$ (thus, $\left|D\right|=\aleph_{0}$). Then, I can not see how we get to the conclusion.

In Peano arithmetic (first order), we first define natural numbers using a successor function and Peano axioms, then we define addition (and multiplication), and then, we define inequality, as:  $a\leq b\leftrightarrow\exists c\left(a+c=b\right)$   Is there any way to define inequality first, directly from the successor function and Peano axioms? (I mean, if I don't need addition for my purpose, why define it?).


I am recently working on a template linked list, however I have encounered a problem      #ifndef _T_NODE_ #define _T_NODE_ using namespace std;  template<typename T> class TNode{ public:     TNode();     TNode(T a);      ~TNode();  private:     T template_;     TNode<T> *link_; };  #endif   My implementation is:  template<typename T> TNode<T>::TNode(){     link_ = NULL;     template_ = T(); }  template<typename T> TNode<T>::TNode(T a){     template_=a;     link_ = NULL; }  template<typename T> TNode<T>::~TNode(){     delete link_; }   In another Class, I tried to referred it in a function as such:  TNode<Bike> * actPtr;         actPtr = new TNode<Bike>(a);   I receive the following error:  error LNK2019: unresolved external symbol "public: __thiscall TNode<class Bike>::TNode<class Bike>(class Bike)"  referenced in function "public: void __thiscall

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I have a requirement to remove "\n\t" from the input string? For example, "lorenda bianco" <loredana.bianco@yahoo.co.jp>  is invalid input for me. (just \n) "lorenda bianco"     <loredana.bianco@yahoo.co.jp>  is valid input for me. (\n\t). I tried with isspace, but don't know how to make combination of different whitespaces. I want my output as  "lorenda bianco" <loredana.bianco@yahoo.co.jp>. I am able to get rid of "\n" with the help @404. But still, \t doesn't work neither with his solution nor erase/remove. I am also trying to remove \t with: s.erase(std::remove_if(s.begin(), s.end(), '\t'), s.end());  which somehow doesn't work. But when I print it shows 4 separate spaces instead of a single tab. May be that's why it doesn't work. It expects single tab instead of 4 consecutive space characters. Don't know how to crack it. --- Failed attempt to remove \n\t from string (\n works but \t still exists ) str before ws removal: "lorenda bianco" <loredana.bianco@yahoo.co.jp>  str after ws removal: "lorenda bianco"    loredana.bianco@yahoo.co.jp

What is the preferred way to remove spaces from a string in C++? I could loop through all the characters and build a new string, but is there a better way?


I am confused between outliers and leverage points. And the difference between good and bad leverage points in time series analysis.  Can somebody help me?

Influential observations are those observations that have a relatively large effect on the regression model's predictions.        Leverage points are those observations, if any, made at extreme or outlying values of the independent variables such that the lack of neighboring observations means that the fitted regression model will pass close to that particular observation.   Why is the following comparison      Although an influential point will typically have high leverage, a high leverage point is not necessarily an influential point.


I'm storing time in my database by setting year, month, day, hour, and minute individually, and I would like to know the date difference between two datetimes. This is clumsy and cumbersome, and I would like to know what the best practice for doing something like this:  1/1/2016 12:00am - TimeUnit.MINUTES.toMillis(1800000) = 12/31/2015 11:30pm

Anyone know a simple way using Java calendar to subtract X days from a date?  I have not been able to find any function which allows me to directly subtract X days from a date in Java. Can someone point me to the right direction?


I'm new and a hacker was giving people cash. I ran as far as I could because I knew that you can get banned for having hacked cash. But somehow I picked up a bit. I had about 64 thousand in the bank before this happened, now I have 121 thousand. What should I do?

I was peacefully playing GTA Online (yeah, was killing someone coming out of ls customs) then a hacker came and killed me using explosive ammos, I called him a hacker and he teleported to me and gave me 790k. I know that people get banned for receiving this kind of money, what should I do to avoid the ban?


There is a conference hall , glass door parallel to my desk. whenever  the door is open, I can see reflection of images perpendicular to the viewing angle. But when the door is closed, I can’t see any reflection but see thru.   Why transparent glasses acts as a mirror viewed at certain angle?  One thing I noticed is, the reflection is seeing when the back side of the glass is darker than its surroundings.

In day, when you look in the room through the window out, you can clearly see what happens outside. At night when it's dark outside but there's light inside you can look in the window but it becomes a mirror.  Why?


I am running an Ubuntu guest on a Mac host using Virtualbox.  I ran out of space so I doubled the size of the disk from 8G to 16G using VBoxManage modifyhd /path/to/my.vdi --resize 16384  and extended the partition using a GParted live CD.  As you can see, the partition is now 16GB.  $ sudo parted /dev/sda p Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 17.2GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:   Number  Start   End     Size    Type      File system  Flags  1      1049kB  512MB   511MB   primary   ext2         boot  2      513MB   17.2GB  16.7GB  extended  5      513MB   17.2GB  16.7GB  logical   However, the extended space is not automatically being recognized by /dev/mapper/nanu64--vg-root:  $ df -h Filesystem                   Size  Used Avail Use% Mounted on udev                         477M     0  477M   0% /dev tmpfs                        100M  3.2M   97M   4% /run /dev/mapper/nanu64--vg-root  6.3G  3.9G  2.1G  66% / tmpfs                        497M  4.0K  497M   1% /dev/shm tmpfs                        5.0M     0  5.0M   0% /run/lock tmpfs                        497M     0  497M   0% /sys/fs/cgroup /dev/sda1                    472M  105M  343M  24% /boot tmpfs                        100M     0  100M   0% /run/user/501 /home/stephen/.Private       6.3G  3.9G  2.1G  66% /home/stephen   I tried to extend the volume but it is unaware of this extra space:  $ sudo lvextend -L +8G /dev/mapper/nanu64--vg-root   Insufficient free space: 2048 extents needed, but only 0 available   I also tried the lvresize command with similar results:  $ sudo lvresize -L +8G /dev/mapper/nanu64--vg-root    Insufficient free space: 2048 extents needed, but only 0 available $ sudo lvresize -l +100%PVS /dev/mapper/nanu64--vg-root   Insufficient free space: 1924 extents needed, but only 0 available   I need more room in my home directory.  Is there a way to add extents to /dev/mapper/nanu64--vg-root?  Is there another way to use the extended partition size to increase the free space in /home?  Running resize2fs seems unnecessary:  $ sudo resize2fs /dev/mapper/nanu64--vg-root  resize2fs 1.42.13 (17-May-2015) The filesystem is already 1708032 (4k) blocks long.  Nothing to do!   Running pvdisplay gives the following:  $ sudo pvdisplay   --- Physical volume ---   PV Name               /dev/mapper/sda5_crypt   VG Name               nanu64-vg   PV Size               7.52 GiB / not usable 4.00 MiB   Allocatable           yes (but full)   PE Size               4.00 MiB   Total PE              1924   Free PE               0   Allocated PE          1924   PV UUID               EiMXHd-Kwql-bpFF-Wafc-Beit-o72B-nU8M23

I have run out of space on my WinXP virtual machine, which I only gave 10 GB space for when I created it.  Is there an easy way to increase it to, say, 20 GB?  I can't see any obvious option in VirtualBox settings.    The suggestion below gives this error  wim@wim-ubuntu:/media/data/winxp_vm$ VBoxManage modifyhd wim.vdi --resize 20000 VBoxManage: error: Cannot register the hard disk '/media/data/winxp_vm/wim.vdi' {46284957-2c09-4e70-8a49-bfbe0f7f681d} because a hard disk '/home/wim/VirtualBox VMs/winxp_vm/wim.vdi' with UUID {46284957-2c09-4e70-8a49-bfbe0f7f681d} already exists VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component VirtualBox, interface IVirtualBox, callee nsISupports Context: "OpenMedium(Bstr(pszFilenameOrUuid).raw(), enmDevType, AccessMode_ReadWrite, fForceNewUuidOnOpen, pMedium.asOutParam())" at line 210 of file VBoxManageDisk.cpp     Removing the .vdi from VirtualBox before calling VBoxManage command, then adding it back in, was successful.  But now I can't boot the virtual machine, I get this worrying screen:    By the way, it says FATAL: Could not read from the boot medium!  System halted.    The vdi must be reattached to the VM after VBoxManage command.  Further, the partition will need to be resized from WITHIN windows, because you will have this empty space:    I was able to resize the partition easily using a bit of freeware called .


When describing an action by two persons and that action has a negative outcome or nature, is it correct to name oneself first?  As in I and he played poorly.

Possible Duplicate:           What is correct? We are a family of four: my father, my mother, my brother and me. or We are a family of four: my father, my mother, my brother and I. or We are a family of four: my father, my mother, my brother and myself.


After a question is answered, is it acceptable to edit the question to include the answer?  For example, , which I rolled back because it was harder to see what the original question was, and the answers did not make sense with the updated question.  Sometimes, instead of editing the original text of the question, they add new text to the end - "I did X and Y and Z and now it worked."

Please have a look at . When the question was asked by the OP, it had a scope related problem in the code snippet posted in it. 2 answers were posted for that question. But after the answers were posted, a friend of mine from Stack Overflow, edited the question(not sure with what intention) in such a way that the bug in the code was gone(it actually self answered the question). Please have a look at the question revision history, where I've rolled back the question to the original state, which has the problem in place.  My question is that, should such a practice be allowed/encouraged that an edit to a question renders all the answers posted for that question, totally irrelevant? As anybody who comes to have a look at the question later, will be highly confused as to why a question was asked without any problem and there were so many answers posted to it(not everybody cares to go through the revision history)? I happened to notice that, but not everybody would notice it.


The mountain is covered in trash The mountain is covered with trash  I find both of them correct but I can't say for sure. Is "covered in" or "covered with" more suitable in this context?

I want to find out the differences in meaning among covered by, covered in, and covered with.  For example, what is the difference between:     covered with blood   covered in blood   or the differences in meaning among     the mountain was covered with snow   the mountain was covered in snow   the mountain was covered by snow


I want to install Windows 10 (offered for free) on a separate partition (to dual boot), but it is only available for install through windows update if you are running Windows 7 or 8. I can, however, install Windows 10 Insider Preview on a separate partition on my hard drive. If I do this, will I be able to upgrade from the Win 10 Insider Preview to Win 10 (free through windows update)?

Is there any information about if Windows 10 Technical Preview will then be upgradable to the final release ?  I'm asking that because I would like to use it on my primary PC (I'm aware of the risks but I accept them), in place of Windows 8.1 But I'd like to avoid to reinstall all after the release of the final version.


I found something a bit weird when playing with lists. I usually use print() to debug or understand how things work but in this case the print() outputs are not helping me at all.  Here is a simple code, you will quickly see what I'm talking about:  a = [[]] * 5  b = [[]] * 5 b[0] = [] b[1] = [] b[2] = [] b[3] = [] b[4] = []  # It prints the same thing: print(a)  # [[], [], [], [], []] print(b)  # [[], [], [], [], []]  a[0] += ["test"] b[0] += ["test"]  # Different results: print(a)  # [['test'], ['test'], ['test'], ['test'], ['test']] print(b)  # [['test'], [], [], [], []]   I was expecting a to behave like b, but it doesn't. Can someone explain this?

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


I want to add a progress bar in my bash script that show the "." character as progress , and process ended after MAX 180 second  in the bash script I use curl command , so curl give the results after sometime but not greater then 180 sec   something like that  |.                                           after 2 sec |...........                                 after 60 sec |...................                         after 100 sec |..........................                  after 150 sec |................................|           after 180 sec    final example  |................................|       after 180 sec    or  |....|                                   after 30 sec

How can I create a progress bar with bash?  This is my script :  #!/bin/bash  pass='number1 number12 number13 number14 number15 number16'  chk='number14'  for i in $pass ; do    if [ "$i" == "$chk" ]; then      echo ' Found ^_^'    else      echo 'loading 50%'    fi  done   I want to replace echo 'loading 50%' with anything to create an progress bar.


I'm trying to verify the mail sent by our server. With our current DNS settings, sending mail from our server shows an SPF Neutral response.   I tried adding a combination of my server's IP and Domain.   v=spf1 a mx ipv4:XXX.XX.XXX.XX -all v=spf1 include:mydomain.com -all   Both these records showed no change, all mail sent from the server was still Neutral. So I tried combining all my existing SPF records like so:   v=spf1 a mx include:mydomain.com ipv4:XXX.XX.XXX.XX include:cmail1.com include:mail.zendesk.com -all   I tested sending mail again and now get a SPF Fail response.   I've looked extensively online and I can't see how to fix my DNS entries so I can get a  PASS on the SPF records. I don't know if I need additional CNAME, A, MX, or I'm missing something entirely.   I'm using a Plesk server with a fixed IPv4 address and using CloudFlare to manage my DNS and Name Servers.    Here is what a full fail response looks like:   SPF:    FAIL with IP XXX.XX.XXX.XX spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com Received-SPF: fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) client-ip=XXX.XX.XXX.XX; spf=fail (google.com: domain of accounts@mydomain.com does not designate XXX.XX.XXX.XX as permitted sender) smtp.mailfrom=accounts@mydomain.com

This is a  about setting up .     I have an office with many computers that share a single external ip (I'm unsure if the address is static or dynamic). Each computer connects to our mail server via IMAP using outlook. Email is sent and received by those computers, and some users send and receive email on their mobile phones as well.  I am using  to generate an SPF record and I'm unsure about some of the fields in the wizard, specifically:   Enter any other domains who may send or relay mail for this domain Enter any IP addresses in CIDR format for netblocks that originate or relay mail for this domain Enter any other hosts which can send or relay mail for this domain How stringent should SPF-aware MTA's treat this?   the first few questions i'm fairly certain about... hope i have given enough info.


I am attempting to change the following array line into an ArrayList that will function the same way:  private String[] books = new String[5];   I changed it to this but it is not functioning properly:  private ArrayList<String>(Arrays.asList(books))   I thought this was how an ArrayList was created

I have an array that is initialized like:  Element[] array = {new Element(1), new Element(2), new Element(3)};   I would like to convert this array into an object of the  class.  ArrayList<Element> arraylist = ???;


A while back I had read a Goodreads description of a novel that I have forgotten the name of. It was about a guy having discussions with his therapist about his profession which is to jump through a portal to go to some far away location and bring back alien tech to sell on the black market or something like that. This guy is supposed to be an unreliable narrator and he has done some shady stuff. I think going through the portal was called a "jaunt" maybe.

I am looking for a novel that I'd love to re-read it with my wife (my 13-year old self must be proud of me I guess). Key Plot points The plot was about humanity finding an alien station on an orbit of Earth. (I'm not sure if it wasn't Moon itself). On this station there were thousands of ships ready to travel so there rose a company that paid people to get on those ships and explore the galaxy. The problem was humans didn't understand how to steer those ships so they had to rely on preset targets. Of course there was no telling where particular ship was to go and fair amount of them never returned. Chronology and other relevant information I read it as an early teenager back in early 2000s. It was Polish translation of a foreign (possibly English) story. I think (not sure) that the book wasn't new at the time. It was just one of those books you dig out in a library and take to see if it's good. I don't recall cover either and even if I did it'd be of the Polish version. Additional information could be that the narration was led along the psychoanalytics of the main protagonists where he relives his memories from inside the station and his journeys.


In LaTeX, I'm using the documentclass report with different chapters. Now, when using the align environment for listing formulas with labels, i get labels like (2.1), (2.2), ..., the first number referring to the chapter, the second numbering the equation. How can I change this so it will number the equations with a single number throughout the entire document, i.e. so I get labels like (1), (2), ...? (Don't worry, I'm not using the equation numbering a whole lot. ;-) )  Btw, I would like to avoid the \tag{} command, as I want to keep latex to take care of the correct numbering. Any suggestions?  Cheers and many thanks in advance! Jonas

Some document elements (e.g., figures in the book class) are numbered per chapter (figure 1.1, 1.2, 2.1, ...). How can I achieve continuous numbering (figure 1, 2, 3, ...)?  And vice versa: Some document elements (e.g., figures in the article class) are numbered continuously. How can I achieve per-section numbering?  \documentclass{book}% for "vice versa" variant, replace `book` with `article`  \begin{document}  \chapter{foo}% for "vice versa" variant, replace `\chapter` with `\section`  \begin{figure} \centering \rule{1cm}{1cm}% placeholder for graphic \caption{A figure} \end{figure}  \end{document}   Bonus question: Is it possible to adjust the numbering of the sectioning headings themselves? Can I, e.g., switch from per-chapter to continuous numbering of sections in the book class?


According to 2nd law in my Textbook, Rate of Change of Momentum is directly proportional to magnitude of net force and is in the direction of the Net Force.  This translates to: $F \propto Δp / Δt$  Where    F = Net force Δp = Change in momentum Δt = Change in time   My book states it slightly differently, as $F = Δp / Δt$  Is this wrong, or have I made a mistake of interpreting it instead?

It seems intuitive that $a\; \propto \frac{F}{m}$, as the greater the force that is applied on an object, the greater its acceleration will be. Inversely, the greater the mass of the object, the slower the acceleration will be.  However, when rewriting proportions as equations, you must introduce a constant of proportionality, and in this case of a direct proportion, if $a \propto \frac{F}{m}$ then when rewriting as an equation you will have $$a = k\cdot\frac{F}{m}$$  In order to get the standard formula $F = ma$ this constant must be $1$. However, how do we know that this is the case? How do we know that the constant isn't $2$ and the formula $F = \frac{1}{2}ma$, for instance?


The following piece of code set the header (chapter names) of my text (report class) in small caps:  \fancyhf{} \fancyhead[RE]{\footnotesize\scshape\nouppercase{\leftmark}} \fancyhead[LO]{\footnotesize\scshape\nouppercase{\rightmark}} \fancyhead[LE,RO]{\footnotesize}   Only problem is that words that are italicized in chapter names are not showed as italicized small caps in the respective headers but instead as "regular" italicized text!  Is there any easy way to fix this? Thanks very much in advance!

I am using MiKTeX 2.5 version. Is there any possibility to change the small caps fonts in italic shape?  I had tried as like below   \textit{\textsf{Small Caps}}% This will gives the Regular Small caps output. \textsf{\textit{Small Caps}}% This will gives the italic output.   Could you please help me on this?


how to descrease the height of select box .It is loading with large number of records like 200 or three hundered.I want to make it smaller

Can someone confirm that its not possible to change the height of a dropdown that is shown when you click on a select box.   The size attribute of the select makes it look like a list, the height attribute in the CSS doesnt do much good either.


Why we have to do separate packaging to applications for 32-bit and 64-bit Ubuntu Operating systems.I mean why some applications are making 32-bit and 64-bit separately and why some applications are not ?   is there any advantage if we made 64-bit packaging for a 64-bit OS ?

What is the difference between 32-bit and 64-bit Ubuntu? I've heard the 64-bit platform performs better and can detect more than 4GB of RAM. Also, while some apps haven't ported to 64-bit yet, ia32-libs lets a 64-bit machine run them.  If so, why not promote 64-bit over 32-bit?


I want to add a key, value pair into a hashtable (or any other collection) but have to maintain insertion order. How can I do this?  Like I'll add 1 as key "one" as value, 2 as key and "two" as value.  The output should be:  1:one 2:two

I'm looking for a class in java that has key-value association, but without using hashes.  Here is what I'm currently doing:   Add values to a Hashtable. Get an iterator for the Hashtable.entrySet(). Iterate through all values and:   Get a Map.Entry for the iterator. Create an object of type Module (a custom class) based on the value. Add the class to a JPanel.  Show the panel.   The problem with this is that I do not have control over the order that I get the values back, so I cannot display the values in the a given order (without hard-coding the order).  I would use an ArrayList or Vector for this, but later in the code I need to grab the Module object for a given Key, which I can't do with an ArrayList or Vector.  Does anyone know of a free/open-source Java class that will do this, or a way to get values out of a Hashtable based on when they were added?  Thanks!


\documentclass[a4paper, twoside, 12pt]{report} \usepackage[  a4paper,  twoside,  inner=5cm,  outer=2.5cm,  top=2.5cm,  bottom=2.5cm,  headsep=0.5cm ]{geometry} \pagestyle{headings}   I need page numbers to be at the outer corner -- \pagestyle{headings} accomplishes this perfectly, however, it also adds the name of the section, which I do not want in the header.  I tried:  \usepackage{fancyhdr}  \pagestyle{fancy}  \fancyhf{} \fancyhead[LE,RO]{\thepage}   which puts the number in the correct position, however, also produces an underlining, and does not understand the page margins (i.e. the width of the header is not the same as the width of the text).  Is there a way to avoid using the fancyhdr package, and still get the hoped result? And if I must use the fancyhdr package, how do I get rid of the underlining and set the correct width?

When using fancyhdr, how do you remove the top horizontal rule?  I do not want a header at all, just a footer.  This is what I do now:  \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy}  \lfoot{text} \cfoot{text 2} \rfoot{text 3}  \begin{document} Foo Bar \end{document}


So the behavior of parseInt here seems to me to be so bad that I just don't know what to think...  parseInt(1.15*100) = 114

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?