In many of the samples I have seen that the programmer use     this.DataContext =x;    vs simply using DataContext = x; in the page code behind . I always use      DataContext = x;   in my code behind page to set the datacontext. The same is with other variables on the page, many use      this.Variable   to refer to it instead of simply using Variable .  Whats the difference ?Or there is no difference and just programming practice .
I was curious about how other people use the this keyword. I tend to use it in constructors, but I may also use it throughout the class in other methods. Some examples:  In a constructor:  public Light(Vector v) {     this.dir = new Vector(v); }   Elsewhere  public void SomeMethod() {     Vector vec = new Vector();     double d = (vec * vec) - (this.radius * this.radius); }
I am running an HP pavilion dv6000 dual boot win7 and Ubuntu 12.04. (well, up until today).  After a reboot, the boot process drops to the BusyBox shell and I end up at the prompt:  BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4) built-in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs)   I've been researching others who have had this same problem, but haven't been able to find any of those solutions to work for me.  I tried the method described , and after the final command   mount -t ntfs-3g /dev/sda1 /root -o force   it does nothing and gives me another (initramfs) prompt.  I can boot to a live CD (USB) and get to a terminal, but it doesn't seem to do much good, as I can see the /dev/sda1 in the ls command, but it doesn't recognize it when I try to cd to it.  One more question: using the command fdisk -l how can I tell which mount point (sda1/sda2) is my windows partition and which one is Ubuntu? In almost every canon (that is, visual) source, Force users typically wave a hand to invoke the Force to move or manipulate objects, people and thoughts. I get out-of-universe this is a visual cue that the Force is being used, but in-universe is it strictly necessary?  (The only exception I can think of is when Luke is training on Dagobah and is balancing rocks while standing on one hand with Yoda on his foot. He doesn't appear to be waving his hand to move the rocks.)  Is this addressed anywhere in-universe, even in Legends? I have two partitions, one of them has a file system and the other is unallocated.  How to merge two partitions? What is the difference when you say "get off of something" and "get off something"? I have Opportunity-lookup field on Opportunity (self),  Scenario:   Opportunity A if select Opportunity B using lookup then Opportunity B's same lookup field automatically populate with Opportunity A.   I tried to achieve this using trigger - before insert/update but its failing as:  System.DmlException: Update failed. First exception on row 0 with id 006G000000DHaBlIAL; first error: SELF_REFERENCE_FROM_TRIGGER, Object (id = 006G000000DHaBl) is currently in trigger Oppy_before_INSUPD, therefore it cannot recursively update itself: [] People seem to believe that one's consciousness is a "different" consciousness than that of others, but the "same" consciousness as the one that has been in one's body in the past and the one that will be in one's body in the future. How likely is this to be true and why?   Also, I have almost no knowledge about neuroscience, so please refrain from using neuroscience jargon if feasible. Android - Call log/ history : Retrieve a dialed number when there was no network coverage I dialed a number when I had no network support but it does not appear in the call history of my android phone.  Is there any way to get it ? (system logs or whatever)  THanks a lot in advance, Jack Test if there are files matching a pattern in order to execute a script I am trying to write an if statement to test whether there are any files matching a certain pattern. If there is a text file in a directory it should run a given script.  My code currently:  if [ -f /*.txt ]; then ./script fi   Please give some ideas; I only want to run the script if there is a .txt in the directory. Let $X$ be simply connected and let $ \tau $ be a cycle in $X$. If $ \tau(0)=\tau(1)=x_0$ and $\gamma $ is a path between $x\in X$ and $x_0$, is $\tau$ homologous to $ \gamma\tau\gamma^{-1} $?  I think it is, but I'm not sure about the proof. Can I use the fact that $ \gamma\tau\gamma^{-1} $ is homologous to $ \gamma+\tau+\gamma^{-1} $, where $+$ is the operation between 1-chains (that is abelian)? I'm a beginner in Leaflet and I need help to deal with GeoJSON files.  I succeeded in creating a Leaflet basemap. I can add markers without troubles but I cannot manage to show a GeoJSON layer.  Here is the code I picked up from Leaflet Tutorials website  :  var geojsonFeature = {     "type": "Feature",     "properties": {         "name": "Coors Field",         "amenity": "Baseball Stadium",         "popupContent": "This is where the Rockies play!"     },     "geometry": {         "type": "Point",         "coordinates": [-104.99404, 39.75621]     } }; L.geoJSON(geojsonFeature).addTo(map);   Unfortunatly, the GeoJSON does not appear in my map.   Can you tell me where I missed something ?    Alright, you're fine Francisco, this part was OK. I changed the whole script and it works !  However, would you know how to load a GeoJSON from an external source ?  I tried this :   var geojsonLayer = new L.GeoJSON.AJAX("foo.geojson");        geojsonLayer.addTo(map);   from   but this definitely does not work.  Any ideas ?    I am not skilled enough to understand your advice.  Here is the whole code I am using to create my map :  &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;data&lt;/title&gt; &lt;meta charset="UTF-8"&gt; &lt;link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" /&gt; &lt;script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"&gt;&lt;/script&gt; &lt;script src="https://code.jquery.com/jquery-3.1.1.min.js"&gt;&lt;/script&gt;   &lt;script type="text/javascript" src="http://maps.stamen.com/js/tile.stamen.js?v1.3.0"&gt;&lt;/script&gt; &lt;script src="/js/leaflet-0.7.2/leaflet.ajax.min.js"&gt;&lt;/script&gt; &lt;script src="htdocs/webmap101/leaflet.ajax.min.js" type="text/javascript" &gt;&lt;/script&gt; &lt;style&gt;    #map {width: 960px; height:700px;} &lt;/style&gt; &lt;/head&gt; &lt;body&gt;   &lt;div id="map"&gt;&lt;/div&gt; &lt;script&gt;   // create map var lat = 44.933331; var lon = 4.9;  var map = L.map('map',{center: [lat,lon],zoom: 6});   // basemaps var base = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png',   {attribution: '© &lt;a href="http://osm.org/copyright"&gt;OpenStreetMap&lt;/a&gt; contributors'  }); var toner = new L.StamenTileLayer("toner"); var watercolor = new L.StamenTileLayer("watercolor"); var landscape = L.tileLayer('https://tile.thunderforest.com/landscape/{z}/{x}/{y}.png'); base.addTo(map);   // markers  var mark1=L.marker([lat,lon]) mark1.addTo(map)    // layers panel  L.control.layers({"base": base, "water": watercolor, "toner": toner , "landscape" : landscape}).addTo(map);    // geojson files var geojsonFeature = {     "type": "Feature",     "properties": {         "name": "Coors Field",         "amenity": "Baseball Stadium",         "popupContent": "This is where the Rockies play!"     },     "geometry": {         "type": "Point",         "coordinates": [-104.99404, 39.75621]     } }; L.geoJSON(geojsonFeature).addTo(map);    //ajax  var geojsonLayer = new L.GeoJSON.AJAX("foo.geojson");        geojsonLayer.addTo(map);  &lt;/script&gt; &lt;/body&gt; &lt;/html&gt;   I know it's a bit messy but this is actually my very first HTML script... I guess I did not include in a proper way the AJAX library.    Actually, I just want a solution to replace the lines where I create the GeoJSON by something that tells javascript to load the GeoJSON stored locally in my folder. This :  var geojsonFeature = {     "type": "Feature",     "properties": {         "name": "Coors Field",         "amenity": "Baseball Stadium",         "popupContent": "This is where the Rockies play!"     },     "geometry": {         "type": "Point",         "coordinates": [-104.99404, 39.75621]     } };   should be transformed into something like (I don't know if it exists) :  var geojsonFeature = [foo.geosjon]   where "foo.geosjson" is a file like :  { "type": "FeatureCollection", "name": "abies", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature" How to disable "time travel" entirely? Presentation $\langle x,y,z\mid xyx^{-1}y^{-2},yzy^{-1}z^{-2},zxz^{-1}x^{-2}\rangle$ of group equal to trivial group I'm looking for a screen capture tool working on MacOSX that will export the capture to animated gif. How to add a PPA on a server? The server version of Ubuntu does not have the  command. How can I add a  (PPA) to the server without this command? "Being" or "to be"? Which is better structured?     "She loves to be herself instead of showing off"    or     "She loves being herself instead of showing off"   or     "She loves being and not appearing" What is the command to remove all files but not directories? Let's say I have a directory tree like this:  FOLDER:     file1     file2     file3     Subfolder1:         file1         file2     Subfolder2:         file1         file2   If I used rm -r FOLDER/*, everything in FOLDER would be deleted including sub-directories. How can I delete all files in FOLDER and in its sub-directories without deleting actual directories? Comparing two Lists and returning the distinct values and the differences SPSite.Exists returning true for a just deleted site collection Short story - I have a process that creates some sitecollection, so to test it I keep deleting and recreating the same site over and over. The process includes a check with the istruction SPSite.Exits, done to check if the sitecollection is present or should be created.  Sometime, soon after I delete the site collection, SPSite.Exists will report it as still available. Is this a cache related problem? Does iTunes Home Sharing transfer in-app purchases? My wife recently got an iPhone and, being that I'm an iPhone user already, I set up iTunes Home Sharing (under my Apple ID) so that I could share some of my purchased apps with her.  While paid apps transferred to her phone without a problem, in-app purchases that I had made under my account didn't transfer over.  Is this the correct behavior? Our phones are set up under different Apple IDs, but I was still able to transfer purchased (paid upfront) apps to her – which is completely allowed under the Terms of Use – so I assumed the same would apply to in-app purchases as well. Updating a field programmatically, hook_node_update