Tiling from complex, multi-step GDAL VRT?

I've got 1002 ~100 MB (5000'x5000') .tif files in a state plane (transverse merc) projection comprising a county-wide, 1-ft aerial dataset. After two days, gdal_merge.py is only at 93 of 1002. And when it's done, I'll still need to apply a mask/cutline, then reproject to EPSG:3857 before I can even start tiling. So I'm trying to find a quicker approach..  I'm relatively familiar with the VRT format and this idea of , but after several rounds of testing, I'm not convinced the workflow I'm pursing is more efficient.  Here's the workflow I'm asking about (skipping the mask/cutline for now):   gdalbuildvrt --> merge the 1002 .tif files -------------> outputs mosaic VRT gdalwarp -----> transform to EPSG:3857 ------------> outputs web merc VRT ..start tiling against the 2nd-generation VRT..   The tiling script I wrote in Python (which may be a weak-link in its own respects) is definitely capable of reading the VRT. Small-area windows render in a few seconds, still longer than I'd like. But large area windows take quite a long time. As I'm writing on this, I'm waiting on a sample z=12 tile to render.. I bet it's already eaten 20+ minutes.  Ultimately, my goal is to create 256x256 tiles in the OSM scheme, like you'd get out of Mapnik, but using a Python/GDAL-only approach. ..I've deemed this necessary because I can't get Mapnik to properly consume my 2nd-generation VRT.  My python script is creating the OSM grid properly---I sniped some code from a Mapnik utility (generate_tiles.;y), and I'm getting proper cell coordinates for my raster. But I question whether or not my ReadRaster() / WriteRaster() implementation is efficient.. I'll paste in that part; values are hard-coded for my sample z=12 tile..  def getTileData():     gdal.AllRegister()     dataset = gdal.Open('C:/xGIS/Aerial/3857/2009_1ft_od_3857.vrt', GA_ReadOnly)     bands = dataset.RasterCount     band_type = dataset.GetRasterBand(1).DataType      memDriver = gdal.GetDriverByName('MEM')     memDS = memDriver.Create("TEMP", 256, 256, bands, band_type, [])     memDS.SetGeoTransform( [94490, (256.0/(121069-94490)), 0, 96198, 0, 256.0/(96198-94490)] )      for b in range(1, bands+1):         s_band = dataset.GetRasterBand( b )         t_band = memDS.GetRasterBand( b )         data = s_band.ReadRaster( 94490, 69618, 121069, 96198, 256, 256, band_type )         t_band.WriteRaster( 0, 0, 256, 256, data )      createDriver = gdal.GetDriverByName('PNG')     createDS = createDriver.CreateCopy("C:/xGIS/RichlandCounty/Aerial/SCRich09_1ft/3857/tiles/snap_2.png", memDS)     createDS = None     memDS = None   Does anyone have any insights or reactions that might help me get results quicker?


Lost submit functionalities do JS after jquery.load

I'm trying to using submit post in ajax ( properly jQuery .load() function ) but I have a problem because after the page .load (see below) submit  button >>to .click(function() doesn't work. Does anyone have any idea how to solve that? Here is my entire code: <script src="{$sitepath}/scripts/jquery.min.js"></script>      <div id="newswhite">          <form name="cform0" id="cform0" method="post" enctype="multipart/form-data">     <textarea name="text1" class="form-control"></textarea>     <input type="submit" id="submit_comment" class="btn" name="submit" value="comment">     </form>          </div>               <script>     $("#submit_comment").click(function() {         var url = "some.php";          $.ajax({                type: "POST",                url: url,                data: $("#cform0").serialize(),                 success: function(data)                {                     $("#newswhite").load(" #newswhite >*");             //$("#newswhite").html(data);               }              });         return false;     });     </script>  It all works just once. After .load I have to refresh the page by browser... Any idea?


I am running ubuntu server 18 in hyper-v, I need to extend HDD. When i use fdisk -l I see that /dev/sda2/ have 1TB:    Disk /dev/sda: 1 TiB, 1105954078720 bytes, 2160066560 sectors   Units: sectors of 1 * 512 = 512 bytes   Sector size (logical/physical): 512 bytes / 4096 bytes   I/O size (minimum/optimal): 4096 bytes / 4096 bytes   Disklabel type: gpt   Disk identifier: 8F74C1DF-DF9B-4FD7-AD20-87F1D8A8F989    Device     Start        End    Sectors Size Type  /dev/sda1   2048       4095       2048   1M BIOS boot  /dev/sda2   4096 2160066526 2160062431   1T Linux filesystem   when i use df -h i see that /dev/sda2 have only 125G:   Filesystem      Size  Used Avail Use% Mounted on   udev            419M     0  419M   0% /dev  tmpfs            90M  972K   89M   2% /run  /dev/sda2       125G   11G  108G   9% /  tmpfs           449M     0  449M   0% /dev/shm  tmpfs           5.0M     0  5.0M   0% /run/lock  tmpfs           449M     0  449M   0% /sys/fs/cgroup  /dev/loop0       91M   91M     0 100% /snap/core/6350  /dev/loop1       89M   89M     0 100% /snap/core/6964 /dev/loop2       98M   98M     0 100% /snap/docker/384 /dev/loop3       98M   98M     0 100% /snap/docker/372 /dev/loop4       98M   98M     0 100% /snap/docker/381 /dev/loop5       90M   90M     0 100% /snap/core/6818 tmpfs            90M     0   90M   0% /run/user/1000   What should I do, when I want to use full disk capacity? Thank you.


This issue came up when I got different records counts for what I thought were identical queries one using a not in where constraint and the other a left join. The table in the not in constraint had one null value (bad data) which caused that query to return a count of 0 records. I sort of understand why but I could use some help fully grasping the concept.  To state it simply, why does query A return a result but B doesn't?  A: select 'true' where 3 in (1, 2, 3, null) B: select 'true' where 3 not in (1, 2, null)   This was on SQL Server 2005. I also found that calling set ansi_nulls off causes B to return a result.


I applied to a professional program that I had been striving for in my undergrad, at a top school, but I've since felt overwhelmed with how to pay for it and incurring so much debt. I think I should wait a year so get into a better place financially. I've become so anxious, thinking I've ruined my opportunity with this school if I don't go.  I am considering withdrawing my application, but I'm very worried about how it might hurt me in the future when I reapply. Or I may wait but need to decline if I am accepted, and reapply the following year. I feel like both will hurt my chances in the future. How will admissions consider me the second time?


How can I determine the version of the running kernel?


How do I make a list with checkboxes in Java Swing?

What would be the best way to have a list of items with a checkbox each in Java Swing?  I.e. a JList with items that have some text and a checkbox each?


Cannot cURL to NodeJS, but can access it from browser

I can access my test Node site (http://18.220.168.1:8888) from a browser just fine.  However, when I attempt to cURL using PHP's cURL, I get:   Array (     [curl_error] => Failed to connect to 18.220.168.1 port 8888: Connection refused     [error_number] => 7 )   My cURL setup is:  $ch = curl_init($url);  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method); curl_setopt($ch, CURLOPT_POSTFIELDS, $data);                                                                   curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);  // Temporary for testing self-signed sites curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);  curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                               'Content-Type: '.$data_type,                                                                                'Content-Length: ' . strlen($data),     'Public-Key: ' . $pub_key,     'Private-Key: ' . $priv_key,     'Authorization: Bearer ' . $pub_key,)                                                                        );  $result = curl_exec($ch);   I am hosting on Amazon's EC2, and the ports are open (obviously since I can access it via my browser).  Any idea what I'm doing wrong here by chance?  Thanks  EDIT  I just tested with resteasy's tester, and it connected just fine.  So it has to be something either in the cURL request, or between the browsers.


Webcam mounted on /dev/video0 and usable by VLC but nothing else detects it

I have a rather old Logitech webcam which I have been testing on Ubuntu 18.04. The camera gets mounted automatically on /dev/video0 and I can use it via VLC ("open capture device" then specifying /dev/video0 as device). However, no other program is able to detect or use it. I have tried web browsers (Chromium), Skype and lightweight apps like Cheese and Streamer. Any ideas how to make it work generally?    Results of lsmod | grep video:  videodev              184320  3 gspca_main,v4l2_common,gspca_spca561 media                  40960  1 videodev video                  45056  0


I want to find the integral of $\sec^3(x)$, but I don't know what to do.  I tried a double integration by parts to try and solve it in terms of itself, but I ended up getting 0=0.  Could I just have a hint, please?


Not $\sigma$-compact set without axiom of choice

Today in measure theory, we introduced the concept of a $\sigma$-compact set, which is a set which can be expressed as the countable union of compact sets.   Since the set of $\sigma$-compact sets seemed to be very large (I couldn't think of a not $\sigma$-compact set), I asked for a set which is not $\sigma$-compact, but our instructor couldn't come up with a set, which he didn't have to explicitly construct with the axiom of choice, for which we didn't have time.     My question is if there is such an set which can be constructed without the axiom of choice.


"Decimate": has it been used in the "classic" sense in modern writing?

In , I learned that "to decimate" meant to reduce by 10% (hope I got that right).  And it is lamented that no-one uses it in this sense anymore.  Now, given that I never until today knew that it once had this meaning: was it ever even used this way in modern times?  When was it last used in a mainstream publication in this sense?


I was reading the steps over at  but I don't see the 2nd gen Nexus 7 ever mentioned.  It's also not in the FAQ, and before I follow through with it I just wanted to make sure this is supported on the 2nd gen Nexus as well.  I see no reason it shouldn't work, just wanted to make sure before I give it a go.


Is it possible to delete or at least hide your own data explorer query when you know you've only been testing something and don't want it to show?


Why does the adjective "few" change the plurality of the noun it modifies?

"If you can spare me a few minutes" is, to the best of my knowledge, proper English. Yet the article "a" does not match the noun "minutes". Unless few here is a noun. Then it's fine. Except then it raises a questions regarding both the dictionary definition of "a few" as an adjective meaning some, and the rules for how you string together a set of nouns, like "computer program". If "few" is a noun, then it has changed the plurality of "minutes". If that's the rule, then why isn't it "a computer programs", instead of "the computer programs"? Even though I'm a native English speaker, (my grandfather was British and I learned from his old texts to before I started elementary school in America), so if there are differences here, I'd love to know both perspectives. I've become quite an advocate for "going to hospital" instead of "the hospital", because when I was a school child I never dreamed of going "to the school". I assume this is because a school teacher would have boxed the ears of any child that got that one wrong, but that hospitals were less common and countable nouns is a difficult concept to teach. (I still struggle with that.)


Proving the Lorentz invariance of the Lorentz invariant phase space element

I have been looking around for a satisfactory answer to prove that  $$\frac{d^3\vec{p}}{2E_{\vec{p}}}$$  where $E_{\vec{p}}=+\sqrt{(|\vec{p}|c)^2+(mc^2)^2}$, is Lorentz invariant. The standard answer seems to be that the above measure is equal to  $$d^4p \, \delta (p^2-m^2)\theta(p_0)$$  where $p^2=p_0^2-|\vec{p}|^2$, and $\theta(x)$ is the step function. I understand these two are equivalent, but I don't understand why the second has to be Lorentz invariant, in particular why the Dirac delta has to be Lorentz invariant. I have found a  (section 2.1) that proves that $\delta^{(4)}(p-p')$ is Lorentz invariant, but I can't find a way to extend their method successfully here. In fact, all I can seem to get tells me the above isn't Lorentz invariant, and that in fact it should transform to   $$\frac{d^3\vec{p}'}{2\gamma E_{\vec{p}'}}$$  which makes sense from $d^4p$ being Lorentz invaraint and $dp_0$ transforming proportional to $\gamma$, but it isn't what everyone else says. What's the problem here?    An alternative way to "derive" the factor of $1/\gamma$:  $$\delta (p^2-m^2)\theta(p_0)=\frac{1}{E_{\vec p}}\delta(p_0-E_{\vec{p}})$$  Now, as $dp_0$ transforms to $\gamma dp_0$, the $\delta(p_0-E_{\vec{p}})$ should transform to $\gamma^{-1}\delta(p_0-E_{\vec{p}})$, as can be shown with an analogous argument to the one shown in the . The $E_{\vec{p}}$ also transforms to $\gamma(E_{\vec{p}}-v p_x)$ for an $x$-boost, but this doesn't seem to solve it.


What happens when I transfer a Pokémon to the Professor?

When I catch a Pokémon or when I select it in the menu I can select an option "TRANSFER"?  What happens when I transfer it to the Professor?


I just wrote a question before this one and had trouble uploading a screenshot. The drop your image dialog throws no warning or error, but after uploading it won't show.  I also noticed that other questions won't load their images. Could this be some issue with imgur or similar?  Example:     When opening the image in a separate tab, Chrome gives a "too many redirects" error:    This might be linked to


how to close a jquery popup when i click evrywhere except the popup it self

can anyone help me so slove my problem it's i made this jquery popup we have the popup "a" ,"b" ,"c" and "d" when i open a i want when i click everywhere i close the a but in my case when i click in "b" or "c"or "d" it open them i want when the popup it opened when i click evrywhere  except the poupup it close it please help me and thank you here is my code                   $('.open').click(function() {                      var box = $('#' + $(this).attr('data-tab-id'));                      var visibleBoxes = $('.popup:visible')                     if (visibleBoxes.length > 0) {                         $('.popup:visible').fadeIn(400);                     }                      box.fadeIn(400);                   });                   $('.close').click(function() {                     $(".popup").fadeOut(400);                  });                    $(document).click(function(event) {                     var $target = $(event.target);                     if (!$target.closest('.popup,.open').length &&                         $('.popup').is(":visible")) {                         $(".popup").fadeOut(400);                      }                 });    .popup {             margin-top: 40px !important;             margin-left: 50px !important;             width: 65%;             display: none;             overflow: hidden;             background-color: red;             border-radius: 5px;             z-index: 99999;          }           aaaaaaaaaaaa     bbbbbbbbbbbb     cccccccccccc     dddddddddddd
         x
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

cccccccccccccccccccccccccccccccccccccc

dddddddddddddddddddddddddddddddddddddd


Have icons in dock float in the center instead of left

Is it possible to have the icons in the dock be moved to the center of the screen instead of the left side? I have a 21:9 screen so its rather annoying to tilt your head all the time.  Please note that I'm talking about the position of the icons no the docks position. Assume that the dock is located at the bottom but it doesn't really matter.  E: This solves that:


How to query readonly replica in Always On cluster

We have an Always On "cluster" that consists of 2 servers (there will be more), so one is PRIMARY and other(s) is(are) SECONDARY. The idea was to dedicate SECONDARY as a readonly replica, so it would be a somewhat search-server.  I do know how to set ConnectionString in the C# so it will use SECONDARY replica - just add ApplicationIntent=ReadOnly.  But I don't understand how to address the SECONDARY from stored procedure if I'm using distributed query. Is there a way to set some parameters to the query (like WITH statements or something), so query would use only replica and not the PRIMARY node?  The thing is, obviously from the start server1 is PRIMARY and server2 is SECONDARY, but when server1 fails then server2 is PRIMARY and server1 will be SECONDARY after it get fixed. So I cannot just use the static server2's name.  So far I've managed to get current replica's server name as a variable and use it in EXEC:  -- find first available replica DECLARE @replicaServer nvarchar(50)  SELECT TOP 1     @replicaServer = RCS.replica_server_name FROM     sys.availability_groups_cluster AS AGC     INNER JOIN sys.dm_hadr_availability_replica_cluster_states AS RCS           ON RCS.group_id = AGC.group_id     INNER JOIN sys.dm_hadr_availability_replica_states AS ARS           ON ARS.replica_id = RCS.replica_id     INNER JOIN sys.availability_group_listeners AS AGL           ON AGL.group_id = ARS.group_id WHERE ARS.role_desc = 'SECONDARY'       AND connected_state = 1  -- and query it DECLARE @cmd nvarchar(MAX) = 'SELECT * FROM [' + @replicaServer + '].[somebase].[someschema].[sometable]' EXEC (@cmd)   But that's a shame, I guess.


In the movie, we can see that Apocalypse is wearing some kind of suit      that, alongside his own self, his four principal followers protect with their lives even as the ancient Egyptians betrayed them and their doom is nigh. Besides protecting his life, they also made sure that the entire suit is transferred to his new body.   It seems this suit is regarded with equal importance to his life. What is this suit, and why is it so important? What is it made of, such that Magneto - for all the metal on Earth and the adamantium in Wolverine - can't control Apocalypse's suit?


This is my first question, hope I do it right!  I am working on creating a process that will sync server objects between our AG nodes. We are using SQL Server 2016 with 4 nodes. Two nodes in one data center and two nodes in a different data center.  I am currently using PowerShell to copy my logins, jobs, SSIS catalog, operators, and linked servers. I want to automate deploying changes made to these objects across all four nodes. Is there a tool made for this already?


How to delete entry in Auto Complete in Microsoft Edge

How do I delete an unwanted entry in AutoComplete in Microsoft Edge?  I have tried everything including highlighting with the down arrows and nothing works.


I have a table of 2 columns, I want the writing in the left column to be centered and the right column to be aligned to the left.   Using the commands below, the left column is exactly how I want it, but the writing in the left column is aligned to the right but I would like to align it to the left. How can I do this?   \begin{table}[ht] \begin{tabular}{cc}  \end{tabular} \end{table}


Trying to update Sharepoint 2013 Visual Studio Workflow with feature upgarde process. Feature upgarde goes well, but no changes are apllied. I can still deploy WF from Vusual Studio 2013 and it redeploys new version without error. But I need to update WF by feature so all running workflows keep going. Any ideas?


What is a plain English explanation of "Big O" notation?

I'd prefer as little formal definition as possible and simple mathematics.


How is bias added in a convolutional layer

In a typical neural network , bias is usally added like this   v = activation ( w1*x1+ ... + Wb*b)   However, I am not really sure how it is done in convolutional layer. My one thought is that it is added with each convoltional operation for a neuron. Is that correct?


Why is SQL Server 2012 Recommending This Index Be Created?

I have the following query:  Select SubId, Max(ReadTimeLocal) From dbo.PanelWorkflow  Where ProcessNumber IN (802,1190,1605,1620,1645,1660,1695,1790,1990,2690,2795,2990,3090,3290,3590,3790,4190,4390,4590,5000,5200,5400) Group By SubId   I have the following index on the dbo.PanelWorkflow table:  CREATE NONCLUSTERED INDEX [IX_PanelWorkflow_ProcessNumber_Lineage] ON [dbo].[PanelWorkflow] (     [ProcessNumber] ASC,     [Lineage] ASC ) INCLUDE ( [SubId],[ReadTimeLocal]) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, ONLINE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)   The query plan from SSMS looks as follows:    SSMS is recommending  I create the following index (with an impact of 54.3)  CREATE NONCLUSTERED INDEX [<Name of Missing Index, sysname,>] ON [dbo].[PanelWorkflow] ([ProcessNumber]) INCLUDE ([SubId],[ReadTimeLocal])   Does anyone know why it's recommending I create an index that essentially exists already, and is not using the one that does exist?  There are 830 million rows in the table. Using SQL Server 2012.


What REALLY happens when you don't free after malloc?

This has been something that has bothered me for ages now.  We are all taught in school (at least, I was) that you MUST free every pointer that is allocated.  I'm a bit curious, though, about the real cost of not freeing memory.  In some obvious cases, like when malloc is called inside a loop or part of a thread execution, it's very important to free so there are no memory leaks.  But consider the following two examples:  First, if I have code that's something like this:  int main() {     char *a = malloc(1024);     /* Do some arbitrary stuff with 'a' (no alloc functions) */     return 0; }   What's the real result here?  My thinking is that the process dies and then the heap space is gone anyway so there's no harm in missing the call to free (however, I do recognize the importance of having it anyway for closure, maintainability, and good practice).  Am I right in this thinking?  Second, let's say I have a program that acts a bit like a shell.  Users can declare variables like aaa = 123 and those are stored in some dynamic data structure for later use.  Clearly, it seems obvious that you'd use some solution that will calls some *alloc function (hashmap, linked list, something like that).  For this kind of program, it doesn't make sense to ever free after calling malloc because these variables must be present at all times during the program's execution and there's no good way (that I can see) to implement this with statically allocated space.  Is it bad design to have a bunch of memory that's allocated but only freed as part of the process ending?  If so, what's the alternative?


How to Solve this Integral $\int_{\mid x\mid =r} xdz$?

This is NOT a duplicate question.  I need some help computing the integral  $\int_{\mid z\mid =r} xdz$  But I really want to use the fact that   $x=\frac{1}{2}(z + \frac {r^{2}}{{z}})$ when the circle is oriented counter-clockwise in the integral.  Should I just plug that into the integral? I have seen the similar question to this and understand how to use parameters to get that the integral equals $r^{2}i\frac{\pi}{2}$.  However, I am interested in using the fact mentioned above, which requires a different method than the solutions already discussed on this site, so it is not a duplicate. How would I go about this?


DOs and DON'Ts about asking PhD info to a Professor via email?

I have serious doubts about how to ask PhD info to a professor, via email. Is there a possibility that a professor don't want to answer me? What I have to avoid to increase the possibility to obtain a response from them? When I see a site announcing a PhD open positions and then the form to send an email, only to ask more info, I shortly describe myself, my skills, my MSc and then I ask info. Maybe I am wrong? Any suggestions?


I am from Philadelphia and I grew up saying, I forget when trying to recall something unsuccessfully. When I came in contact with people from other states, mostly in the mid-Atlantic region, I heard people say under the same circumstances, I forgot in the past tense.  The latter implies that the forgetting happened at a certain point in time in the past, while the former seems to imply that as long as you don't remember, you are  continuously forgetting.    Which is the more widely used, and does it break down along regional lines?


I installed Ubuntu 18.04 LTS on my laptop, played around it for a bit, and then completely wiped the HDD. By completely, I mean that I literally wiped every partition merged and then formatted it again and then installed Windows 10.  So my situation is: After all of this, I ran windows and all, but one day I went to the Windows Boot Manager and I saw the generic names like ATA HDD, ATAPI CD...And the last one was Ubuntu.   I tried clicking it, but it booted to Windows after that, and I wanted to install Windows 7. Then I realized that I couldn't boot from USB. I don't know if this was related, but I am just telling, for the sake of context.   So my question now is: How can I remove the Ubuntu entry from the Windows Boot Manager?


Trying to install Kali menu using katoolin but its showing you have unmet dependenies.How do I fix it?


Why are my messages being rejected due to SPF record issues?

I'm looking for a little guidance as to how to setup a server I am working on, so that emails get through to people without being sent back by an SPF filter.  I send out email and this is the response that I get from the filter (personal details redacted):     mxfilter1.tildaone.com.au rejected your message to the following email >addresses:   reception@ausmartinternational.com (reception@ausmartinternational.com)   mxfilter1.tildaone.com.au gave this error:   : Recipient address rejected: Please see ?>s=helo;id=Server.domain.com;ip=WAN-IP;r=mxfilter1    Your message wasn't delivered due to a permission or security issue. It may >have been rejected by a moderator, the address may only accept email from >certain senders, or another restriction may be preventing delivery.      Diagnostic information for administrators:   Generating server: Server.domain.com   reception@ausmartinternational.com   mxfilter1.tildaone.com.au   Remote Server returned '550 5.7.1 : Recipient address rejected: Please see '   Original message headers:   Received: from Server.domain.com (192.168.1.3) by Server.domain.com    (192.168.1.3) with Microsoft SMTP Server (TLS) id 15.0.847.32; Tue, 23 Feb    2016 09:52:34 +1100   Received: from Server.domain.com ([fe80::ede4:e25c:b045:b2c6]) by    Server.domain.com ([fe80::ede4:e25c:b045:b2c6%19]) with mapi id    15.00.0847.040; Tue, 23 Feb 2016 09:52:34 +1100   From: "Jesse R. Hayward"    To: "reception@ausmartinternational.com"    Subject: New Email Configuration   Thread-Topic: New Email Configuration   Thread-Index: AQHRbcO3uuavXk6Dh0SVir3+KXSDlw==   Date: Mon, 22 Feb 2016 22:52:34 +0000   Message-ID:    Accept-Language: en-US, en-AU   Content-Language: en-US   X-MS-Has-Attach:   X-MS-TNEF-Correlator:   x-originating-ip: [192.168.1.3]   Content-Type: multipart/alternative;           boundary="_000_a3907e6d81bf409883aba04707b5b253ServerProGeneralcom_"   MIME-Version: 1.0   On the DNS Zone records I have an SPF record setup to tell the receiving computer that the IP address has the right to forward on email for the domain in question. However, from the error message, it appears that it's saying the internal computer hasn't authorized the outside domain to forward on its behalf.  This doesn't make much sense to me.  The SPF record that I have in place at the moment looks like:     "v=spf1 mx a:server.domain.com ip4:WAN-IP -all"   Any general pointers as to what to look in or specific advise will be greatly appreciated as I am just lost as to what's wrong.


How do wizards prevent Accio-fueled robberies?

It looks like from canon examples, Accio works on:   Summoning things that aren't yours (Hermione summoning books about Horcruxes that Dumbledore took out of the library in DH)     "Well... it was easy," said Hermione in a small voice. "I just did a Summoning Charm. You know – Accio. And – they zoomed out of Dumbledore's study window right into the girls' dormitory."  Summoning things you aren't sure of their exact location (Molly summoning twins' toffees in GoF):     'Accio! Accio! Accio!' she shouted, and toffees zoomed from all sorts of unlikely places, including the lining of George's jacket and the turn-ups of Fred's jeans.  Summoning things that are "nailed down" (Twins summoning their brooms before escaping Hogwarts in OotP)     And before Umbridge could say a word, they raised their wands and said together:   'Accio brooms!'   Harry heard a loud crash somewhere in the distance. Looking to his left, he ducked just in time. Fred and George's broomsticks, one still trailing the heavy chain and iron peg with which Umbridge had fastened them to the wall, were hurtling along the corridor towards their owners; they turned left, streaked down the stairs and stopped sharply in front of the twins, the chain clattering loudly on the flagged stone floor.  Summining things from a fairly big distance (Harry summoning his Broom to the TriWizard tournament's first task from the castle).   As such, is there any canon explanation for why people like Mundungus (or Tom Riddle) who have very little respect for the law or private property don't simply Accio whatevertheheck they want to steal out of people's homes?


How to set HttpResponse timeout for Android in Java

I have created the following function for checking the connection status:  private void checkConnectionStatus() {     HttpClient httpClient = new DefaultHttpClient();      try {       String url = "http://xxx.xxx.xxx.xxx:8000/GaitLink/"                    + strSessionString + "/ConnectionStatus";       Log.d("phobos", "performing get " + url);       HttpGet method = new HttpGet(new URI(url));       HttpResponse response = httpClient.execute(method);        if (response != null) {         String result = getResponse(response.getEntity());         ...   When I shut down the server for testing the execution waits a long time at line  HttpResponse response = httpClient.execute(method);   Does anyone know how to set the timeout in order to avoid waiting too long?  Thanks!


I have a 500gb external hdd that I'm using to boot Ubuntu. I don't need 500gb it was just so I didn't mess up my internal drive running OS x. I just bought a 64gb usb that I would like to make bootable with all the stuff from my external drive(only using lk 18 gb). Everything website I've found says I need 500gb(same size) or bigger to clone the drive and settings. Is there any way to make the 64gb drive bootable by cloning from my external drive?


Get total duration of video files in a directory in hours

Based from:  But I need my output to be in hours. Been trying for some time to make this one line output to hours: find . -maxdepth 1 -exec ffprobe -v quiet -of csv=p=0 -show_entries format=duration {} \; | paste -sd+ -| bc  Any help? Hope it's not a duplicate because all the answer there only output in seconds which is bad and I don't have hope anyone will add to that question anymore


I am an engineer by qualification. But want to do a PhD in marketing. Is it possible? Or am I day dreaming?

I wish to get into a PhD program at a US/Canada university in marketing. I have five years experience in international marketing. By qualification, I am an engineer. I graduated from LSU with a masters degree in Electrical Engineering.  I have a little research experience of about 8 months, but that was in electrical engineering.  With this background, will it be possible for me to get into a PhD program in marketing at all? I know what I want to research on, and I am sure I can prepare a decent SOP. But will that be enough? I am targeting fall 2017.


Is there an idiots guide available that can take me through installing Ubuntu onto my windows 8 laptop right from the start i.e. setting up my flash drive, FAT32, etc please?


I'm looking for a string str in a file and need the line after the occurrence of str. Right now, I am opening a file, reading all lines, saving them to a list and then looking up for that string in a list. Here's my code:  with open(file,'r') as file1:     data = file1.readlines()  for num, line in enumerate(data,1):     if 'str' in line:         print line, data[num+1]    I know that str will be somewhere in the last 10 lines in file. So, I want to read and save the last 10 lines as a list rather than the whole file in the data variable.   I don't want to do $tail file.dat > file1.dat and go from there.  I want something like reversed(readlines()) and save 10 lines to a list. How do I do it?


I can't go back the Panel with the original options to create an object

I'm not sure how to explain my question so I have some Images.  When I first create the object the panel Sapling: Add Tree shows up but if i then go and do something else the panel disappears.     I cant seem to find a way to bring it back does anyone know how  Thanks


How do virtual particles cause an attraction?

How do virtual particles such as photons cause a force between particles such as an attraction between protons and electrons?


Make an existing Git branch track a remote branch?

I know how to make a new branch that tracks remote branches, but how do I make an existing branch track a remote branch?  I know I can just edit the .git/config file, but it seems there should be an easier way.


Is this NPN transistor AND logic gate practical?

Most places on the internet that I see give a schematic for an AND gate that is something like this:         – Schematic created using   The only thing about this is that when B is turned on but not A, which should logically output false, it seems to be somewhere between it (this can easily be seen with an LED at the output: it isn't as bright as it is if both A and B are on, logically satisfying AND, but it still lights up).  I was messing around and came up with this idea for an AND logic gate which works a bit more correct and I have been using it recently:          Essentially what I came up with when building that is Input A is put through a NOT gate which is put into another NOT gate, but the Collector on the second NOT gate is only powered by Input B. Therefore, if Input B is off, no output to begin with, but if its on but A isn't, then the first NOT gate powers the base to the second, making B ground.  I like building this design better, and it works so far for me, but I was wondering:  How practical is this design (e.g. why haven't I seen it before; are there any flaws)?


I'm an old guy. I seem to remember a day (40s or 50s) where a NFL runner was tackled and would be allowed to get up and continue to run. This was before the runner was considered down if his knee touched the ground. Doing a search on google, I couldn't find such a rule change. Am I dreaming?


Table of contents: Change vertical spacing for single section

My table of contents has the following structure:  List of figures.........3 List of acronyms........4 Introduction............6 1 First Section.........7 2 Second Section........8   But I want it to have some vertical space between the "introduction" sections and the actual content, like this:  List of figures.........3 List of acronyms........4 Introduction............6  1 First Section.........7 2 Second Section........8   Does anyone know how to achieve that? I just found some snippets to change the space between the lines in general or for all sections, but nothing about how to change the vertical space just for a single line.


Putting two figures side by side shifts them on to a new page?

In two-column paper I want to place two figures side by side. If I use figure* it shifts them to a new page. If I use minipage option again figures don't obtain correct position. Can I fix this problem using figure*?   Here is my code that I am using. My figures are moving to next page that I don't want. Please guide me how to fix this problem?  \begin{figure*}[!ht]     \begin{minipage}[l]{1.0\columnwidth}         \centering         \includegraphics[width=7.5cm]{Hist_J_0/hist_h1.PNG}         \caption{}     end{minipage}     \hfill{}     \begin{minipage}[r]{1.0\columnwidth}         \centering         \includegraphics[width=7.5cm]{Hist_J_0/hist_h5.PNG}         \caption{}     \end{minipage} \end{figure*}


Statistics textbooks go out of their way to say that 95% Confidence Intervals (CIs) do not mean that you can be 95% sure that the population parameter of interest is somewhere between the high and low end of the interval. Rather, if your sample was drawn an infinite number of times, 95% of the intervals would contain the population parameter (while 5% would not).   I fail to see the distinction. If I draw one of the infinite number of samples for which 95% CIs are calculated, aren’t I 95% certain that I’ve drawn one the ones whose CI contains the population parameter? Thus, I’m 95% certain that my CI contains the population parameter.  If someone can explain why my thinking is incorrect, I’d really appreciate it. Thank you.    Just to cause more confusion, I went to my old Statistical Methods textbook by Snedecor and Cochran (8th edition), and found the following section on Confidence Intervals:      Notice that they provide a mathematical proof for the inequality relating a population parameter value to a sample confidence interval. In addition, in their example in the middle of page 56, they explicitly state that the population parameter lies within the 95% confidence interval given, except in a 1 in 20 chance.  Snedecor and Cochran's book educated several generations of statisticians, at least here in the US. And, the mathematical proof seems pretty convincing. So now what? Do we believe what the current textbooks are saying (which do not help us in making a statement about the population parameter)? Or, do we go with Snedecor and Cochran and state that we are 95% certain the the population parameter is within our 95% CIs?   Anyone who wishes to comment, please do...I'm at a loss.


Suppose $N=3953$, Alice encryption key is $e_A = 337$ and bobs is $e_B=23$. Eve happens to know the corresponding decryption keys, $d_A=3385$ and $d_B=2663$. Can I use this information to find the prime factorization of $N$?


Mono: The entry point method could not be loaded

When I'm trying to run some mono app I'm getting an error saying "The entry point method could not be loaded":   $ mono Some-App.exe  The entry point method could not be loaded  $   How can I determine what caused the error? I.e. to get some more meaningful message like:   The file XXX.dll is missing, This app uses feature YYY which is unavailable under Linux, There were an error ZZZ.


"Vendors and consultants, each of which" or "... each of whom"?

Which is correct:         Sources of information include vendors and consultants, each of which usually has an interest in selling something.   Sources of information include vendors and consultants, each of whom usually have an interest in selling something.


I need help proving the following identity.  $\tan^210^\circ+\tan^250^\circ+\tan^270^\circ=9$.  I am not sure if it is even true.


How to update Thunderbird to latest version?

I have ubuntu 13.04 and my Thunderbird version is 24.0. Now Mozilla released 24.1. How can I update to it?


split a string with spaces that separate each word

How do I split a string with delimiter character 'space'?  My code:  string* splitstring(string StrToSplit) {   string substr[100];   int k = 0;   for (int j = 0; j < StrToSplit.length(); j++) {     if (StrToSplit[j] == ' ') {       k++;     } else {       string chartostring(1, StrToSplit[j]);       substr[k].append(chartostring);       cout << substr[k] << endl;     }   }   return substr; }


Let $G$ be a finite group and let $Z(G)$ denote its center.  A simple result states that if $G/Z(G)$ a nontrivial cyclic group then $G$ is abelian.  Of course if $G$ is abelian then $Z(G)=G$ and consequently $G/Z(G)$ is the trivial group.  Hence we conclude that no non-trivial cyclic groups can result when we quotient a group by its center.  My question is whether there are any other restrictions as to what groups can occur as the quotient of some group by its center.


How old was Tom Riddle when he made each Horcrux, and who did he kill to make them?

How old was Tom Riddle when he made each of his Horcruxes, and who did he kill to create each? I know about Myrtle, The Riddle family, Hepzibah, and Harry's parents, but who were the others?


Novel where bands of humans roamed a world controlled by intelligent machines

I'm trying to figure out the name of a science fiction novel.  In it there were bands of humans which roamed a world.  The world was controlled by intelligent robots or mechanized creatures I think.  In it the humans all had suits, which produced different smells to warn the humans about different robot/creatures nearby.  In it a particular group was hunted by a very intelligent robot/creature and it made them a deal for freedom in a spaceship.  I know that they traveled in wastelands for part of the novel but ended up going to a robot/creature city at some point in the novel.  Help please!


Can the word “go” be used as a helping verb?

For instance:      “Go eat your dinner.”    It appears that the word “go” is being used as a helping verb. Is it being used a helping verb? If so, can “go” only be used as a helping verb in imperative sentences?


I definitely chose one object and I don't know why it's all moving together. I want to move one object, and I never set up a parent.


Very often I need to extrude a shape inwards or outwards to create a curb/wall or simply another edge loop. I move the verts around manually and it's a painful and long process. I'm looking for methods of extruding every vert by a set distance of it's parent vert.  This is what simply extruding and scaling does:    This is what I need:      Any fast way to do this?


$n\geq2$ be an integer Prove $|\sqrt[n]{a}-\sqrt[n]{b}|\le\sqrt[n]{|a-b|}$ for all $a,b\geq0$ I try taking both side n squared and using binomial theorem, but I can't prove it.


After the upgrade to 17.10 I only get a black screen. How do I fix this?

I used the upgrade manager to upgrade from 17.04 to 17.10. When I start the machine, I only get a black flickering screen now. I was using the nvidia binary drivers before the upgrade.     NOTE: This question (and answer) relate to a specific issue when upgrading from 17.04 to 17.10 while using Nvidia or AMD binary drivers. You might experience a completely different issue. For that please see the more general question .


Can I skip my first flight and get on the second flight?

I've booked a ticket to Tokyo with Alitalia from Amsterdam. I have one stop at Milan Linate (LIN) and the next flight will leave from Milan Malpensa (MXP). I have 3.15 hours to get to Malpensa Airport. I find this not enough time, so I booked another ticket to Milan a day earlier with Iberia.    Is it possible to skip the first flight on Alitalia to Milan Linate and get on the flight from Milan Malpensa to Tokyo?


How can I create a point that identifies the outer most point/corner of a polygon (one point per polygon)?.   It is easy to identify the centre point, but I cannot find options for the outer most corner.


Flash overrides Firefox keyboard shortcuts -- how to turn that off?

I often cycle through my Firefox tabs using Ctrl+Tab and Ctrl+Shift+Tab. But whenever it reaches a tab that is running a Flash (or similar) plugin, Ctrl+Tab and Ctrl+Shift+Tab won't work anymore, because Flash has the focus and overwrites the general keybindings. I have to stop and click outside of the Flash app to continue the cycling.  Basically, I hate that Flash hijacks the keyboard focus. I never use it anyway, i.e. I never use the keyboard to control certain elements within the Flash app. Can I turn it off, meaning, can I tell Flash not to overwrite Firefox' keyboard bindings?


(There are a few existing questions on Photoshop alternatives, but none seem to focus on reading PSD files specifically)  Say I'm a programmer working with a web designer and would like to implement a design she's produced as a PSD file using Photoshop. It's a fairly complicated design using overlays/animating layers, so the ability to examine the PSD file and turn individual layers on and off is necessary.   Is there an app available in Ubuntu that can read PSD files created by Photoshop?  Alternatively, is there a more linux-friendly file format that Photoshop can export to and still preserve layers?


Problem with displaying file path in Finder's Get Info -> Where

I occasionally need to check some file's location and copy it to the clipboard. I used to use Finder -> Cmd-I then I used to copy the content of "Where" section.  Ever since updating to macOs Mojave, the format of the path displayed in the "Where" section has changed. Instead of "/" forward slash character now I see "triangle" character.    How to solve this?  Thanks!


How do I install Geforce GTX 660 in 13.10

Just bought a Geforce GTX 660 and replaced my Radeon HD 5870 (it finally died after 3 years). I'm having terrible problems getting the video card to work. As I only had command line options so far I've ran:  (purged fglrx*)  then  sudo add-apt-repository ppa:xorg-edgers/ppa sudo apt-get update sudo apt-get install nvidia-331  and then I started getting low graphics mode errors. did some searching on my tablet, and I tried several things but what finally worked better was:   sudo apt-get install bumblebee bumblebee-nvidia  However now that I'm logged into my computer finally, I have no access to terminal, no access to the top bar, and hitting Super Key does nothing, alt-f2 does nothing, and I only can post because I tried running WoW and it had an error and the error report opened a link.   All I can see on my desktop is my wallpaper and desktop icons. I can CTRL+ALT+F1, and navigate to the downloaded official nvidia driver, however that won't run because of x-server, and I can't run it from my desktop.   Can anyone help me?


Can a Stack Exchange association bonus be lost?

I recently hit 200 rep on Stack Overflow and got a big 100 rep bonus. Most know this as the 'association bonus'.  If I offer a bounty of 50 points and thereby lessen my 'base' score, do I lose that association bonus?  What if I offer a 150 point bounty and then work my way back to 200?


When did lightsabers first appear in the Star Wars timeline?

Where do we first see/read about a lightsaber in the Star Wars universe (EU and Legends count)?    I mean this from an in-universe chronological perspective, not publication/release order.  It’s a simple question, but I've searched some existing question and answers on here and a few other sites online (yes, including wookieepedia...) but have not found anything useful yet.


Prove that the sum of the digits of a perfect square can't be 2, 3, 5   , 6, or 8.   I'm completely stumped on this one, how would I go about proving it?


How to add image at the background of terminal in Ubuntu 13.04?

During customization I want to add an image as the terminal background.


Cutting a polygon out of another polygon with python

Licence: ArcEditor   Version: ArcMap 10.0   i have some issues to separat my data with python.  To illustrate the problem, i have simplifyed the data with figures.  I want to cut the blue polygon out of the red one. So at the end, i have only red peak of the shape 1 in my dataset.   Example of the data:     What i've tried:  1. Analysis (Toolbox) -> Extract -> Clip  -> Doesn't work for me, because only the overlapping area will cutting out. And this is alway the shape 2. It doesn't matter how i configure the tool. I can't separate the red peak.    2. Select the shape 2 -> Editor -> Cut   -> works perfectly, BUT i can't manage that with python. I can't find any functions that access to the editor.   My aim is to seperate the red peak with a python script, and i don't know how i can solve this. Maybe someone has an idea?


I am just starting to learn C and am bit confused about use of return statement and its importance in C language.  Here's my code snippet. Is this syntactically correct or do we have to return any numerical value 0 or 1 while using int main()?  #include<stdio.h>  int main() {         int i;           for(i=0;i<10;i++)               printf("\n Noooooooooo");          return ;        }


WPF: Failing to perform ToHexString() Operation In C#

I am working on a wpf application which performs few operations. I was working on C++ application few days before and now their is a requirement to implement the same in my wpf app.  In my c++ code I had written the following:  m_texti2cRead->clear();  unsigned char buffer[512]; int address = m_texteditAddress->getText().getHexValue32(); m_msp430->SetAddress(address); if(m_msp430->ReadBytes(m_dataSize, buffer) == 1 ) {    //Display    String output = String::toHexString(buffer, m_dataSize);    m_texti2cRead->setText(output); }   I implemented the same in my Wpf App as follows:  ReadMessage = string.Empty; Byte[] buffer = new Byte[512]; int address; int m_DataSize = 1;  string strValue = AddressMessage; if (strValue.StartsWith("0x")) {      strValue = strValue.Remove(0, 2);      address = Convert.ToInt32(strValue);      mComm.setAddress(address); }            if (mComm.ReadBytes(m_datasize, ref buffer) == 1) {     // Here I don know how to perform ToHexString Operation of (buffer and m_DataSize) }   How can I do the same in my wpf app??? Please help!!!


Am I allowed to display the ubuntu logo?

Morning,  As I get closer to setting up my services etc for my website am I allowed to display the ubuntu logo? There are some that don't allow it.


Was “matchmaking” the equivalent of today's “shipping”?

Oh my goodness. I'm shipping Lupita and Trevor so much!!!! They are so beautiful together and irradiate such a good energy!   Comment copied verbatim from YouTube. ‘Lupita’ is the Mexican-Kenyan actor, Lupita Nyong'o while ‘Trevor’ is the presenter of the satirical American programme The Daily Show, .   But how on earth did shipping come about? What are its roots?  You can  and I've heard of , but none of these idioms fit.   The origins of “shipping”  I found the answer at  wherein the OP asked      This is obviously slang and new slang at that but where does it come from?   The same OP later posted an answer, citing TV Tropes, which claimed that ship was coined by fans of the 1990s TV series The X Files who, influenced by the sexual tension between the show's two leading characters, Mulder and Scully, wanted the investigators to initiate a sexual/romantic relationship. It's therefore clear that the neologism was born from the noun relationship and its derivative, relationshipping.    All fine and dandy and if anyone has a different idea, please visit the older EL&U page and post your answer there. We'd love to hear it!   But was there a yesteryear equivalent of “shipping”?  A word or phrase before the 1990s that meant you wanted two people to become romantically involved with one another? For example, was the expression  ever used by fans of movies starring the same couple? I'm thinking of films that starred Fred Astaire and Ginger Rogers, Doris Day and Rock Hudson (obviously long before his secret homosexuality was reported by the press), Katherine Hepburn and Spencer Tracy (their off-screen love affair was a closely-guarded secret), Mickey Rooney and Judy Garland, or more recently, Tom Hanks and Meg Ryan.  Did movie/film fans of yore ever used “matchmaking” the same way that “shipping“ is used today? If not, what was said instead?


is there a way of using PHP code stored in mysql after using php to retrieve it?

My first post, and i am a little lost on how to get my question across to get to the solution i desire. so here goes nothing...  I have a content management site i am currently working on.  This uses PHP to create pages and store the page contents in MySQL to be called back on the user facing site.  A couple of things have come up that i require to use PHP to do within the page contents.  Is there a way i can use PHP to find the page content i have in the SQL database, and execute more PHP that is in that fetched page contents?  or this just something i wish i could do and require another way round it?  My main thing is to create a "contact us" page that redirects to itself after sending the enquiry.  the html content for the contact us form is kept in the database, and is found using page id's in GET requests.  i have tried to just adding the extra php code to the sql page content, however it just doesnt display anything inside the  tags.


How do i calculate no of caps required to replace a battery. If i am given a voltage of battery and capacity of battery and datasheet of required capacitor


Solving a recursive geometric series by hand?

I came across this problem in a Quant finance prep test book. This looks a bit like a geometric series, a bit like an arithmetic series, and a bit like a recursive function. $ f = \frac{1}{1 + \frac{1} {1 + ...}} $ Which I would rewrite as, $ f = \frac{1}{1 + f} $ , however, this might not be valid. How do I solve this problem? And what is the name of this sort of problem?


Application gets crashed after user taps on button multiple times  java.lang.NullPointerException             at fragment.FragmentHealthBelief.onSuccess(FragmentHealthBelief.java:117)             at datamodel.JsonParser$1.onResponse(JsonParser.java:97)             at datamodel.JsonParser$1.onResponse(JsonParser.java:92)             at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:60)             at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:30)             at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99)             at android.os.Handler.handleCallback(Handler.java:730)             at android.os.Handler.dispatchMessage(Handler.java:92)             at android.os.Looper.loop(Looper.java:137)             at android.app.ActivityThread.main(ActivityThread.java:5103)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:525)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)             at dalvik.system.NativeStart.main(Native Method)


Is there any way to travel from the UK to the rest of the EU while a passport is being renewed?

I need to renew my passport before a trip to Brazil in early April, but I have to travel from the UK to another EU country in 12 days. The earliest fast-track appointment I can get is in 6 days, so the 7-day service would not get my renewed passport back to me in time for the trip within the EU.  As far as I know my current passport is handed in, and cancelled, as part of the renewal application (I may be wrong about this - it's been 10 years since the last time) and as far as I know I cannot use any other documents for travel from the UK to other EU countries. Do I have any other option than paying for the 1-day passport service?


How to change the color of different files in ls

So I know that there is a way to change the color of text for directories, regular files, bash scripts, etc. Is there a way to change the color to the file based on the _file extension_?   Example:  $ ls -l foo.txt  [is red]  foo.text  [is blue]  foo.secret  [is green]  foo.txt  [is red]


How to store user input if it was something like a sentence? Or if it was someones name?

Similar to my old question. Is there a way I can store what the user inputs into an array so I can call it via stringName[1] or stringName[2]?  I am not well versed in java split.   for example, if I had  System.out.println ("A sentence or your full name please" ); for (int j = 0; j < arrayTwo.length; j++){ array[j]= sc.nextLine(); System.out.println(array[0]);   this only prints out the first name  if the user inputs "John Will Smith" and later i want to print out   System.out.println (+firstName); System.out.println (+middleName); System.out.println (+lastName);   how do i go about individually updating the array or split it in a way I can grab what the user inputted?


Please help me understand why my code doesn't work

this class is a test to see if my 2 methods (the "endfinder"s) are working (unfortunately they are not). endfinder() is meant to return the index of the next non space character in the provided string; endfinder2() is meant to return the endpoint of the word starting with the index found by endfinder. They're meant to be used to pull out words from a string with multiple words separated by spaces. I've gone over it for a few hours and there must be some obvious answer but I feel like I'm slowly going insane.   I've removed all of the outputs I used to test the code in many attempts to figure out what was wrong to make it cleaner.   Basically, what I've found is that endfinder() always returns 0 for some reason and endfinder2() runs until it reaches the break (I assume that's what happens as it used to loop infinitely before I added it in).  The result I want is start = 3, end = 6  which would make it output "[one]".  The result I get:   [   one  two three] start = 0, end = 17.  Here's my code:  import java.io.*; import java.util.*;  public class test {      static String answer, container;     static int start = 0, end = 1;        public static int endfinder(String perspective) {         int holder = start;         while (perspective.substring(holder, (holder + 1)) == " ") {             holder++;             if (holder == perspective.length())                 break;         }         return holder;     }      public static int endfinder2(String perspective) {         int holder = end;         while (perspective.substring(holder, (holder + 1)) != " ") {                 holder++;             if (holder == perspective.length())                 break;         }         return holder;     }      public static void main(String Args[]) {         System.out.println();         System.out.println();         container = "   one  two three";         start = endfinder(container);         end = start + 1;         end = endfinder2(container);         System.out.println("[" + container.substring(start, end) + "]");         System.out.println();         System.out.println("start: [" + start + "] end: [" + end + "]");         System.out.println();     }  }


If $x^{x^4} = 4$, what is the value of $x^{x^2} + x^{x^8}$?

If $x^{x^4} = 4$, what is the value of $x^{x^2} + x^{x^8}$ ?  I can find by trial and error, that $x=\sqrt 2$. But, what is the general process to answer questions like this?


Probably it's kind of stupid question, but how do you come up with this symbol in latex


as+/-indefinite article : as a student/as student

I learned that "as cook" is correct than "as a cook"  if their job is cook.  So "He served as conductor of Boston Philharmonic." is also correct. However, from  he says "life as a student", thus student is not considered as job/position? So it's correct to say "as a middle schooler"?  plus, does having an adj like 'med' student or 'first female' conductor affect indefinite articles?


Finding the biggest number associated with the value in a dictionary

I am working on a dictionary that maps names to votes received. I need associate the name with the most votes, assigning it to the variable win.   So far:  vote = {}  for key in vote:     vote(max(key)) = win   How do I associate win to the name, because I believe my error now is that I am associating it to the highest number.  Thank you for your help.


How long can I stay in the UK during a 1-year period?

I am a Chinese citizen holding a HK SAR passport. How long am I able to visit the UK within a 365-day period?  My stamp is for 6 months. Could I leave within 6 months but re-enter again a couple of weeks for another 6 months?


added data in p:dataScroller lost Javascript function

I am using p:dataScroller with 10 chunk Size, but on my content of each item, I am adding one class, it have a click event function, when I load the page, my function event only works with the 10 first items, this is my code  <h:form>

Text

Text

Text

text Text

text Text

                 </h:form>   My Javascript event:   $(".resultados-filtro").click(function () {                 alert("event");             });   When I scroll down and the next 10 rows are loaded, they do not react on the click function


Find the number of real roots of the polynomial $f(x)=x^5+x^3-2x+1$    ( I think similar questions have already been asked. However, I am not sure whether the exact question has already been raised by some user. I urge the members of this mathematical community to mark my question as duplicate if it has already been asked. I tried an attempt below:-)    What I attempted:-  I know a little bit of theory of equations but not all. While I was in the examination, I did not ponder much more on any theorems relating to real roots. Rather I tried to do it with some intuition. We have $f(1)=1$,$f(0)=1$,$f(2)=1$, $f(\frac{1}{2})=\frac{5}{32}$,$f(-\frac{1}{2})=\frac{59}{32}$,$f(-2)=-35$ It just helped me to trace a root between $-1$ and $-2$. Then I tried to study the nature of the graph.    Here $f'(x)=5x^4+3x^4-2$ Let $f'(x)=5x^4+3x^2-2=0$     $\Rightarrow 5y^2+3y-2=0$  (where $x^2=y$) $\Rightarrow (5y-2)(y+1)=0$ Therefore, $y=\frac{2}{5}$,   or $y=-1$ (It is not of our interest, as we are dealing with real roots)   Therefore $x=\sqrt{\frac{2}{5}},-\sqrt{\frac{2}{5}}$ These two values divides the real line into three disjoint subsets $(-\infty,-\sqrt{\frac{2}{5}})$, $(-\sqrt{\frac{2}{5}},\sqrt{\frac{2}{5}})$, $(\sqrt{\frac{2}{5}},\infty)$    It s quite easy to notice that $f$ is decreasing in $(-\sqrt{\frac{2}{5}},\sqrt{\frac{2}{5}})$ and increasing in $(-\infty,-\sqrt{\frac{2}{5}})$, $(\sqrt{\frac{2}{5}},\infty)$     Again, $f(-\sqrt{\frac{2}{5}})=1.911$ and $f(\sqrt{\frac{2}{5}})=0.089$    Looking at all these details it is clear that $f(x)$ comes close to zero in $(-\sqrt{\frac{2}{5}},\sqrt{\frac{2}{5}})$ but is not equal to zero. There is no possibility for $f(x)$ to be zero in $(\sqrt{\frac{2}{5}},\infty)$   as it is increasing here. Again, we have already discovered one root between $-1$ and $-2$. Apart from that there is of course no root as $f$ is again increasing in $(-\infty,-\sqrt{\frac{2}{5}})$. So, te graph should look something like this  Therefore there is only one real root of the polynomial.    Is my approach correct? Is there any way to do the same thing using some more beautiful as well as advanced method ? (I have just made a rough plot of the graph in my answer sheet). I am not sure if the examiner would expect much better method than this one.


Mysql query to Delete records after select..?

after selecting records i want to delete that records..i tried following query - (after removing ,MAX(value)  but its showing-    You can't specify target table 'test' for update in FROM clause    DELETE FROM test WHERE ext_no IN  ( SELECT   ext_no, MAX(value) FROM     test GROUP BY ext_no HAVING   COUNT(*) > 2 AND           COUNT(*) = COUNT(CASE value WHEN 0 THEN 1 END) );


What is the English term for a word meaning a shortened/contracted version of itself?

I remember being taught this by my Literature teacher in school long ago but I can't remember the actual term, maybe complicated sounding like 'onomatopoeia'.  I don't mean apostrophes e.g. wouldn't.  An example is: elongated = long, where the second word can be formed by removing certain letters from the first word, and retain somewhat the original meaning.  A list of such words would also be cute.


Let V be an inner product space,and suppose that $x$ and $y $ are orthogonal vectors in V.We also know $\left\lVert x+y  \right\rVert^2=\left\lVert x  \right\rVert^2+\left\lVert y  \right\rVert^2$.My question is how can we deduce the pythagorean theorem in $\mathbb R^2$ from it.If possible give geometrical views.  Any help will be greatly appreciated.  thanks!! in advance.


Why is the up quark is lighter than the down quark, while top is heavier than bottom?

Up, charm and top seem to be similar in terms of electric charge (+2/3e) while down, strange and bottom have also same charge (-1/3e). In the second and third family, positively charged quark has higher mass, while in the first family, negatively charged quark is heavier.   Is there a particular reason why up quark is lighter than down quark, while in other two families, charm is heavier than strange, and top is also heavier than bottom?


entire function problem in complex analysis

If f is an entire function satisfying f(z+1)=f(z) and f(z+i)=f(z) then f must be constant throughout the complex plane. I would appreciate if someone helps me know how to prove the above statement.


I am a resident of a non-Schengen country flying to the US via Dublin and Zurich. Do I need a Visa?

I know there is a popular question already answered -  - but I am still unclear on some of the rules applying to my specific case, due to the fact that the UK is a 'sort of in the Schengen area but not so' and also some other exceptions arising from the US visa.  I am a Thai passport holder with a Work Permit (Tier 2) in the UK and a B1/B2 visa to the US. I'm flying to the US via Dublin outgoing, then via Zurich and Dublin return. The aforementioned question implies that I'll need a visa for the intra-Schengen transfer on my return, but could I cut the ZUR-DUB leg of the journey and book a ZUR-LHR flight in the Zurich transfer area, or would this be outside the passport check area?   Would I need to carry on all luggage due to the baggage carousel being outside the border control stations?


Why does this doubly-linked-list program give me a null-pointer exception?

Basically, the problem is:   Given a list of chars, do the following until it has only 1 element:   Starting from the beginning, remove each second node of the list, for example  doing this to "abcdefghij" should return "acegi" Starting from the end of the list produced by step 1, remove each second node, so doing this to "acegi" should return "aei" Do these steps until the list has only 1 element    The final solution to this particular list should be "i".  My solution to this is :  public class listexercise {      public static DLL<Character> removeFront(DLL<Character> list){          DLLNode<Character> tmp = list.getFirst().succ;          while(tmp != null){             list.delete(tmp);                 if(tmp.succ == null) {                     tmp.pred.succ = null;                     break;                 }             tmp = tmp.succ.succ;         }          return list;      }     public static DLL<Character> removeEnd(DLL<Character> list){          DLLNode<Character> tmp = list.getLast().pred;          while(tmp != null){             list.delete(tmp);             if(tmp.pred == null) {                 tmp.succ.pred = null;                 break;             }             tmp = tmp.pred.pred;         }          return list;             }     public static DLL<Character> rec(DLL<Character> list, int n){         if(list.length() == 1)             return list;         else if(n%2 == 1)             return rec(removeFront(list), n++);         else if(n%2 == 0)             return rec(removeEnd(list), n++);              return list;     }      public static void main(String[] args) {          Scanner s = new Scanner(System.in);          DLL<Character> list = new DLL<Character>();         String input = s.nextLine();         char[] parts = input.toCharArray();          for(int i=0; i<parts.length; i++)             list.insertLast(parts[i]);          System.out.println(rec(list,1).toString());     } }   This gives me NPE on the removeFront or removeEnd. However if I use specifically only one of them at a time, they work perfectly, but when I put them in a recursion, there's a problem.   Any ideas how to fix this??


how to secure or hide my javascript code?

Is there anyway to hide or secure my javascript code. Because anyone can easily see my javascript logic on my website using view page source and it's harmful for me. Please tell me any method you know for securing the javascript code or for making it difficult to understand using any encryption method with cannot easily decrypt.


Continuity of a function at an isolated point

Suppose $c$ is an isolated point in the domain $D$ of a function $f$. In the delta neighbourhood of $c$, does the function $f$ have the value $f(c)$?


USB flash drive not working or is appearing as an empty disk drive, Disk Management reports "No Media" with 0 bytes size

I have a USB flash drive which is no longer recognized by my computer. Windows Disk Management and DiskPart report No Media with no storage space (0 bytes) on the drive and I cannot partition or format the drive:     If the drive appears in Windows Explorer, trying to access it returns an error message indicating that there is no disk inserted, such as the following:     Please insert a disk into drive X:.   Various disk partitioning and data recovery utilities don't recognize the drive or only give a generic name for the drive and cannot access the contents of the drive.  What can I do? How do I recover data from the drive?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details.


Reading and parsing a text file using Java

I got this text file I need to parse, and I am looking for the more efficient way to do it.  The file structure is known and looks like this :  [section] key=value key=value  [section] key=value  [section] key=value   I have no way to know in advance how many [section] I will read, nor how much key & value there is in each section.  I am trying to find the best way to store this file in a collection. So far, I figured that the best collection tu use would be a Map>, so that each [section] would have its associated key-value attached.  The problems I am having is mostly to handle blank lines, as I am looking for new sections with a simple :  if(line.charAt(0) == '[')   and obviously, with blank lines this returns null.  Can anyone just give me heads up on this ?


How to share android directories over LAN using SMB protocol

I want my hone to be used as network drive, by sharing folders over network. So that I can access it from My windows PC. I want to use SMA protocol for that. I am using OnePlus One, CM12.1 OS with ES file explorer.


If $\{E_\alpha\}$ is connected, $\bigcap\limits_{\alpha\in A}E \neq \emptyset$, then $\bigcup\limits_{\alpha\in A}E$ is connected

If $\{E_\alpha\}_{\alpha\in A}$ is connected in $\mathbb{R}^n$, $\bigcap\limits_{\alpha\in A}E_\alpha \neq \emptyset$, then $\bigcup\limits_{\alpha\in A}E_\alpha$ is connected.  I have zero intuition on how to do a proof of this statement. Please help.  I started it by contradiction like this: suppose that $\bigcup\limits_{\alpha\in A}E_\alpha$ is not connected. Then there exist non-empty disjoint separating sets $U$ and $V$, such that $U$ and $V$ are relatively open in $\bigcup\limits_{\alpha\in A}E_\alpha$, and $U\cup V= \bigcup\limits_{\alpha\in A}E_\alpha$. But I have no idea what to do next.


This short story was in a collection by one author.  It concerns one human in bad condition - hungry, and ill - finding a farm where all the work is being done by machines of varying intelligence. The machines are designed for one task each only and speak in a logical fashion to each other. He is passed up the chain of machines to decide what is to be done with this intruder into their ordered system. It becomes clear that the machines have not seen a human for a long time and they probably have all died.  The last sentence is that the most intelligent machine calls the man "Master" and asks for orders.


Inserting Data Into MySQL database with errors spitting back error?

I'm trying to insert data into a mysql database using php. Seems like a simple task.  While using dummy data (just strings of text), it was working perfectly fine. And when I replaced the dummy data with the actual variables, I get this error:  ERROR: Could not able to execute INSERT INTO tbl_users (id, timestamp, testid, email, wants_newsletter, ip, country) VALUES (NULL, CURRENT_TIMESTAMP, , , , , ). You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' , , , )' at line 1   Below is the script that I'm using. I am 100% sure that all the variables are working. I currently have them spitting out dummy data as well.  $testid = 1; $email = 'test@yahoo.com' $wants_newsletter = true; //get $ip if (!empty($_SERVER['HTTP_CLIENT_IP'])) {     $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {     $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else {     $ip = $_SERVER['REMOTE_ADDR']; } $country = 'US';  $user_id = 100;  $question = 14 $answer = 14      function saveToDB() {  /* Attempt MySQL server connection. */ $link = mysqli_connect("localhost", "$user", "$pass", "$db");  // Check connection if($link === false){     die("ERROR: Could not connect. " . mysqli_connect_error()); }  // Attempt insert query execution $sql = "INSERT INTO tbl_users (id, timestamp, testid, email, wants_newsletter, ip, country) VALUES (NULL, CURRENT_TIMESTAMP, $testid, $useremail, $newsletter, $ip, $country)";  if(mysqli_query($link, $sql)){     echo "Records inserted successfully.";     $user_id = $link->insert_id; } else{     echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); }  // Attempt insert query execution $sql = "INSERT INTO tbl_answers (id, user_id, question_id, answer) VALUES (NULL, $user_id, $question, $answer)";  if(mysqli_query($link, $sql)){     echo "Records inserted successfully."; } else{     echo "ERROR: Could not able to execute $sql. " . mysqli_error($link); }  // Close connection mysqli_close($link);   }//end saveToDB  saveToDB(); //Call saveToDB()   I've been busting my head for hours trying to figure out this error. It might be something small that I'm overlooking and perhaps I need a fresh pair of eyes on it.  Any help would be greatly appreciated.


Circle and Locus _ ONLY PEN AND PAPER ALLOWED.

Q) Let T be the line passing through the points P(–2, 7) and Q(2, –5). Let $F_{1}$ be the set of all pairs of circles $(S_{1}$, $S_{2}$) such that T is tangent to $S_{1}$ at P and tangent to $S_{2}$ at Q, and also such that $S_{1}$ and $S_{2}$ touch each other at a unique point, say, M. Let $E_{1}$ be the set representing the locus of M as the pair ($S_{1}$, $S_{2}$) varies in $F_{1}$. Let the set of all straight line segments joining a pair of distinct points of $E_{1}$ and passing through the point R(1, 1) be $F_{2}$. Let $E_{2}$ be the set of the mid-points of the line segments in the set $F_{2}$. Let $C$ be the circle $x^2+y^2+6(2y+7x)=53$. The number of times $C$ intersects $E_{1}$ and $E_{2}$ is (are):


I tried to show that $\mathbb Q$ with addition is not a cyclic group. Here is the proof: If possible assume that there is $a\in \mathbb Q$ such that $\mathbb Q=\langle a \rangle$. Note that $a\neq 0$. For $1\in \mathbb Q$ we must have $1=ma$ for some $m\in \mathbb Z$. Now for each $n\in \mathbb N$ we must have $\frac {1}{n}=m_n a$  for some $m_n\in \mathbb Z$. Then $1=nm_n a$ for each $n\in \mathbb N$. Then $ma=nm_n a$. Then we get $nm_n-m=0$. So $n$ must divide $m$ for each $n\in \mathbb N$. Then $m$ must be a zero which is not possible. So our supposition is wrong. Hence $\mathbb Q$ is not cyclic. Is this correct?


Dont know how to simply solve this determinant.

$$ \det\begin{pmatrix} -2a & a + b & a + c\\ b+a & -2b & b+c\\ c+a & c+b & -2c \end{pmatrix} $$ I solved this determinant and gave me $4(a+b)(b+c)(c+a)$ but I've done it by adding $((b+c)/2a)*\text{line 1}$ to $\text{line 2}$ and $((c+a)/2a)*\text{line 1}$ to $\text{line 3}$. I still don't see another way of getting 2 zeros on a line or column that can be done by simple additions and subtractions instead of multiplying by variables like I did. Thank you!


Make it look like the player who activated a command block said something they didn't say

I want to do something with command blocks like:  /tellraw @a {"text":"[Name of person who activated the command block] Hello!"}   Without the person saying it themselves in the chat


What, of the planets he consumes, provides Galactus with sustenance?

Galactus is pretty big on the world eating. It's more or less his thing. It's well known that he has an insatiable hunger that he must obey, and when he gets peckish he just chows down on a world that is capable of sustaining intelligent life.  But when he does so, what is it he digests, or processes to sate his hunger? Is it the action of eating itself? The physical matter? Souls? Minds? Twinkies?  I have a hunch it's sentience (lit. minds) but I can't find any evidence of this anywhere.


Save an edited file in nano, but no permissions

I edited a file in  /etc/ that I want to save, but forgot to open it using sudo. I remember there was a command to save such a file in vi, and want to know if there is any such way to do it in nano?  Thanks.


Exporting label rendering options based on zoom level correctly in QGIS

I am making a webmap using QGIS3. However, I set the text-label to be invisible from a certain zoom-level onward, and visible from another zoom-level. It displays correctly locally in QGIS edit screen but it does not work after I export it to web. (using qgis2web plugin) Goal: to make text disappear at 1:1800 scale(zoom) level and above. (text appear below 1:1800 when zooming out) This is what I mean:  Result after exporting is that "Lot number and land area" will not even show up at all. I try both OpenLayers and Leaflet. (this is the example with no label display setting based on zoom level) --> export outcome:  --> Ideally, I want to hide the appearance of text label totally when I zoom out to a certain level. Bad impression:  I wonder is there anyway I can modify the output code to modify and realize what I want to achieve or am I getting some settings wrong?


Prove $g$ is a generator if $g^q=1 \pmod p$

Let $p$ be an odd prime and let $q=\frac{p-1}{2}$. If $g^q=-1\pmod p$ and $q$ is a prime, show that $g$ is a primitive root mod $p$.  I want to show $\{g,g^1,...,g^{p-1}\}=\{1,2,...p-1\}$. I argue by contradiction that if there're $x,y\in \{1,2,...p-1\},x<y,g^x=g^y\pmod p$. Then $g^{y-x}=1\pmod p$. I don't know how to use the fact that $q$ is prime to lead to a contradiction.


Do I have to re-enter the Schengen area to activate my second visa when traveling on back-to-back Schengen visas?

I currently have a valid multiple entry Schengen visa that expires on Feb 10th (issued by the Spanish consulate). I need to visit the Czech Republic from Feb 9th to Feb 15th. For this, I am getting a visa starting Feb 11th from the Czech consulate as I was advised that I cannot have two simultaneous visas.   Is it possible for me to enter Czech republic on the current visa on Feb 9th, and stay past its expiry up to Feb 15th using the new visa without leaving the Czech Republic? Will there be any likely problem either while entering or exiting Schengen zone (I am entering Schengen in Frankfurt)?


Sci-fi novel, scout crash lands on planet, shaman sees competition and wrecks spherical spaceship

I read this years ago. A scout in spherical advanced ship lands on a planet. Natives are friendly, but the shaman perceives competition, and sneaks into the craft and scatters potions on the controls, their acid eating into plastics and metals. He can be rescued at the other side of planet, but he has a deadline. Eventually all make airship and he makes it.


Visa refusal under paragraph V4.2v (a) and (e)

in my application when send all documents to the Visa centre I included my application letter explaining why I want to join the army, army assessment letter, hotel booking document. About funds it's a self sponsor I dd add my business and regration and bank statement..IAM married with two kids I dd add there birth certificate and marriege certificate, and also add my property deed and motor blue book and my mentor letter in UK with all his iD...wat should do so that I should go and attend my assessment in UK can I appeal this ??


is it possible to toggle a bit to 0 when it is 1 and to 1 when it is 0? For example,00000000 go through the function will 00000001 and when the 00000001 go through the function again, 00000001 will become 00000000. Is it possible?


I have found this post:  My question is more specific >> Can I publish feature layers to ArcGIS server from QGIS using WMS?


All matrices which commute with all $2\times 2$ matrices

I would like to find all matrices which commute with all $2\times2$ matrices.  I started solving problem in this way:    1) I have this matrix $A$ with real numbers: $$A=\left[\begin{array}{cc}a &b\\c &d\end{array}\right]$$ 2) Matrix which commute with matrix $A$ is matrix $B$: $$B = \left[\begin{array}{cc}e& f\\ g &h\end{array}\right]$$ 3) When i solve the equation $AB=BA$, I get this: $$\left[\begin{array}{cc}ae+bg&af+bh\\ce+dg&cf+dh\end{array}\right]=\left[\begin{array}{cc}ea+cf&eb+df\\ga+ch&gb+dh\end{array}\right]$$  How I can get the general look of wanted matrix?


Is it fair to punish the student for not knowing what's in the course?

A number of questions (e. g.,  or ) discuss the situations where the student is punished after invoking, in the exam context, knowledge that's outside the scope of the course. This leads to a more general question:      Suppose the student knows and understands perfectly all the material taught in the course, and perhaps some more. Is it fair to lower their grade for not knowing which material has been taught and how it was presented?   From the answers to the above questions, it seems that many feel that there's no problem with lowering the grade. I can think of two arguments in favour of that view:   in order to test knowledge, the exam questions have to include implicit context, notation, etc., that require familiarity with a particular course. More details on this type of reasoning can be found in . anyway, the grades are often not determined solely by what students know in the end; e. g., attending lectures, participating in the class discussions, etc., may be part of the grade. And if you have done so, surely you know what's been in the course.   Let me explain why the above arguments do not satisfy me. The first one concedes that it may be unfair, and then essentially admits a failure on the part of the professor to design a fair exam. But then, shouldn't one rather strive to make the questions as self-contained and unambiguous as possible? For the second one, we may ask, again, why it is fair to take anything but the end knowledge into account for the grade, and the answer will likely be that some version of "we use attendance etc. as a proxy for final knowledge" which, once again, brushes off the question as to how fair is this.     Is there a coherent argument that justifies that it is fair to lower the grade in the above circumstances?


Can Ex-Clerics start worshipping a new god?

If a cleric falls out of line from their Deity s/he becomes a ex-cleric and loses s/he powers but if said character started worshipping a Deity that is in their new allingment would s/he have to start over with a level one cleric or would s/he regain their powers. I ask because my caimpaign may require me to do what may be wrong in order to do what's right if that makes sense, I would end up doing evil to do good in the end, This is in 3.5 btw


When buying a property without using a realtor as a buyers agent, can you build a discount of the buyer's agent commission into the contract?

I want to buy a home, but I'm not interested in using a realtor as a buyer's agent.  I know that in MLS systems, when a realtor lists a house they specify what commission a buyer's agent will be paid.  Since I am the one who is bringing a qualified buyer to the listing agent, I feel that I would should get the commission (even if it is in the form of a discount on the house).    Essentially, the seller would get the same amount of money at closing... the listing agent would get the same commission as they normally would for showing the house to someone with a buyer's agent... but I would pay less for the house.  Is there a tactful way to negotiate this with the listing realtor?  For example, should I make a side contract with the realtor to pay me the commission at closing?  Or perhaps I can specify in my offer that they should reduce their fees to the seller by the commission amount if the offer is accepted, in order to make my offer more attractive?  Are these types of deals ever done, and if so, is there a conventional way to make it happen?  Thanks


Change Legend Right to Left Reading in QGIS

I am a new QGIS user and i have a challenge to convert legend from right to left reading in QGIS like ArcGIS.


OK, so I'm trying to complete the following analogy:     John ate the worms.   is to     The worms were eaten.   as     John tried to eat the worms.   is to     The worms were tried to be eaten.   or     The worms were eaten attemptively.   ... ? I feel like such an inarticulate fool sometimes.  Edit: I'm not asking which of the two possibilities is better, but how I might complete the analogy, preferably with "the worms" as the subject. This is so that I can write something like     The worms were stolen, taken to John's house, and [tried to be eaten].   Sorry if my question wasn't clear.


Trying to sudo apt --fix-broken install, but getting this output

Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies...Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done  Done Starting pkgProblemResolver with broken count: 0 Starting 2 pkgProblemResolver with broken count: 0 Done The following additional packages will be installed:   libefl-bin The following NEW packages will be installed:   libefl-bin 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. Need to get 0 B/864 kB of archives. After this operation, 3,081 kB of additional disk space will be used. Do you want to continue? [Y/n]  (Reading database ... 176074 files and directories currently installed.) Preparing to unpack .../libefl-bin_1.20.7-0bionic0_amd64.deb ... Unpacking libefl-bin (1.20.7-0bionic0) ... dpkg: error processing archive /var/cache/apt/archives/libefl-bin_1.20.7-0bionic0_amd64.deb (--unpack):  trying to overwrite '/usr/bin/edje_cc', which is also in package libedje-bin 1.8.6-2.5build1 dpkg-deb: error: paste subprocess was killed by signal (Broken pipe) Errors were encountered while processing:  /var/cache/apt/archives/libefl-bin_1.20.7-0bionic0_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   I tried all solutions which could help but I couldn't achieve what I wanted to do.


I am going to start work on a website that is already developed in Joomla 1.5 What are the possible ways to migrate the contents from Joomla.   PS: I have looked into joomla module but no luck!  Any ideas will highly be appreciated!


Convert object from string into float if True

Hi fairly new to python and I cant get my head round why this isn't working. I want to have an object the user to input something as a string, if the string can also be a float, I want the object type to be a float. def Representsfloat(s):     try:         float(s)         return True     except ValueError:         return False   item_finder = input("Enter an Item to find: ")   def account_finder():     if Representsfloat(item_finder) == True:         item_finder = float(item_finder)     else:         pass  Thanks


Can I play a game inside windows in virtual box?

So I want to play Pubg lite, is there anyway to play it using ubuntu?  And if I installed windows 10 in virtual box is it possible to play it smoothly?   Ubuntu version is 19.04


(Dis-)Advantage of 2 chainrings / 3 chainrings

I think about buying a new mountainbike when sale is starting.    Now my Problem is that my favorite mountainbike has only 2 chainrings with 36/26 teeth. I am used to ride with 3 chainrings and don't know if it's too hard for me to ride or if it feels like "some gears are missing" if there is one chainring less. I am just a hobby cyclist, I love to do some tours an evening rides, but just for fun.    Maybe someone can explain advantages and disadvantages of 2 vs 3 chainrings.


Quotient map $f$ from the $n$-sphere to the $n$-disk

I'm trying to construct a quotient map $f$ from the $n$-sphere $S^n$ to the $n$-disk $D^n$, in which $f(x_1,x_2,\ldots,x_n,x_{n+1})=f(x_1,x_2,\ldots,x_n,-x_{n+1})$. The goal is to show that $S^n/\sim_f$ is homeomorphic to $D^n$.  (Is this the right way to go about it?)  I've been looking at the stereographic projection for inspiration, but haven't come up with anything. I only just started learning about topology. Any hints?


As we know, the homunculi can heal themselves and don't age because of the philosopher's stone.   However, Wrath doesn't seem able to heal and he gets older, despite being a homunculus. I always thought that's because he is a human who was turned into a homunculus, but Greed can also regenerate, even though he still has Lings soul and isn't 100% homunculus.  Why isn't Wrath like a normal homunculus?


How would I replace default Windows Explorer with an alternative one, say Q-Dir?

I would like to re-map existing shortcuts, right-clicks, etc so Q-Dir is opened instead of default Windows Explorer.  short of renaming ``explorer.exe in Windows folder - are there any settings I need to look at?  maybe in Registry somewhere?


Should awarding a bounty cost you instead of offering one? Can an undeserved bounty be reversed?

It's a little confusing, but it looks like I was docked 50 for offering a bounty ona question that was never answered.  It also looks like someone awarded 25 to one of the non-answers.  UPDATE: Changing this to a "feature request," i.e.,    Bounty offered should not be "refunded."  I agree, for the reasons others stated in comments and answers to this. Bounty is offered for an answer, not for looking at the question.  Consider any or all of the following: a. Lengthen the time before any bounty is auto-awarded. b. Make the number of (upvotes minus downvotes) required for an auto-award higher. c. Make the percent of the bounty awarded proportional to the number of (upvotes minus downvotes). d. Deduct and discard a bounty if the (non)answer is deleted or voted lower than negative five, unless it was awarded by the person who offered it.   2.b. makes sense to me, because the non-answer (that triggered this post) somehow got two votes,  Apparently others agree (that it was a non-answer), since it was deleted not long after I posted this question.


What information do I need to solve an APT dependency issue?

I've seen several times people with unmet dependencies, which apt-get doesn't tells straightforward what's the problem, like this one:  The following packages have unmet dependencies:  libgl1-mesa-dri:i386 : Depends: libdrm-intel1:i386 (>= 2.4.38) but it is not going to be installed                         Depends: libdrm-nouveau2:i386 (>= 2.4.38) but it is not going to be installed                         Depends: libdrm-radeon1:i386 (>= 2.4.31) but it is not going to be installed                         Depends: libdrm2:i386 (>= 2.4.38) but it is not going to be installed                         Depends: libglapi-mesa:i386 but it is not going to be installed  libgl1-mesa-glx:i386 : Depends: libdrm2:i386 (>= 2.3.1) but it is not going to be installed                         Depends: libglapi-mesa:i386 (= 9.2.1-1ubuntu3) but it is not going to be installed                         Depends: libx11-6:i386 (>= 2:1.4.99.1) but it is not going to be installed                         Depends: libxcb-dri2-0:i386 (>= 1.8) but it is not going to be installed                         Depends: libxcb-glx0:i386 (>= 1.8) but it is not going to be installed                         Depends: libxcb1:i386 but it is not going to be installed                         Depends: libxdamage1:i386 (>= 1:1.1) but it is not going to be installed                         Depends: libxext6:i386 but it is not going to be installed                         Depends: libxfixes3:i386 but it is not going to be installed                         Depends: libxxf86vm1:i386 but it is not going to be installed   I know that walking through all dependencies apt-get install libgl1-mesa-dri:i386 libdrm-intel1:i386 until I hit something is available, but in this case it will be a painful job due the amount of packages. Is there an easier way to do this?


Boolean half the time doesn't work but does union?

Im not sure if Im doing something wrong here or what is happening but about 50% of the time whenever I do a normal boolean difference modifier, if I have at all modified the big object previously, I get this instead of a nice clean cut -     Where that bottom cube sticking out was supposed to be cut away. I have no idea what to do about it and oddly a union cuts a hole, but doesn't make the insides have "walls" so to speak. Ive tried recalc normals and everything here   But nothing is working. What is wrong? its doing an additive boolean.


Do I need both a UK visa and a Schengen visa?

I am a Filipino Citizen working in Qatar and have a valid Residence Permit. I am planning to visit my wife's sister in the UK, and afterwards we are planning a Schengen tour with the other family member living in the UK. Do I need to get two visas which is a UK Visa from UK embassy (my point of entry) and at the same time another visa which is a Schengen visa from the France's embassy?


UV unwrapping of a row boat is not working

I am almost new to blender and completely new to UV unwrapping.I have modeled a row boat following a tutorial on youtube. After completing the model, I am trying to unwrap it. But when I mark the seams and hit U to unwrap it.It shows nothing on UV/Image editor.I think I have done some serious mistake but can not figure it out.I have attached the blender file with marking all the seam:


I want to ask the question that why the value in the map becomes null.  List<Order> insertOrderlist = new List<Order>(); Map<Order,Decimal> OrderPaymentMap = new Map<Order,Decimal>(); For(ObjectName config: [SOQL query]) {       String PaymentTerm = config.value;       Order o =  new Order(fields = values);       insertOrderlist.add(o);       if(!OrderPaymentMap.containsKey(o))           OrderPaymentMap.put(o,Decimal.ValueOf(config.attribute__c)); } For(Order o1: insertOrderlist) {       System.Debug('#####OrderPaymentMap.get(o1): '+OrderPaymentMap.get(o1));   //Debug point 1, the map value is config.attribute__c }  Test.startTest(); System.RunAs(user){       Insert insertOrderlist; } Test.stopTest();  For(Order o2: insertOrderlist) {       System.Debug('#####OrderPaymentMap.get(o2): '+OrderPaymentMap.get(o2));  //Debug point 2, the map value becomes null }   I have the testcase code in a new dev org, it's wired that the map value is changed to null after inserting the Order value. But I have the same code in another sandbox environment, and I don't have this issue.  ====================================  Add a screenshot to show the result in another org:


I'm from the UK and will be visiting Florida for the second time this year to spend the summer under an ESTA. I have enough money to cover accommodation for two months and expenses without having to work. I will genuinely not be looking for work, I'm just over visiting and maybe going to see some other states.  I visited Florida in March for 11 days for the music week and it two months will have passed from then and when I return again.  I will be staying for 61 days total this time.  I am a student in the middle of a degree so there is no way I would be staying in the US even if it was possible to.  Is the two month gap too short?


How do I pass a string value from one form to another in c#?

I am trying to pass a text value from a settings form to another form. What I am trying to do is pass a string value form a textbox on the settings form to the main form. The main form has a GunaUI2 Button (Which I am trying to control) I was trying to use public Form1 frmMain = new Form1(); to import my main form to my settings form. Then I would try to change the text of the GunaUI2 Button with this code: frmMain.btn_1.Text = textBox1.Text; Any help would be greatly appreciated, Thanks EB


How can I add the block I'm looking at to my hand in creative?

This is a feature that I thought existed, maybe I was wrong.  Is there any way to do this? In a creative world, is there a way to look at a certain block, press a shortcut key, and add the block/item you're looking at into your hand or inventory?


Order of cyclic subgroups in symmetric groups

What is the largest possible order of a cyclic subgroup of $S_7$?  What's an example of this?  I really just need a better understanding of cyclic subgroups of symmetric groups. I know that the largest possible subgroup of $S_7$ is of size $7$. And I know all the possible cycle structures. Would it be $6$ because $\left<(1 2 3 4 5 6 )\right>$ is a cyclic subgroup generated by the size of $S_6$ or the element $(1\ 2\ 3\ 4\ 5\ 6)$?


I am trying to use a 24V 10A SMPS to supply power to multiple loads. The SMPS has 2 sets of V+ and V- outputs.  I wanted to power a 24V 5A motor connected to the SMPS, as well and use the 2nd output from the SMPS with a buck converter and power a 12V 8A load also.  I thought that in theory this works because the math all adds up, what I can't understand (I'm very new to electronics) is: Will the buck just use around the 24V 5A and turn it to 12V 5A or will it try to convert all the 24V 10A leaving the 1st load underpowered?