Upload data AND files in the same form using AJAX

I have a form tha have selects, checkboxes and a file upload. The code below works for the data, but when I print "$_FILES" in my target php file it gives me an empty array. The following code works only for data:  $('form.ajax').on('submit', function () {     event.preventDefault();      // Update button text.     var uploadButton = document.getElementById('submit');     uploadButton.innerHTML = 'Uploading...';     var that = $(this),         url = that.attr('action'),         type = that.attr('method'),         data = {}      that.find('[name]').each(function (index, value) {         var that = $(this),             name = that.attr('name'),             value = that.val();          data[name] = value;     });      $.ajax({         url: url,         type: type,         data: data,         success: function (response) {             console.log(response);         }     });     return false; });   And the next part works only for files:  $('form.ajax').on('submit', function () {     event.preventDefault();      // Update button text.     var uploadButton = document.getElementById('submit');     uploadButton.innerHTML = 'Uploading...';      var that = $(this),         url = that.attr('action'),         type = that.attr('method'),         data = new FormData();     var element = document.getElementById("fileupload");     var myfiles = element.files;     var data = new FormData();     var i = 0;     for (i = 0; i < myfiles.length; i++) {         data.append('file' + i, myfiles[i]);     }      $.ajax({         url: url,         type: type,         contentType: false,         data: data,         cache: false,         processData: false,         success: function (response) {             console.log(response);         }     });     return false; });   For what I've noticed the lines contentType: false and processData: false seem to make the $_POST array return empty. Is there a way to combine this to have the data in $_POST and the file in $_FILES using the same code?  Thanks


When you run out of climbing speed, can you still climb with your normal speed at a penalty?

Let's say you're a 40 speed, 15 climbing speed creature.  There's an initial ledge at 20 feet, but you're trying to reach the top at 25 feet.   From the Player's Handbook, page 182:     While climbing or swimming, each foot of movement costs 1 extra foot (2 extra feet in difficult terrain), unless a creature has a climbing or swimming speed. At the GM’s option, climbing a slippery vertical surface or one with few handholds requires a successful Strength (Athletics) check. Similarly, gaining any distance in rough water might require a successful Strength (Athletics) check.     However, on page 190:     If you have more than one speed, such as your   walking speed and a flying speed, you can switch back and forth   between your speeds during your move. Whenever you switch, subtract   the distance you've already moved from the new speed. The result   determines how much farther you can move. If the result is 0 or less,   you can’t use the new speed during the current move.      Combined with this information, there may be an odd scenario where a character has moved their maximum climbing speed.  Can they:   Move the 15 feet up the cliff, and cannot reach neither the ledge or the top? Move their normal speed at twice the cost, allowing them to climb up to 20 feet in this turn and reach the ledge? (40/2= 20 feet) Move the 15 feet of climbing speed up the cliff, and are able to spend the rest of their speed (40-15 = 25 left) at the extra foot cost, since they "no longer have a climbing speed", putting them at the very top of the cliff (25/2=10 [rounded down]), 15+10 =25 feet)?


How to change the passenger name on an Indian Railways ticket?

I have booked a ticket on IRCTC () for me and my brother but now even my sister is willing to travel but we are not getting tickets for her. So my brother agreed to not come and take my sister with me. Can I take my sister on the same ticket which is booked on my brother's name? Or is there a way I can change the name on already booked ticket to reflect my brother's name or is there a way I can cancel the ticket and book the same ticket on my sister's name?


String abc=11235.271; Float.parsefloat(abc);   o/p 11235.271 no data loss  while as in  String abc=58996.706; Float.parsefloat(abc);   o/p 58996.707   .001 is getting added after decimal  Can anyone pls help me on this


I am writing a program, that has a small, self-written HTTP Server inside. Now i get Data via POST over the socket. My problem is, how do I unescape the String the best way in C++? I get Data like:  command=foo%26bar   but i want it to be  command=foo&bar   Whats the best way to achieve this in C++?  EDIT: If someone is interested in my solution, here it is:  void HttpServer::UnescapePostData(std::string & data) {     size_t pos;         while ((pos = data.find("+")) != std::string::npos) {         data.replace(pos, 1, " ");     }     while ((pos = data.find("%")) != std::string::npos) {         if (pos <= data.length() - 3) {             char replace[2] = {(char)(std::stoi("0x" + data.substr(pos+1,2), NULL, 16)), '\0'};             data.replace(pos, 3, replace);         }     } }


Is it possible to publish research paper independently?

Is it possible to publish independent research paper without any academic or industrial affiliation in a reputed journal?


The probability that the equation will have real roots is

Each coefficient in equation $ax^2 + bx + c = 0$ is determined by throwing an ordinary die. What is the probability that the equation will have real roots?   How do I go about doing this? Any help is much appreciated thanks.


Hibernate Query setString method with Empty String

I'm using the method setString(String name, String val) from Query Class of Hibernate.   import org.hibernate.Query;  String q = "from Table n where n.field=:annee "; Query query= session.createQuery(q); query.setString("annee","");   I want to store an empty String and not a null, because this field can not be null in my database. But I get an error message saying that I cant insert a null value.   I don't understand what happens. Because an empty string is not  null.  It is the Query method who converts the empty chain into a null, and then Oracle gives me the error?. Or its Oracle itself who converts an empty string into a null, and then it complains?


Would forcing a photon to travel under $c$ even after it leaves a medium break Relativity?

So, I stumbled onto this article which really blew my mind (). To sum it up, these researchers set up some kind of material that slowed a photon down while it traveled through the material. Once it passes through the material, it should return $c$; however, when they race it against another photon, it comes up short. To me, this sounds like it should be bigger news. The speed of light should ALWAYS equal exactly $c$ when in a vacuum. So, if this was not the case, did they just cause some issue with Einstein? Or, is there something to which I am not privy?


Removing leading zeros from custom permalink structure

My WordPress website currently uses this custom permalink structure: %author%/%year%/%monthnum%/%day%/%postname%  In this case, %monthnum% instantiates numbered dates with a leading zero -- e.g., "09" for September. So, a sample URL might look like this: mywebsite.com/username/2012/09/12/post-name  Is there a function I can add or .htaccess change that I can make which will remove the leading zeros from my permalink stucture? So, using the example above, my URLs would ideally look like this: mywebsite.com/username/2012/9/12/post-name  Thank you! I've read up on WordPress' structure tags documentation (http://codex.wordpress.org/Using_Permalinks), but I can't find any solutions or plugins for the above-mentioned problem.


I've spent ages so far fiddling with adjustments and filters in the hope that I can recreate the effect shown in this picture.   I've tried posterising other similar effects, but I want to keep the level of detail in the face as it is kept in this photo.   Thanks in advance :)


I have doubts in this exercise.   Can a number $A= 111...11$, ($1000$ times the number $1$), be a square? Can a number $B= 111...11$, ($10431$ times the number $1$), be a square? Can a number $C= 111...11$, ($n$ times the number $1$), be a square?   I thought that if the number ends in $1$ it is odd, so I can write it in the form $A = 2k + 1$. But in this way, I always find that it is not a square, regardless of the number of times that the number $1$ appears. Is it okay to think the way I'm thinking? Thanks.


Can someone help me with $109x\equiv 24\pmod{26}$? I don't really know what to do. Thanks for the help.


How to delete cached temporarily credentials for a network share on a Windows machine without rebooting or logging off

This is more of a curiosity then a real problem, I am just to lazy to reboot or log off my laptop.  I have connected to a network share on a Windows server with domain credentials from a non-domain Windows 7 machine, I didn't mark the option to remember the password.  The share is let's say \\10.10.10.10\folder.  I have changed the password for that domain account in the meantime, and now when I try to access that share I get the following error:     Logon failure: unknown user name or bad password   I have tried the following on the client side:   deleting cached credentials in Credential Manager running net use delete running net session \\ip.of.the.server /delete gives me "A session does not exist with that computer name." running net use \\10.10.10.10\folder /u:DOMAIN\USER password gives me "The command completed successfully.", but I still get the same unknown user name or bad password when trying to access the share from Windows Explorer mapping the share as a network drive from GUI, but then I get     The network folder specified is currently mapped using a different user name and password.   To connect using a different user name and password, first disconnect any existing mappings to this network share.  running net use to see connections, I get that there are no connections in the list killing explorer.exe and starting it again.   I have tried the following on the server side:   going to Computer Management > Shared folders > Sessions to kill the session with my username rebooting the server   I have managed to access the share using the domain name instead of the IP address, but I am curios.  Does anybody know any way how to delete the cached credentials in this case? Where are credentials cached when you don't mark the remember password option when accessing the share, they are not shown in Credential Manager and there is no mapping shown when you run net use.


if the limit $$L=\lim_{n\to \infty}\sqrt n \int_0^1 \frac{1}{(1+x^2)^n}dx$$exists and is larger than $\frac{1}{2}$ then  prove that $\frac{1}{2} < L < 2 $ .


Existence of Total Order Compatible with Partial Order

I was reading Stong's Cobordism Theory, the following lemma to be precise. In the proof, he gives a total order on the set of non-dyadic partitions with the given partial order After some research, I came to know that we can always give a total order to any set courtesy . But could not find anything about the existence of a Total order, Compatible with a given Partial order. As I am not really an expert on Discrete Mathematics. Any hints, suggestions will be really helpful. regards


What is the difference between a framework and a library?   I always thought of a library as a set of objects and functions that focuses on solving a particular problem or a specific area of application development (i.e. database access); and a framework on the other hand as a collection of libraries centered on a particular methodology (i.e. MVC) and which covers all areas of application development.


Can I upgrade my scimitar past superior?

Ok so I have the steel smithing perk in blacksmith. I've upgraded a scimitar to superior. It will not go any higher at the moment. Is there a skill I can get to upgrade it past superior or will it stay that way?


Unable to access Ubuntu.css in Gedit via command line

I was trying to open ubuntu.css from command line in gedit and got  error. It shows error about GVfs metadata. I am new to Ubuntu and Don't know anything about why is this happening?


ACPI PCC probe failed during installation of ubuntu 14.04 Lts

I'm try to install ubuntu 14.04 Lts distribution in a machine Dell precision T1700 with Windows 8.1..The  LiveCD shows correctly the options of grub menu but, when I selected any option for installation, the error "ACPI PCC probe failed" appers and the screen keeps black finishing the process.  I already tried with other proposed solutions on tje dame error as ACPI disable motion in the grub menu and modify the graphics options multi-screen on the motherboard. The machine has all the draivers installed and also has a graphics card NVidia quadro K2200. Gread maid who can help me with this difficulty.


I'm using java mail API 1.4.7. Protocol is IMAP. I'm trying to filter messages by using a time period.      Date fromTime = new Date();     Date toTime = new Date();     Folder emailFolder = store.getFolder("INBOX");     emailFolder.open(Folder.READ_ONLY);      //create the search term     SearchTerm term = createSearchTerm(fromTime, toTime);      // retrieve the messages from the folder in an array     Message[] messages = emailFolder.search(term);   Last line of the code trows this exception.  java.lang.NullPointerException   at javax.mail.search.AndTerm.match(AndTerm.java:106)   at javax.mail.search.AndTerm.match(AndTerm.java:106)   at javax.mail.Message.match(Message.java:705)   at javax.mail.Folder.search(Folder.java:1270)   at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1918)   at javax.mail.Folder.search(Folder.java:1231)   at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1873)   etc.  createSearchTerm function  SearchTerm term = null;         ReceivedDateTerm minDateTerm = new ReceivedDateTerm(ComparisonTerm.GE, startTime); ReceivedDateTerm maxDateTerm = new ReceivedDateTerm(ComparisonTerm.LE, endTime);  term = new AndTerm(term, minDateTerm);            //concat the search terms term = new AndTerm(term, maxDateTerm); return term;   Without the search function I can read emails just fine. Can some one help me to find out what wrong with my search function?


Should I use multi-byte overloading (mbstring.func_overload)?

I'm in the process of making my PHP site Unicode-aware. I'm wondering if anyone has experience with the mbstring.func_overload setting, which replaces the normal string functions (e.g. strlen) with their multi-byte equivalents (mb_strlen). There aren't any comments on the PHP manual page.  Are there any potential problems that I should be aware of? Any cases where calling the multi-byte version is a bad idea?  I suppose one example would be functions that deal with encryption, since they may expect to deal with strings of bytes, rather than strings of characters.  Also, the manual page includes a note: "It is not recommended to use the function overloading option in the per-directory context, because it's not confirmed yet to be stable enough in a production environment and may lead to undefined behaviour."  Does that mean that it's not stable in a per-directory context, or it's generally not stable? The wording is unclear.


Given a harmonic oscillator $\ddot{x}+\omega_0^2x=0$ if we calculate the Wronskian using   we get $W[x_1,x_2](t)=W_0e^{\int_{t_0}^t 0 ds}=W_0$  which means (for our two solutions $x_1$ and $x_2$) that  $$ det\begin{pmatrix}  \dot{x_1} & \dot{x_2} \\ x_1 & x_2  \end{pmatrix}=\dot{x_1}x_2-\dot{x_2}x_1=W_0$$  is some conserved quantity. To me it smells like it should be equal to something of the form $\frac{E}{m}$ (because if we multiply $\dot{x_1}x_2-\dot{x_2}x_1$ by $m$ we get something in units of energy(we don't, I made a mistake, but anyway the question makes sense). Is the conservation of the Wronskian actually the conservation of something energy-ish (to the factor of $m$) for our system or is it something else, if not what is it (physically, what is its physical meaning)?  Ps: I think it probably isn't energy (it definitely isn't energy) because in the case of parametric resonance (aka.  $\ddot{x}+\omega_0^2(t)x=0$) the Wronskian is also conserved but the Energy isn't. I might be wrong :)  pss:  answer states that the conservation of the Wronskian means the conservation od angular moment, however I find it unclear what angular momentum would mean for a 1D system


Is ping's handling of incomplete IPv4 addresses standard?

I accidentally hit return too early when attempting to ping a device, so instead of ping 10.111.12.4 I typed  C:\Users\roadierich>ping 10.111  Pinging 10.0.0.111 with 32 bytes of data: Request timed out.   I was surprised to see that the IP address was expanded to fill the missing octets.  After further experimentation, I discovered:  ping 1       => ping 0.0.0.1 ping 1.2     => ping 1.0.0.2 ping 1.2.3   => ping 1.2.0.3 ping 1.2.3.4 => ping 1.2.3.4 (as expected)   Based on cursory testing, tracert  I've searched google, but I can't find any reference to this behavior.  Is this an actual standard, a defacto standard implemented across every tool taking an I.P. address as an argument, or is it unique to windows?  I know under IPv6 it's acceptable to omit strings of consecutive zeros, but the delimiting characters are still present.


How to use OutputStream to write to a String

I have a program in which I use a PrintStream object to write to a file. Is there a way to use something like a String Buffer or similar as the OutputStream for the object instead, so that I can use print to append to the String ? I later want to be able to retrieve this String (obviously)  (ps. i wanna do this for testing purposes in my program)  Some info:  PrintStream ps = new PrintStream(myOutputStream); ... ps.print(...); ... ps.close();   I want to replace myOutputStream with some kind of String buffer which I can retrieve later and read.  As far as I know, in C++ we can do this as  stringstream ss; ss << ...   How to do this in Java ?


Problem installing mate desktop on Ubuntu 16.04.2

I used the following commands to install mate on my Ubuntu 16.04.2 desktop.  sudo apt-add-repository ppa:ubuntu-mate-dev/xenial-mate sudo apt update sudo apt full-upgrade    I restarted the computer and it comes up in the unity desktop.  I tried several times to install and no luck.  Anyone have any ideas?


Difference between list defined with multiplication and without

Is there an explainer on the difference between?  aL, bL = [[], []] xL, yL = [[]] * 2   Superficially, they should be the same.  [[], []] == [[]] * 2 True   But they behave differently.   aL.append("a") xL.append("x") bL [] yL ['x']


How to calculate angle between two points and vertical

Is there an easy method to calculate angle between two points and vertical with PyQGIS ?  In QGIS I use Cad-Tools extension, I select two points and it give me an azimuth. Now I would like to do the same in my script where i'm already able to select two points.


Do (weaponized) lasers exist in the Star Wars universe?

Lightsabers are not made of light, nor have they anything to do with lasers (even if there are people who mistakenly refer to them as "laser swords").   Blaster bolts are also not lasers. They travel significantly slower than light, they travel even slower than ordinary bullets fired by gunpowder. (called slug throwers on the Star Wars universe)  Was there any use of lasers ever presented in the Star Wars universe, either as we use them today, or as weapons?  By laser I mean something which behaves like laser does, even if it's not called by that name in a movie or book. If something is called a laser (in the script or by fans) but clearly doesn't work like a laser (for example, it travels slowly, and in visible blocks) it doesn't count.


Upgrading Ubuntu 11.04 on Alienware computer

I have an old Alienware computer that I found in storage. It has Ubuntu 11.04 installed on it and I really would like to update to the most recent Ubuntu.  I am not Computer savvy when it comes to terminals and commands.  I don't know what to do.  All I want is to have my son able to watch Youtube but Flash won't install.  Nothing will install, I keep getting Fetch errors or failed to fetch.  I can't download Chrome website, because it says check Internet... Internet is fine. I don't understand what is going on or how to fix it?


Need A Collection Textbooks To Use As Stepping Stones to QFT

So, I am a medical physics student with a long term goal of learning QFT. Unfortunately, I do not have the time to take courses that would build up to QFT. I have taken the time to search for many textbooks on QFT, all of which require much more mathematical and physical knowledge than I have at the moment. My background is: Calc 1-3 and DiffEQ, Linear Algebra, Freshman Physics, Electromagnetism (ala Griffiths) and Quantum Mechanics (also ala Griffiths).  I am planning on reading Merzbacher and Sakurai MQM, and then Sakurai AQM. Will this be enough to prepare me for Peskin? I have taken the time to read through many different questions on the subject, and I have come to the conclusion that none of them address my needs. I suspect there are many people who will also be interested in such a self-contained study "path" to QFT, instead of merely asking for one textbook to rule them all. And many of these people are at the point I am now, having just finished regular QM ala Griffiths. I am hoping for the smoothest path to QFT. Each textbook should not assume more knowledge than contained in the last ones.


Recently, I finished gravitation. I wonder why the shapes of planets or any body revolving around any star are not cubical or ellipsoidal. In our solar system all the planets are spherical in shape. Why isn't a body of any other shape found revolving around the gravitational field of any star?


How can I get the value between quotes with an RegEx  for example I want to find all the parameters from the function test  <html>    test("bla");    print("foo");    test("moo"); </html>   The result must be { "bla", "moo" }


"Is he" versus "Isn't he" as Question Tags

This question ends with is he:     He is seldom absent, is he?     Shouldn't it be isn't he? Please explain.


Are there any reason to delay leveling up?

I remember that in Oblivion, the game would punish you for leveling up too early. You needed to make sure to have trained the proper skills before gaining a level, or else the enemy would become increasingly stronger than you.  I understand that Skyrim's system is a bit different and shouldn't have this exact problem. But does it mean I can safely level up as soon as I reach the proper level? Are there any valid reasons for me to wait before leveling up?


Where does Windows 10 keep the welcome images?

After installation, and for a few days, Windows 10 starts by asking you if you like a series of images that appear when you start the computer, then, based on your opinion, a selection of these images keep "welcoming" you. I'd like to know where these images are saved (and how, if it's a database or a change of format-extension).  I might want some of them, I might want to add a few of my own.   Does anybody know the path to these images (or database)? Is there documentation or options in Windows 10 to treat them?


I was wondering if I can use a CAT5e keystone jack with CAT6 cable. I am refering to the parts that terminate a cable where it comes out of the wall.  I want to run a 30 ft length of CAT6 but all I have is CAT5e jacks and I don't want to buy any news ones if I don't have to.  I had read somewhere that CAT5e is 100mhz and CAT6 is 200mhz (though I could have sworn CAT6 was 350mhz).  Anyhow any assistance would be appreciated.


how to fix Nullpointerexception in setOnclicklistener

After adding the code from call.eneque I get the error from the title it says a Nullpointerexception on my clickListener, but everything is initialized or do I overlook something? I looked for hours now tried different tutorials and fixes but can not find anything.  Here is my code:  public void openDialog(){         AlertDialog.Builder formBuilder = new AlertDialog.Builder(FriendListActivity.this);         View formView = getLayoutInflater().inflate(R.layout.contact_add_form,null);         final AlertDialog dialog = formBuilder.create();         final EditText nameText = dialog.findViewById(R.id.nameInput);         formBuilder.setView(formView);          dialog.show();           // Buttons          sButton = dialog.findViewById(R.id.saveButton);         sButton.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                 PalaverService friendsAddService = PalaverApiClient.getInstance();                 final String FriendName = nameText.getText().toString();                 Call<ApiResponse> call = friendsAddService.addFriend("", "", FriendName);                 call.enqueue(new Callback<ApiResponse>() {                     @Override                     public void onResponse(Call<ApiResponse> call, Response<ApiResponse> response) {                         ApiResponse responseSuccess = response.body();                          if(responseSuccess.getMessageType().equals(1)){                             friendListAdapter.add(FriendName);                         }                         dialog.hide();                      }                      @Override                     public void onFailure(Call<ApiResponse> call, Throwable t) {                      }                 });                }         });          abbrechen = dialog.findViewById(R.id.abbrechen);         abbrechen.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v) {                     dialog.hide();             }         });        }   This is my error:    Process: de.paluno.se.palaver, PID: 16209         java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference   The error is coming on my setOnclickListener. Hopefully someone can give me an pointer.


Change style for extensions that already have a style in Notepad++

I've already tried the answers from  and  and neither fixed my problem.  In Notepad++ using the Obsidian theme, the syntax highlighting for JSON files disappears; everything is white on black. I could go through and change them manually, but instead I would rather just use the JavaScript style instead (which does work).  I can do this with Language --> JavaScript, but if I close the file and reopen it doesn't stick.   When I try the solutions tagged above it does not work for me because JSON already has an entry and it is using the default JSON style instead of the JavaScript style. I want to override the existing style and use the JavaScript style instead.


Is is possible to use a ntfs usb disk as a liveusb with Startup Disk Creator?

I have an USB harddrive with NTFS (for compatibility with windows and support of large files, so FAT is not an option). I would like to use that harddrive as LiveUSB.  says that it is possible, but Startup Disk Creator refuses:   I have set the flags on the NTFS partition to boot. Is there a mistake in the documentation, or am I missing something?


What exactly does $\ll$ mean?  I am familiar that this symbol means much less than.   ...but what exactly does "much less than" mean? (Or the corollary, $\gg$)  On , the example they use is that $1\ll 9999999999$ But my thought on that is that $10^{10^{10^{11}}}\ll 10^{10^{10^{11}}}+9999999999$, based on the same logic. But I am confused because the numbers are comparitively.   Logically, I am really kinda spent dealing with this issue of mine. Thanks for any input.


Is Ubuntu touch available on the Meizu MX6 android version?

First of all i want to say i am new to this website. I tried to look for answers before posting this question. Because i could not find it i will ask it here. Is it easy to put ubuntu touch on the meizu MX6? I ask this because there is an ubuntu version of the X6! Is this easy or it would be better to wait for the release of the MX6 ubuntu touch version?


How to Query all opportunities ids from account

I write a sample query to fetch account Ids from cases of a particular record type.Then i wrote another sample query parent to child relationship to fetch opportunity ids from accounts.  My sample code  List<Case> c=new List<Case>(); c=[Select Id,accountId from case where RecordTypeId = '01290000000sF3L']; List<Id> accountIds= new List<Id>(); List<Account> accounts=new List<Account>(); List<Opportunity> opps=new List<Opportunity>(); for(Case cl:c)  { accountIds.add(cl.accountId); } accounts=[Select Id,name,(select Id,name from opportunities) from account        where Id in:accountIds]; System.debug('Data in accounts '+accounts);   But my issue is how to get opportunity id from above Soql accounts means how to add those opportunity id's to the list.  for(Account ao:accounts) { //How to fetch Opportunity ids from above account list. }


Flying USA to UK via Canada with Spanish passport. Do I need to apply for a visa?

I'm flying from Los Angeles to London with one stop at Vancouver International Airport to change planes in the same flight. I have both current Spanish passport and ESTA.  Do I need to apply for visa to connect through Canada without exiting the airport?


When in a list, adding a picture that is indented covers up the background on the right where links normally go. See picture below:    (source: )  As you can see, with multiple indents, the image is mixing with the links on the right, making some hard to read. I think it would be better if images were forced to be to the far left, instead of indenting them with the rest of the text.


Our company has been asked to recently switch off our computers over the weekends to conserve power.  Is it possible to remotely switch on a Computer if   I'm able to establish a VPN to the Office Network and I know the IP Address of my Machine.   I would think as long as I can be a part of the office network (because of the VPN I've established) there must be someway to power it on or at least schedule it to power on at certain times of the day. By the way this is not some VM. Its a Physical Machine.


Identify if a Library item is a folder or not in CSOM

I have Library on which I have created a ribbon button. On click of the button I am trying to identify if the selected item is a folder or a file. below if the code snippet that I am using:  var context = SP.ClientContext.get_current(); var web = context.get_web();  var items = SP.ListOperation.Selection.getSelectedItems(context);  var currentLibrary = web.get_lists().getById(SP.ListOperation.Selection.getSelectedList(context));  var index; for (index in items) {     var selectedItem = currentLibrary.getItemById(items[index].id);     // Need to identify if 'selectedItem' is folder or not     console.log("FileSystemObjectType = " + selectedItem.FileSystemObjectType); // Returns 'undefined'     console.log("get_file = " + selectedItem.get_file()); // Returns 'SP.ListItem' object     console.log("get_folder = " + selectedItem.get_folder()); // Returns 'SP.ListItem' object }   Taking reference from  I tried to use FileSystemObjectType but in my case it ends up showing undefined for both file and folder. Also if I try to check if the selected item is a file or folder using below code it always return true.  if(item.FileSystemObjectType == SP.FileSystemObjectType.Folder) {     // Always returns true }   What am I doing wrong here? How can I identify if the selected item in Library is a file or a folder?


Unable to clear the trailhead challenge - Prevent SOQL Injection in Your Code

I tried that as well but unable to resolve the problem. It still says the challenge is not solved.  public class Prevent_SOQL_Injection_Challenge  {      public string textOne {get; set;}     public string textTwo {get; set;}     public string comparator {get; set;}     public string numberOne {get; set;}      public List<Supply__c> whereclause_records {get; set;}      public PageReference stringSearchOne()     {         string query = 'SELECT Id,Name,Quantity__c,Storage_Location__c,Storage_Location__r.Castle__c,Type__c FROM Supply__c';         string whereClause = '';          if(textOne != null && textOne!=''){                 whereClause += 'name like  \'%'+string.escapeSingleQuotes(textOne)+'%\' ';         }          if(whereClause != ''){             whereclause_records = database.query(query+' where '+whereClause+' Limit 10');         }          return null;     }      public PageReference stringSearchTwo()     {         string query = 'SELECT Id,Name,Quantity__c,Storage_Location__c,Storage_Location__r.Castle__c,Type__c FROM Supply__c';         string whereClause = '';          if(textTwo != null && textTwo!=''){                 whereClause += 'Storage_Location__r.name like  \'%'+string.escapeSingleQuotes(textTwo)+'%\' ';         }          if(whereClause != ''){             whereclause_records = database.query(query+' where '+whereClause+' Limit 10');         }          return null;     }      public PageReference numberSearchOne()     {         string query = 'SELECT Id,Name,Quantity__c,Storage_Location__c,Storage_Location__r.Castle__c,Type__c FROM Supply__c';         string whereClause = '';          if(numberOne != null && comparator != null){             whereClause += 'Quantity__c '+string.escapeSingleQuotes(comparator)+' '+string.escapeSingleQuotes(numberOne)+' ';         }          if(whereClause != ''){             whereclause_records = database.query(query+' where '+whereClause+' Limit 10');         }          return null;     } }


I have no house.   I don't have a house.      What's the difference between the phrases like the ones above?


I have this database table where I insert multiple results during 1 action. In php I have a submit button when pressed, inserts 1-50 rows(depending on the user input). I've got a foreign key in this table which has the same value on the rows inserted during that action(so when the primary key connected to the foreign key gets deleted, the 1-50 rows will be deleted as well). Now I've got an Auto Increment in my table and during testing, I find out that the ID's are somewhat like this: 1,2,3,200,249,460,670. So like huge differences between the ID's. Whenever I would create a new row, it will get the ID 671. I feel like it would be better if the ID would just get 4 in this case. Is there any way of doing this automatically and not typing ALTER TABLE users AUTO_INCREMENT=4; manually? If so, are there any advantages/disadvantages?


Homomorphism from $(\Bbb Q,+)$ to a finite group

Prove that if $f$ is a homomorphism from $(\Bbb Q,+)$ to a finite group $G$ then $f(q)=e_G$ for all $q$ in $\Bbb Q$.    I attempted the following:  Firsty I reason that $f(1)$ generates the entire image, because $f(p/q)=p/qf(1)$. But since $f[\Bbb Q]$ is an infinite subgroup of $G$ and $G$ itself is finite we are forced to let $f(1)=e_G$.  Is this ok?


How to enable systray Quickstarter in libreoffice 6

In LibreOffice 6, the tools>options>LibreOffice>Memory was removed.  Is there any way to use the systray Quickstarter in this version of LibreOffice? That option used to make LibreOffice much faster.  I am using Ubuntu 18.04 with the official PPA of LibreOffice.


Can I double a single spell attack's range multiple times by taking multiple versions of the Spell Sniper feat?

I was looking at the Player's Handbook and I saw that there are 3 different types for Spell Sniper.   Simply put, does choosing all three of them create an 8 times multiplier?  For example, say that a Level 10 Arcane Trickster rogue were to use the three Ability Score Improvements they had to take three feats instead.   The feats taken (in no particular order) are Spell Sniper (Bard, Sorcerer, Warlock), Spell Sniper (Cleric, Druid), and Spell Sniper (Wizard).  Does the range benefit of each version of the feat stack, multiplying the range of any spell that requires an attack roll by a total of 8?  (I just inputted the values on D&D Beyond, and it seem like they added the multipliers together for 6 times multiplier. Fire Bolt has a range of 720 ft and Thorn Whip has a range of 180 ft. This is increased from 120 ft and 30 ft. Is this correct on their part?)


Generate correlated continuous and categorical data in R

Task at hand: generate a simulated dataset containing both continuous and categorical variables, given a pre-defined correlation matrix.   What has been done:  covers how to generate correlated continuous variables.  elaborates the generation of correlated categorical variables. Both quite comprehensible.   The question: it is unclear how to generate both continuous and categorical variables at the same time, all correlated between each other. For example, let's say we need to have a dataset with five variables, three continuous variables, and two categorical variables. The first categorical could refer to three income categories (therefore being ordinal), and the second one could be gender (therefore being nominal). The three continuous variables could be, say, scores on three psychological tests. All of them should be correlated to a given degree.   It would be possible to create a dataset with five correlated continuous variables, and then bin two of those into categorical, hopefully retaining some degree of the original relationship. Yet I am not sure how to control the degree of correlation in this case. The data simulation would be in R. Any ideas?   EDIT 1: To be clear, when it concerns categorical data, by correlation I mean statistical association, however it is measured (I have no preference there). Not the Pearson correlation.


Exclude comma from email validation regex

I need to improve a regex for email validator that is current regex I use:  '/^(\w[\+-\._\w]*@[-\._\w]*\w\.[-\w]{2,63})$/'   the issue is to improve this regex so it should filter emails like this:  "n,n@nn.nn" and "nn,nn@nn.nn";   First I have added a condition   (?!,)    after 6th symbol so the regex become so:  '/^(\w (?!,) [\+-\._\w]*@[-\._\w]*\w\.[-\w]{2,63})$/'   this solved the first issue "n,n@nn.nn" but not helped with "nn,nn@nn.nn"  so I added a new negative condition   [^\,]    after 21th symbol so the regex became so:  '/^(\w (?!,) [\+-\._\w] [^\,] *@[-\._\w]*\w\.[-\w]{2,63})$/'   that solved both issues, but in such case validator fails on correct email if the first part of email (left side from @) is only one symbol like this:  "a@aa.aa"   Please, advice me how to work it out.


Converting *.jpg scanned from line paper map to vector data in ArcGIS for Desktop?

I want to digitize automatically old paper map that scanned to jpg  . I know that it's possible to digitize it with arc-map but I can not remember how to do it.


Why does my RegExp match in RegExr, but not in Python?

regexp = re.compile('[A-Z]\\d{4}') prefix = regexp.match("\"O1533_FOO\" INTEGER NOT NULL ,")   Prefix is None, but I expected it to be "O1533".  When I use the web based tool  it works.    I tried to escape the \ with different numbers of \s, and I also tried delimiting /s. Could not get it to work.  Can some RegExp expert please fix my expression?


Theoretically, can mathematical equations be used to graph any picture imaginable?

I know that quadratic formulas make parabolas, linear makes straight lines and sin, cos and tan make cool curves but after messing around with WolframAlpha and online equation graphing tools I can make really varied and weird shapes with just the right type of equation. Is it possible that there is an equation to graph a picture of the Mona Lisa? Is this how computers show draw things perhaps?


Split Epimorphism as surjective function

I am trying to teach myself some category theory so I apologize if this question is extremely basic. The question is:  Show that a morphism $f: x \rightarrow y$ is a split epimorphism in a category C if and only if for all $c \in$ C, post-composition $f_* :$ C$(c,x) \rightarrow $ C$(c,y)$ defines a surjective function.  Since $f$ is a split epimorphism, there is a morphism $g : y \rightarrow x$ such that $fg = 1_y$. However, I am not understanding how this helps prove surjectivity. I'm not entirely sure how the post-composition is to be defined here; I imagine it is something along the lines of a morphism in C$(c,x)$ post-composed with $f$ so we get a morphism in C$(c,y)$. And then I should try to show that for every morphism in C$(c,y)$, such a composition is possible and so $f_* :$ C$(c,x) \rightarrow $ C$(c,y)$ is surjective?   I am also not sure about how to prove the other direction.   Any help or clarifications would be appreciated! Thank you!


Why force applied which is equal to weight of an object is able to lift the object?

Suppose there is an object of weight 'mg'. If we apply a force equal to mg, why the object is lifted up as its weight and the force applied are equal and opposite in direction should be cancelled out and the object should not move at all?


Manually accept answer after bounty has expired; never auto-accept

I recently had a  where the bounty offer failed to solicit anything useful.  Further research, though, dug up a similar question which had an answer which provided some leads - those leads resulted in an answer.  I asked the answerer on the other question to post a similar answer to mine so I could accept it, but returning today to do so I find there is no accept tick on any of the answers.  The bounty system seems quite broken to me, and really needs some hard thinking about how it should work.  I squandered a bunch of rep (as much as I could afford on SU, which isn't that much) for no results.  Now when I find someone who deserves the bounty, I can't award it - I can't even accept his answer.  That combination of end-results is really annoying.  In my case I found someone who has done me a huge service and I would like to reward that with the bounty rep I offered for an answer to my problem... but I can't!  The only worse end-result would have been to have another answer auto-accepted for me because some well-meaning, but mistaken, individual voted it up during the bounty period without reading my comment that it did not resolve my problem.  And it was only some vague pointers anyway.  Could the system be modified to allow us to accept answers on questions where a bounty was offered and not awarded.  Even better, could we have the ability to award the bounty with the accept if a resolving answer comes in after the bounty period?  Could the bounty system be modified to never auto-accept.  I am OK with removing the question from the feature questions list after the bounty period, but why can't the bounty remain available until I accept an answer?  Perhaps it might only auto-accept after a month or 3 of the question owner not returning to the site?    Robert C Cartino suggested, and I concur:   Half the bounty amount is awarded to the highest voted answer (within the current restrictions). The answer is not auto-accepted. Instead, the banner at the bottom of the question ("This question has an open bounty worth 100 reputation ending in 1 hour") should be replaced with:      A bounty of 100 reputation points was awarded to Robert C. Cartaino [answer link] on xx/xx/xxxx at xx:xx xM.    but I would like to further suggest:   The remaining 1/2 of the bounty remain pending until the OP accepts an answer, if they ever do.   This seems no worse than the current behavior of forever discarding the remaining bounty.


Didn't attend court for speeding in the US 11 years ago, will this cause problems now?

I was working and traveling in California. I was caught by police for speeding.   On my ticket was the date of a court appearance. The date on ticket stated December, but I had to leave the USA in October (visa expired). All above happened 11 years ago. Can I came back to California without any problems at the border now? I'm from Poland.


Difference between available, free and cached in free command

What is the difference between available memory and free memory. Is available memory and cached memory are same. If not, what's the difference. I have referred some answers and they says available memory is easy to convert to used memory than free memory. So system keeps free memory as low. But my doubt is that, in that case why i have to clear cache to make my application run.


Does the close vote aging script run twice on Saturdays?

I'm a regular  and for that reason interested in the close vote queue size. (the size itself is fine/too high/too low/depressing/suicidal/whatever: we don't need another duplicate discussion on that) Thanks to  (with support of ) we have a  on a Close Vote Queue Graph. As you can see every day around  the close vote queue drops as explained in  However, at 16:00 UTC on Saturday it looks like the aging script is run as well. Does this happen and what is the reason behind it?


Calculating the distribution of maximal value of $n$ draws from a normal distribution

According to normal probability distribution theory which says that for $n$ independent, identically distributed, standard, normal, random variables $\xi_j$ the expected absolute maximum is  $E(\max|\xi_j|)=\sqrt{2 \ln n}$  Regarding this, why do we need to multiple the above-mentioned estimate by $\sigma$ (Standard Deviation) in order to derive the expected absolute maximum for a normal, random variable with zero mean?


This site can’t be reached - ERR_CONNECTION_REFUSED - openlitespeed-wordpress

I have a website that has been online for about 4 months. Out of a sudden, it stopped working. I get this error:  This is my URL:  Any advice? Thanks,


How to determine what block device (/dev/sd* or UUID) a particular file is on

I need to generate a string for another application to locate my file. I need to know how to access this file dynamically.  customfile=/dev/sda1:/images/myfs.squashfs   Let's say I can stat some/file/here.txt. What command do I use to determine it's block device, and it's absolute path from that device?  Also, how do I then determine the absolute path to here.txt from the device?


Make transparent object get shadow from particles in Blender

I created a mesh, then use particles to make grass on it. I just want to take the grass and grass's shadow on render, so I make the mesh's material become invisible (by using Transparent BSDF, alpha is zero).    But when the mesh become transparent, the grass's shadow is disappear too. How can I still get the shadow while the mesh is invisible?  I use Blender 2.70, Cycles Render


How to make label's background color transparent?

In Windows Forms (WS13) I need to make label's background color transparent, but if i'll made it in properties (BackColor -> Transparent), then it doesn't works with the progress bar:


I sometimes get confused whether to use in or at. For example,  Children were not at school yesterday, because yesterday was a holiday. Children were not in school yesterday, because yesterday was a holiday.  Is there a rule of thumb to not confuse in and at?


Are the limits $\lim\limits_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|\,$ and $\lim\limits_{n\to \infty }\sqrt[n]{|a_n|}\,$ equal?

Let consider the power series $$ \sum_{k=1}^\infty a_kx^k. $$ We know that it converges when  $$\lim_{n\to \infty }\sqrt[n]{|a_n|}|x|< 1\quad\text{or}\quad |x|< \frac{1}{\lim_{n\to \infty }\sqrt[n]{|a_n|}}$$  But D'Alembert test tells us that it converges if $$|x|< \frac{1}{\lim_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|},$$ so since the radius of convergence is unique, we should have that $$\lim_{n\to \infty }\sqrt[n]{|a_n|}=\lim_{n\to \infty }\left|\frac{a_{n+1}}{a_n}\right|.$$  I tried to prove it, but this result looks strange to me. So if it doesn't work always, how can we have those to limit as radius of convergence? I guess the equality of those two limit should be true most of the time.  So under what conditions is it true?


Prior to Umbridge, could anyone simply floo to Hogwarts?

“Come on,” said Harry dully. “With Umbridge policing the fires and reading all our mail?”   Umbridge started policing the fires after Harry first talked to Sirius in Year 5.   Prior to Umbridge, could anyone simply floo to Hogwarts (the way Sirius did at the start of the book to Gryffindor common room)?   If not, what does the canon say about any security around Flooing to the castle?


Mean and variance of Squared Gaussian: $Y=X^2$ where: $X\sim\mathcal{N}(0,\sigma^2)$?

What is the mean and variance of Squared Gaussian: $Y=X^2$ where: $X\sim\mathcal{N}(0,\sigma^2)$?  It is interesting to note that Gaussian R.V here is zero-mean and non-central Chi-square Distribution doesn't work.  Thanks.


Continuous version of the Cantor-Schroder-Bernstein Theorem

Does the existence of continuous injections $f: A\rightarrow B$ and $g: B\rightarrow A$ imply the existence of a bicontinuous bijection between A and B (ie topological equivalence)? If not, what is a good counter example?


I need the perfect algorithm or C# function to calculate the difference (distance) between 2 decimal numbers.  For example the difference between: 100 and 25 is 75 100 and -25 is 125 -100 and -115 is 15 -500 and 100 is 600  Is there a C# function or a very elegant algorithm to calculate this or I have to go and handle every case separately with ifs.  If there is such a function or algorithm, which one is it?


Is it possible to animate zooming in on an object, or is moving the object the only option available to get it to appear closer to the camera?


I was wondering how to download mods for AGES! I know I may sound like I don't know ANYTHING about MineCraft but, you see, I watch all the videos and descriptions about how to download mods but I STILL DONT GET IT! If you want to know what computer I have, its a windows DELL one. I am currently (obviously) using vanilla and trying to find lots of only one command videos. PLEASE HELP!


wordbreaking, justification and ttfamily

Edit I think this differes slightly from the linked "duplicate" as here are paragraphs formatted as typewriter, using \ttfamily while in the duplicate there are  a lot of "common words" in typewriter font sprinkled around his text.  The solution is of course similar, but "Heiko Oberdiek", marked answer here, gave a nice working example and explanation regarding this problem. Personally I had problems understanding what parts of the suggested codes in the "duplicate" question were necessary to solve my issue. Original Question I recently have some bigger texts I want to put into \ttfamily. However, I noticed wordbreaking isn't really working and did some research to add these lines: \setlength{\emergencystretch}{2em} \newcommand{\origttfamily}{}% \let\origttfamily=\ttfamily% \renewcommand{\ttfamily}{\origttfamily \hyphenchar\font=`\-}  Also using english option in a memoir-class and babel-package. This is somewhat helping as there is some wordbreaking and space-stretching happening now, but in the end, most paragraphs are looking more like left-aligned than justified. and there are still some lines going over the defined borders. Here is a minimal example with 2 longer text-passages, one in plain and one in ttfamily. \documentclass[english,11pt,oneside,article,a5]{memoir} \usepackage[english]{babel} \usepackage{geometry}   \setlength{\emergencystretch}{2em} \newcommand{\origttfamily}{}% \let\origttfamily=\ttfamily % \renewcommand{\ttfamily}{\origttfamily \hyphenchar\font=`\-}  \geometry{left=20mm,right=20mm, top=20mm, bottom=50mm} \OnehalfSpacing \leftskip3em\rightskip2em  \begin{document} $>$She didn’t want to spend the time trying to locate them, or try to thin out the operator’s patience for Alison doing whatever. She expects they are already rather sour at her burrowing a tunnel through most of the building’s ﬂoors to make that railgun using an enormous amount of jetalium. If she gets a chance later, though, to come back to this place, she’ll put rescuing Loviro on the table.  \\{}\ttfamily According to the engineer, they are most likely tethers to launch things cheaply into space, given how high they go. Although, Alison does come by close enough to see one to see a revolving restaurant at the top of it, so tossing stuff into space may not be its only function. \end{document}  Did I to something wrong in using ttfamily like this?


Could a strong enough electric field tear a hydrogen atom apart?

A neutral hydrogen atom is composed of a proton and an electron.  The overall charge on the atom is zero but there are local charges within the atom as the negative and positive charge is not evenly distributed.  If a neutral hydrogen atom were placed in an electric field the electron and the proton would experience a force in opposite directions.  Could a strong enough electric field tear the electron and proton apart?


In the dictionary reserved means - not revealing emotions and formal means - prim or stiff. I saw they were synonym in the Google dictionary. What makes these two words similar, I wonder?


Is e^{-distance(. , .)} a valid kernel for any distance metric?

In other words, for a set of $n$ distinct points, with $d_{ij}$ being the distance between point $i$ and point $j$, is the $n \times n$ matrix $M = [e^{-d_{ij}}]$ positive semidefinite? I've written some code to look for counterexamples and haven't found any, so I'm quite sure it's true, but I can't find a proof online. So far, I've found some interesting facts about the matrix $M$, but I don't know if they lead anywhere. $$M^2_{ij} \leq n M_{ij}$$ $$|M| = \hspace{-1.2cm} \sum_{g \in \textrm{directed graphs over $n$ points, where each point has out-degree and in-degree 1}} \hspace{-4cm} (-1)^{\textrm{# of loops with even # of points}} e^{-\textrm{sum of lengths of edges in }g}$$ Also, I think I can prove the result given a proof of the following: For a bipartite graph, if you take the softmin over $(d_{ij})_{i \in [n], j \in [n], i \textrm{ and } j \textrm{ on same side}}$ that is bigger than the softmin over  $(d_{ij})_{i \in [n], j \in [n], i \textrm{ and } j \textrm{ on opposite sides}}$. (Note that distances between distinct points are being double-counted, but distances between a point and itself are not.)


What or Who is taking SQL Server backups

I have inherited a SQL Server 2008 R2 (SP3) Database. There are backups being taken daily at seemingly random times. The backups are not being saved locally on the server. I see the backup information in msdb..backupset table. What is taking these backups and where is it storing these backups? I see that VSS writer is the program name, I can disable the Service but I would like to get more information of what was done before I disable this service.   There are no agent jobs There don't seem to be any Task Scheduler Jobs There is no external program installed   I have created a trace and I see the following.  SQL: BACKUP DATABASE [master] TO VIRTUAL_DEVICE='{8305D2E8-56C5-41E5-9F54-    17DDEE1A6991}7' WITH SNAPSHOT,BUFFERCOUNT=1,BLOCKSIZE=1024,COPY_ONLY  HostName is same as Server  Application Name: Microsoft SQL Server VSS Writer  LoginName: NT AUTHORITY\SYSTEM


round up this way (keeping up to decimal)

How do i change 2.278481... to 2.2?  double a = 180; double b = 79; double x = (a/b);   Math.ceil() returns 3 and Math.floor() returns 2


About the artworks used in the Elfen Lied opening scenes (contains nudity)

The anime Elfen Lied is notorious for its one of a kind OP, featuring the mesmerizing theme song Lilium composed by MOKA and performed by Kumiko Noma, as well as sequences of art porn, a homage to Austrian symbolist painter Gustav Klimt. The idea to pose the characters as in Klimt's artworks came, as far as I know, from director Mamoru Kanbe, who continued this idea in the OP of Sora no Woto. (In my humble opinion, the OP of Sora no Woto is rather bland, and seriously, Klimt with Kalafina?)  This is a self-answered question and a modest attempt at unraveling the sources of and the symbolism represented in Elfen Lied's OP scenes. Other answers and/or suggestions are welcome.


Connecting point to another through 'road' node using Routing and OpenLayers?

In a routing application,probably using osm as base layer, how do I get a line-string that goes through the road and not directly from one point to another?   Is there any software,like an API?   I have seen pgRouting will it do the road?   Do I need to downlaod any data?  So for example I have this situation where point A is a starting geometry point and B is the ending geometry point and the black line is the road:    If I want to use a layer with a linesting feature from Point A to B it will look like this: (the red line is the linestring and the black one is the road.)    But what I want is the linestring to follow the road like this:    Suppose that the red like goes exactly like the black line and completely follows the road without us adding any other geometry points other than A and B!   Note that I am using OpenLayers API and I am not asking for a whole routing package, I would like to know how to connect geometry point with 'road' or 'highway' nodes.


Where is the folder icon of dark mode located?

Where is the dark mode folder icon located?  The Dark Mode is so cool, but the blue folder icon is too bright in the whole black background. The grey one would be better for me.  So how do I change the icon?  In the early version,（OS X 10.6-10.11，macOS 10.12-10.13） the path of the folder icon is /System/Library/CoreServices/CoreTypes.bundle/Contents/Resources  But in this folder, there is no Dark Mode folder icon. And, the icons of Light Mode are still here.     Who knows where I can find the dark icon, please?  An amazing thing is that when I use a grey folder icon that made by an artist in Deviantart.com to replace the icon of system itself(/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericFolderIcon.icns), all the folder icons in finder windows had been changed into grey,and thay are light,the icon didn't change into dark mode with the system appearance. It seems that the icons that I think are only work in Light Mode are still work in the Dark Mode. But, they are available only in the files are system themselves.


Is it possible to change the color of a light bulb?

I am curious as if it is possible to change the color of light being emitted from a light bulb or LED. The theory is if you were to use a frequency generator, up to above UV hrz, and used an amplifier to power the light bulb, one might be able to change the color of the light emitted. As a standard filament bulb is powered by DC current, as in a flashlight, the filament gets hot and glows. If a similar filament bulb is powered by AC current like a typical desk lamp, the filament gets hot and glows. I wonder if frequency would have any effect on how the filament emits light. I do believe however that with a non-filament light like an LED would change color. Also what about GAS lights like Neon or other gas tube lights? Anyone have insight on this? Thanks.


I'm writing a macro to write some commands into a text file. This text file is supposed to be read later to execute some macros.  The macro :  \documentclass{article} \begin{document}% \newwrite\tmpfile% \immediate\openout\tmpfile=output.tex% \immediate\write\tmpfile{some text and a percent sign}% \immediate\closeout\tmpfile% \end{document}%   The exported text  some text and a percent sign   To avoid boring blanks, I need to finish my lines with a percent sign : %  I tried this line   \immediate\write\tmpfile{some text and a percent sign\%}%   which gave :  some text and a percent sign\%    and it's not want I want. I would like to have :  some text and a percent sign%    Is it possible to write a single percent sign (%) to a file and how to do ?


Free And Open Source Software Tools to orthorectify Pleiades imagery

Are there Free And Open Source Software Tools to orthorectify Pleiades, Worldview And Quickbird imagery as we do with COST tools such as ERDAS Imagine, PCI, ENVI, etc.?


QGIS 2.14.1 LAStools install error: "wrong value for parameter 'Msys folder'..."

I went to step 4 from  guide and extracted LAStools to my C drive and just made the folder there.   I can't do step 8 because it seems to already be in "advanced interface". Then, step 9 mine only says "Options".   Step 10 is where I get the error message and it won't go past that step. I keep getting this error message. Can anyone help me get this installed?


Review Comments for Program Chair -- what to write?

I am preparing some reviews of conference contributions. The online review management asks me to grade the assigned papers, add comments for the authors and comments for the program chair. I cannot leave any field blank -- so I am wondering what comments I should give to the chair? To my knowledge, comments to the chair include suspected or actual cases of plagiarism.  Is there anything else, a chair might expect to read from me, the reviewer?  Should I give them a short version of my comments to the authors?   The conference homepage and the reviewer guidelines do not give any hints. Thank you for your input!


Do personal checks expire in the US?  Also, if I stamp the following on it:     VOID if not claimed within 60 days.   Will that be honored by most banks?    Related


Variations in meaning between "Last week" vs. "The last week" vs "The last n weeks"?

Similarly between "Last month" and "The last month".   Last week implies, at some point during the previous week. Not inclusive of the current week.  What exactly does the last week mean? Is that inclusive of the current time? Same question for the last n weeks?   Or are phrases ending with ago the only qualifier for being for being inclusive of the current week? A month ago pretty obviously implies a period of 30 days going back from current time.  Thanks in advance!


Derived distribution: PDF of $\sin^{2}(x)$

I want to find the PDF of $Y = \sin^2(X)$, where $X ∼ \text{Exponential}(\lambda)$ is a random variable. I thought i had solved this correctly by simply finding the inverse $h(Y) = X$ and taking the derivative via the chain rule. However, I was told that the solution of this problem would involve an infinite sum, but my solution did not, so I assume it was wrong. I can see why there would be an infinite sum due to the adding up of all the sine intervals, but I could not seem to figure out how to find an expression for each of these intervals that I can then sum up.  Any help would be greatly appreciated, thank you very much in advance!


Today I have a problem with my vscode, I can't deploy my lwc or save it, only show me a message error but it is empty.  I try to uninstall vscode, extensions or updating sfdx without any solution.


80s or 90s movie - Asian man jumps through large spinning fan

I don't have much to go by here... but I'll give it a shot. I would have to say this movie was set in the late 80's early 90's. (May possibly be an episode of a TV show)  I remember one of the characters was an Asian guy who at one point jumps through a spinning fan/vent. The jump is in slow motion, and he lands on the other side of the spinning fan blades and kicks the fan from the other side to stop the blades from spinning, allowing the other people with him to get through.   I wanna say that the main character/hero is sort of a Robocop-type character. I even thought at one point that it WAS Robocop.. but I skimmed through the Robocop movies and couldn't find any familiar scenes. I remember that the three heroes of the movie were this potential "Robocop-like dude", the Asian dude, and a kid. There may have been a forth but I can't remember. At the very end of the movie, the "bad guy" was in some sort of air craft or space ship or laboratory or something, and he laughs just before the whole place explodes. I'm pretty sure the bad guy had a beard and mustache.


How to solve All threads core not showing

I want ask issue regarding the number of cpu threads that can be read from the os. This question is how to resolve core not showing and not ask how to check core threads. Server spec  Hpe dl360p gen8 Cpu: 2 x E5-2680 v2 Debian Proxmox Hyperthreading enabled On Bios  Threads cpu should be 40 threads from 20 cores, but when I checked from lscpu and cat /proc/cpuinfo  only show 20 threads. Before I rebooted the server, the threads still read 40, and after I rebooted it only read 20 threads. Do you have idea to make all threads show?


Exact Target- Turn off redirects in emails? No tracking needed

Is there a way in Exact Target to turn off any links in text emails being changed to exact target redirects? We don't need link tracking and our IT team is being very particular about people getting email messages with links that aren't direct links.


Proof that sum of first $n$ cubes is always a perfect square

I know that $$1^3+2^3+3^3+\cdots+n^3=\left(\frac{n(n+1)}{2}\right)^2$$  What I would like to know is whether there is a simple proof (that obviously does not use the above info) as to why the sum of the first $n$ cubes always a perfect square.


For which pairs of natural numbers m and n does there exist a ring homomorphism $\Bbb Z/n\Bbb Z$→ $\Bbb Z/m\Bbb Z$?

(a) Determine the set of units $(\Bbb Z/n\Bbb Z)^\times$ for $n = 4, 9, 15, 16$. (b) For which pairs of natural numbers $m$ and $n$ does there exist a ring homomorphism $\Bbb Z/n\Bbb Z$→ $\Bbb Z/m\Bbb Z$? Where $\Bbb Z$ = set of integers.  My attempts: a) I know that $a$ in $\Bbb Z$ is a unit if there exists $b$ in $\Bbb Z$ such that $a.b = b.a = 1$ where $b$ is the inverse of $a$. So for $n=4$, $(\Bbb Z/4\Bbb Z)=\{0,1,2,3\}$ and $(\Bbb Z/4\Bbb Z)^\times = \{1,3\}$. And for $n=9$, $(\Bbb Z/9\Bbb Z)=\{0,1,2,3,4,5,6,7,8\}$ and $(Z/9Z)^\times = \{1, 2, 4, 5, 7, 8\}$. I'll do the same procedure for $n= 15$ and $n=16$. Concerning part b), we didn't talk about it in the lecture, but I know that $\Bbb Z/n\Bbb Z$ →$\Bbb Z/m\Bbb Z$ is a ring homomorphism iff $m\mid n$ and so the pairs for $n=4$ are $(m, n)=(4,4), (4,8),(4,16),(4,20)$, etc... And for $n=9$ the pairs are $(m, n)=(9,9),(9,18),(9,27),(9,36)$, etc... Is part b) correct? If not can you show me what is its answer? Thank you.


What to pass to the Arrays instance method toArray(T[] a) method?

If you have an instance of a Collection, say something like:  Collection<String> addresses = new ArrayList<String>();   Which were to then be populated with a bunch of values, which is the "best" way, if any, to make use of the toArray() method without requiring a type cast?  String[] addressesArray = addresses.toArray(new String[] {}); String[] addressesArray = addresses.toArray(new String[0]); String[] addressesArray = addresses.toArray(new String[addresses.size()]); String[] addressesArray = addresses.toArray(new String[addresses.size() + 5]);   Is there any semantic difference between the first two? Is the third most efficient? Is the fourth less efficient than the third?


Broken image link on the new Stack Exchange blog

Before I jump on to the problem, let me first congratulate  and his team for the newly re-designed Stack Exchange blog. I like it very much, great job! While searching on Google, I stumbled upon  blog post of Jeff Atwood and found few broken images. There are currently four images are broken on this post, Here is one of them:    Upon doing an inspect element on one of the broken image (same goes for all other broken images on the post), I found out that it is currently pointing to: https://blog.stackoverflow.com/wp-content/uploads/stackexchange-genuine-example11.png The newly re-designed Stack Exchange blog is now moved to a new location:  and the old blog URL i.e.  has the correct mapping of URL redirection (also called URL forwarding) and works perfectly. But, the problem lies in the latter part i.e. /wp-content/uploads/ directory structure does not exist anymore at the new blog location. I read the Jon Chan's  post (nice writeup! btw) where he talks about his custom Python script. Here is the relevant excerpt taken from that post:  I wrote a Python script to go through all the imported posts, looked for references to WordPress hosted content, download all the static assets into images/wordpress in the repo, and changed all the links to relative paths on Jekyll. Worked surprisingly well.  In other words, all of the old /wp-content/uploads/ static assets is now resides under the /images/wordpress/ directory at the new blog location. So, Jon's find and replace script should have worked (which it did for the most of the part) as intended to be but apparently it did not catch few of them. At least on  blog post and few other like ,  or . We could possibly have more but these are the ones I have found so far. I believe it's a minor bug somewhere in the script and could be fixed with few lines of code tweaking. Also, the static content link mapping problem would not have occurred at all if the directory name was unchanged as the URL redirection (as stated above) would have taken care of it. But, there must a reason for this change. Upon investigating further, I found out that the issue with broken images does not end here. They will still appear as broken even if Jon's script replaces the path to the correct one. Because the images have not been uploaded (or copied) to the blog's new /images/wordpress/ directory at all. They are missing! For example, try clicking on the following link: ## I replaced old dir. path /wp-content/uploads/ to the new /images/wordpress/  So, in a nutshell, in order to fix this broken images link problem, we need to make sure that not only they are pointing to new path i.e. /images/wordpress/ but also do exists (i.e. uploaded) at the blog's new location. Please fix this at your earliest.


Trying to find the principal value of the above equation I've done the first couple lines \begin{align} &e^{(1+i)(\log(-1+\sqrt{3}i)}\\ &e^{(1+i)(\ln(2)+\frac{2\pi}{3})} \end{align} How would I further simplify this?


variable referenced before asignment (discord.py)

I'm trying to do a variable that I need to use in two functions. I created it normally at first it did not work so then I tried with the global keyword. Long story short, it didn't work either. Here's my code: global isDownloading isDownloading = False global userDownloading userDownloading = "" #SourceCode @client.command(aliases = ['d']) async def download(ctx, path = None):     c.execute(f"SELECT * FROM EvickaDev WHERE Name = ?", [ctx.message.author.name])     string = c.fetchall()     try:         ID, name, rank = string[0]     except:         c.execute("INSERT INTO EvickaDev(Name) VALUES (?)", [ctx.message.author.name,])         conn.commit()         rank = "User"     conn.commit()     print(rank)     if rank == 'Evicka':         paths = folderStructure.DisplayablePath.make_tree(folderStructure.Path(''), criteria=lambda path: True if path.name not in ('.git',  '__pycache__', 'etc', 'Include', 'Lib', 'share', '.vscode', 'Scripts') else False)         message = ''         for path in paths:             message += f'{path.displayable()}\n'         message += 'Enter the path to the file you want to download. You have 10 seconds.'         await ctx.send(message)         isDownloading = True          userDownloading = ctx.message.author.name         await asyncio.sleep(10)         if isDownloading:             await ctx.send('You didn`t enter anything.')             isDownloading = False             userDownloading = ""                  else:          ctx.send('You have to be rank Programmer or higher to do that') @client.event async def on_message(message):     if isDownloading and message.author == userDownloading:         try:                 await ctx.send(file = discord.File(message.content))         except:             await ctx.send(f"Could not find a file named `{message.content}`")         isDownloading = False         userDownloading = True  Here is the error:   File "C:\Users\gapavida\Documents\Programming\Evicka\lib\site-packages\discord\client.py", line 343, in _run_event     await coro(*args, **kwargs)   File "c:/Users/gapavida/Documents/Programming/Evicka/Evicka.pyw", line 250, in on_message     if isDownloading and message.author == userDownloading: UnboundLocalError: local variable 'isDownloading' referenced before assignment


Which is correct sentence? Use of verb with would

I am having little difficulty with the use of would. Here are two examples that are making me confused about use of verb with would.   What would happen if he loses the match? What would happen if he lost the match?   Which one of these two is correct?


Question about the 90/180 Schengen visa rule

Good evening lovely StackExchange forum!  First of all sorry if this question has been asked already, I didn't find an appropriate answer searching through the internet on my own and got confused a lot.  I've met someone who doesn't have an European passport.. and of course I fell in love with her and want to meet her again. She luckily decided the same. She entered the Schengen Area on the 03.10 and left on 12.12.2018, so she stayed for 71 days and her 180 days period ends on the 31.03 if I am counting correctly.  So my question is, could she use those leftover 19 days to "extend" her upcoming new tourist visa? Like arriving the 13.03, using the 19 days and then start the new 90/180 days period. If yes, does she has to stay 1 day out of the Schengen Area and reenter, or what would you suggest to take care about/ how to do it?  Thanks a lot for any answer in advance, you will help in the name of love haha  Trebuh  The edit:  Hello, I still don't find an appropriate answer on my own or I seem to not understand the other answers properly, I am not a native speaker and got problems with the level of explanation of some of the answers. Also it would be very nice if you answer my actual question, as the 180 day period never ends / there is no single 180- day period doesn't help me, it confuses me as I find different opinions about that. I was simply asking if the given case is possible and if yes, if she has to leave the Schengen room for a day. The question is really easy. Thank you.


What's up with people adding JSFiddle links to questions? (asking about edits only)

When I review edit proposals, I often see users who try to edit the question just to add a link to . Usually the explanation for the edit is something like "added fiddle".  First of all, as I don't use SO for JavaScript as much, it took me a while to understand the point of this site (the edit proposers certainly did not make it clear).  Second, I don't see the point of constantly linking to Fiddle or similar services. SO is, after all, a site for discussing programming questions, and not a site for collaborative coding. There are also issues associated with outsourcing part of the question to websites that SO has no control over, that previous questions have brought up already.  Personally, I try to ask my questions so that they can be answered from reading alone, and require as little actual coding for the answerer as possible (that's not to say I don't welcome or am not grateful for anyone taking the time to produce a solution by experimenting).  Also, there is the question of consistency. I use SO for C# quite a bit - there are online C# compilers, but I don't think I've ever seen a question link to one (as if to invite answerers to tinker with the code). If I start accepting every edit that merely adds a  JSFiddle link, that implies that I should also edit every code question I see to link to an online compiler. That would be a ton of work, and it seems like that would only serve to clutter the site.  So far I have rejected these edits (too minor or spam). My question(s):   Why do people edit questions and add JSFiddle links? How should such edits be handled?   I am asking specifically about edits, which only add a JSFiddle link. If a question author wants to include a JSFiddle, we can consider that outside the scope of my question.


I know there is an option available in preferences to increase "Width Outline". However this only applies to active object.  Is there anyway, through code manipulation possibly, to increase Line Width for all empties, latices, and objects in viewport? I believe the default value is 1px.


What software could I use for aligning time lapse stills to remove camera shake?

I've been playing around with some time lapse sequences shot from the roof of our building in New York.  It's terribly windy and the resulting sequence exhibits some slight camera shake.   I'm seeking a software solution to align the images to compensate.  Note: I don't have PhotoShop.


$$\sum_{r=0}^{n-k} {n \choose r}{n \choose {r+k}}={n \choose {n-k}}$$   Can you prove why this result is as such? I have no idea how to start proving this property.  Thank You!


d1 = {'Adam Smith':'A', 'Judy Paxton':'B+'} d2 = {'Mary Louis':'A', 'Patrick White':'C'} d3 = {}  for item in (d1, d2):     d3.update(item)  print(d3)   In this Python Code, the task is to merge the dictionaries and assign the merged dictionaries to the third dictionary. They used the for loop aproach which is a bit confusing for me as I'm not able to understand the loop part.   Could you help me determine that loop-debugging part?


Counterexamples to the continuum hypothesis

Assume the continuum hypothesis is false, and add that as an axiom to ZF set theory. How many cardinalities are between the rationals and the reals in this case? Only one? Infinitely many? Countably many? Uncountably many? What are the possibilities to the quantity of counterexamples?


How can centripetal acceleration not change speed?

I have seen a question similar to this asked online, but the answers do not make complete sense to me. In studying centripetal acceleration, the textbook I am using argues that the centripetal acceleration must be perpendicular to the tangential velocity, otherwise the speed of the object would change. However, wouldn't the speed still change if the acceleration were perpendicular (see ).  Now, I have seen the arguments online that this is just a misconception because the perpendicular acceleration is lasting for an infinitesimal (not finite) amount of time so it will not change the speed (significantly). However, if the centripetal acceleration is lasting for such a short period of time that it doesn't change the speed of the object, won't it also not change the direction of the object at all (since it is "so small")? Of course, you can integrate the infinitesimal accelerations to "eventually" change the direction, but in doing this aren't you also integrating the "negligible" errors? Am I misunderstanding something? Thank you!  Edit: I know that the question I linked to is very similar, however I do not think the answers to that question fully answer my question. The question linked to started out without acknowledging the infinitesimal duration of the centripetal acceleration. This is the main focus of my question.


Is it possible for a human to perform vaginal delivery without labor? Is there a name for such practice?

In obstetrics there is a notion of a delivery without labor via c-section under anasthesia. Is there a practice of vaginal delivery under anasthesia?


comparing 1st and 3rd column value in two files

I use Ubuntu 18 and have little experience with Linux commands. I have two files:  file 1:  a,txt1,v1 b,txt2,v2 c,txt3,v1 d,txt4,v2   file2:  a,txt5,v2 b,txt6,v1 c,txt7,v1 d,txt8,v2   I want to print the 1st and 3rd column values where the the 1st column value is identical and the 3rd column value has changed from v1 to v2. So my expected output should be:  a   The second query is for the 3rd column values that has changed from v2 to v1. So my expected outcome:  b


Math problems that are impossible to solve

I recently read about the impossibility of trisecting an angle using compass and straight edge and its fascinating to see such a deceptively easy problem that is impossible to solve. I was wondering if there are more such problems like these which have been proven to be impossible to solve.


How to split an array into chunks of a given length in python?

What is the fastest and shortest method to turn this: ids = [1, 2, 3, 4, 5, 6, 7, 8, 9]  for example into this: ids = [[1, 2], [3, 4], [5, 6], [7, 8], [9]]  by giving the input 2 as the fixed length. Of course there are some easy ways to make this but none of them occur to me as fast or pretty.


Can an image be included in a webpage but protected from copying/saving?

I have a website where I display digital proofs for clients of professional photographers.  I would like to include an option of 'zooming' into the full resolution version of the image, but it is absolutely imperative that it be practically impossible for the end user to reconstruct and save/print the image.  Obviously simply disabling right clicking is out, as the user could simply dig up the image in the cache.  Breaking the image into tiles, then reconstructing them via javascript has merit; the user could still dig up the tiles and put them together in Photoshop, but is that practical for them?  That's up for debate.  I was also wandering today if the image couldn't be read, sent as a character string of pixel color values, and then constructed on the client side using an absolutely positioned element for each pixel.  But my potential solutions seem to be getting more and more ridiculously convoluted.  And I'd like something that's been tested and shown to be scalable.  I can't possibly be the first to deal with this problem.  Is there something else out there that I don't know about?  What is the standard, accepted way to do this?  As an aside, I am aware that I will want to make the image data unavailable to external http requests.  I would plan to have ColdFusion read the image file on demand and stream it to the client.  Thanks!


Do COBE, WMAP, and Plack have design flaws?

MRI expert Pierre-Marie Robitaille on the design flaws of COBE, WMAP, & Planck and the violation Kirchhoff's Law:  Here are his talks:      Robitaille holds the world record for highest resolution MRI imaging.  An interesting point he makes is that cosmological sources would not vary over time, yet the COBE, WMAP, and Plank data are highly variable.  Here are his papers detailing the design flaws of COBE, WMAP, and Planck:  Robitaille P.-M. WMAP: A Radiological Analysis   Robitaille P.-M. COBE: A Radiological Analysis   Robitaille P.-M. The Planck Satellite LFI and the Microwave Background: Importance of the 4K Reference Targets


Why is my string reversal function having a segmentation fault?

My main suspicion is that i am meant to null terminate the string i'm returning or is it already terminated ?. Here's my code:  #include <stdio.h> #include <string.h> #include <math.h>  char* reverse(char*);   int main(void) {  printf("%s",reverse("abcde")); return 0; }  char* reverse(char* string){   int length = strlen(string);   int limit = (int)floor(length/2);   char temp;  for(int x = 0;x<=limit;x++){     temp = string[x];     string[x] = string[length-x-1];     string[length-x-1] = temp;  }  return string;   }


An improper integral : $\int_{0}^\infty {\ln(a^2+x^2)\over{b^2+x^2}}dx$

How to evaluate the following improper integral:$$\int_{0}^\infty {\ln(a^2+x^2)\over{b^2+x^2}}dx,$$ where $a,b>0$.    I tried to suppose $$f(a)=\int_0^\infty {\ln(a^2+x^2)\over{b^2+x^2}}dx,$$ based on the convergence theorem, and then I tried $${df(a)\over da}=\int_0^\infty {2a\over {(a^2+x^2)(b^2+x^2)}}dx = {\pi\over b(b+a)},$$and then $$f(a)={\pi\over b}\ln(b+a)+C,$$where $C$ is a constant, but I don't know how to find the constant $C$. Could anyone tell me that, and explain why? Or could anyone find other methods to evaluate the integral? If you could, please explain. Thanks.


Finding an example of a discrete-time strict local martingale.

Find an example of a discrete-time local martingale that is not a true martingale.   I was thinking hard for some time about this fun problem.  I know that $\mathbb{E}[|M|_t]=\infty \text{ for some } t\geq0$ should hold. Moreover any non-negative local martingale in discrete time is a true martingale, so this restricts my choice even more. I played around with Cauchy distribution, doubling strategy.


Why Measurable space with power set is still called Measurable?

By the standard definition, a measurable space is a tuple (X,F), where X is a set, and F is a sigma algebra on X. Now we take X as real numbers R, and the power set of X (which is a sigma-algebra) as F. We know that power set on R contain non-measurable sets, why then such a pair (tuple) would still be called a measurable space?


After doing a sudo apt-get install , where does the application get stored to?

After installing apps via apt-get install -app name-. Where does the files get copied to? Are the copied to just one location or multiple locations? And if so how do I find this out?  Here's an example:


Why can some games run on my computer, but some others don't? Is it my video card?

Maybe it is something else other than video card which makes some games run on my system when others don't.  I can play , released November 11th, 2005. However, I can't run ,  or , which actually are older and have lower requirements!  My system specs:   Processor: P4 2.80 Ghz Ram: 512 mb   chipset: intel 845g   graphic controller: built-in intel 82845G   OS : Win XP     How can i verify which game will be playable and which game will not be playable on my system?


tikzposter / authblk - how to change index font size of the affiliations

I used tikzposter to create a poster and authblk to do my affiliations. My problem is that the first index of the affiliations ( index 1, at Dept. of Alpha Research in the MWE) is a lot larger than the font of the rest of the affiliations. How can I standardize it or fix the font size of my affiliations?  here is my MWE:  \documentclass[25pt]{tikzposter} \usepackage{authblk} %Allows improved author and affiliation design \usetheme{Desert}  %Set title authors and institute \title{\parbox{\linewidth}{\centering ULTRA LONG TITLE NO ONE BOTHERS   TO    READ}} \institute{Alpha University}  \author[1,2]{John Doe} \author[2]{Jane Doe} \author[2]{Jennifer Doe} \author[3,4]{James Doe} \author[3]{Jenna Smith} \author[2]{John Smith} \author[1]{Jennifer Smith}   \affil[1]{\normalsize Dept. of Alpha Research} \affil[2]{\normalsize Beta corporation} \affil[3]{\normalsize Gamma university} \affil[4]{\normalsize Delta Research group}  %Make title customizer \makeatletter \def\maketitle{\AB@maketitle} \makeatother  \begin{document} \maketitle \block{Abstract}{ Tih is an abstract to fill the MWE } % See Section 4.2 \end{document}


How do I keep a form "clear"? It keeps auto populating with saved usernames

I'm working on making a login page for my react app using react-bootstrap.  However, how do I keep my form clear?  For example, I have saved logins but on Facebook for example, the form is always clear:    This is how mine looks -    How can I make mine clear each time?    Edit:  I tried autoComplete="off" as follow, but it did not work:  <form autoComplete="off">   <FormGroup controlId="formUsername">     <FormControl type="text" placeholder="username"/>   </FormGroup>   <FormGroup controlId="formPassword">     <FormControl type="password" placeholder="password" value=""/>   </FormGroup> </form>


Typesetting arrows above a pair of letters to indicate a line

How do I typeset a line segment, with arrowheads at each end, above a pair of letters to indicate a line?  I know that $\overline{AB}$ can be used to typeset a line segment between points A and B.  How do I draw an arrow above a pair of letters to indicate a ray?


I just read a post where someone said "That's a friend of mine's house." My first thought was, "mine's" is a double possessive! The friend owns the house, and the one posting the comment owns the friend. Anyway, is there a grammatically correct way to say this without rearranging the sentence or should you just rewrite it as "A friend of mine owns that house." Is there some kind of rule for turning a whole phrase possessive? Thanks.


I was playing with someone on Ark: Survival recently, I CTD'd and couldn't get his information. Are there any means that I could find this user's Steam account even though he hasn't logged in since?  I know of the function View: Players in Steam, but it only shows me the last 24 hours and I haven't played with this player in 3-4 days. Is there a way I could extend the view recent players function on Steam? Is there a record of this somewhere? Or do I have any further options?


How to create more space for Ubuntu Partition

I wanted to create more space for Ubuntu on my hard disk taking it away from my Windows partition, so I booted the LiveCD and resized the NTFS partition. Then I wanted to resize my Ubuntu (ext4) partition to fill up the created unallocated space. Unfortunately I cannot add more space to the partition.  How should I proceed?


Tapping the iOS Software Engineer recommended job link sent me to a "Not Found" page.


How do I make a shell script that changes the background at night?

All I want to do is create a shell script that runs in the background. It turns on when I log in/on boot up.  Every hour it checks the time for 9:00 pm, (if you can figure out sun sets and rises that would be great), if it is past it switches the background.   Then it changes the back if it is past 9:00 pm. But past 7:00 am it would turn that background off.  Basically just switching between 2 backgrounds. How can I do this?


If $f(x)=\chi_{(0,\infty)}\exp(-1/x)$, show that $f\in C^{\infty}$.

Define the function $f:\mathbb{R}\to\mathbb{R}$ as follow:  $f(x)=\chi_{(0,\infty)}\exp(-1/x)$  In other words: $f(x)=0$ if $x\le 0$, and $f(x)=\exp(-1/x)$ if $x>0$.  Show that $f\in C^{\infty}$.    So I think I want to show the nth derivative $f^{(n)}$ is continuously differentiable for all $n$. I might want to proceed by induction. The only point we need to worry about is when $x=0$, since for $x$ outside of its neighbor, $f$ clearly satisfy the property. So I want to show $f^{n}(0)$ exists for all $n$. That's it, $\lim_{d\to0}\frac{f^{n-1}(d)-f^{n-1}(0)}{d}=0$. Maybe I can find a closed-form for the nth derivative at $0$??


Suppose that both $p$ and $p^2 +2$ are prime numbers. Show that $p=3$.

Can someone help me out with this? I've been working on it for quite a long time but I'm not sure if I'm even getting anywhere.


An orphan is a child whose parents have died. Is there a single English word to describe a parent who has lost all their children? If not, what is the most clear and concise description for this condition?


Notification icon that looks like 3 stacked horizontal bars

What is this notification icon that looks like 3 stacked horizontal bars?


Conceptual difference between correlation and regression

In my corner of the world, I encounter this situation. A student will work on his/her dissertation/thesis and have a set of variables. To address the hypothesis, the student conducts a correlation matrix. I often encounter faculty who state "well, if you have several variables that you are correlating, why not conduct a regression?"   In general, I find that my colleagues response is misplaced. It's as if they are applying a rule that whenever you have multiple variables, do a multiple regression. It's as if the faculty want to see (a) which variables are more important than the others based on the beta coefficients, (b) which variables cancel each other out when they are examined simultaneously, i.e., entered as predictors in regression, or (c) examine the changes from the zero-order correlation to a partial correlation for each variable in the matrix.My colleagues also maintain that we should conduct a partial correlation matrix and observe associations between all the variables while partialing out the covariates, such as demographics.  I get the feeling that among my colleagues, it seems more sophisticated to use a regression analysis, or conduct partial correlations, instead of examining a correlation matrix.   My counter arguments against perfunctorily conducting a regression analysis whenever you have more than two variables are the following: (a) you have to have a theory and a research question that dictates which variables are the predictors or outcome variables, and which ones are presumed to have stronger predictive power than the other variables, (b) this view of "why not conduct the regression and see what happens?" means that the results are not meant to address any established hypothesis and research question, (c) running these analyses starts to border on "fishing" and creating more work that does not address the original research question. Conducting a correlation matrix is simpler and if examining the set of associations between the variables is sufficient for answering the research question, then conducting the correlation matrix is sufficient.   if my colleagues are correct in that all associations should be analyzed using multiple regression or partial correlations, then it would seem that there is no need to use a correlation matrix for anything except an initial observation of the associations among variables. I don't agree with this assertion but I am running out of ways to support my view that conducting a correlation matrix, as long as it suits the study's objectives, is just fine. Any ideas on how else I can best support my view?


Is there a way to hide certain apps from the cmd+tab menu?

Is there a way to hide certain apps from cmd+tab?  The problem I'm facing is that I have some apps (like iTunes and of course Finder) always open. But when I'm working and switching between apps that are relevant for me (Chrome, Sublime, Terminal) with cmd+tab I'll always see these 'irrelevant' apps in the menu.  Thanks


Are there uncountably many $A\in M_3 (\mathbb {R})$ such that $A^8=I $?

I'm working on the following problem:     Let $A \in M_3 (\mathbb {R})$ be such that $A^8=I$. Then           the minimal polynomial of $A$ can only be of degree $2$.     the minimal polynomial of $A$ can only be of degree $3$.     either $A = I$ or $ A = -I$.     there are uncountably many such $A$.        By taking $A=I $ we can eliminate options (1) & (2). For the minimal polynomial of $A$ in that case is of degree $1$. Now take   $$A = \begin{bmatrix}      1 & 0 & 0 \\      0 & -1 & 0 \\      0 & 0 & -1 \end{bmatrix}$$  Then $A^8=I $ but $A$ is neither $I$ nor $-I$. So option (3) is eliminated. Now I don't know how to proceed about with option  (4). Can someone help me please? Thanks in advance.


creating a cpio archive ingnoring modification time of files

how can I create a cpio archive by ignoring the modification times of the files (or imposing them at a known value)?  The context is as follows: in the build process of an embedded project some "intermediate" files are stored in a cpio archive. They will be used by the FW of a microcontroller, so neither uid/gid nor modification time is involved. My constraint is that I must be able to rebuild a certain version at any time, ensuring that I always get the exact same binary (bit by bit). But if the modification time is also stored in the cpio this constraint is no longer met.


Remove all the new lines in a text file using sed


While most sources seem to agree that death is an important part of being electrocuted, some believe that injuries caused by electricity also fit the definition.  Electrocute: to kill (a person or animal) by electric shock.  Electrocute: to kill by electricity.  Electrocute: to kill someone by causing electricity to flow through their body.  Electrocution is death caused by electric shock, electric current passing through the body.     Electrocute: Injure or kill someone by electric shock.  Electrocute: injure or kill someone by electric shock.   So do you have to die, to have been electrocuted?


Why Lagrangian is negative number for a relativistic massive point particle?

In the special relativistic action for a massive point particle, $$S=\int_{t_i}^{t_f}\mathcal {L}dt,$$ why is the Lagrangian $$\mathcal {L}=-E_o\gamma^{-1}$$ a negative number?


What nice value would have the most CPU process Time?

A process A with a nice value = 3 as well as process B with a nice value=5. Which of these two processes would get the most CPU time?


Get column with same name from multiple tables using PHP

Ok, so here is what I have right now:  $stuff = mysql_query("SELECT * FROM Table1, Table2") or die(mysql_error()); if ($info = mysql_fetch_array($stuff)) {     $table1ID = $info['Table1.ID'];     $table2ID = $info['Table2.ID']; }   My problem is this does not work. I get nothing. And when I do this:  $stuff = mysql_query("SELECT * FROM Table1, Table2") or die(mysql_error()); if ($info = mysql_fetch_array($stuff)) {     $table1ID = $info['ID'];     $table2ID = $info['ID']; }   It is the same ID (of course). So how do I get the ID of the first table and the second table when they have the same name?


migrated question is not updated with username

While roaming in meta stackoverflow I came across an user named .  I checked one of his best answer   where I found his username as Al Everett.  on clicking, it redirects to his profile named as Krampus.  Here is a couple of screenshots     I guess it happended because it is a migrated question whereas I don't see it in other questions.


There should be universal LaTeX/MathJax guide for sites supporting it

Currently, , ,  and  have MathJax support which turns LaTeX code into equation. At least on math, occasionally there are users that do not know this feature or don't know it's possible to use LaTeX (MathJax), resulting a badly formatted post. I suggest that there should be a common "LaTeX/MathJax typesetting help" page for those sites that enabled MathJax support, like the  that is present on all sites. Preferably, there should also be a line  LaTeX equations $\sin^2 \theta$  in the "How to Format" on the right hand side. See also:


Having natbib.bst accessible on Mac OS X

While running bibtex I'm getting the following error :  I couldn't open style file natbib.bst   I guess the problem is that bibtex can't find natbib.bst, how can I solve this problem ?