Got a brand new Lenovo G 510 laptop with the following specs:- aled i5-4200m , 8 GB RAM ,1 TB HDD, 2 GB AMD-RADEON GRAPHICS CARD with Windows 8.1.  I installed Ubuntu 14.04, alloting  around 150 GB, inclusive of 8 gb for swap and  10 gb  for bios space( where bootloader location was set) , but I am not able to dual boot alongside Windows 8.1. I installed Ubuntu in Legacy Mode coz I couldn't boot from USB in UEFI MODE. Ubuntu is installed, but it wouldn't load. It goes directly to WIndows 8.1. I also updated grub, but wouldn't work. Please help me to sort this out.  Thanks in advance.
I have a Lenovo Ideapad with pre-installed Windows 8.1 In order to install Ubuntu I disabled secure boot and changed boot mode from UEFI to Legacy. This allowed me to install Ubuntu and the grub loader is also showing an option to either boot into Windows or Ubuntu, but whenever I try booting to Windows it says Cannot load.  This happens because the boot order is set to Legacy mode and Windows 8 will boot only with UEFI. I am unable to access my BIOS from where I can change the boot order. I press F1/F2 on booting but it doesn't load the BIOS, and directly goes to the grub loader screen.  How can I make my Windows 8 run along with Ubuntu?
'was' versus 'had been' When I asked the driver/ to come with me to the temple/ he had been reluctant./ No error.   I think instead of 'had been', there should be 'was'. Even the answer key points that the error is in the 'he had been reluctant' part. But I am not sure why exactly is 'had been' wrong.  If we replace the first part with 'when I had asked the driver', would that make 'had been' in the third part correct? Browsing the internet from the command line I believe that Asimov himself recommended reading them in chronological order, however I read them in the order that they were published and think that this is the best way to do it.  What is the correct order? Intuition for multiple temporal dimensions It’s easy, relatively speaking, to develop an intuition for higher spatial dimensions, usually by induction on familiar lower-dimensional spaces. But I’m having difficulty envisioning a universe with multiple dimensions of time. Even if such a thing may not be real or possible, it seems like a good intellectual exercise. Can anyone offer an illustrative example? How to show that the commutator subgroup is a normal subgroup Time Manager (QGIS) date format I've been through associated answers but cannot quite seem to find something which works!  I'm having trouble getting TimeManager to recognise a simple data field (this is in QGIS2 - but I've had this error in earlier versions). I have these fields formatted in what appears to be one of the acceptable formats:    ... here is a screenshot of the field properties:    The format appears to be recognised in QGIS as I've worked out days difference between two dates (the "Time on Market" field shown in the image).  However ... I always end up with:   The Twitter.shp file works fine as a test, so I don't think this is an issue with the install / phyton conflict.  Any thoughts welcome! I attempted to log out with the following actions:    This accomplished absolutely nothing since I remained logged in after clicking "log out" on the confirmation page. I then tried logging out of Stack Exchange from one of the network sites and repeated the steps above. The results were the same. I remained logged in no matter which combination of steps I performed.  In fact, the only way I could log out at all was to clear all of the cookies that were set. Why won't my taskbar display on my secondary monitor? On my secondary monitor (currently using Windows 10), my taskbar will barely show up. I've tried adjusting the resolution to lower ones (it recommends 1920x1080) and it doesn't do much. Is there a way to adjust the taskbar so I can see it?  That is about what I see. I could make it bigger via Snipping Tool and see my entire desktop on the picture but not normally. First, when I never had installed sl:  diogosaraiva@Ubuntu:~$ sl O programa 'sl' não está instalado actualmente. Pode instalá-lo escrevendo: sudo apt-get install sl   traslaction: "The program 'sl' is not currently installed. You can install it by typing:"  But when I'm tired of it and I remove it by typing sudo apt-get remove sl per example...  I get this when I type sl:  -bash: /usr/games/sl: Ficheiro ou directoria inexistente   translate: "-bash: /usr/games/sl: No such file or directory" instead of:    diogosaraiva@Ubuntu:~$ sl O programa 'sl' não está instalado actualmente. Pode instalá-lo escrevendo: sudo apt-get install sl   This appears with others packages too...  How I get rid of this: -bash: /usr/games/sl: Ficheiro ou directoria inexistente ?  I want see the original:  diogosaraiva@Ubuntu:~$ sl O programa 'sl' não está instalado actualmente. Pode instalá-lo escrevendo: sudo apt-get install sl   Output of type sl  sl está hasheado (/usr/games/sl) Splitting ethernet cable I have one ethernet cable that runs into my TV cabinet. It comes from a router in my closet. The router splits the main feed into the home into six runs that run through out the house. I now have several components in my TV cabinet that work best if they are connected to a hard line and not WiFi. Can I split the one cable in my TV cabinet into three or four lines to run to these other components, i.e.: playstation, Receiver,TV antenna box etc. If so, what items do I need to purchase? Thanks for your help. Query a region within a larger region with GeoDjango REST API I have a working Django REST API which can query all the counties in a country. //My model class kenya_counties(models.Model):   objectid = models.BigIntegerField()   id_field = models.BigIntegerField()   county_nam = models.CharField(max_length=80)   const_code = models.BigIntegerField()   constituen = models.CharField(max_length=80)   county_cod = models.BigIntegerField()   shape_leng = models.FloatField()   shape_area = models.FloatField()   geom = models.MultiPolygonField(srid=4326)    def __str__(self):       return self.county_nam  //My Serializer class CountiesSerializer(serializers.ModelSerializer):   class Meta:      model = kenya_counties      fields = ('objectid', 'id_field', 'county_nam', 'const_code', 'constituen', 'county_nam', 'county_cod', 'shape_leng', 'shape_area')  //My view @api_view(['GET', 'POST']) def counties(request):    if request.method == 'GET':        data = kenya_counties.objects.all()         serializer = CountiesSerializer(data, context={'request': request}, many=True)         return Response(serializer.data)     elif request.method == 'POST':        serializer = CountiesSerializer(data=request.data)        if serializer.is_valid():            serializer.save()            return Response(status=status.HTTP_201_CREATED)                 return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST)  //My url     re_path(r'^api/gis/counties/$', views.counties),  I get . How can I query just one county and display it on a react-leaflet map as shown below? &lt;MapContainer center={position} zoom={13} scrollWheelZoom={false}&gt;     &lt;TileLayer       attribution='&amp;copy; &lt;a href=&quot;http://osm.org/copyright&quot;&gt;OpenStreetMap&lt;/a&gt; contributors'       url=&quot;https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;     /&gt; &lt;/MapContainer&gt; How can I position my div at the bottom of its container? Given the following HTML:   &lt;div id="container"&gt;   &lt;!-- Other elements here --&gt;   &lt;div id="copyright"&gt;     Copyright Foo web designs   &lt;/div&gt; &lt;/div&gt;    I would like #copyright to stick to the bottom of #container. Can I achieve this without using absolute positioning? I am seeking suggestions on what may be going in with an iMac I am currently troubleshooting, as it’s displaying behaviour I do not recall seeing before.  Short story  This iMac refuses to boot up. It gets the Apple logo, gets past the progress bar, and then gets stuck on the grey screen for about two minutes before rebooting itself. However, what makes this odd is that I can:   Start the iMac in Target Disk Mode and use it to successfully boot up other Macs. In doing so everything seems to work perfectly fine. Successfully boot the iMac from an external drive and everything seems to work perfectly fine.   Long story  I was presented this iMac about 2 weeks ago as it refused to bootup. That is, it would commence booting up and cycle through the Apple logo and progress bar, but after the progress bar completed it would remain on the grey screen for a couple of minutes before rebooting itself and doing the same thing all over again.   To address this I undertook the following troubleshooting steps:   Resetting SMC - failed Resetting NVRAM - failed Starting up in Safe Mode - failed Starting up in OS X Recovery Mode – failed Starting up in OS X Recovery Mode via the internet – failed Undertook an extensive hardware test using Apple Hardware Test (AHT 3A213) - passed Started iMac in Target Disk Mode and retested hard drive using Scannerz on another iMac - passed Started iMac in Target Disk Mode and reformatted the hard drive and did a clean install of Mac OS X El Capitan 10.11.6 - successful Migrated data from a Time Machine backup - successful   After these steps I tested the iMac for four days with no issues in terms of booting up and using the computer. On the fifth day I needed to manually import seven Apple Mail mailboxes. I did these one by one and six of them imported within minutes.  The last mailbox was showing as being 270 GB in size. I knew this was inaccurate, but I decided to import the mailbox so I could do a mailbox rebuild to correct whatever corruption had taken place. This import took over 12hrs to do but seemed to work fine and Mail was displaying the emails.  I then tested the iMac on and off for another day to ensure it had no problems booting up. This was successful.  I then decided to initiate the mailbox rebuild, but as soon as I did the screen went black and stayed that way regardless of any keyboard shortcuts I tried using. I waited an hour, forced a reboot, and ever since the iMac has returned to its original behaviour of not booting up – it would get past the progress bar and stay on the grey screen for a while before rebooting itself and starting the whole vicious cycle again.  I have again retested the hard drive, processor, RAM and Video Ram by starting the iMac from an external hard drive and using a combination of the following packages:   Apple Hardware Test (AHT 3A213) Scannerz TechTool Pro Memtester (under the Homebrew subsystem)   And now I have a situation where I can boot the iMac from external hard drives, and also use it in target disk mode to boot up other Macs, but cannot use it to boot from its own internal drive.  At present I have isolated the internal hard drive and am running a scan to check for any malware.   In the meantime, I am wondering:   Has anyone come across a similar scenario and, if so, what was the cause? Assuming I find no malware, do I go through the reformat/clean install/migration process again, but this time not import the last mailbox and see whether the iMac works fine? Any other suggestions?   iMac specs are as follows:   iMac (27”, mid 2011) 3.1 GHz Intel Core i5 8 GB RAM AMD Radeon HD 6970M 1024 MB 1 TB 3.5” SATA HD Mac OS X El Capitan 10.11.6 I understand that for resistors in series we need to add R for each resistor to get the equivalent resistance, where R is resistance. I also understand the mathematical manipulations that show that for resistors in parallel we need to add the 1/R for each resistor to get the equivalent resistance. However I have a couple of questions that have to do with the physical interpretation of the mathematical manipulations involved.   First, I am trying to understand why in the case of parallel resistors we have to add 1/R's instead of adding R's as in the case of resistors in series i.e. could it be thought that the current in the wire is like a sort of water flow in the pipe that has two horizontal parallel pipes positioned one on top of the other and in between connected by a number of vertical pipes that have a tap each that could be adjusted to represent different resistances. Then at the top of each vertical pipe the water pressure P exists and at the bottom the pressure will be reduced by P*R.   For example, suppose we have three vertical pipes, so then the pressure at the bottom of each (after the tap) is P*R for the total of 3*P*R so why is the equivalent resistance not 3*R*P but 1/R = (1/R1 + 1/R2 + 1/R3) and how can I be able to visualize this relation? Validate that string contains only allowed characters in Ruby Best Azure Service for Large no of SQLServer Databases Why shouldn't we allow NULLs? I remember reading this one article about database design and I also remember it said you should have field properties of NOT NULL.  I don't remember why this was the case though.  All I can seem to think of is that, as an application developer, you wouldn't have to test for NULL and a possible nonexistent data value (for instance, an empty string for strings).  But what do you do in the case of dates, datetime, and time (SQL Server 2008)?  You'd have to use some historic or bottomed-out date.  Any ideas on this? It seems the .NET Regex.Replace method automatically replaces all matching occurrences.  I could provide a MatchEvaluator delegate that returns the matched string after the first replacement, rendering no change, but that sounds very inefficient to me.  What is the most efficient way to stop after the first replacement? Captured variable in a loop in C# I met an interesting issue about C#. I have code like below.  List&lt;Func&lt;int&gt;&gt; actions = new List&lt;Func&lt;int&gt;&gt;();  int variable = 0; while (variable &lt; 5) {     actions.Add(() =&gt; variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable? How can I reinstall GRUB to the EFI partition? I want to reinstall GRUB 2 and I found these instructions: . In my case, the boot loader is installed in the EFI partition. If I use the commands provided in this guide, will GRUB be reinstalled to the EFI partition automatically, or will it be installed into the root partition where Ubuntu is installed ? Obviously, I do not want this to happen.