Local GeoJSON in Leaflet using leaflet-ajax

My aim is to include a local geojson file in my Leaflet map application using  , as suggested by  earlier answer. In my root directory, I have:  index.html entire contents of  leaflet.ajax.min.js containing the contents of the source file on  bb4326.geojson containing 4 point features in EPSG4326  Index.html looks like: <!DOCTYPE html>       <title>Hey up here!</title>     <meta charset="utf-8" />     <meta name="viewport" content="width=device-width, initial-scale=1.0">     <link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />     <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A==" crossorigin=""/>

     Opening index.html in a browser results in the basemap at the requested location and zoom-level, but the geojson file contents are not displayed. What am I overlooking? I thought that the ajax.min.js script ought to load the dataset for me? bb4326.geojson was created by exporting a Shapefile to GeoJSON in QGIS and looks like: { "type": "FeatureCollection", "name": "bb4326", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "id": 1, "cat": "A" }, "geometry": { "type": "Point", "coordinates": [ -1.903211081088789, 52.483536707820782 ] } }, { "type": "Feature", "properties": { "id": 2, "cat": "A" }, "geometry": { "type": "Point", "coordinates": [ -1.569431757803851, 55.041100936161001 ] } }, { "type": "Feature", "properties": { "id": 3, "cat": "B" }, "geometry": { "type": "Point", "coordinates": [ -0.164490580870734, 51.446934150191545 ] } }, { "type": "Feature", "properties": { "id": 4, "cat": "C" }, "geometry": { "type": "Point", "coordinates": [ -3.239562634800648, 51.514642158718445 ] } } ] }


How hard can this be? I want to get the current CPU performance from a remote Win 2k3 machine. I need to use SNMP because the machine is behind a firewall.  Assumptions:   I understand networking/can configure any kind of IP address/port forwarding/firewall/stuff. I understand SNMP - I know how to use my tool to get a value from an OID on a target machine.  I know what I want to do with the result from my SNMP request. I have enabled SNMP on the Windows Server, configured the relevant IP security/community stuff. I can already ask the Windows server standard stuff using SNMP about how many disks/network interfaces it has etc.   Question: - What OID do I used to simply ask current performance usage.  I have spent many hours asking Google - clearly asking the wrong question :S .... How hard can this be?


When would you use $* instead of $@ in Bourne shells?

In Bourne shell and its offshoots like Bash, I believe the only difference between $* and $@ is that $@ expands in double quotes so that each argument ends up as a single word even if it contained embedded whitespace while $* doesn't.  #!/bin/sh  for i in $*; do echo $i; done for i in $@; do echo $i; done for i in "$*"; do echo $i; done for i in "$@"; do echo $i; done   ...when invoked with '1 2' 3 as arguments, the first two output 1, 2, then 3, the thrid outputs 1 2 3, but the fourth correctly outputs 1 2 then 3.  Is $* just redundant, and if it is, why is it used in so many scripts?


Transforming a vertex moves other vertices

Hi I'm new to blender and am trying to model a character. In the tutorial I'm following each vertex moves independently. For example, when moving one vertex only that vertex moves, whereas for me it's moving the other vertices, which is making it harder for me to build a basic model the way it should be.  This is how it works in the tutorial:   And this is what it's doing for me:   Rather than distorting the area it's moving the whole section. I've searched with all the possible questions I can think of but can't find anything, which solves this problem. How can I fix this?


difference between "Have been" and "was"

can anyone please tell me the between "have been" and "was"? Suppose my friends calls me and I reply the following.  Are they interchangeable in the following context?    Hey, Paul I was/have been busy working all day. I am very tired now. I will go your home and talk to you there.   Note that I am not working at the moment of speaking. I have just finished it.


I have seen a plane.   Here, what is the meaning of the sentence above? I understand the basic meaning of 'have pp'. The sentence above means that I have just seen a plane? Or I have seen a plane before? Or both according to the context?


Sending Salesforce fields in JSON to external system Json generator

I have less experience in coding. I have a requirement to send Salesforce record to External system whenever we create a record in SF, create an incident in External system. I wrote a class and a trigger and calling the method in trigger from class to POST. When I execute the code in anonymous window , it throws me error "System.QueryException: List has more than 1 row for assignment to SObject". The code is executing in trigger when i call method however it is passing only one record to external system not the one which we create in salesforce. Any help is appreciated. I think I'm doing something wrong on my Soql query because it is not picking new Record and loops on with one record in salesforce. Can someone help me correct this? I know code is little messy. Posting both apex class and trigger.Thank you!  public class RadarUpdate { @future (callout=true) public static void postcallout(string id) {    Patient_Satisfaction__c c = [select id, Name, Reporter_First_Name__c,  Reporter_Last_Name__c, Reporter_Phone__c, Description_of_Feedback__c from  Patient_Satisfaction__c limit 1] ;  // working when Limit 1 clause is added // JSONGenerator gen = JSON.createGenerator(true); gen.writeStartObject(); gen.writeObjectField('First name ', c.Reporter_First_Name__c);   //Salesforce to External system gen.writeObjectField('Last name',c.Reporter_Last_Name__c);       //Salesforce to External system gen.writeObjectField('Phone',c.Reporter_Phone__c);               //Salesforce to External system gen.writeObjectField('description',c.Description_of_Feedback__c);//Salesforce to External system gen.writeObjectField('Name',c.Name);         //External system required field gen.writeObjectField('incident_group_id',7387);//External system requiredfield gen.writeEndObject(); String jsonS = gen.getAsString();  System.debug('jsonMaterials'+jsonS); Http http = new Http(); HttpRequest request = new HttpRequest(); request.setEndpoint('https://api.radarfirst.com/incidents'); request.setMethod('POST'); request.setHeader('Content-Type','application/json;charset=UTF-8'); request.setHeader('User-agent', 'Salesforce-integration-client'); request.setHeader('Authorization','Bearer 123'); request.setBody(jsonS); // Set the body as a JSON object HttpResponse response = http.send(request); if (response.getStatusCode() != 201) { System.debug('The status code returned was not expected: ' + response.getStatusCode() + ' ' + response.getStatus()); } else { System.debug(response.getBody()); } } }   trigger RadarFirst on Patient_Satisfaction__c (before insert, before update) { for (Patient_Satisfaction__c cc : Trigger.new) { if (cc.Referred_to_Privacy__c = true) { RadarUpdate.postcallout(cc.id); } } }


I'm trying to calculate a polygon area. This is the polygon and the attribute table:    When i open field calculator and use the Geometry--> area$, the area result for ID 1 is (in squere meters) 1809477.67:    but when i use the Export/Add geometry column tool, two things happen:   a new layer been created named "added geom info"- why the data isn't created in the polygon attribute table? the area result is (in squere meters): 1799292.92 - why i get different results?        When i measure the area in ArcGIS 10.3 - the result was 1799292.92 squere meters.  I also red      and didn't found any suitable answer.


Using JQuery and Prototype in the same page

Several of my pages use both JQuery and Protoype. Since I upgraded to version 1.3 of JQuery this appears to be causing problems, because both libraries define a function named '$'.  JQuery provides a function noConflict() which relinquishes control of $ to other libraries that may be using it. So it seems like I need to go through all my pages that look like this:  <head>           <script type="text/javascript" src="/obp/js/prototype.js"></script>     <script type="text/javascript" src="/obp/js/jquery.js"></script> </head>   and change them to look like this:  <head>           <script type="text/javascript" src="/obp/js/prototype.js"></script>     <script type="text/javascript" src="/obp/js/jquery.js"></script>     <script type="text/javascript">         jQuery.noConflict();         var $j = jQuery;     </script> </head>   I should then be able to use '$' for Prototype and '$j' (or 'jQuery') for JQuery. I'm not entirely happy about duplicating these 2 lines of code in every relevant page, and expect that at some point somebody is likely to forget to add them to a new page. I'd prefer to be able to do the following    Create a file jquery-noconflict.js which "includes" jquery.js and the 2 lines of code shown above Import jquery-noconflict.js (instead of jquery.js) in all my JSP/HTML pages   However, I'm not sure if it's possible to include one JS file in another, in the manner I've described? Of course an alternate solution is simply to add the 2 lines of code above to jquery.js directly, but if I do that I'll need to remember to do it every time I upgrade JQuery.


How do you get to the Secret Room in the Tavern?

My friend and I noticed that there seems to be an inaccessible room in the Tavern with something behind it. We saw that there was a Treasure Chest seemingly floating somewhere off the map.     In addition, if you walk up to the second floor of the Tavern and position your camera through the wall just right, you can highlight something called the Defender's Forge.   Confirmation of the speculation was confirmed in the notes for the 7.07 patch, which had a note that said the following:     Moved bonus-item crates back into the main section of the Halloween Tavern, out from the Secret Room.   What is this Secret Room? How do I get there? Do I need to beat the campaign first or something else?


Should I refer to SE topics as "topic.se" or "topic@se"

As I've realized on  at the RPi SE, there are multiple .se domains that are ambiguous with the SEs on the site. I frequently see people refer to stacks as "Topic.SE" (RPi.se for example).   When I saw that the user that posted that answer on the linked post use rpi.se instead of rpi@se, I realized that people might mistakenly literally go to   Here's a few more examples of ambiguous .se domains:  rpi.se aviation.se chess.se academia.se so.se (StackOverflow I guess) beer.se drupal.se law.se photography.se webmasters.se   Should I/we encourage everyone to use "Topic.SE" or "Topic@SE"?


Does there exist a metric under which $\mathbb{R}$ is incomplete?


My number guessing program error in java

I am making a number guessing game in Java, where the program displays a number, in a 1 to 10 range, and you have to either guess if the next number will be lower or higher than the current one. But there seems to be an issue when i get it correct i am supposed to get a point added to my score but instead it just does the method for when I get the guess wrong.  class csjava {     public static void main(String[] args)     {         Random dom = new Random();         Random dom2 = new Random();         Scanner input = new Scanner(System.in);         int score = 0;         System.out.println("Guess if next number will be higher or lower                        Score:" + score);         int rnd = dom.nextInt();         int rnd2 = dom2.nextInt();         String  lo = "lower";         String hi = "higher";         if(score ==10)         {             System.out.println("You win!");         }         while(score != 10)         {             System.out.println(dom.nextInt(10-1)+1);             String in = input.nextLine();             if(in == lo)             {                 System.out.println(dom2.nextInt(10-1)+1);                 if(rnd2 < rnd)                 {                     score = score + 1;                 }             }             else             {                 System.out.println("Nope, try again.");             }             if(in == hi)             {                 System.out.println(dom2.nextInt(10-1)+1);                 if(rnd2 > rnd)                 {                     score = score + 1 ;                 }             else             {                 System.out.println("Nope, try again.");              }         }     } }


When I go to play songs on my i phone, the same song just repeats and repeats. How can I stop this and get it play a whole playlist or album?


Accept ' (single quotation) or " (double quotation) from user in PHP

I created a input field in HTML, passed the value into PHP. When user provides a name with ' (single quotation) in it my script is breaking. Upon debugging I found out PHP was issue. Can any one show me how to accept ' (single quotation) and " (double quotation)  Below is my code:     HTML:   Name: <input type="text" name="v1" id="text_input" size="30" required/>

      PHP:   $v1_name = $_POST["v1"];   FYI: Its not sql injection. I need to send that quote as string.


Isolation for USB 2.0 High Speed (480 Mbps)

The fastest isolators available a a reasonable cost are 150 Mbps per channel. High Speed USB has a data rate of 480 Mbps. So how do you isolate a HS USB?  The first thing that comes to mind is to somehow convert the serial stream into n parallel streams which run at about 480/n Mbps each and then send these parallel streams over the available isolators and convert it back to serial on other side. I'm sure this is not as easy as it sounds.  I have seen some expensive looking FPGA based designs that do this. Since it can be done using an FPGA, I wonder why no semiconductor company is providing a ready to use 480 Mbps USB isolator. This approach looks so scalable that even higher rates could be possible.


I'm using reflection and rotation from the graphics package. Depending on the number of characters I get an unwanted landscape output in the PDF file. [latex->dvips->ps2pdf]  \documentclass{article} \usepackage{graphics}  \begin{document} %%%%%%%%%%%%% comment A out REFLECTION\\% A %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% comment out B or C \rotatebox{90}{\scalebox{-1}[1]{REFLECTION}}%%%%% B %\rotatebox{90}{\scalebox{-1}[1]{REFLECTIONXX}}%% C \end{document}


A few days ago I installed Xubuntu on top of a normal Ubuntu system:  sudo apt-get install xubuntu-desktop   I didn't play around for long on Xubuntu before I realised that I liked Ubuntu 2D better. Now my problem is how do I uninstall Xubuntu and all of it's dependencies and the recommended packages like Thunar and Abiword.  For now I just run:  sudo apt-get remove xubuntu-*   but I still have a lot left from Xubuntu. It would be nice if by doing  apt-get remove xubuntu-desktop   all of the packages installed with the metapackages were also removed, but that is not the case.


What are the similarities and differences between "irony" and "sarcasm"?

This seems to be one the long-standing arguments between people on the internet. When is something "irony" and when is it "sarcasm"? And can a quip be both at the same time? Dictionary definitions don't seem to help much:  irony — the expression of one's meaning by using language that normally signifies the opposite, typically for humorous or emphatic effect sarcasm — the use of irony to mock or convey contempt  In most of the arguments I hear about the words, neither of these definitions seem to match the definitions proposed by anyone.  Per Rhodri's request, I typically see definitions such as these offered instead of the ones I found in my dictionary:  sarcasm — using a sentence to convey its exact opposite meaning irony — a circumstance that involves one's intent or actions backfiring and bringing about the opposite of what was intended, usually through humorous or coincidental means  Note that this just my construction. People have offered all sorts of other working definitions but the big difference is that "irony" involves a circumstance instead of an expression.


Number of homomorphisms from $\mathbb{Z}_m \to \mathbb{Z}_n$

I saw this exercise:     Prove that the number of group homomorphisms from $\mathbb{Z}_m \to \mathbb{Z}_n$ is $k=\gcd(m,n)$, where $m,n$ are natural numbers. If $m,n$ are prime to each other, then the only homomorphism is the trivial one.   I know that a homomorphism $t$ from $\mathbb{Z_n}$ to some other group $H$ matches an element $g\in H$ such that $g^n = e$, $t(1)=g$. How does the $gcd$ here take place and give the number of homomorphisms?


Top 7% this quarter -> where to find all the stats?

On my  I can see a link "top 7% this quarter".  When I click on it, some rankings appear. However, the "top 7%" is nowhere to be found. I can also switch to "month", "week" or "all time" pages. However, I can't find out what "top X% this week" is, for example.


How to prevent browser back button after logout?

How can i stop the back button after user has logout ? (LOGOUT button is in master page) Using webforms  I have few pages, the last page is the final page and after log out when i click back button its showing the previous page.How do i avoid this.Pls help me with the code   Code needs to trigger only after LOGOUT .The user must be able to go back n see previous page if he has to make any changes while he's loged in.


JavaScript click not working with InnerHtml

When user click on tag with class ".btn" it should console.log(1), if user click on "Next" button - .buttons>button should replace with given values in array tasks. It works well with replacement, but after replacement click ".btn" doen't work anymore. What issue?
     <button class="btn">         var 1     </button>     <button class="btn">         var 2     </button>
  <button class="right">     Next </button>


Is there a word or phrase which means "leads you into other or further research?"

I'm specifically looking for a word that means "leads into more research or further examination". I was thinking that the word heuristic could mean this, but I'm not sure. Does anyone know a word a phrase for this?  Here's the way we might use such a word in a sentence:     He read a biography about Thomas Edison and he learned about how   inventors think which became a [heuristic] which motivated him to do more research about   creativity.   Or, in such a way that it would replace the following kind of an idea:     When you learn to develop video games you have to learn how to draw on   the screen which leads you to learn how geometric shapes are   mathematical entities which will lead you to learn the math of   geometry.


I have created a new logical partition (H) on my hardrive and want to install Ubuntu in that partition. I also want to have access to my Windows 7 files and programmes. I would like some advice as to which installation option I should use.


The code  \subsection{\textsc{Should be in small caps} $\cdot$ Normal tekst} \textsc{This text is in small caps}   gives the output    The \textsc command works fine in normal text but not in a subsection title. As shown, I do not want to change the entire title format, only a small portion within. Thus I cannot find out to make a general renewcommand feature.  Is there a method to accomlish this?  My document head is the article type \documentclass[11pt,a4paper]{article}


Lowercase small caps in section/subsection/…

I'm interested in setting the titles of section and more in lowercase small caps. And I don't know how to automatically achieve this.   \documentclass{scrartcl} \setkomafont{sectioning}{\scshape} \usepackage{hyperref} \begin{document}     \section{Hello}     \section{hello}     \subsection{helloHello} \end{document}   But if I write everything in lowercase, then the \tableofcontents doesn't look good unless I use small caps there too. I know about \MakeLowercase{} but this needs an argument.  By the way, as I noted, I just want to show them in lowercase small caps in the document, not in the table of contents, ….  Any ideas?  PS: I don't know if this is necessary, but I'm using the MinionPro package.  EDIT: after some research, apart from what is answered here, in  you can look at other different (or semi-different) method.


Why didn't someone make Lily and James Potter portraits like the dead Hogwarts Headmasters?

After       Dumbledore dies in book 6   A portrait appears of him (same as all other former headmasters) in his old office and is able to talk, display emotions, and show intelligence.   If this is really       Dumbledore   Why didn't someone find a way to make a portrait for Lily and James Potter, so that they(their portrait that seems to be exactly the) could communicate, not just for Harry's sake, but there would definitely be some propoganda and strategic value for them being able to communicate.


Lock other users from using my workstation

I don't like other people using my workstation in my absence How do I lock a workstation that is configured to let anyone with valid credentials to log in as a different user?


I have had acne for 2 years now. I used to have acne everywhere on my face and even on my spine. Recently I stopped eating junk food and chocolate, small breakouts that come and go from time to time.   My main problem now is red and purple acne marks.I drink 3-4 cups of Lipton green tea to help prevent acne. Yesterday I started drinking lemon juice with sugar and water for vitamin C, so far there is no result. I have tried various treatments to help with marks, but so far nothing is helping.   Here is the image of my scars:


Can I run Ubuntu 13.04 on a Benq Joybook A52?

Specs: • CPU: Intel Core Duo T2130 1.86GHz • RAM: 896MB • HDD: 100GB • Graphics hardware: ATI Radeon Xpress 200M    I am new to Ubuntu. Do I need to take care of drivers?


Is there a non-pejorative word for opportunism?

The words "opportunism" and "opportunist" suggest the ability to take advantage of situations -- but they assume that one is doing so for one's own benefit, which makes the terms pejorative.   What is a non-pejorative word in English that means "have the skill and wisdom to recognize and seize opportunities that lead to broad gains"?  I am looking for something that is part of the "art" of diplomacy and politics, for example.    "Clever" is a somewhat helpful adjective, but there is no such thing as a "cleverist."  "Entrepreneur" means is a person who is willing to take on risk and innovate, but lacks the sense of seizing opportunities as they emerge.  It seems like an important concept that has no word.  Any suggestions?


Which of the  2 sentences is correct?  Sam is looking forward to see the Rocky mountains.  Sam is looking forward to seeing the Rocky mountains.


How should often be pronounced in formal speech? "off-ten" or "of-fen"?


How to remove/edit a malformedline from sources.list?

guys. i wanted to install virtualbox on my Ubuntu 18.04 lts,but when i run sudo apt update,i get this : E: Malformed entry 53 in list file /etc/apt/sources.list (Component) E: The list of sources could not be read. Here is that list: # deb cdrom:[Ubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]/ bionic main restricted  # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://lt.archive.ubuntu.com/ubuntu/ bionic main restricted # deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic main restricted  ## Major bug fix updates produced after the final release of the ## distribution. deb http://lt.archive.ubuntu.com/ubuntu/ bionic-updates main restricted # deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic-updates main restricted  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu ## team. Also, please note that software in universe WILL NOT receive any ## review or updates from the Ubuntu security team. deb http://lt.archive.ubuntu.com/ubuntu/ bionic universe # deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic universe deb http://lt.archive.ubuntu.com/ubuntu/ bionic-updates universe # deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic-updates universe  ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu  ## team, and may not be under a free licence. Please satisfy yourself as to  ## your rights to use the software. Also, please note that software in  ## multiverse WILL NOT receive any review or updates from the Ubuntu ## security team. deb http://lt.archive.ubuntu.com/ubuntu/ bionic multiverse # deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic multiverse deb http://lt.archive.ubuntu.com/ubuntu/ bionic-updates multiverse # deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic-updates multiverse  ## N.B. software from this repository may not have been tested as ## extensively as that contained in the main release, although it includes ## newer versions of some applications which may provide useful features. ## Also, please note that software in backports WILL NOT receive any review ## or updates from the Ubuntu security team. deb http://lt.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse # deb-src http://lt.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse  ## Uncomment the following two lines to add software from Canonical's ## 'partner' repository. ## This software is not part of Ubuntu, but is offered by Canonical and the ## respective vendors as a service to Ubuntu users. # deb http://archive.canonical.com/ubuntu bionic partner # deb-src http://archive.canonical.com/ubuntu bionic partner  deb http://security.ubuntu.com/ubuntu bionic-security main restricted # deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted deb http://security.ubuntu.com/ubuntu bionic-security universe # deb-src http://security.ubuntu.com/ubuntu bionic-security universe deb http://security.ubuntu.com/ubuntu bionic-security multiverse deb http://archive.canonical.com/ubuntu bionic multiverse # deb-src http://archive.canonical.com/ubuntu bionic multiverse deb http://archive.canonical.com/ubuntu multiverse # deb-src http://archive.canonical.com/ubuntu multiverse deb http://download.virtualbox.org/virtualbox/debian bionic contrib # deb-src http://download.virtualbox.org/virtualbox/debian bionic contrib # deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse  Sorry,im a newbie in Ubuntu,but as i see the problem is with this one **deb http://archive.canonical.com/ubuntu multiverse** (??) Where can be a problem? thank u !


Pen drive corrupted or Encrypted ? How to recover

My name is Manoj.  I have a 16 GB sony pendrive. When I plugged it, it shows 12 GB of it is filled. But there where no files in it. I tried even unchecking hide system files in folder options. Then I found a folder named FOUND.000 which contains FILE000.CHK to FILE312.CHK which constitutes 12 GB of memory. I am unable to delete them even in cmd diskpart. Whenever I try to format or access the pendrive, it changes from state 1 to state 2 shown in pics.. Pls help to recover my pendrive.  pic of state-1:   pic of state-2:


I have a json file which contains json array representing some shapes like that,   [{"Cordinates":  [272.0,81.0,200.0,100.0],   "Type":"Ellipse2D",   "Color":java.awt.Color[r=255,g=0,b=0]},  {"Cordinates":[227.0,272.0,200.0,100.0],   "Type":"Rectangle2D",   "Color":java.awt.Color[r=255,g=0,b=0]} ]   the errors  Unexpected character (j) at position 67.   And here is my code to parse this  public List<ShapeItem> read() {          try {         Object obj = parser.parse(new FileReader(filePath));         JSONArray ja = (JSONArray)obj;                   for (int j = 0; j < ja.size(); j++){              JSONObject si = (JSONObject) ja.get(j);              String type = (String) si.get("Type");                           JSONArray cordinates = (JSONArray) si.get("Cordinates");              Float x, y, width, height;              x = (Float) cordinates.get(0);              y = (Float) cordinates.get(1);              width = (Float) cordinates.get(2);              height = (Float) cordinates.get(3);              if (type.equals("Ellipse2D")){                 s = new Ellipse2D.Float(x, y, width, height);              }              else if (type.equals("Rectangle2D")){                 s = new Rectangle2D.Float(x, y, width, height);              }              c = (Color) si.get("Color");              shapeItem = new ShapeItem(s, c);              shapes.add(shapeItem);         }         }         return shapes;   }   I want to read this file and create those shapes and return array of shapes but i got errors any help?


I am using Samsung Note 3. My friend's profile picture has suddenly disappeared! Is this a known problem? Is there anyway I can get the pictures to show again ?  Thanks


russian women asking for $2000.00 to show athorities she has enough money for her trip

i have met a girl online from rusia. we have been sending massages through my email address.it has now been six weeks since her first message.she uses the internet cafe. she was short $516 american for her airplane ticket. so i sent her $820. canadian. after arriving at the airport, she said the lady in the airport cannot give her the tickets unless she has $2070. in her account to prove she can afford to visit Canada. i think that i am being scammed.


Where can I find delay/cancelation statistics for a given airline route?

My flight got canceled yesterday and I am currently waiting for the delayed next flight.   Is there any website that keeps records of airlines being delayed/canceled? I would like to know my chances. I did find some sites through google (flightaware, flightstats), but they focus on us flights only and I am currently in the azores.


What part of speech is "booed" in the following sentence?

I have a friend who says sentences like, "Santa Claus deserves booed".  I would say, "Santa Claus deserves to be booed". Are we both correct?  Leaving out the "to be" part of the sentence seems odd to me.  Thank you for your response.


Is there a mathmatical theory to explain all physical phenomena?

Does anybody know of any physicists or mathematicians who have put forward a theory to everything, for which this mathematical theory would explain all physical phenomena in the universe in one equation?


Bash: Show the contents of a text file, with every occurrence of a word highlighted

How can I show the contents of a text file, with every occurrence of a word highlighted?


A very easy probability problem but opinions diverge greatly. Need some help.

The question itself is a very easy one:     Somebody has got two kids, one of whom is a girl. Then what's the probability that he's got at least one boy?   My answer is that, since he's already got a girl, then "he's got at least one boy" amounts to "the other kid is a boy", whose probability is apparently $\frac{1}{2}$. But my friends argue that the probability should be $\frac23$: they say this is a binomial distribution, all the possible cases are (girl,girl),(girl,boy),(boy,girl) which yields that the probability is two cases out of three and is thus $\frac23$. But I think this is totally unacceptable. I don't think it is a binomial distribution at all, at least not what my friends explained to me. However, I just can't disuade them of their opinion, nor can I prove that I am wrong. So what on earth is the probability? and why? Any help is appreciated. Thanks in advance. Esp. Can anybody show why my explanation is wrong? Isn't it that whether the other kid is a boy or a girl a 50/50 event?  EDIT: Thanks for all the help you provided for me, and special thanks will go to @HammyTheGreek and @KSmarts, who have made it clear to me that there is in fact some ambiguity in my statement in this problem. As is pointed in  ,two distinct interpretation of the statement "one of whom is a girl" that gives rise to ambiguity:     From all families with two children, at least one of whom is a boy, a family is chosen at random. This would yield the answer of 1/3.   From all families with two children, one child is selected at random, and the sex of that child is specified to be a boy. This would yield an answer of 1/2.


How to add caption to graphics defined this way

I found this code  since it's exactly what I need to use, but also I need a caption under both of them. There is an example for a subcaption but that's not it. I simply tried to add the caption command but it doesn't work. Can someone tell me how to modify it? Thanks.   \begin{center}    \resizebox{1.0\textwidth}{!}{    \includegraphics[height=3cm]{pic1}  % \caption{Picture 1}    \label{fig:pic1} \quad    \includegraphics[height=3cm]{pic2}  % \caption{Picture 2}    \label{fig:pic2}  } \end{center}


I have a csv file index.dat with data  Year,0-19 years,20-39 years,40-59 years,60-79 years,80-99 years,100 years+ 2000,100,100,100,100,100,100 2001,101,102,101,102,101,102 ...   I am trying to plot this with pgfplots.  I have made this script  \begin{tikzpicture}  \begin{axis}[     width=\textwidth,     height=0.5\textwidth,     grid=both,     xmin=2000,     xmax=2010,     xticklabel style={/pgf/number format/1000 sep=, rotate=45},     ymin=80, ]  \addplot table [x=Year, y=0-19 years, col sep=comma] {./data/index.dat}; \addlegendentry{0-19 years}  \addplot table [x=Year, y=20-39 years, col sep=comma] {./data/index.dat}; \addlegendentry{20-39 years}  \addplot table [x=Year, y=40-59 years, col sep=comma] {./data/index.dat}; \addlegendentry{40-59 years}  \addplot table [x=Year, y=60-79 years, col sep=comma] {./data/index.dat}; \addlegendentry{60-79 years}  \addplot table [x=Year, y=80-99 years, col sep=comma] {./data/index.dat}; \addlegendentry{80-99 years}  \addplot table [x=Year, y=100 years+, col sep=comma] {./data/index.dat}; \addlegendentry{100 years+}  \end{axis}  \end{tikzpicture}   and it works fine, but I think it's a bit stupid way to do it.  Can I do the same by just specifying that I want to plot all columns from 2 to 7 and use column 1 as x values?


Trying to install firefox on Linux on Crouton but cannot bypass user agreement

a friend is trying to install Firefox on an Ubuntu loaded in Crouton in a Chromebook. Technically, all they have to do is enter the sudo command to install firefox, but apparently a user agreement window pops up after installation and doesn't allow them to continue. There is an "okay" at the end but clicking on it doesn't do anything. As they cannot screenshot, this is their description:  There's a fuchsia background. At the top in grey it says "Package configuration" then in the middle there's a large grey box. At the very top there's a piece of scarlet text that reads "Configuring ttf-mscorefonts-installer". It doesn't move, even when you scroll down. The text inside is black and reads "TrueType core fonts for the Web EULA" at the top and then "END-USER LICENSE AGREEMENT FOR MICROSOFT SOFTWARE", then the rest is the agreement. When you scroll down to the very bottom, it reads "Reference:" then gives a link. At the bottom there's a piece of stationery text that reads, " < Ok >", but it's unclickable.  Is there a way to bypass this? We downloaded twice but came across the same problem so it doesn't seem like it's a bug in the installer itself.  Also this is our first time trying Linux so do be gentle :P


SQL_Injection function improvement in PHP

I want to protect my web app from SQL_Injection. Here's the function I wrote but I want your opinion about it and if you have any tips to improve it! Thank you in advance! function charfilter($String) { /*Sanitize input*/     $count=0;     $forbidden= array("'",";","--","=","\"","#","<",">");     $String=str_replace($forbidden," ", $String,$count);     // String lenght limited to MAX_BUFF     return substr($String,0,MAX_BUFF); }


Use ellipsis (...) in recurent function calls

I want to write a function writelog() with ellipsis parameters, which should forward the same ellipsis parameters to another function. How to do it?  My function example:  void writetolog(char *format, ...) {     FILE *file;     if ((file = fopen(LOG_FILE, "a")) != NULL)     {         fprintf(file, format, ...);         fclose(file);     } }   Function fprintf() should have the same ellipsis parameters from function writetolog().


Viewing stackoverflow.com  HTTPS and clicking on a notification link for the meta site changes from HTTPS to HTTP.  The sites should remain in whatever protocol the user is currently using when switching from site to site.


Resources for Smith Normal Form in Abelian Groups

Are there any comprehensive resources regarding Smith Normal Form? Particularly on its application in abstract algebra.


Let $I=[0,1]\subset\mathbb{R}$. Suppose that $f:I\to I$ is a continous   function. Show that exists a $x\in I$ such that $f(x)=x$.   If $f$ is a continuous function in $I$ then $\forall \epsilon>0$, there exists a $\delta>0$ such that whenever $|x-c|<\delta\Rightarrow |f(x)-f(c)|<\epsilon$ for any $c\in I$.  How can I ensure that this occurs for any function?


Take the following example:  class A { }  class B extends A { }  class MyParent {     private A _a;      public A getMyValue()     {         return _a;     } }  class MyChild extends MyParent {     @Override     public B getMyValue()     {         return (B)super.getMyValue();     } }   How come the previous is valid but the following is not:  class MyChild extends MyParent {     @Override     public <T extends B> T getMyValue()     {         return (T)super.getMyValue();     } }   I would think that since T extends B it wouldn't cause conflict with the parent getMyValue() implementation due to type erasure; however, it seems that this is not the case. I get an error saying that they both have the same erasure.  To clarify as to why I don't think they should conflict: T extends B should always be at least B or any child class thereof. B inherits from A and therefore is assignable to type A.  Could someone break this down for me and is there any way around this that does not require changing either the A class or MyParent class (per my requirements)?    Looking at:  it states that the erasure that my example should resolve to is B, not A further confusing me.   Additionally, if I change the MyChild class to the following:  class MyChild<T extends B> extends MyParent {     @Override     public T getMyValue()     {         return (T)super.getMyValue();     } }   It works!   Is there some difference in how erasure is resolved at the method vs class level?


Set Some conditions to answer my question

Suppose I wish to allow only users who have scored at least 15 in the particular tag to answer my question, Is it possible to set a condition like this while asking a question? So that I can avoid strangers/answers from dummy users.


Use Jensen's Inequality to prove $\sin{A}+\sin{B}+\sin{C} \leq \dfrac{3\sqrt{3}}{2}$

Prove that for any triangle $ABC$, have $\sin{A}+\sin{B}+\sin{C} \leq \dfrac{3\sqrt{3}}{2}$.   I know that we have to use Jensen's inequality here, but I am not sure how to apply it. We know that $A+B+C = 180^{\circ}$, so seeing that sine is concave on $[0,\pi]$, we can let $f(x) = \sin{x}$.


Change Value of Variable in Function in C

The final values for x and y should be x = 4 and y = 21. I understand why y = 21, but why is x = 4? Should "a = 5" not change the value to 5? Thanks  int f(int a, int *b){     a = 5;     *b = *b + 3*a; }  int main(){     int x, y;     x = 4;     y = 6;     f(x, &y);     // What are x and y now? }


I was taught that when we want to say "produce sound on a musical instrument", we should always use the definite article before the instrument ("play the guitar/piano/violin").  I did research on this, and I got the expected results from the dictionaries I use:     Jean plays the guitar and her brother is on percussion.       He learned to play the clarinet at the age of ten.       He taught himself to play the violin.    (particularly, they all pertain to the skill these people possess)  Then I came across . There, some people said "play guitar" is more common in the USA while "play the guitar" is BrE.  One trustworthy American English dictionary provided the next examples:     Howard Roberts played guitar and Schuur sang and played a Fender Rhodes piano.       I never thought about combining it with drag, ’cause to me, well, drag queens don’t play guitar.    Moreover, I generated the ngram graph and noticed that the expressions using the are way more popular than those without the article:    Now I am confused about which one is correct and whether they are both acceptable.


Can we have the ability to filter favorites by tag?

I would love to have the ability to filter my favorites by tags.  I store a bunch of questions tagged with specific technologies and have trouble finding them.  Does this feature currently exist and I'm missing it?  Is this something that could be implemented?  For example, I was just searching for a question I made a favorite awhile ago regarding conditional commits using Git.  I had to page through my favorites and search for "Git" using the browser.  One search per page, ugh!  It would have been so much easier if I could have just looked through my favorites tagged with Git.  I could almost see something similar to a developers playbook that would be very useful.


What are recommended settings for my Nikon Coolpix P1 to best portray rain?  Here's what I got. No retouching was applied.   The picture I took when the rain was heavy with the automatic settings:  The picture I took with the "Sports" program; by then, however, the rain was not as hard. Ugh, ugly gray strip at the bottom, that was the flat surface I put my camera on to get a stable picture.   My main problem is that the actual rain and hailstorm is very hard to see in the picture. The overall effect is, instead, of fog.    Follow-up from the thread, courtesy of more rain, now with less hailstorm and more thunder.  The feedback amounted to flash and faster shutter. I took a few photos and I'm having some trouble to reconstruct what I did to get each result. Two representative results:   Fast shutter, with some guest starring:I'm talking about that horrible building obviously. Faster shutter and flash:Kinda difficult to say those pictures were taken sixty seconds of each other. :)   I'm not sure, however, that either of this is really an improvement of the original results.


Is it possible to open a Chrome shortcut in a separate instance?

I have a web app that launches from a shortcut on the desktop. I would like to have it spawn in a new instance of Chrome -- with its own pinnable task bar icon, etc. -- instead of grouped with the rest of my general web browsing activity. Is it possible to do this without running it in a different browser altogether?


Generating Random Unique items from a string list

I have string list of a deck of card the strings are as such, A-DIAMONDS, 2-CLUBS, etc.  I want to be able to generate 5 unique items from this list randomly.   I know how to do this in python with Random.sample(5) but in trying to find a solution in C#. everything seems to be generating a random, put it in a list, generate another random, check it against the list and it is working fine.   Is there a more compact way of doing this in C#?  Here is my full code after using Linq for shuffling.      class Program {     static void Main(string[] args)     {         string [] cardValues = { "A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K" };         string [] cardSuites = { "HEARTS", "CLUBS", "DIAMONDS", "SPADES" };         List<string> deckOfCards = new List<string>();          foreach(string cardsuit in cardSuites)         {             foreach(string cardvalues in cardValues)             {                 deckOfCards.Add(cardvalues + "-" + cardsuit);             }          }          for(int i = 0; i <= 10; i++)         {             List<string> pokerHand = new List<string>();             Random rand = new Random();             deckOfCards = deckOfCards.Select(x => new { card = x, rand = rand.Next() }).OrderBy(x => x.rand).Select(x => x.card).ToList();             for(int x = 0; x < 5; x++)             {                 pokerHand.Add(deckOfCards[x]);             }             Console.WriteLine(String.Join(", ", pokerHand));         }           Console.ReadLine();     } }   }


i had a hard time in using these similar looking words at appropriate places. some help would be appreciated. Thank you


In the earlier films it is said that Jack bartered for the compass from Tia Dalma. However, in the newest film during Salazar's flashback it shows that the captain of his ship is wounded and hands the compass to Jack.  So how did Jack get his compass and why does this feel like a discrepancy in the plot?


Proving $a\mid b^2,\,b^2\mid a^3,\,a^3\mid b^4,\ldots\implies a=b$ - why is my approach incorrect

After I saw that post i wanted to solve the first one which is $a\mid b^2,b^2\mid a^3,a^3\mid b^4,b^4\mid a^5\cdots$ Prove that $a=b$  Now i started by proving that $a$ and $b$ have same prime divisors,proving that is trivial,after doing so I checked do those factors have to have the same power.I tried with $$a=p^2,b=p^3$$ I noticed it exactly goes for 3 terms,or that $a^3\mid b^4$ doing $$a=p^{n-1},b=p^n\\p^{n-1}\mid p^{2n}\\p^{2n}\mid p^{3n-3}\\p^{3n-3}\mid p^{4n}\\p^{4n}\mid p^{5n-5}\\\cdots\\p^{n(n-1)}\mid p^{n(n-1)}\\p^{n(n-1)}\mid p^{n(n+1)}\\p^{n(n+1)}\not\mid p^{(n-1)(n+1)}$$ Now yeah I guess that would be a proof,but wouldn't setting $n=n+1$ infinitely many times make every term dividable?


Prove there is no contraction mapping from compact metric space onto itself

This question is from Foundations of mathematical analysis by Richard Johnsonbaugh   The thing with this question is that there is a question that seems to prove the opposite claim  - someone look into this  How should one go about dealing with this question?


Can I compare a TextView's xml text with another string programmatically?

If I set the text of a TextView in XML, like this:      <TextView         ...         android:text="0" />   Can I compare that string in Java? Doing this:      private void InitializeMethod() {         A_1  = tv_1.getText().toString();     }      private void CheckAnsMethod() {         if (A_1 == "0"){             correctAns.start();             }         }else{             wrongAns.start();         }     }   causes the sound 'wrongAns.mp3' to be played...


Do we use abstract algebra in real life?   Is there any application of abstract algebra in real life?


Is knowing the private key of RSA equivalent to the factorization of $N$?

Given the RSA modulus $N$ the fastest method to factor it is of sub-exponent order. But, now if I know the private key $d$ of RSA, does that mean I can factor $N$ efficiently?. It intuitively seems true as I know the public/private key pair. Can someone help me to prove this?  Please provide references so that I can read further into this subject.


let us suppose that there is given  such  kind of conjecture   if  their division is  square of integer  then we  will have  $\frac{a^2+b^2}{ab+1}=k^2$  for some  integer $k$, then  we would have  $a^2+b^2=k^2*ab+k^2$  or  we would have  $a^2-k^2*a*b+b^2=k^2$  compare  to the equation  $a^2-2*a*b+b^2=(a-b)^2$  we would have  $k^2=2$     but is that proof ? i could   not understand  if there is  another option  or alternative ways


Which Ubuntu distro to install on Dell Inspiron mini 10v with Intel Atom? Also to play Netflix?

I have Dell Inspiron mini 10v with Intel Atom processor that was given to me. IT believe this has 1GB RAM.  Unsure if it is HDD or SSD but how do I find out?   It does not have CD.  However, I have usb 2.0 thumbdrive though.  For the performance to work, I d like to be able to use text editor, browse the surf and watch videos such as Netflix and Youtube.  Does anybody have instructions or recommendations?


Install GNOME Shell extensions from terminal

Is there a way to install GNOME extensions from terminal, for example dash to dock? The way I do it now is to go into Ubuntu Software app store and install it.


Proving $\sqrt{2}+\sqrt[3]{3}$ is algebraic.

How can I prove that $\sqrt{2}+\sqrt[3]{3}$ is algebraic?  I have been trying various things, and have failed as of now. I know that the degree of the polynomial satisfying this equation has to be $\leq 6$. But that is all I know. Clearly, the simple idea of building the polynomial from the root itself, like in the case of $\sqrt{2}+\sqrt{3}$ does not work here.   Thanks in advance!


I created a pgfplots plot on an axis, which I explicitly put at (0cm,0cm) with width=7cm.  I put this inside a larger tikzpicture and drew a rectangle around it (0cm,0cm) rectangle (7cm,4.2cm).  The resulting rectangle is much larger than the plot.  Here is a complete example:  \documentclass[12pt]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.5.1} \begin{document} \begin{tikzpicture} \draw[blue,thick] (0cm,0cm) rectangle (7cm,4.2cm); \begin{axis}[     at ={(0cm,0cm)},     width=7cm,     height = 4.2cm,     xmin=-10,     xmax=10,     ymin=-5,     ymax=7 ] \addplot [domain=-10:10] {1/2*x}; \end{axis} \end{tikzpicture} \end{document}   Compiled result:    How, if possible, can I make the width of the plot actually equal to 7 cm as per the scale in the outer tikzpicture?


So this is the problem. Ive been tring to put the red dot on the 3d model, but i cannot seems to understand how texturing works, I already have a texture for my plane, but i want to put a png on that texture.


On what kind groups of Lie groups are Yang-Mills theories based?

According to :     Yang–Mills theory is a gauge theory based on [...] any compact, semi-simple Lie group.   But the symmetry group of Standard Model, i.e. ${SU(3)}\times{SU(2)}\times{U(1)}$, is not semisimple, due to the $U(1)$ factor, right? What am I missing here?


What to call the attitude of pursuing something

What will you call a person with an endless spirit of pursuing something?


Testing random variate generation algorithms

Which methods are used for testing random variate generation algorithms?


My computer is overheating because I got too many desktop environments installed like: MATE, Cinnamon and XFCE.  I uninstalled them, but XFCE failed to uninstall. I get this error.   sudo apt-get purge xfce4     Reading package lists... Error!     E: Problem syncing the file - sync (5: Input/output error)     E: The package lists or status file could not be parsed or opened.


I have an array of object like this let arr = [{  user: 1,  details: 'sample' }, {  user: null,  details: 'sample' }, {  user: 3,  details: 'sample' }];  I want to filter out the null user. But when I tried to map the array I get this result. [user1, [], user3] I want to get rid of the [] so I can get the correct data and length. How can I achieve this in Javascript?


Let $X$ be a non-negative random variable. Show $(EX)(E\frac{1}{X})\geq 1$. What does this say about the correlation between $X$ and $\frac{1}{X}$. Further show that if $f,g$ are positive borel measurable functions  such that $f(x)g(x)\geq1$ then $Ef(X)Eg(X)\geq 1$ I suppose I could start with proving the second part of the question and then prove the first part as a consequence. I know I'm going to ultimately use Holder's inequality for this one, but I'm struggling to clear the $p$ and $q$ when I integrate $$1=\int_\Omega 1 dP\leq \int_\Omega f(X)g(X) dP\leq \left(\int_\Omega f(X)^pdP\right)^{1/p}\left(\int_\Omega g(X)^qdP\right)^{1/q}$$ Is the product of those integrals at the end less than or equal to $$\left(\int_\Omega f(X)dP\right)\left(\int_\Omega g(X)dP\right)?$$ If so, how could I prove this? Thanks in advance for any suggestions.


Asus USB-AC68 [0b05:1817] on Kernel 4.10, latest Ubuntu Zesty Zapus

I'm here for using my Asus USB AC-68, and you're going to tell me this is a duplicate of  but it's not, because both the tutorials from both the answers return a usb that can see wifis, but cannot connect to them.  I keep getting a popup asking me to input the wifi password again, and I'm sure it is good because my built-in card can connect to it with the same password I type. I use Ubuntu Zesty Zapus 17.04 which is on the latest linux 4.10 kernel but it looks like this may impact the usability of my USB.  Any help?


I have a following class:  public class MyClass : IDisposable {    private WebServiceHost m_WebServiceHost;    // Members    public void Dispose()    {             m_WebServiceHost // how do I dispose this object?    } }   WebServiceHost implements IDisposable, but it has no Dispose method.  How do I implement Dispose()?


Using comparator to sort multiple class properties

I have my class as:  public class Element {     int number, group, period;     String symbol, name;     double weight;         public Element(int number, String symbol, String name, int group, int period, double weight) {         this.number = number;         this.symbol = symbol;         this.name = name;         this.group = group;         this.period = period;         this.weight = weight;     }   I need to do a Comparator class that will first sort the Element by the group then if its in the same group sort by number. My code for that is:  class GroupComparator implements Comparator<Element> {     @Override     public int compare(Element a, Element b) {         return a.group < b.group ? -1 : a.group == b.group ? a.number-b.number : 1;     } }   I'm not sure how to formulate it to make it work.


Solving a linear congruence $7x+3 \equiv 4x+1 \pmod{10}$

How can I solve the linear congruence $7x+3 \equiv 4x+1 \pmod{10}$?     I got:  $7x+3 \equiv 4x+1 \pmod {10} :\iff 10\mid (3x+2) \implies \exists k\in \mathbb{Z} : 10k-3x=2$  I want to apply Bézout's identity to find $x$, but therefore I have to get rid of the $2$ and instead have a $1$. Can I just divide by $2$?


This is just trivia really, but it's just got me wondering what's going on. I accidentally hit / instead of . today and got this:  [andrew.morris@server ~]$ cd // [andrew.morris@server //]$ pwd /   I would have thought // was an invalid path. What happened?


Is 1½ hours enough for a transit at Munich Airport?

I'm heading to India next week and have a connection in Munich, Germany. I made the mistake of booking a flight with only an hour and a half layover (freaking out!) and I'm wondering if I'll have to go through customs in Munich or if I can pass right on through.


Please implement a way to see post timestamps on the mobile site

On the desktop site, when looking at posts that are recent enough, sometimes the site just says "1 hour ago."     However, if I hover over it, it shows a nice little timestamp:    I would love to be able to see post timestamps on the mobile site. While posts that are old enough show the hour and minute they are from, it is, as far as I know, impossible to get these for recent posts.


I have recently started using Terminal, and I have been having lots of problems installing programs from the Ubuntu Software Center (Minecraft, TOR, Tails installer, etc.)  When I run sudo apt-get update I always get      N: Ignoring file '50unattended-upgrades.ucf-old' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension   I get a system error message when I boot up in relation to deb-src http://deb.torproject.org/torproject.org xenial main  When I try to open /etc/apt/sources.list with various commands it seems like it's not there, unless I open it with sudo gedit /etc/apt/sources.list, then I get a blank document  So my guess is I have accidentally removed it or something...  What do I do ?  Just an edit in response to Duplicate flags  The invalid file name is sorted now (it just needed removing). My problem now is adding lines to my sources list. I tried making a new file from one of the flagged duplicate threads I moved the file and made a new one with Gedit. It seemed to restore defaults and came up with 2x canonical brothers lines. And when I try to add a line nothing happens.  -Just found out when I use sudo su I can now add lines to my sources list  sudo su -c "echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list


Could we have an official preference on English question title capitalization?

The consensus on the preferred capitalization of English question titles in the Stack Exchange network is sentence case (Would this be an OK example?), not title case (Would This Be an OK Example?). Would it be possible to establish an official convention on the matter? I believe that would help to resolve the kind of conflict when a user edits a question title to one convention and another user wants to revert it back to the original convention. I have  at a site, because I'm involved in this kind of a conflict, but there has been no satisfactory resolution. There's the similar question  but it also suggests automatic conversion to a capitalization convention, which is more extreme.


What movie features a boy in a wheelchair who eventually becomes a cyborg?

I want to remember one movie, it’s from the 80's or early 90's (or maybe even 70's), about a boy in wheelchair who eventually becomes cyborg.  There are also this guy's friends, one girl and one other guy who at the end of the movie shoots this cyborg with a crossbow, but cyborg catches the arrow and removes his mask to show who he is.  I'm sorry. I only remember this mess.  Thanks in advance.


Why does $\epsilon$ come first in the $\epsilon-\delta$ definition of limit?

As we know, $\underset{x\rightarrow c}{\lim}f(x)=L\Leftrightarrow$ for every $\epsilon>0$ there exists $\delta>0$ such that if $0<|x-c|<\delta$, then $|f(x)-L|<\epsilon$.  My question is: why do we say that for every $\epsilon>0$ there exists $\delta>0$ and not vice versa, why not for every $\delta>0$ there exists $\epsilon>0$?


Python ctypes: doesn't load dll as expected

I am trying to load a library in python in Windows 10 (x64).  The cpp file used to generate the library for testing is:  extern "C" int check() {   return(1); }   Then I generate the dll with the commands (in x64 Native Tools Command Prompt):  cl /c mylib.cpp link /dll /machine:x64 mylib.obj   The file mylib.dll is generated. Then in python, which initializes showing the following string:  Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32   I run the following commands:  import ctypes lib=ctypes.CDLL("mylib.dll") lib.check.restype=(ctypes.c_int,)   and the last command fails, saying that doesn't recognize check. I also tried lib._check and using a test C file instead of cpp, with the same result, and also tried using ctypes.WinDLL instead of ctypes.CDLL.  What's wrong? Python is x64 as well as the library mylib.dll...  If I do:  ctypes.windll.msvcrt.getchar()   the functions works ok… Here I use the MSVCRT library, which is automatically accessible when I load ctypes.  Should I compile my library differently?


how to hide a partition with active VHD?

i'm trying to create a partition where it'd store an image of the OS with all the necessary software installed(i still need to find out how to do it) and an active VHD attached  something like this  +----------------------+--------------------+ | VHD file + image | SYSTEM (8.1)    | +----------------------+--------------------+ 　　| +-------+ | VHD     | +-------+ where the image and the VHD file would be hidden to the user so that they wouldn't be able to accidentally delete them  is there a way to do it?   it would cretaintly seem easy to just remove the partition path, and it'd be inaccessible, but upon reboot, the VHD drive would disappear


No implicit conversion between 'lambda expression' and 'lambda expression'?

Type of conditional expression cannot be determined because there is no implicit conversion between 'lambda expression' and 'lambda expression'   Say whaat? Could someone please explain this compile error to me? This is the code that produces it:      protected override Func<System.IO.Stream> GetStream()     {         return someBool             ? () => EmbeddedResourceExtractor.GetFile("SomeFile1.ext")             : () => EmbeddedResourceExtractor.GetFile("SomeFile2.ext");     }   This does not:      protected override Func<System.IO.Stream> GetStream()     {         return () => EmbeddedResourceExtractor.GetFile("SomeFile1.ext");     }   And neither do this:      protected override Func<System.IO.Stream> GetStream()     {         if(someBool)             return () => EmbeddedResourceExtractor.GetFile("SomeFile1.ext");         return () => EmbeddedResourceExtractor.GetFile("SomeFile2.ext");     }


The solution should be within a page and please give full explanation.  The original question is,  What is $$\left(2018^{2019} + 2019^{2018}\right) \pmod{7} ?$$


when slope m=0 it is a straight horizontal line and when slope is vertical line..I mean what is the value for slope m to get vertical line?I think that for vertical line, slope is m=0 also.


To mean that x is an element of X, we can write x \in X. However, in the standard packages, the membership symbol that results is too big; it draws too much attention to itself. This is especially evident when we're doing set theory and writing sets as lowercase, as in x \in y. Does anyone one how to draw a less attention-seeking membership symbol?


Compute $ \lim\limits_{t\to +\infty}\log \frac{1}{t}\int_0^1 \cosh(tf(x))dx. $

Please give some hints and not the whole solution.      Problem Let $f ∈ C([0, 1]).$ Compute   $$ \lim\limits_{t\to +\infty}\log \frac{1}{t}\int_0^1 \cosh(tf(x))dx.  $$


I do not have any idea about this, but I am trying to create JSON using Apex class.  I think it can be done using serialize method.  But I need a simple example so that I can understand the procedure. Any example or easy to understand link would be really appreciated.


He's spoken to others who have done time. VS He's spoken with others who have done time.  My question is: When to use spoken to and when to use spoken with?


Can't override property of the base class

I tried to create a new class base on a class, and I want to override a property in the base class for remove [Required]. But instead of overriding, it created a new property with the same name. So what wrong, and how to fix it.  namespace admin.models {     public class BaseClass     {         [Required]         public string id { get; set; }         [Required]         public string name { get; set; }     }      public class NewClass : BaseClass     {         public new string name { get; set; }     } }


BibLaTeX - only first author and then all authors

I need to produce the following BibLaTeX style:    Note that at the beginning we have only the first author (last name and then initials), then an article title, and only then a list of all authors (initials and then last name).  How do I enter the list of multiple authors in the .bib file properly and how to include it in the main .tex file?  Any help would be really appreciated.


Should you use "who" or "that" when talking about multiple people doing something?

Which of the following is correct?        There were 10 people that went to the store.   There were 10 people who went to the store.      Edit:  Which of the following is correct?        There were 10 people that had brown hair.   There were 10 people who had brown hair.


Can a Tier 2 UK Work visa holder, who also holds India Passport, visit Republic of Ireland? Without issuing a separate Irish Visa?

I will be traveling to UK on work visa (Tier 2 - Intra company transfer). Of course, i will also be holding my India passport.  Will I be allowed to travel to Dublin, Republic of Ireland based on Tier 2 Work visa? I meant without the extra effort for applying for separate Irish visa?


How to round pixel values of a raster in QGIS?

I have a raster with float number values for example: 2.544459104537964 and I want to round these up to integers. I have seen other posts on ArcGIS like  but when I use Raster Calculator in QGIS, Int(myraster + 0.5) only makes the first value (which is 0) to 0,5 and the last one (which is 100) to 100,5. The other pixels stay float.


What does a type followed by _t (underscore-t) represent?

This seems like a simple question, but I can't find it with the Stack Overflow search or Google. What does a type followed by a _t mean? Such as  int_t anInt;   I see it a lot in C code meant to deal closely with hardware—I can't help but think that they're related.


I need to print page range in chapter entry, like        Chapter title  ------space-------      starting page number - ending page number      \documentclass{scrbook} \usepackage{lmodern}% for sans-serif plus bold plus italic   \usepackage{tocstyle} \usetocstyle{standard} \usetocstyle{nopagecolumn}  \settocstylefeature[0]{leaders}{\hfill}% \settocstylefeature{pagenumberhook}{\itshape~}  \usepackage{blindtext}  \begin{document}  \tableofcontents  \blinddocument  \end{document}


Weird faces blinking / overlapping problem

I stumbled upon a weird problem while modelling a wall of a building. I started with a plane, then added windows by subdividing faces (Ctrl+R) and using insets (I). Then I dissolved some edges that  didn't seemed important for my model. However after dissolving them, faces started to look weird/glitchy, like they were overlapping. Apart of that, I can't select separate faces, feels like something is covering them. That's a bit counter intuitive for me since i'm working with a 2d plane so it should be impossible for faces to overlap. When I try to extrude, I get a sort of copy of plane, not the actual extrusion. All this makes further work on this model impossible and forces me to rollback a few steps, which isn't a big deal, but I'd like to understand what causes this issue to avoid it in future. I would be grateful if someone more knowledgeable could explain it to me. Please take a look at the video in the link to see what the problem looks like.


I know there are two groups of order $34$. One is obvious $\mathbb{Z}/ (34\mathbb{Z})$, but what is the other? I know it must not be abelian. How do I go about describing it? Extending on Sylow theorems?


Find each line matching a pattern but print only the line above it

I need to find a string and need to print the line above it.   case1: The same line won't have the more than one matching pattern   ie)  consider a file containing  $cat > para returns between the paragaraphs italic or bold     quotes by placing italic   Here i need to find for italic, and i need to get the output as below   returns between the paragaraphs quotes by placing   How can i get the output like this?


Lyx bibliography for link-to-biblography style

I tried many things on here but all failed. I want to do this:  Don't put Einstein, Albert (1990) "Relativity" into footnote. Put in into bibliography section. Make blue-colored hyperlink within the document from Einstein (1990) to Einstein, Albert (1990) "Relativity"  Choosing Document Settings -> Bibliography -> Citation Style -> Biblatex resulted in the hyperlink created only on 1990, rather than on entire Einstein (1990). And maybe this isn't necessary. But to add what I tried and failed: Choosing Document Settings -> Bibliography -> Citation Style -> Natbib (BibTeX) resulted in an error when converting it to pdf (Though I am not sure if this is correct thing to choose)


Why does \cal{M}_n give “M>” in parts of my LaTeX file and works correctly in other parts?


Where is the Windows license key on Windows 10?

I got a new laptop; it came with an existing Windows installation, but I wanted to migrate my current backup to the new machine. I dd-ed the new machine's partitions to an external drive:  /dev/nvme0n1p1 /dev/nvme0n1p2 /dev/nvme0n1p3 /dev/nvme0n1p4   and afterwards move my current partitions to the new machine. What followed was a medium-sized nightmare. The new machine would boot, but the wireless network drivers were not recognized and later found out (to the best of my knowledge) they couldn't be installed. I tried:   booting from the console and running:  sfc /scannow chkdsk C: /f /r /x   both seemed to have completed successfully, but now the machine would get stuck in a startup repair loop. I tried resetting the machine (whilst keeping my files), but this failed halfway through. now the machine's still stuck in the loop and decided to try and repair it externally using a bootable Windows 10 . It's likely that I'll need the new machine's Windows 10 key. I'm not sure if it's stored in the BIOS (it came with Windows 10  preinstalled) or somewhere on the partitions.   How can I get the key from the partitions (if it's there at all) while booting from a Linux image?


Ways to save for child's college education where one need not commit to set contributions?

I'm looking for a good way to save for college for my daughter. As a parent of a single income home, I am looking for a way to maximize my savings to reach my goals, but without having to go with a pre-paid plan that forces me to contribute a set amount. Some months are better than others so not every month is guaranteed a contribution.  Thanks!


Show that a proper locally invertible map is surjective

Let $f:R^2\to R^2$ be a continuously differentiable function such that $Df(x)$ is invertible for all $x\in R^2$ and $f^{-1}(K)$ is compact for every compact set $K$. Show that $f$ is surjective.   The first condition gives by the inverse function theorem that $f$ is invertible in a neighborhood of any point. But how exactly to use properness?


What's the formula used to order the starred chats in chat.meta?

The ordering is a function of the age of the chat and the amount of stars. Could the author or somebody on the inside explain the exact formula?


And is one of the most confusing words in English for me. Sometimes it's really ambiguous, even though I am an advanced learner. Take this as an example:     There are four American and British people    Does this mean there are four Americans and four British people or are altogether four people?  Can anyone help?


tmux: enable mouse only when shift pressed

I've tried to set -g mouse on, and it works pretty well, but standard mouse behaviour (select, copy & paste) is disabled. But, it enables if I press "Shift" button, and while I hold it, I can select, copy & paste text from/to terminal. Can I inverse this behaviour? I want to use mouse inside tmux (for example to select panes or resize them) only with shift pressed.


Continuity of function mapping connected set to connected set

If a function maps every connected set onto a connected set, is it necessarily continuous? I know the converse is true.


I have firefox version 11.0 and am running ubuntu 11.10. Firefox takes upto 850MB RAM with only six or seven tabs opened and all the tabs loaded with light weight websites only. I wonder why would a browser consume so much memory. It keeps increasing its memory consumption over time. I have 3GB RAM and most of the times firefox consumes upto 30% of my memory. How do I fix this?   EDIT:   The output of the command sudo iotop -oPa as asked by @Jippie


How can I create bash_profile and bashrc

OS X 10.11.2 El Capitan  I want to create some alias, so I go to ~/ folder and there is no .bash_profile or .bashrc.    I have been looking for some info and I learn that .bash_profile is only read when bash launch an interactive login shell (default type of terminal in OS X) and .bashrc is only read when bash launch an interactive non-login shell. But I don't find how to create .bash_profile and .bashrc for my user. How can I do it?  After @klanomath answer:


What's the fastest way to count the total lines of text file in c#?

my code is :      int linenumber = File.ReadLines(path).Count();   but it takes long time (about 20 second) for files about 1 gig size .  so does anyone know better way to solve this problem ?  Update 6 :  I have tested your solutions :  for a file about 870 mb size :  method 1 : { my code time(seconds) : 13 }  method 2 : (from MarcinJuraszek & Locke) (the same) {  time(seconds) : 12 }  method 3 : (from Richard Deeming) { time(seconds) : 19 }  method 4 : (from user2942249) { time(seconds) : 13 }  method 5 : (from Locke) { time(seconds) : 13 is the same for lineBuffer = {4096 , 8192 , 16384 , 32768} }  method 6 : (from Locke edition 2) { time(seconds) : 9  for Buffer size = 32KB , time(seconds) : 10  for Buffer size = 64KB  }  As i said , in my comment , there is an application (native code) , that opens this file in my pc in 5 second. therefore this is not about h.d.d speed.  By Compiling MSIL to Native Code , the difference was not obvious.  Conclusion : at this time , the Locke method 2 is faster than other method.  So i marked his post as Answer . but this post will be open if any one find better idea.  I gave +1 vote up for dear friends who help me to solve the problem.  Thanks for your help. interesting  better idea . Best Regards Smart Man


Can I connect to remote servers and grep information using a script?

I recently became a Sysadmin for the company I work for. One of the things I want to try and do is improve some of the processes with scripts. I am very new to bash but eager to learn and any help would be appreciated.  In my work if someone requests a grep we have to manually connect to the hostname and then become root and, after that perform the grep. This can be quite time consuming and so I started working on a script which would allow me to enter the following:  ssh user@hostname grep   The problem is I have no idea how to be able to connect to a given hostname. I would like some output when I run the script that asks me for the hostname which I type in and then asks me what I want to grep and from that I get my results.  Any help would be appreciated and apologies if this is a long winded post. It's my first time asking a question.


Regarding the usage of future perfect tense

Can we use "would" instead of "will" in the future perfect tense?   Please explain it and give some examples.


Short story about genius kids who disappear and run into trouble in another dimension?

I am looking for the name of an older sci-fi short story (read about 40 years ago) about genius kids who disappear (possibly into another dimension) and their father feels they ran into trouble there and is worried when they don't return. The story ends with him preparing to attempt follow them and rescue them wherever they might have gone. I read this as part of a Sci-Fi short story collection/anthology in the late 1960's but can't seem to find this story now.


Accessing DualShock 4 motion sensor in Windows (ideally Unity)

I'm trying to use a DualShock 4's  as a motion controller in Unity, under Windows 7.  So far I've tried:   DS4Windows (1.5.11): reads motion sensor data, but does not expose them to Unity as axes unless I map them to the left & right sticks. This is not enough since I lose use of the sticks, I can only fit 4 of the 6 channels of data, and the values coming through are clipped into a narrow range. Motioninjoy (0.7.1001): does not appear to detect the DS4 as a controller (latest docs refer only to DS3 and prior) GlovePIE (0.43): after following  for using the DualShock 3 with LibUSB-Win32 (a long shot), SixAxis properties are all blank.   In the past I've used external programs like GlovePIE to capture Wii remote motion sensor data and pass it to Unity via , so I'd be open to an approach like this if I can't get Unity to read the controller's sensors directly through its .  Anyone had luck with this?


Show more than 7 icons in combined-flair

I think many experts in stack exchange have knowledge in multiple discipline, and they would like to share their knowledge across multiple domains. It is not difficult for them to have knowledge in more than 7 domains. Please make the combined flair shows more than 7 icons to encourage expert supports other satellite sites.


How do I answer a question that no-one has asked... but is related to questions that are being asked?

Where can I post 'helpful ideas' that are not being asked directly, but are being asked indirectly?  I see some of the vigilant members being very vigilant with innocuous comments or requests for more information or generally helpful but not specific enough comments which get pinged for being 'off topic'.  As a classroom teacher of some 25 years I do notice when someone needs help but may not be articulate enough or skilled enough to know exactly what to ask or how to ask it. I find these sites unnecessarily exacting and frustrating and I'm sure others do, too.


Where can I view the user with the most questions?

Where can I view the user who has asked the most questions? Kind of like the leaderboard for most answers.


"children's literature" or "children literature"?

I am always confused where to use a "possessive apostrophe".  From what I found on the internet it seems to me that children's literature is correct. What about garden chair? In my eyes it's the same. Garden is describing what kind of chair it is. Children is also describing what kind of literature I have in my mind.  Could someone please explain?


How would I rewrite this code snippet into a form that doesn't produce java.lang.NullPointerException?   Intent bank_Amount_Intent = getIntent(); Bundle bundle = bank_Amount_Intent.getExtras(); double buyin_Money = bundle.getDouble("buyin", 0); total = buyin_Money; bank_Amount.setText(String.valueOf(currency_Format.format(buyin_Money)));


I have just started to work on an online business mode website. My dream is to make it live and bring revenue from the website. However, the project is in Incubator phase.   In this situation, can i register it as a Business, Open a Business Bank Account and start making the Purchases such as Servers, Software's etc.  Whether i have to pay Tax for my start up business ?  Location : New Jersey, US


I am downloading a java package and in order to update I need to refresh the package list. How do I do that?


I was looking through some English books and I found that in a dialogue one person ask another      "What are you?"   And answer was     "I'm policeman."   I first time saw this way to ask about occupation. Can this question be used in this sense?


php function to fetch data joining multiple tables with common field names and displaying output

I have a PHP function to fetch users data but the joined tables share common field names like id, name etc. I am using SELECT * here. How can I display the data. function userData(){   global $pdo;    $stmt = $pdo->prepare("SELECT * FROM users                          LEFT JOIN cities ON users.city = cities.id                          LEFT JOIN states ON cities.state_id = states.id                          LEFT JOIN countries ON states.country_id = countries.id                          WHERE users.id = :id");   $stmt-> bindValue(':id', sessionUser());   $stmt-> execute();   return $stmt->fetch(); } $user = userData();  I want something like: $user['cities.name'] $user['states.name']  But that doesn't work. What to do?


What should be the ideal file size and resolution for a Facebook cover photo using photoshop?

I have 2 tiff images but when I use the 'recommended' size of 851x315 px and then exported as jpeg high quality in Save for Web, the image becomes too pixelated. How should the files be exported ?  Thanks


Difference between single quotes and double quotes in Javascript

I know that in PHP, the only difference between double quotes and single quotes is the interpretation of variable inside a string and the treatment of escape characters.  In JavaScript, I often see double quotes used in strings. Is there a particular reason for that, or are single quotes exactly the same as double quotes?


Get Visitors location (IP) without use of 3rd party lib

I am creating a Javascript for my users and i am trying to make it as light weight as possible.  Because of this i am not using any outside liberay (not even JQuery) if possible i want to keep it that way.  So my question is: Is it possible to get a visitors IP address without the use of External calls or lib.   By external calls i am refering to:  Ajax, google Jsapi, and others  Note that i have been looking at the answer to this question  However this is not what i am looking as it goes outside of the current page to collect its information.


I have this mysql ddl Create Temporary Table #empData (     workDate varchar(100)   ,numOfCustomers int   ,numOfSales int   ,avgTimeToGreetCustomer varchar(100) );   Insert Into #empData Values ('07/01/20', 16, 16, '00:12') ,('07/02/20', 6, 6, '00:07') ,('07/03/20', 9, 4, '00:18')  Select * from #empData  DROP TABLE #empData  Now what that DDL I need to create a query that will display the data like this                  07/01/20 --- 07/02/20 --- 07/03/20  numCustomers     16                  6                     9  numSales             16                  6                     4  AvgGreet               00:12             00:07              00:18


Why does the root user need sudo permission?

[root@notebook ~]# grep root /etc/sudoers root    ALL=(ALL)   ALL   Question: Why does the root user need sudo permissions? I've seen it on different UNIX OSes. Can someone please explain this?


What should go in this Dispose() method?

This is a made up example to demonstrate my question better. I've been using this Entity class for a while now so that my entity classes can be make use of "using" blocks.  But to be honest I don't know what should go in the Dispose(bool disposing) method.   This code all works fine but like I said, I'm not sure what to use the method for.   Thanks   void Main() {     using (Person p = new Person())     {         p.First="Stan";         p.Last="Smith";         SayHello(p);     } }  public abstract class Entity : IDisposable {     public virtual void Dispose(bool disposing)     {         if (disposing)         {             // Add logic here for common dispose.          }     }     public void Dispose()     {         Dispose(true);         GC.SuppressFinalize(this);     } }  public class Person : Entity  {     public string First { get; set; }      public string Last { get; set; } }  public void SayHello(Person p) {     Console.WriteLine(@"Hello {0} {1}", p.First, p.Last); }


In my linear algebra class, my professor gave us this determinant for practice:  $$det\pmatrix     {1  & 2 & 3 & \dots & n \\ 2  & 3 & 4 & \dots & 1 \\ \vdots & \vdots & \vdots & \dots & \vdots \\ n   & 1 & 2 & \dots & n-1}$$  Where the $i$-th row or column is the set $$\{1,2,\dots,n\}$$ shifted $i-1$ times to the left.  He recommended we add rows $2$ through $n$ to row $1$. And then factor out the constant. This yields:  $$\frac{n(n+1)}{2}det\pmatrix     {1  & 1 & 1 & \dots & 1 \\ 2  & 3 & 4 & \dots & 1 \\ \vdots & \vdots & \vdots & \dots & \vdots \\ n   & 1 & 2 & \dots & n-1}$$  However, I cannot for the life of me find a useful way to simplify this further. I have tried adding the first column to each subsequent column, subtracting the first row from each subsequent row, but nothing seems to simplify the matrix. Perhaps, there is an inductive solution, but I haven't been able to find one simply from the $2\times2$ and $3\times3$ cases.   Any help would be appreciated.


How to turn off the filesystem check message which occures while booting

What I want to achieve:  I want to customize my complete boot of my Ubuntu 16.04 LTS installation  to show the same wallpaper which is actually on my desktop.  What I achieved till now:   added the wallpaper to the grub menu by adding the following lines to /etc/deault/grub and doing an update-grub afterwards.  export GRUB_MENU_PICTURE="/boot/grub/wallpaper.png" export GRUB_COLOR_NORMAL="white/black" export GRUB_COLOR_HIGHLIGHT="black/white"  added the wallpaper to the splash-screen and login screen   Problem:  When I boot up the picture is showing while in grub, but then I rarely see the splash screen, instead I get an almost blank screen showing the file-system check like following:  /dev/sda1: clean, 201776/60878736 files, 4991277/243040256 blocks   This prevents me from having the boot experience I want to achieve since after that the splash-screen just shortly popping up after that message.  Question:  How can I remove this message from showing up so I get a seamless booting with my beloved wallpaper, without switching the file-system check completely off (if possible)?


Filling not applicable fields with N/A rather than leaving them empty or Null

I have a database of few million records, many of the fields (call them Ec1 to EcN) have either Null or empty string in them. When I looked at them more closely, I found that for many records, several of this Ec fields are not applicable. So, there should not be any value there and hence nothing is wrong as instance issue.  However, I found several records that should have had value in these Ec fields which don't. So, here are some instance issues in data entry. So, my question is what would be the best approach to distinguish N/A fields from those user failed to enter and avoid further confusion?  One idea is to fill those Ec fields with N/A value and leave the rest with value. In this setting we won't have any NULL or '' field in the entire database. But, it might use more space (in MB scale).  What is cons and pros of using N/A?  Thanks


Why doesn’t Obi-Wan Kenobi use the Force more?

When I first watched "Attack of the Clones" and "Revenge of the Sith", I thought that there are a number of situations where Obi-Wan Kenobi makes life difficult for himself by failing to use the Force (we'll excuse him in "Phantom Menace", since he is still an apprentice). Two that come to mind right now are:   Fight against Jango Fett on Kamino. He just uses his lightsaber to deflect Fett's blaster shots, instead of using the Force to fling the blaster of Fett's hand, or straight up throwing him against a wall until he's knocked unconscious. Fight against Gen. Grievous after both have lost their lightsabers. Five minutes earlier, OWK had shown he has enough Force command to fling Grievous around a huge hangar like a doll, but now he insists on trying to punch an opponent made of metal with his bare hands.   Is there an in-universe reason for these decisions?


Is $F(x)=\int_{a}^xf(t)dt$ continuous everywhere if  $$f(x)=\begin{cases} e^x, & \text{if }x>0\\ C,  & \text{if C is constant not equal 1 and }x\le0 ?\\ \end{cases}$$  This confuse me since I know $f(x)$ is not continuous at $0$ but $F(x)$ is a sum of area which seems always continuous.


I have a US Refugee Travel Document and am currently studying in the UK for a semester; are there Schengen countries I can travel to without a visa?

I am a US permanent resident and I am currently studying abroad in England with a student short-term visa. I went to apply for a Schengen visa to VFS, but I got told that I would need to go back to the States and apply from them (as you can imagine, I cannot do this because it's costly to return). I did some research and found out that I can enter Belgium without a visa if I have a US Refugee Travel Document, which I do have.  I was wondering if there is a way I can travel to other Schengen countries without a visa. Thanks for your assistance--I appreciate it. I am open to any suggestions.


Product of 4 consecutive integers is a perfect square,what are the possible values of their sum?

I have read that product of 4 consecutive integers is less than 1from a perfect square, but this question is quite different.


Tried to re-install Ubuntu, Ubuntu and Windows 10 failing to load. Grub Rescue screen

I had Windows 10 (which I use primarily) on one drive of my computer and Ubuntu 16.04 on another drive.  I updated Ubuntu to 17.10, but it would crash shortly after starting up.  Now, what I did next is probably what caused the rest of my problems and I will never do it again, but I'm hoping someone can help me through it.  In Windows, I deleted all of the partitions on my Ubuntu drive and planned to reinstall.  The reinstall ended with the same freezing problem, but when I restarted I was greeted with:  error: no such device: (series of letters and numbers which I assume is the device) error: unknown filesystem Entering rescue mode... grub rescue>   I have tried looking around for solutions and it appears I have removed Grub.  I have a bootable USB that can boot to the "try Ubuntu without installing" without it crashing, but I can't follow the other answers I've found.  I would like to return to a state where I only have Windows so I can try to get Ubuntu to work at a later time.  Edit: I should clarify that I already attempted to use ls in the rescue mode screen.  All of the (hdX,msdosY) returned an error.  Also sudo-installing grub did not work either.  Edit2: Looking at  question, I found that all of my drives/partitions returned:  Filesystem is unknown.   Other than (hd1,msdos6) and (hd1,msdos1) which returned:  Filesystem is ext2   I am not sure which of these is Windows and which is Ubuntu.  Can I try the solution in the link for either or is there something else I should do first?  Edit3: I tried the code in Update 3 of the linked solution with both of the ext2 filesystems.  Both returned:  file '/boot/grub/i386-pc/normal.mod' not found.


When are NS records at the apex of a DNS domain queried?

Let's say, that I have a following example.com zone:  $TTL 120  @               IN      SOA     ns1     hostmaster (2018041509                                                     300                                                     150                                                     600                                                     60)                  IN      NS      ns1                 IN      NS      ns2   ns1             IN      A       192.168.0.159 ns2             IN      A       192.168.0.160  blah            IN      A       192.168.0.141   As seen above, ns1.example.com and ns2.example.com are two authoritative name-servers for that zone. When are they queried by other name-servers? As much as I tested, the only time when those two records were queried was when I asked for NS records from 192.168.0.159 with a DNS lookup utility, i.e dig @192.168.0.159 -t NS example.com.


Why is Heisenberg's uncertainty principle not an experimental error since it is the error created by photons striking on elementary particles?

Why is  not an experimental error since it is the error created by photons striking on elementary particles?


Split a column of strings with a single formula returning an array

I have a column of strings like this:  +---------+ | a bb    | | ccc d   | | ee ffff | +---------+   (exactly one space in each string), which I'd like to split by the space into two columns:   +-----+------+ | a   | bb   | | ccc | d    | | ee  | ffff | +-----+------+   This can be done by putting B1 =split(A1," ") and dragging down the column. But I'm looking for an arrayformula version of this.   Unsuccessful attempt: the formula  =arrayformula(split(A1:A3," ")) throws #VALUE error: "Function SPLIT parameter 1 value should be non-empty."


I have content in the following format:     Section ->  subsection -> subsubsection1 (lot of images here) -> subsubsection2 (some other content)   Now the problem is that while creating subsubsection2 I want to get it after all images of subsubsection1 (obvious thing) but I am getting the following sequence.     subsubsection1 -> subsubsection2 -> (images from subsubsection1)    Totally unpredictable.  P.S. I am using report as \documentclass .


I've tried to install wine in ubuntu 12.10 through terminal. I write this script to install wine: sudo apt-get install wine but its is showing this error:  The following packages have unmet dependencies:  wine : Depends: wine1.4 but it is not going to be installed E: Unable to correct problems, you have held broken packages. void@Void:~$ apt-get update E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied) E: Unable to lock directory /var/lib/apt/lists/ E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   please tell me some solution for this problem or tell me some alternative to install wine in my system.


"Bounty expired" email falsely states question is mine

I took out a bounty on another user's question:   After the bounty period expired, I received a reminder email containing the following message (emphasis mine):     Thanks for putting a bounty on your question. It looks like there are   still no answers yet. You should consider improving your question to   attract more answers. Could you:         add more text describing the problem?   add or change the tags?   update the title to more accurately reflect the issue?        Should a different message go out when the bounty is taken out by a third party?


How do I stop Apache2 from automatically starting on boot? I can't seem to find an option that disables the automatic start-up when I turn on the machine.


If a probability density function has a limit at infinity, is that limit always zero?

I just read a  which showed that probability density functions do not always have a limit of zero as a variable approaches infinity because they don't always have a limit at infinity.   Given that a probability density function has a limit at infinity, is that limit always zero? If so, is there a rigorous and formal proof that shows this property?    Update:  I just found another , which is a generalization of what I'm asking to the multivariate case. In a mathematical sense, this makes my question a duplicate.


Why are users allowed to vote to delete/undelete multiple times?

Someone  to try and get help reopening , and it got deleted as a result.  I voted to undelete it and flagged it as well since , and noticed it has been deleted a 2nd time, with the same user initiating the delete vote.    I can also vote to undelete a 2nd time.  Why are delete/undelete votes not limited to once per user per post the way close/reopen votes are?


Forms Data Manipulation In Google Sheets

I'm trying to develop a solution using Google Forms with Google Sheets that will collect Google Forms data and then automatically divide that one form submission's data into multiple rows of data in another sheet.   I've learned how to QUERY data (thanks to many of you on here) from one sheet to another, but I don't know how to automatically divide 1 row of data into multiple rows.  Here is a  in a visual manner (I will not delete it).   Basically, I have one Google form that collects the following.    Teacher Information (header data) Report Name (header data) Class Information (header data) Student#1 Data (record data: Multiple Form Fields) Student#2 Data (record data: Multiple Form Fields) Student#3 Data (record data: Multiple Form Fields) Student#4 Data (record data: Multiple Form Fields) Student#5 Data (record data: Multiple Form Fields)   I need an automated way to convert that single form response (1 row) into multiple rows (5 rows) each with the same 'header data' but with unique record date.   EXAMPLE Form Data  Header Data  -  Record Date (Student #1)  -  Record Date (Student #2)  -  Record Date (Student #3)  -  Record Date (Student #4)  -  Record Date (Student #5)   EXAMPLE Desired Manipulated Data      Header Data  -  Record Date (Student #1)     Header Data  -  Record Date (Student #2)     Header Data  -  Record Date (Student #3)     Header Data  -  Record Date (Student #4)     Header Data  -  Record Date (Student #5)


OpenGL GLX context is not using direct rendering, which may cause performance problems. (steam) AMD DRIVER

When I start steam in a terminal, I get the following error messages   charlie@SteamMPL:~$ steam rm: no se puede borrar «/home/charlie/.steam/steam»: Es un directorio rm: no se puede borrar «/home/charlie/.steam/bin»: Es un directorio Running Steam on ubuntu 14.04 64-bit STEAM_RUNTIME is enabled automatically [2014-08-03 11:50:13] Startup - updater built Jul 15 2014 18:14:26 Installing breakpad exception handler for appid(steam)/version(1405474565_client) libGL error: failed to load driver: swrast Looks like steam didn't shutdown cleanly, scheduling immediate update check Installing breakpad exception handler for appid(steam)/version(1405474565_client) [2014-08-03 11:50:14] Checking for update on startup [2014-08-03 11:50:14] Buscando actualizaciones disponibles... Installing breakpad exception handler for appid(steam)/version(1405474565_client) [2014-08-03 11:50:14] Download skipped: /client/steam_client_ubuntu12 version 1405474565, installed version 1405474565 [2014-08-03 11:50:14] Nothing to do [2014-08-03 11:50:14] Verificando instalación... [2014-08-03 11:50:14] Performing checksum verification of executable files [2014-08-03 11:50:15] Verification complete Gtk-Message: Failed to load module "overlay-scrollbar" Gtk-Message: Failed to load module "unity-gtk-module" Installing breakpad exception handler for appid(steam)/version(1405474565_client) Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number [0803/115015:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation libGL error: failed to load driver: swrast Error: OpenGL GLX context is not using direct rendering, which may cause performance problems.   Hardware information:   CPU: AMD Athlon x4 760k  GPU: AMD Radeon R7 250 1 GB GDDR5 (Driver: Catalyst 14.4) RAM: 8 GB DDR3 1600   What can I do to circumvent this issue?


Why was this question closed as a duplicate and not as unclear what you're asking?

I recently got  in the Close Votes queue (). Before I voted to close it, it had 2 votes to close it as a duplicate, 1 vote to close it as "off-topic" and 1 vote to close it as "unclear what you're asking". I voted to close it as "unclear what you're asking".  So at the end, there were two votes to close as a duplicate and two votes to close as "unclear what you're asking". According to , the last close vote will be used to determine the close reason in case of a tie. In this case, the last close vote was mine and the reason was "unclear what you're asking". But it was still closed as a duplicate.  What's going on here? Is this a bug? Is the answer I linked to wrong? Is there a special case for duplicates? Something else?