body1
stringlengths 20
4.1k
| body2
stringlengths 23
4.09k
|
---|---|
very new here - first question in fact. So, don't be fooled by the title of my question. I understand that the Bell Paradox - and non-locality - prevents information being exchanged in a faster than light matter. So, Spaceman A on Neptune, cannot send a morse-coded message to Earth using quantum entangled particles - the need to force a particle to choose a state releases the entangled particle at the other end from behaving (instantaneously) in a determined matter. Information from Spaceman A cannot be sent from Neptune to Earth at faster than light. But - my question is - who cares about spaceman - or any conscious entity sending information - -the fact is the entangled particles themselves are affected at faster than light speed. Particle A observed on Neptune at midday will have the same state of spin as Particle B observed at an equal time on Earth. The observation and confirmation of the fact takes place retrospectively - but this doesn't detract from the fact that the wavefunction will be demonstrated to have collapsed simultaneously across a vast distance - something is acting on them at faster than light speed. Any thoughts, or comments to explain why this is wrong, greatfully recieved !! | According to the special theory of relativity, distant simultaneity depends on the observer's reference frame. And, according to the quantum theory, in the case of two entangled particles, a measure on one of the particles simultaneously affects the second one. Under which reference frame is this simultaneous? |
I know that $AB$ and $BA$ have the same non-zero eigenvalues, where $A$ and $B$ are rectangular matrices, but my question is: Is it necessary for $AB$ and $BA$ to have the same number of non-zero eigenvalues? In other words, suppose $AB$ is a $8*8$ matrix and $BA$ a $6 * 6$ matrix. Then can $AB$ have eigenvalues of $0, 0, 0, 0, 0, 2, 3, 4$ when $BA$ has eigenvalues of $0, 0, 2, 2, 3, 4$? Writer's edit. Note that the question can be answered using the generalization of the Sylvester's Determinant Identity: and the generalization process: , meaning the answer to the original question, would be "True." | I know that if A and B are square nxn matrices, then AB and BA have the same characteristic polynomial and thus the same eigenvalues (and same algebraïc multiplicity). I'm wondering though if this can be generalized: if A is a nxm matrix and B a mxn matrix, then AB is a nxn matrix and BA a mxm matrix. So my question is: will the eigenvalues of AB and BA, that differ from zero, have the same algebraïc multiplicity? |
I'm still learning the linux file system and understanding where everything is installed. I'm coming from windows mindset and would like to wrap my head around the following directory equivalents: What is the following directory equivalent in ubuntu or just linux in general as im assuming its the same: c:\program files --- Where all the programs are installed. c:\windows --- Main OS core files. c:\Users --- Where all the users data reside c:\ --- All the startup / bootup files (config.sys / autoexec.bat) --- What other important directories should I know about to fully understand the ubuntu/linux file system structure? | In Windows there’re perhaps only a couple of important folders (by important I mean important in my logical picture of the Windows file system) in the installation drive (in my case C:\). Namely Program Files and Windows. I simply stay away from Windows folder and the “add remove program files” is good enough to handle the program files folder of Windows. Of course there’s a folder named Users where the users (who are not admins) can access only their folders. Thus there’s a clear picture at some level in my mind of the Windows file system. In Ubuntu, when I reach the location /, there’s a huge list of folders, most of which I have no clue as to what they contain. The /bin folder seems to be the equivalent of the Windows folder in windows. The /usr folder seems like it’s the equivalent of the Users folder in Windows. But even the /home folder looks like it can fit the bill. Please understand that I do understand, that Ubuntu (Linux) has a different character than that of Windows, i.e., there need not be exact equivalent of Windows functions, in Ubuntu. All I am looking for is a bit more clearer picture of the Ubuntu file system. This question is a part of a bigger question which I am splitting up to make it more answerable. The original question can be found here: |
I have a Iranian passport but I also have the biometrics visa from Ireland as well. Do I need a visa to have a connection flight from Amsterdam? | I found many related questions on this site but I am still not sure about the rules. How can I decide if I need a visa to transit? Schengen members as of May 2021 are as follows: Austria Belgium Czech Republic Denmark (excluding Greenland and the Faroe Islands - but an open border with the Schengen Area is maintained) Estonia Finland France (excluding overseas departments and collectivities) Germany Greece Hungary Iceland Italy Latvia Liechtenstein Lithuania Luxembourg Malta Netherlands (excluding Aruba, Curaçao, Sint Maarten and the Caribbean Netherlands) Norway (excluding Svalbard) Poland Portugal Slovakia Slovenia Spain (except Ceuta and Melilla) Sweden Switzerland |
I want in a document of mine to keep a lot of notes so I would like to create a custom counter so every note to be numbered like this: 0001 0002 0003 0004 (They are deliberately bold as this is the style I would like) I would like the counter to work like the enumerate environment so to add a keyword in front of the note I want to number and also to be able to reset it. The reasons I don't use the enumerate environment are: I want the numbers to be bold I want custom formatting of the numbers i.e. 0001 etc... I really want to see how I can create something like that. | I can output the value of a counter in a LaTeX document via: \setcounter{mycounter}{1} \arabic{mycounter} Which inserts a 1. But how do I format the output by, for example, adding a leading zero if mycounter is less than 10 in a way similar to what lets you do by specifying %02d as your format string? |
Why energy cannot be created nor destroyed if the Universe is still growing in size?There is creation of new space and infact this space is so energetic that causes 'Hubble flow' of matter... | In popular science books and articles, I keep running into the claim that the total energy of the Universe is zero, "because the positive energy of matter is cancelled out by the negative energy of the gravitational field". But I can't find anything concrete to substantiate this claim. As a first check, I did a calculation to compute the gravitational potential energy of a sphere of uniform density of radius $R$ using Newton's Laws and threw in $E=mc^2$ for energy of the sphere, and it was by no means obvious that the answer is zero! So, my questions: What is the basis for the claim – does one require General Relativity, or can one get it from Newtonian gravity? What conditions do you require in the model, in order for this to work? Could someone please refer me to a good paper about this? |
I use ryte to analyze my webpage and it gives the following advice: If the IP (173.###.###.###) of this domain gets called, it should redirect to the real homepage of this domain. Not redirecting requests on the IP can cause duplicate content issues. Currently my server hosted multiple domains, but it has only one IP address. The main domain(most important domain) is www.example.com So to improve SEO, should I let the access of the IP address, like below: https://173.###.###.### to be redirect to my main domain ? Thanks | I have been told by an SEO company to redirect the site IP to the domain using a 301 redirect. This will apparently improve the SEO ranking of the site. The site has a dedicated IP address. Is this worth doing and should it be done ? |
Summary When I restart, applications that should reopen automatically afterwards do not do so. I've checked all of the relevant steps that I can find, however none have any effect. Basic information on this issue can be found in . System Details Windows 10 Enterprise, version 1903, build 18362.267. This is a fresh install (not an upgrade) of Windows 10 on a desktop that used to run Windows 7. It's not connected to an Active Directory. Problem Specifics When I restart, no applications reopen, although many should. Examples include browsers (e.g. Chrome, Firefox, Edge) and Microsoft Office programs (e.g. Outlook). As discussed in the comments below, the online documentation on this can be confusing since this feature in Windows has evolved over time, as have the applications that support it, but I am contrasting this problematic desktop with observed behavior on two other laptops, both of which received a clean Windows 10 Enterprise install. On both of these laptops, applications reopen both when Windows performs an automatic update + restart and when I initiate the restart, . In terms of problem diagnosis, I have run through a host of means of enabling/disabling this feature, however none have any effect on whether it occurs. I have verified that the requisite setting is enabled (see ). I have verified that the requisite registry key is set (see Option 2 ). I have verified that the local computer policy is set to "Not configured" (see Option 3 in last link). In all cases, toggling these has no effect on restart behavior, though the option in the Settings menu does disappear (as it should) when it is disabled by other methods. Lastly, note that folders do reopen on restart of the misbehaving computer, which, as also noted in mentioned at the start of this post, is a separate option from application restoring. Down the Road For future readers, there is also some discussion in about further evolution of this feature in future releases (starting in build 18963) about modification to the behavior. Although this is a later build than mine, out of an abundance of caution, I did try adding the registry key described (the setting doesn't appear in the Settings menu in my build, as it shouldn't), but this had no effect. | I have Windows 10 1809 Enterprise. When I restart Windows, the applications that were open are closed after restarting. Weren't they supposed to reopen automatically after 1709? |
One of the interesting moments in Billions was the end sequence of season 3 episode 9. John Malkovich's character (Grigor Andolov) started to tell a story, ostensibly a memory from his own past. The thing is, the story was completely unrelated to what they were talking about at the moment. What's more, it didn't even have an ending. All in all, I enjoyed watching it, but couldn't make much sense of it. | At the end of Billions, Season 3, Episode 9, Grigor Andolov (John Malkovich) tells a story to Bobby Axelrod (Damian Lewis) about the Christmas market in Moscow. He asks a question about what happened to a boy: Andolov: Many years ago, I was walking along the Moskva Christmas market. You ever seen Moskva Christmas market? Always a sense of good cheer, even during the lean years. I think it was the wine. They serve warm wine with the spices in it... cinnamon and... I was waiting on the line — everyone was always waiting on the line — and finally I got my cup, I turn, and there was this little boy. Runny nose. He looking at me so desirous of my cup of this warm, warm wine that I give him a sip. He stares at me with such a gratitude. And then I notice his mother. Plump breasts. She must have known someone. So I give him my cup of wine. And I take his mother away from the square. Behind the soldiers. And after, I leave her for the soldiers. And I walked back, and this little boy is staring at me with his greedy drunken eyes. Do you know what happened to him? Axelrod: No. Andolov: I always ask. No one ever knows. What is the real meaning of this story? And how is it connected to the Axelrod – Andolov relationship? |
How can I physically stretch the plot below both horizontally and vertically? import pandas import numpy import matplotlib from matplotlib import pyplot %matplotlib inline df = pandas.DataFrame(numpy.random.randint(0,5,size=(10, 2)), columns=list('AB')) fig = matplotlib.pyplot.figure() ax = fig.add_subplot(111) ax2 = ax.twinx() ax.plot(df.index, df.A, color ='r') ax2.plot(df.index, df.B, color = 'b') | How do you change the size of figure drawn with Matplotlib? |
I was trying to think of a situation and use combinatorics to solve the problem. Any other arithmetic solution is also appreciated. | I need help to prove that the quantity of this division : $\dfrac{({10!})!}{{10!}^{9!}}$ is an integer number, using combinatorial proof |
I have answered a question (); I then registered an account with my OpenID, but the answer has not been assigned to my current account. What went wrong? | I accidentally posted a question without being logged in. Is there a way to associate that question with my account? For more information, visit "" in the . a.k.a. How can you link a registered account to a cookie-based account? a.k.a. How do I merge an unregistered account with a registered account a.k.a. Merging users a.k.a. How do I associate anonymous questions I’ve asked with my registered account? a.k.a. Is there a way to claim an unregistered user? (in case anyone searches with those terms) |
Am struggling with ArcPy. Can someone help with a script to identify missing layers (red arrow in TOC) and then to search for the correct file locations & then update the mxd. | I want to list all the broken links in all mxds in a server drive. But whenever I try I get an error come up. Can someone use a specific example, say the drive is D drive, how would I put it into ESRIs script here: import arcpy, os path = r"C:\Project" for fileName in os.listdir(path): fullPath = os.path.join(path, fileName) if os.path.isfile(fullPath): basename, extension = os.path.splitext(fullPath) if extension == ".mxd": mxd = arcpy.mapping.MapDocument(fullPath) print "MXD: " + fileName brknList = arcpy.mapping.ListBrokenDataSources(mxd) for brknItem in brknList: print "\t" + brknItem.name del mxd Also I'm not used to not having pythonwin, does anyone know where to d/l it? I googled it but it kept telling me to install it from the ArcMap cd (I'm just using a work computer). |
I created view in database1 based on tables in database2. I gave SELECT permission to a user who has access only to database1. The user can't get this view to work because he doesn't have an account in database2. How can I solve this issue? I don't want to create an account in database2. | I have been asked by a client to implement some views for reporting purposes, the views will be accessed via PowerBI, Excel and SSRS. The designated user will only have access to the view and no underlying tables must be available to the user. The problem I have encountered in that the SQL within the view touches 3 different schemas (All within the same database): Pupil Provider Security The view is: CREATE VIEW dbo.vTestPermissions AS SELECT a.Column1, b.Column1, c.Column1 FROM Pupil.Table1 a JOIN Provider.Table2 b ON a.Column1 = b.Column1 JOIN Security.Table3 c ON a.Column1 = c.Column1 The owners of the Tables/View are as follows: Pupil.Table1 - Owner Pupil Provider.Table2 - Owner Provider Security.Table3 - Owner Security vTestPermissions - Owner dbo When I select from the view I get an error: The SELECT permission was denied on the object 'table3', database 'TEST', schema 'Security' I have tried giving SELECT permission with and without the GRANT option to the schema, and the tables, but that makes the underlying tables available to the user. Any help on this will be greatly appreciated. |
I accidentally allowed this website to share info from my Yahoo! account. I don't feel safe doing this. How do I delete this Stack Overflow account? I can't see an option to close/delete an account from the options. | How can I delete my Stack Exchange account(s)? Also, What happens to my content? Can I request it be deleted as well? What if I'm suspended, rate-limited, or banned from posting questions or answers? What will happen to my votes? Will other users be impacted? Why wasn't my account deleted immediately after the timer expiring? What will happen to my pending bounties and close, reopen, delete, or undelete votes? I want my account deleted on all Stack Exchange sites. How do I do this? Will my profile on chat be removed once I delete my site account? For more information, see "" in the . |
I found no source on how to create an entry in Unity Control Center. Is it even possible? What languages can I use? Edit: I'm searching for a method to have an entry appear in the Unity Control Center, and to write a component or whatever that lives INSIDE this window. Not a launcher only solution. | For example, how to add a "Startup Applications Preferences" launcher to this Window? |
I have ssh'd into a ubuntu AWS box via terminal on mac. I have successfully setup the process I want to run in the box. How do can exit out of terminal without killing the process running? Can not run the below command because terminal is running the script and not allowing me to even copy and paste the below command into terminal: nohup long-running-process & Thank you in advance. P.S New to linux and terminal on mac | I sometimes have long running processes that I want to kick off before going home, so I create a SSH session to the server to start the process, but then I want to close my laptop and go home and later, after dinner, I want to check on the process that I started before leaving work. How can I do that with SSH? My understanding is that if you break your SSH connection you will also break your login session on the server, therefore killing the long running process. |
I have an overnight flight from US to London for business in a few days but I have trouble sleeping on planes. The issue isn't about the environment that that I sleeping in, it is making my body more acceptable to fall asleep. | Some people have the amazing ability to doze off whenever and wherever they are. For the rest of us, sleeping on planes is a constant battle of trying to get comfortable in a cramped space. There are lots of options: special pillows, leaning against the window, folding over flaps on the headrest, leaning on the shoulder of a friend next to you, etc. Certainly something must work... What have you found to be the best way to comfortably sleep on a plane (in a standard economy seat; first class is a whole different world)? |
I want to monitor system metrics at my application. I use Spring Boot Actuator but it doesn't have any metrics for CPU usage. I know that such metrics at Spring Boot Actuator retrieve from here: OperatingSystemMXBean It has methods like: getSystemLoadAverage getAvailableProcessors There is another class: MemoryUsage at which you can retrieve such metrics: getUsed getCommitted However I could not see any metrics for CPU Usage of the Java application at java.lang.management. How can I retrieve it? | I would like to monitor the following system information in Java: Current CPU usage** (percent) Available memory* (free/total) Available disk space (free/total) *Note that I mean overall memory available to the whole system, not just the JVM. I'm looking for a cross-platform solution (Linux, Mac, and Windows) that doesn't rely on my own code calling external programs or using JNI. Although these are viable options, I would prefer not to maintain OS-specific code myself if someone already has a better solution. If there's a free library out there that does this in a reliable, cross-platform manner, that would be great (even if it makes external calls or uses native code itself). Any suggestions are much appreciated. To clarify, I would like to get the current CPU usage for the whole system, not just the Java process(es). The SIGAR API provides all the functionality I'm looking for in one package, so it's the best answer to my question so far. However, due it being licensed under the GPL, I cannot use it for my original purpose (a closed source, commercial product). It's possible that Hyperic may license SIGAR for commercial use, but I haven't looked into it. For my GPL projects, I will definitely consider SIGAR in the future. For my current needs, I'm leaning towards the following: For CPU usage, OperatingSystemMXBean.getSystemLoadAverage() / OperatingSystemMXBean.getAvailableProcessors() (load average per cpu) For memory, OperatingSystemMXBean.getTotalPhysicalMemorySize() and OperatingSystemMXBean.getFreePhysicalMemorySize() For disk space, File.getTotalSpace() and File.getUsableSpace() Limitations: The getSystemLoadAverage() and disk space querying methods are only available under Java 6. Also, some JMX functionality may not be available to all platforms (i.e. it's been reported that getSystemLoadAverage() returns -1 on Windows). Although originally licensed under GPL, it to , which can generally be used for closed source, commercial products. |
Which of the following is grammatically correct? I am having OR I have. We/they/you are having OR we/they/you have. For eg. I have/ We have a problem that I/we can't seem get rid of. OR I am having/ We are having a problem that I/we can't seem get rid of. | I use Stack Overflow a lot and have noticed a certain trend that I myself got caught up in at one time of using the phrase "I am having a problem" in place of "I have a problem." I would use this phrase for an event in the future, for example, "I am having a steak dinner tonight," but for a problem that I need solved and am asking for a solution, I'd use "I have a problem..." What would force us to use this phrase? Is it even valid English for the present tense? |
I was flicking through a book on perturbation methods and saw a simple question asking the reader to expand the following expression for $f$ in a power series (up to the first 2 terms): $f = (1 + \epsilon \,x)^{1/\epsilon}$, where $\epsilon$ is a small parameter. I'm sure this is very simple, but I wasn't certain about the best way to approach this. A quick look at mathematica tells me the solution is $e^x - \frac{1}{2} (e^x x^2) \,\epsilon + ...$. How would I go about getting this answer - and more importantly, how would I systematically find series expansions for problems similar to this one? | I was flicking through a book on perturbation methods and saw a simple question asking the reader to expand the following expression for $f$ in a power series (up to the first 2 terms): $f = (1 + \epsilon \,x)^{1/\epsilon}$, where $\epsilon$ is a small parameter. I'm sure this is very simple, but I wasn't certain about the best way to approach this. A quick look at mathematica tells me the solution is $e^x - \frac{1}{2} (e^x x^2) \,\epsilon + ...$. How would I go about getting this answer - and more importantly, how would I systematically find series expansions for problems similar to this one? |
Before I start this, I wanted to make it clear that I am NOT "ungrateful" of my parents in any way. I love them more than anything on the Earth, but I feel that they are way more strict than they have to be. Basically, I cannot have my phone after school or on weekends. I cannot go out with friends or have friends come to me, I cannot walk to my school or gym and my parents tend to treat my other brothers better than me. When I ever I try to talk to them, they put me off with the same response "the rules are not up for discussion". As if this was not restrictive enough, I have no privacy whatsoever. My parents constantly check browsing history and check my messages in the middle of the night without my knowledge. I understand the precautions parents need to take when their kids have phones, but this is just too much. I cant even talk to my friends online (if I even talk that much with them in the first place because I never have my phone) without a manner that my parents would approve of. I also have a feeling that this lack of social interaction is getting to me. Everything I do is repetitive and boring. I feel like a machine, doing the same thing over and over. In fact, I think this lack of social interaction is why I'm not as good as I used to be in school. Unless I have an incentive to work (ex. "Get good grades on this test and I will let you go out with your friends"), I wont try at all, therefore I would do badly since there was no reason for me to work. I try to explain this to them, but they just won't listen. You are probably thinking I'm delivering it the wrong way, but they end up being the immature ones who start getting mad while I stay silent, trying my best to convince them that social lives do not mean I fall into bad habits or bad influences. I feel like I express more of my feelings with friends rather than family, and that does not sit right with me. I am ashamed of myself when somebody invites me to hang out with them and I respond with absurd excuses like "I have to catch up on a lot of homework". I am regularly known as the kid who never leaves his house, and the people who mock me for that have every right to do so, because I agree with the fact that this is a boring and repetitive life that I have. Any good parent would know that this is a restrictive and boring life than the one I deserve. Please help me bring up points to use when I talk to my parents about these issues. | Before I start this, I just want to let everyone know that even though my parents can be completely clueless about parenting at times, I still love them very much, so don't go commenting that I'm "ungrateful" or whatever. My parents are just really strict about everything. I'm 15 years old, a sophomore in high school, and I'm basically not allowed to do anything. I don't have a phone (and therefore no social media or Internet) and my parents refuse to buy me one (we can afford one quite well though) even though every single person in my high school has one, and has had one since they were 12 or 13. I'm also not allowed to date and if my parents (especially my dad) ever see me talking to a guy they immediately interrogate me about who he is, what we were talking about, and then they remind me that I'm not allowed to date until I'm in college, and sometimes I feel like I can't ever talk to a guy without my parents sticking their noses into it. Yet another thing I am denied is to hang out with friends. I am allowed to have friends but my parents never let me go out with them without parent supervision. I can't have birthday parties either, or sleepovers, or "girls' day outs". I can't wear makeup either (also not until I'm in college) and I can't wear tank tops, crop tops, shorts, or anything else like that. I really don't know what to do anymore, I just don't think that I can live like this any longer. I've tried asking my parents to be a little less strict but they keep saying no. I am very responsible and mature, so it's not because of that. I know they have the best intentions for me but sometimes I think they're just taking it too far. For example, whenever I ask my dad if I can have a phone, he laughs in my face and says "Well there's the joke of the day!" or something along those lines. I also have to go to bed at 9:00 EVERY DAY, weekdays, weekends, and even during the summer! They don't allow me to stay up EVER, even if I have homework that I need to finish they say "Whatever, go to bed!" sometimes causing me to have to turn in assignments late. My bedtime is really just way too early and every day I just lie awake in bed and I don't fall asleep till like 11:00. If there's any research out there that could help change their minds, I'd really appreciate it, really just anything that could help me convince my parents, so thanks for reading! |
In python, if I use a ternary operator: x = a if <condition> else b Is a executed even if condition is false? Or does condition evaluate first and then goes to either a or b depending on the result? | If Python does not have a ternary conditional operator, is it possible to simulate one using other language constructs? |
Could anyone please suggest either a book or some reference material either online or as printed material for graph theory? | What are some of the best books on graph theory, particularly directed towards an upper division undergraduate student who has taken most the standard undergraduate courses? I'm learning graph theory as part of a combinatorics course, and would like to look deeper into it on my own. Thank you. |
My compass was working. It was pointing to my bed when I went off exploring, and the compass seemed to work. However, when I tried to go home it just took me to a random spot on the map, and now I'm lost. How can I fix this and find my way home? | When I use a compass it does not seem to point towards my bed. I have heard that now compasses point towards North. Is this true? |
The Eevee render mode has not been working properly for me. The objects just become transparent and have a gray thing in it (look at the picture). Also, when i render it, the object is just a transparent texture. When i go into Cycles, everything looks alright, no problem. My pc specs are: i7 5500u and AMD Radeon r9 m375. Can anyone help me? | I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips? |
OK, I rewrote my class,I rushed so the code is not clean yet anyway now it comipiles, and running mainMethod the problem is still there. import java.util.*; public class myClass { public Random myRandom; public HashMap<String, ArrayList<String>> myMap; public ArrayList<String> ar; public ArrayList<String> nexts; // ArrayList<String> follows; public myClass(){ myRandom = new Random(); } public void setRandom(int seed){ myRandom = new Random(seed); } public HashMap<String, ArrayList<String>> buildHashMap(){ HashMap<String, ArrayList<String>> myMap = new HashMap<String, ArrayList<String>>(); ArrayList<String> ar = new ArrayList<String>(); ar.add("2"); ar.add("2"); String test = "test"; String anothertest = "anothertest"; myMap.put(test, ar); myMap.put(anothertest, ar); return myMap; } public ArrayList<String> arrayListGetter(String st){ System.out.println("++++++++++++++++++++++++++++++++++"); System.out.println(myMap.size()); ArrayList ar = myMap.get(st); return ar; } public void mainMethod(){ HashMap<String, ArrayList<String>> myMap = new HashMap<String, ArrayList<String>>(); myMap = buildHashMap(); System.out.println("\n\nNumber of keys found: " + myMap.size()); for (String st : myMap.keySet()){ System.out.println(st + ": "); ArrayList<String> al = myMap.get(st); System.out.println(al.size()); } StringBuilder sb = new StringBuilder(); String test = "test"; System.out.println(myMap.get(test)); System.out.println(sb); System.out.println(myMap.get(test).size()); System.out.println(myMap.get(test).size()); // ArrayList<String> follows = getFollows(key); System.out.println("something"); int index = myRandom.nextInt(myMap.get(test).size()); System.out.println(index); // index = myRandom.nextInt(follows.size()); String next = myMap.get("test").get(index); sb.append(next); System.out.println(sb); System.out.println(myMap.get("test").getClass()); ArrayList<String> follows = new ArrayList<String>();<------new empty ArrayList System.out.println(follows.size() + " **********"); ArrayList<String> nexts = new ArrayList<String>(); nexts = arrayListGetter ("test"); } } Am I missing something obvious? Thanks in advance for your time and patience. | What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them? What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely? |
Recently I have learned about the one truly amazing cheap flight finding service, . But it's not a travel agent, it's only a search engine. So this site gives you the full and precise details of the flight that you must quote to a travel agent and in theory the agent should be able to book you a ticket on that specific flight and get very close to the price the site quoted. I am assuming there are other ways besides this flight search engine to find specific flight details where you can't necessarily buy the tickets, so my question is: When I have details of a specific flight I want to book at a quoted price, but I don't have access to a physical travel agency, is there somewhere I can book that flight online? (Especially when I'm in a strange foreign country on the other side of the world?) | I am trying to book a roundtrip ticket from Chicago O'hare (ORD) to Mumbai, India (BOM). Traveling on Aug 9th and returning on Aug 24th. Now, I've been looking for several days (almost 10days!) for ways to book this itinerary I found on ITA. All other websites like Expedia, Kayak, Travelocity, Momondo, RouteHappy, and even google flights are quoting around $1200 roundtrip cost, sometimes as low as $1150. But the ITA Matrix website shows me several options, the lowest is $916 roundtrip. You can see there are several flights in the $900 range. For the return trip there is only one option to get the low price. Selecting the flights this is what I get: I'm not sure how to use the fare codes the ITA website provides to purchase this itinerary. These are some of the things I have tried to book the complex multi-carrier flight from ITA: My first method was to try coding into HIPMUNK, using the multi-city option, my departure, connections, airlines flights number and dates. Following this method: And the results page: Here's what my code into HIPMUNK looks like: ORD::LH9151 FRA LH756 for the first journey and BOM::LX155 ZRH SN5104 BRU SN8803 for the return trip. Don't think I'm making any mistakes in coding it, but there are two adjustments I also made which failed: I used the dates of the first leg of the flight then tried using the other dates as well. So for example Aug 9th and Aug 10th. I used the codes for the operating carriers and when it didn't work, the marketing carrier leaving the flight number unchanged. This always returned no results. Breaking up the itinerary to just the oneway from ORD to BOM worked but gave me a price of $624. For some reason the second return trip was creating problems. I tried breaking he return trip down into different segments but no luck. Anyone knows why the return trip is creating difficulties? Coding issues/ hipmunk doesn't have such a large database? Then I tried method 2: Calling up the airlines United was able to find all the segments, even price it correctly sometimes (sometimes not) and gave me a confirmation number. I was to call them in 12hrs to check if they were able to procure the seats but when I did call they were not able to get the seats for the SWISS flight from BOM to ZRH and/or from ZRH to BRU. I've tried this at least 5 times changing small things everytime, but the same result. It seems Lufthansa waits for SWISS to confirm the seats but SWISS doesn't respond in time and I'm not able to book. I tried calling Lufthansa but they were not even able to find the segments and instead told me to look at booking online where I will be able to find it cheaper. Any insights into the methods that failed or suggestions on how to book this itinerary at the $900 price will be much appreciated. Thanks in advance. |
I have a problem to identify whether a software (an application) comes from legal version or pirated version (crack)? Please help me out. I would appreciate for any suggestion. Thanks. | This is a about Licensing. Questions on licensing are off-topic on Server Fault. If your question has been closed as a duplicate of this question, then this is because we want to help you understand why licence questions are off topic rather than just telling you "it just is". In all likelihood, this question will not address your question directly, it was not meant to. I have a question regarding software licensing. Can the Server Fault community please help with the following: How many licenses do I need? Is this licensing configuration valid? What CALs do I need to be properly licensed? Can I run this product in a virtual environment? Can I downgrade this product to an earlier version? Am I entitled to feature X with license Y? |
I have made two accounts and they are both stuck on the Pokeball loading screen, what I'm saying is the Pokeball keeps spinning and I cannot get on the game. I'm turning my phone into airplane mode does not work. | Pokemon GO isn't working at all for me right now. I'm in one of the following circumstances and can't do anything: My game is displaying a "Try Again" message I'm stuck on the Loading Screen When I sign in I get a message that the servers are experiencing problems. I see the map but nothing is loaded, and my team color is wrong The "loading" Pokeball just ends up spinning and I can't catch or interact with things When I try to catch a Pokemon, the Pokeball just sits on my screen doing nothing Gym opponents will drop to 1 HP and won't take any more damage or attack When I open a pokestop, the pokestop image and the name of the pokestop does not load. What's causing this? Is there a way to fix it? |
In my company I do not have sudo or root access to the Linux server but I still want to install my softwares and customize it to my taste. What is a good practice to install applications to your 'user' directory that won't require root/sudo access. I've ran into multiple problems when trying to do this, that's why I don't want to focus this question to one particular application, but a general thumb rule on how to go about this process so that you don't create more problems than you solve. Linux Info: cat /etc/*-release SUSE Linux Enterprise Server 10 (x86_64) VERSION = 10 PATCHLEVEL = 3 LSB_VERSION="core-2.0-noarch:core-3.0-noarch:core-2.0-x86_64:core-3.0-x86_64" | Assume I have ssh access to some Ubuntu server as user and I need some not system tools to be installed for convenience (mc, rtorrent, mcedit). I do not want to bother admins for these small programs. Is there a way to install them (make them run) without using something like sudo apt-get install? |
Let $A$ be a square matrix. The determinant of $A$ can be defined as $$\sum_{b\in S_n}a_{1b_1}a_{2b_2}...a_{nb_n}$$ Not breaking this down further, apart from the fact that the first term of this sum is always the product of the terms in the main diagonal of $A$. We take one term from each row and choose the column according to the permutation $b = {1,2,3,...,n}$. If two rows are now interchanged, so does the permutation change its parity from even to odd. Therefore the sign of the determinant is changed as well. For example, if we swap rows 2 and 3 in a $3 \times 3 $ matrix the first terms $$a_{11}a_{22}a_{33}$$ $$a_{11}a_{32}a_{23}$$ which can be rewritten as $$a_{11}a_{23}a_{32}$$ Which corresponds to an odd permutation. I think my idea is correct, but I'm not sure if its appropriately explained here - thus the example. | I was wondering if someone could help me clarify something regarding the effect of swapping two rows on the sign of the determinant. I know that if $A$ is an $n\times n$ matrix and $B$ is an $n\times n$ matrix obtained from $A$ by swapping two rows, then $$\det(B)=-\det(A)$$ but I don't know how to prove this. I have been looking for proofs at internet, and read in both in textbooks and lectures notes that are available that this result is very hard to prove and most approaches rely on induction and so was wondering if there is something wrong with using that $\det(AB)=\det(A)\det(B)$ and then writing $B=EA$ where $E$ is an elementary matrix swapping two rows and using this result to get $\det(B)=\det(E)\det(A)=-\det(A)$ (since showing that $\det(E)=-1$ in this case is not that hard). |
When the last few MCU movies came out, there had been corresponding sequences and tie-ins with the ongoing Marvel's Agents of S.H.I.E.L.D. series. Winter Soldier's introduction of Hydra-within-SHIELD fell right into lockstep with the series' traitor plotline. Thor 2 lead into the series' team having to do cleanup in the UK. Age of Ultron revealed that Coulson's super-secret plan was actually readying a SHIELD Helicarrier for Fury's use. Now, I admit that I sped through the last six episodes of S.H.I.E.L.D. in preparation for watching Civil War this weekend, so maybe I missed something. However, I didn't notice any particular lead up to anything revealed in the movie this time around. Did I miss anything? Yes, I caught the cute little reference of HIVE/Ward saying "Only billionaires can have super suits and only the government can make super soldiers, which will lead to a war of its own", but was that it? Did anything else from the series have any impact or cause any revelations in the movie? Regarding the question that question is from 7 months ago and does not address the movie that came out this weekend. | I've kept up to date with the movies from the MCU, but I am grossly out of date with the TV series, of which I think there is only Agent Carter (not as relevant for the movies I think, besides that scene in Captain America 2), and S.H.I.E.L.D. (which from what I've seen seems more relevant, with coming in phase 3). I've gained what I can from . But I can't tell which of the episodes listed are relevant to the movies (clearly, it seems that none are essential), and which movies are relevant to the episodes. So which episodes are related? |
Code public class Foo { public static void main(String[] args) { //declaring and initializing String variable 'str' with value "outside" String str = "main"; //declaring and initializing Array 'array' with values String [] array = {"main"}; //printing values of str and array[0] System.out.println("str : " + str + " , array[0] : " + array[0]); //calling function foo() foo(str, array); //printing values after calling function foo() System.out.println("str : " + str + " , array[0] : " + array[0]); } static void foo(String str, String[] array){ str = "foo"; array[0] = "foo"; } } Output str : main , array[0] : main str : main , array[0] : foo Question Why does the string str remains same as "main" but the value of array[0] gets modified from "main" to "foo" after calling the function foo()? Shouldn't the effect be the same? | I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation? |
Any issues with getting a new 61W USB-C Apple power adapter, buying a Magsafe 2 to USB-C cable and using it with my old Mac Air Mid-2012? I am sick of the old 45W adapter breaking all the time, the outer coating splits/frays and it would be nice to be able to just replace the cable if that happens vs. the whole adapter. If it will work, any recommendations for the USB-C to Magsafe 2 cable? I have seen mixed reviews and I am not sure if its because they just should not be used or I am just finding cheap cables. | I have a 2015 MacBook Pro with a MagSafe 2 charging cable. My wife has a new MacBook Pro from 2016 with USB-C. I was wondering whether I could technically (in the matter of electronic feasability) use her charging cable on my MacBook and vice versa with some sort of adapter / dongle, and, if so, where I would get one? |
Should I say, "those glasses looks familiar" or "those glasses look familiar". Or both can be used? | My glasses (was/were) lying on the table. My trousers (is/are) torn. (This/These) binoculars (was/were) gifted to me. I know they're in plural form, but plural nouns such as rickets, measles are disease names, but they take singular verb. |
In the book "Elements of Statistical Learning", early on the author is discussing linear regression, and naturally discusses the residual sum of squares (RSS) based on the parameter space $\boldsymbol{\beta}$. In the general formulation, $\text{RSS}(\beta) = (\boldsymbol{y} - \boldsymbol{X}\beta)^T(\boldsymbol{y} - \boldsymbol{X}\beta)$ where $\boldsymbol{X}$ is an $N \times p$ matrix and $\beta$ is a $p \times K$ matrix. The author then says to minimize RSS, you differentiate with respect to $\beta$ and get $\boldsymbol{X}^T(\boldsymbol{y} - \boldsymbol{X}\beta) = 0$ My question is, what are the mechanics of differentiating with respect to the matrix $\beta$? I have a B.S. in physics, so I have a reasonably sophisticated math background, but I never covered this in my undergraduate education. I tried looking a bit into "Matrix calculus", but it wasn't much help. Is that the correct term? If this is the language used in the remainder of the textbook, what are some good resources somewhat familiar with vector calc and linear algebra to learn "matrix calc"? | I am reading Elements of Statistical Learning, and they derive the equation for linear regression using differentiation on a function which takes a matrix as input. This is making my head spin a bit and I am looking for some resources to practice this type of differentiation, and become more comfortable with it. This is the problem. Let $X \in \mathbb{R}^{N \times p}$, $b \in \mathbb{R}^{p \times k}$, and $y \in \mathbb{R}^{N \times k}$. Define $RSS(X, y) = \operatorname{tr}[(Xb - y)^t(Xb - y)]$. I want to differentiate $RSS$ with respect to $b$ and set the derivative to zero since I want to minimize the function, $RSS$. The book claims this is $X^t(Xb - y) = 0$, which gets us, $b = (X^tX)^{-1}Xy$ if $(X^tX)$ is singular. It does not show how it applied the derivatives (which is expected since thats not what this book is about). I can sort of reason that we have some sort of product rule happening. It seems likely that $d/db(\operatorname{tr}(A)) = \operatorname{tr}(d/db(A))$. But right now I am just writing down symbols that somehow represent some ideas in my head. In my Principles of Mathematical Analysis book (by Rudin) he covers when the input is a vector, and the output can be a vector. However, this seems to be input is a matrix, and the output in some of the subproblems is a matrix. Any recommendations for books I can look at? |
I tried everything but this error persist continuously in Intel graphics installer for Linux error occurred while updating the package cache. error : W:GPG error: https://download.01.org saucy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A902DDA375E52366, W:Failed to fetch cdrom://Lubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)/dists/saucy/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , W:Failed to fetch cdrom://Lubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)/dists/saucy/multiverse/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , W:Failed to fetch cdrom://Lubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)/dists/saucy/restricted/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , W:Failed to fetch cdrom://Lubuntu 13.10 _Saucy Salamander_ - Release i386 (20131016.1)/dists/saucy/universe/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs , E:Some index files failed to download. They have been ignored, or old ones used instead. I m using Lubuntu 13.10. How can i fix this ? | When updating I got this error message: W:Failed to fetch cdrom://Ubuntu 11.10 _Oneiric Ocelot_ - Release amd64 (20111012)/dists/oneiric/main/binary-i386/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs W:Failed to fetch http://ppa.launchpad.net/synce/ubuntu/dists/your_ubuntu_version/main/source/Sources 404 Not Found What to do? |
I have the following code: console.log("1-"+parseFloat($('#pval').text().replace(',','.'))); console.log("2-"+parseFloat($('#pvig').text().replace(',','.'))); console.log("3-"+parseFloat($('#potr').text().replace(',','.'))); var aux = parseFloat($('#pval').text().replace(',','.'))+parseFloat($('#pvig').text().replace(',','.'))+parseFloat($('#potr').text().replace(',','.')); console.log("4-"+aux); Which returns : 1-1.5 2-2.52 3-0.18 4-4.199999999999999 //<-This is the problem Why is this simple sum, losing 0.000000000001 ? How should I repair it? I already tried aux=Math.round(aux*100)/100; But itsn´t actually working. Any help will be preciated. The values of those camps id(pval)=1,5 id(pvig)=2,69 id(potr)=0,18 | Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen? |
I run a 13.04 on one of my laptops, now someone brought me the 13.10 iso image (I work in rural Africa), yet upgrading to 13.10 didn't work: I created a liveUSB I rebooted from it Chose "Install 13.10" I could see the option "upgrade from 13.04 to 13.10", but couldn't select it. Parallel-installation is not an option, to be frank. Any ideas? | I've downloaded Ubuntu 13.10 daily CD and I want to upgrade all my computers using this Live CD (they all run Ubuntu 13.04 presently). How can I upgrade to Ubuntu 13.10 exploiting the packages in the CD? Is there any standard procedure for this? I tried this: I rebooted into Live CD, searching for an option like "Upgrade from 13.04 to 13.10" (I think it used to appear in the alternate CD) but found nothing like that. -EDIT- Even if the option is not present it is possible to "mimic it" by entering manual partitioning and tell Ubuntu to reuse the existing partitions without formatting them. Ubuntu will keep user's data and install the updated software. Nevertheless this is not a viable solution because after the upgrade one has to reinstall all the programs he needs, since it is like having a vanilla Ubuntu. I booted into Ubuntu 13.04 and added the CD to my software sources. I then proceeded with the upgrade however the CD was never accessed and everything was downloaded from the web. I know, I know... I have other options rather than using the Live CD, namely: Forget the CD and setup apt-cacher in the LAN Copy the deb files from the CD into /var/cache/apt/archives/ But this looks unreasonable to me... Why can't I insert the CD and exploit its contents? I would like to avoid apt-cacher and if possible avoid also manually copying the packages. Any idea on how to accomplish this? |
I have a grid of points extracted from a raster. I need to give them a new ID value to be able to join values from it to another grid in rotated system of coordinates.The automatically generated ID goes from top-left to the right and I need it to be from top-left down. Something like this: Current: 1 2 3 4 5 6 7 8 9 10 11 12 What is needed: 1 5 9 2 6 10 3 7 11 4 8 12 I have 122140 features so I'd rather not do it manually. I use QGIS 2.8.2 and ArcGIS 10.1. No programming skills for the time being. | I have used the Grid index feature tool to create an index grid. The label/attribution of the page names are populated in a "row" orientated manner. eg lef to right a1,a2,a3,a4,a5,a6 b1,b2,b3,b4,b5,b6 c1,c2,c3,c4,c5,c6 How can I calculate a field so I can have the page names label/attribution in a "column" orientation?eg: a1,b1,c1,d1,e1 a2,b2,c2,d2,e2 a3,b3,c3,d3,e3 a4,b4,c4,d4,e4 |
Is a Java program debuggable only when the VM is running in Debug Mode? Is there any way to change it at runtime? | Normally to attach a debuger to a running jvm you would need start the jvm with arguments such as the following: > java -Xdebug -Xrunjdwp:transport=dt_socket,address=1000,server=y,suspend=n Now if I want to debug a process that wasn't started in debug mode, what can I do? This situation arrises when a production system (i.e. started without debug args) exhibits a 'random' (I use the term loosely) bug. So I can't restart the jvm with the appropriate arguments, because nobody knows how to reproduce the bug again. Is it impossible to attach to the JVM in this situation? Just to clarify it is not possible to use tools like jdb to attach to already running JVMs unless they were started in debug mode from the JVM man page Another way to use jdb is by attaching it to a Java VM that is already running. A VM that is to be debugged with jdb must be started with the following options: |
I have to automate the "imitation" of a "human" by using a webbrowser that supports javascript. I need it because there is a javascript link on the website that can be only used if the webbrowser supports javascript, so curl/wget cannot do it. Question: How can I do this on a Linux terminal? Or is it impossible? | I have some "corporative" systems I have to use at work. Some of them are terrible, with frames, pop-ups and such. I was thinking about automating some stuff using curl or something like that. I need login, click on hyperlinks, set some data, and them do some post. Is it possible to use curl? Or am I'm going to be better using something like Selenium? |
I have some suggestions on down-voting. If a person has performed a downvote on particular post without telling the reason behind it, then how can the OP knows why his/her post is downvoted? Of course the SO shows this Ajax reminder: Please consider adding a comment if you think this post can be improved I think this reminder is being neglected in most of the cases. My Suggestion: In this case there is a need to make the reason behind downvoting mandatory. OR At least the OP should be able to know the person who downvoted his/her post. so that the OP can ask the particular person to know the reason behind the downvote. It also helps the OP to modify the question as per the reason/suggestion stated. Of course there is a tooltip on the downvote button itself : "This question does not show any research effort; it is unclear or not useful". This is also been neglected in some of the cases. Eg;- Why Question got a downvote of -2? I don't see any reason for downvote. Question-ban: So the user gets a question-ban if most of his/her questions get downvotes. This on SO clearly states this: **Stack Exchange cannot lift question bans by request** I think the SO is not being user-friendly at this point. What if the downvote stays for the question/questions even after improving the post/posts? Then that user is banned for asking a question on SO permanently? My suggestion: The question-ban should be made as temporary for some period of hours or days. Any other suggestions are also welcomed! Thanks! | Note: If you're looking for a simple explanation as to why comments aren't required on downvotes, see . I used to get "upset" (though that is too strong a term) when I got downvoted without comment. If my answer isn't good enough then I'd like to know why. Not only does it improve the answer for the OP but it improves my knowledge too. Where the down-vote has been explained I've found it useful & it has improved my answer, or forced me to delete the answer if it was totally wrong. So is there any way we can encourage people to leave a comment? Perhaps they don't lose rep if they explain their down-vote? I must admit though that I haven't always explained my down-vote either so you could call me a hypocrite. I've also grown a thicker skin over the months of using SO (it seems to have come with the higher rep score ;-)), so I'm less bothered about this now. |
Verb begin something that happens in a moment, not something continuously. After that does this correct: I have been beginning to learn English since 2000, but never continuous consistently, tenacious till now. | No problem when "I began to learn English in 2000". But what if "I began to learn English from 2000 till now more times without success". Verb begin something that happens in a moment, not something continuously. After that does this correct: I have been beginning to learn English since 2000, but never continuous consistently, tenacious till now. |
I want to create a new user (or group), so that any application running with this user can't connect to the network. @Michael Kjörling I have followed your suggestion(with Ubuntu 12.04 64bit) and got some error information: $ sudo iptables -A OUTPUT -m owner --uid-owner xyz ! -i lo -j REJECT --reject-with network-unreachable iptables v1.4.12: unknown reject type "network-unreachable" Try `iptables -h' or 'iptables --help' for more information. $ sudo iptables -A OUTPUT -m owner --uid-owner xyz ! -i lo -j REJECT iptables v1.4.12: Can't use -i with OUTPUT Try `iptables -h' or 'iptables --help' for more information. $ sudo iptables -A OUTPUT -m owner --uid-owner xyz ! -j REJECT iptables v1.4.12: cannot have ! before -j Try `iptables -h' or 'iptables --help' for more information. Finally, the following one works. But I'm not sure if there is anything wrong. $ sudo iptables -A OUTPUT -m owner --uid-owner xyz -j REJECT $ | Let's say there are two users on the LAN, A and B. How do I restrict user A from internet access using iptables rules and saving the rules so that after reboot, they are still effective. Suppose also that I want to grant that user access at some point; how do I enable it again? I am using Ubuntu Linux 10.04. It would be nice if anybody show me how to do it from the command line, as I often login to the machine using a local ssh login. |
I'm a beginner in javascript programming and I notice that there are some cases where a function is defined as myfunc : function() {...}, and other cases where it is defined as: function myfunc(){...} Can someone explain what the difference is, and when should one be used over the other. | I've recently started maintaining someone else's JavaScript code. I'm fixing bugs, adding features and also trying to tidy up the code and make it more consistent. The previous developer used two ways of declaring functions and I can't work out if there is a reason behind it or not. The two ways are: var functionOne = function() { // Some code }; function functionTwo() { // Some code } What are the reasons for using these two different methods and what are the pros and cons of each? Is there anything that can be done with one method that can't be done with the other? |
For the polynomial $x^3 + x + 1$ and trying to prove that it is irreducible over the field $\mathbb{F}_2$, I was told that since $f$ is a degree 3 polynomial that it is simply enough to verify that there are no roots in $\mathbb{F}_2$. What does this have to do with irreducibility? The calculation is simple enough but I don't understand why this verification can show irreducibility. | I want to argue that argue that $\pi(\alpha)=\alpha^3+3\alpha+3$ is an irreducible polynomial over the finite field with 5 elements $\mathbb{F}_5$. My approach was just to check that $\pi$ has no roots in $\mathbb{F}_5$. Is this right? |
Admin note: This question is different then why is sudo path different then su because the environmental variables in a bash script ran from cron do not appear to carry over from environmental variables set for either users as sudo or as su. (See everything after the BUT.) When running sudo su and showing paths, I have /usr/local/bin in my path. I have several custom apps I put in that folder in the intent of making them available system wide. In etc/sudoers, /usr/local/bin is in the secure_path. BUT When running a bash script executed as root via a cron job, /usr/local/bin is apparently not preserved in the path as I get command not found when attempting to run apps that are installed there, despite the fact they are in /etc/sudoers. How do I get these apps to be available to root? Ubuntu 16.10 | On my fedora VM, when running with my user account I have /usr/local/bin in my path: [justin@justin-fedora12 ~]$ env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/justin/bin And likewise when running su: [justin@justin-fedora12 ~]$ su - Password: [root@justin-fedora12 justin]# env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/justin/bin However, when running via sudo, this directory is not in the path: [root@justin-fedora12 justin]# exit [justin@justin-fedora12 ~]$ sudo bash [root@justin-fedora12 ~]# env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin Why would the path be different when running via sudo? |
Here is the back story. A developer created an EXE program. The exe program has the ability to access a SQL Servre database. In order to do that we create an Active Directory group. Let's call this group AppAdmin. The EXE program use windows integrated security to connect to the SQL Server database. In order to use this EXE program, the user must belong to the APPAdmin group. The AppAdmin group then now set the membership as DB_Owner for the database. This setup has been like this for a few years. and it is running fine. The user is only limited to what the EXE program can do. Now here is the complication. One user one day decided to install SQL Server Management Studio Express. Let's call this guy JOE. and JOE is a member of APPAdmin group. Now I am assigned to find away to protect the database from JOE breaking it using SQL Server Management Studio. I am wondering if there is a way to restrict JOE when he is connecting using SQL Server Management Studio? What are you suggestion ?? Changing this EXE program seems to be out of the question because it is big and I might break it if I start changing how the EXE program connect to the SQL Server database Thank you | I have an app to deploy in production that uses 'honor system' security. That is, all users connect to the DB using a SQL user/passwd credential and the app manages permissions itself. The latter part doesn't bother me as much as the fact that the connection object contains embedded credentials and can be copied around freely. I'm try to find some way to limit connections to a more limited set of clients. I can create firewall rules to limit by IP, of course. Is there any way to 'prequalify' SQL logins either by Machine account or domain membership? |
I'm not aware of everything that is in The Flash lore (comics, animated series, etc.) but I did watch some of it to notice that, I never saw an explanation on how he can breathe when running? By that, I mean, the faster you run, the more you would normally breathe. I understand it's either probably just omitted for the plot/because it's fiction, or maybe it's explained somewhere I overlooked. As for which instance of "The Flash" I'm referencing... well, I wouldn't know myself given I don't know enough of the lore (as already stated) but I guess it can be taken as a "general" question, rather than specific. | How do the Flashes breathe utilizing their super speed? The air pressure would be extreme. Do they run in a pressurized bubble? |
I have a very simple program in C with a header .h: listas_enlazadas.c #include <stdio.h> #include <listas_enlazadas.h> int longitudl(struct lista *l) { struct lista *p; int n; n = 0; p = l; while (p != NULL) { ++n; p = p->sig; } return n; } int main() { // Declaración de lista struct lista *l; // Inicialización de lista vacía (l=∅) l = NULL; longitudl(l); return 0; } listas_enlazadas.h #ifndef LISTAS_ENLAZADAS_H #define LISTAS_ENLAZADAS_H // Definición de nodos que conforman // la estructura de la lista struct nodo { int id; struct nodo* pSig; }; // Lista simplemente enlazada struct lista { struct nodo nodos; struct lista *sig; }; #endif In my IDE there are no errors marked and I can navigate between the structure without problems. But when I try to compile with gcc, in the simplest way (gcc listas_enlazadas.c), throws me the error: listas_enlazadas.c:2:10: error fatal: listas_enlazadas.h: No existe el fichero o el directorio 2 | #include <listas_enlazadas.h> | ^~~~~~~~~~~~~~~~~~~~ compilación terminada. | In the C and C++ programming languages, what is the difference between using angle brackets and using quotes in an include statement, as follows? #include <filename> #include "filename" |
Is the polynomial $x^{10}+x^9+x^8+x^7+x^6+x^5+x^4+x^3+x^2+x+1$ irreducible in $\mathbb{Z}_{17}$? I don't know how to solve it. Thank you for any help! | I want to know if there is a way to decide if a cyclotomic polynomial is irreducible over a field $\mathbb{F}_q$? |
I've heard about: JDloader, , etc. But what are the pros and cons of these softwares? Which one would you suggest to me to be the most reliable and fastest? Thanks Jye | This question exists as it fills a specific criterion. While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will likely be closed per the . More information on the . What download managers are available for Ubuntu? Can you provide the link as well? |
I am logged in from my Windows phone, but I cannot see the views that a question has. Is there any way to see them? | It's Thanksgiving, so I'm getting my Gaming SE fix through my mobile iPhone browser. I recently received a notable question badge for 'How do I defeat a wispmother in Skyrim?' and wanted to see just how many views it got. I didn't expect to see it initially, but once I sorted by views, I at least expected to see the number of views the question had. Expected behavior: either views should be populated for questions when sorting by views in the mobile browser or there should be some intuitive way to see views on the mobile browser. |
I have a question. I've been coding a jQuery event where the button with an ID of add is ticked and is updated to an input Here is the jQuery code /* Change the Add button to an Input element*/ $("#add").click(function(){ $(this).replaceWith("<input type='text' placeholder='Task'>"); $("div.tasks>span").remove(); }); /* Adding a value to the list */ $("input").keydown(function(e){ if(e.keyCode == 13){ var item = $(this).val(); $(this).parent().prepend("<li>" + item + "</li>"); $(this).val(""); } }); Here is the HTML: <header class="content-header"> <img src="img/icon.png" alt="icon" class="header-icon"> <h1>Monday</h1> <img src="img/icon.png" alt="icon" class="header-icon flipped"> <!-- <p>6 <span>Tasks</span></p>--> </header> <div class="tasks"> <hr> <button id="add"></button> <span> Add task</span> <input type="text"> </div> Whats supposed to happen here is once the Button has been ticked it will now turn to an input element. And once the input element has been populated with data and keycode==13 is pressed (Enter). The value placed on the input element will now be added to the DOM within a li element. | I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off. This happens on page ready and works just fine. The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound. I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option. |
A story where aliens visit a dead earth, and revive the dead. They visit a museum and begin by reviving a dead Egyptian, then a 1930s boozer. They hit a snag when they revive a recently deceased. He displays powers. They drop bombs but none explode. The aliens are tricked into plunging into the sun by the revived human | I'm trying to locate a short sci-fi story I read years ago about a human that is "resurrected" by an arrogant and malignant alien species that discovers him in a "museum" on an earth where the inhabitants, though very advanced, had been wasted by a close encounter (I believe) with a neutron star. He is the third or fourth human they "reconstruct" and it turns out that he is an advanced mentalist, disappearing at the moment of his "resurrection". He outwits the aliens and eventually tricks them into plunging their ship into the sun in order (they think) to prevent him from finding out where they come from. Any suggestions? |
I've called Apple Support a bunch of times, but I got conflicting answers. To my knowledge, new technology makes it okay to keep the charger plugged in non-stop, but I want to make sure I am properly caring the computer. | I want my battery to remain healthy. I used to charge it full then remove the charger after it's done, then put it back on when it goes down to 10% .. However this is becoming hectic and I was wondering if I can keep it plugged in the whole day and probably remove just an hour or so before going to sleep. What is the best way to charge and discharge my Retina Macbook Pro while keeping the battery healthy ? |
I've recently partitioned my hard drive to include Ubuntu Studio. (this is something I've wanted to do for a long time - I'd hardly call myself a "producer", but I enjoy tinkering with audio production, as well as photo/video editing. I find myself stuck. I have next to ZERO programming experience, and have searched the web to glean some kind of guidance as to how to set up my Wi-Fi connection. I'm hoping that this community is a friendly one, and that I won't get shamed for not knowing what to do. I asked on one discussion board, and I got yelled at by the mods as to how to properly format a question. I can and will include all terminal info... all you have to do is ask. I have literally NO IDEA where to start here. I've executed some processes, tried different approaches... it seems to me like I have the ONE COMPUTER IN THE WORLD that can't... I even went so far as to buy a USB network adapter (a TP-Link AC600), which I later learned has its own host of issues with Ubuntu drivers. There is currently no option for wifi on my system. This is what I've done so far: After entering lspci I received: 00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09) 00:02.0 VGA compatible controller: Intel Corporation HD Graphics 5500 (rev 09) 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09) 00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03) 00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03) 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3) 00:1c.2 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #3 (rev e3) 00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3) 00:1c.5 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #6 (rev e3) 00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03) 00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03) 00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03) 07:00.0 Network controller: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n (rev 01) 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07) 09:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)``` After entering lsusb, I received: Bus 001 Device 002: ID 8087:8001 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 003: ID 04f2:b446 Chicony Electronics Co., Ltd TOSHIBA Web Camera - HD Bus 002 Device 002: ID 0930:0225 Toshiba Corp. BCM43142A0 Bus 002 Device 006: ID 2357:011e TP-Link 802.11ac WLAN Adapter Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub | I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible. What are the steps to install Broadcom wireless drivers for a BCM43xx card? I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc. lspci -vnn | grep Network showed: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b] iwconfig showed: lo no wireless extensions. eth0 no wireless extensions. NOTE: Answer below is updated every time new information is added and confirmed working. |
The title is the extent of the problem. It is a problem from my Calculus II practice test that I am having trouble solving. | What is the general term for a Taylor series of $\sin(x)$ centered at $\pi/4$? It should be $(-1)^{[??]} \times \sqrt{2}/2 \times \frac{(x-\pi/4)^n}{n!}$ What power is $(-1)$ supposed to be raised to? |
I have observed many times that ants are able to reach the box where sweet items are kept even if the box is kept in secret. How do they identify it?? | I recently had ants find and then swarm to a food container that I put down on a desk. I'm curious as to whether an ant would have needed to get lucky (i.e., discovering the food after crawling up the desk) or ants have the ability to sense food from a distance. I'm skeptical of believing that ants simply scout around until finding food; I'll use this case as an example: My room has had no food or drink in it for weeks, so the area wouldn't be a "hotspot" for ants to be interested in. I put the mostly empty food container down on my clean desk and turned my lamp off to work on the computer. No more than 2 hours later did I turn my light back on to discover a trail of ants swarming to the container I put down. It happened pretty quickly. The desk is high, standing on four thin legs. I find it difficult to believe that an ant would crawl up the desk as often as a 2 hour time frame to scout for food, for the message to be passed to the colony so quickly. I've been curious about this scenario for a long time. So my question: Can ants sense food from a long distance? If so, how does it work? If not, how is the phenomena (ants locating food quickly in unlikely places) explained? |
I have a transparent texture and I can't figure out how to apply that transparency to the object. As you can see, the texture in the bottom right is transparent in places and solid in others. But in render view the texture is just black. You can see it better here. | I'm designing this animal-type creature, and want to add a transparent .png image to its face with the face features (object has a subsurf). On the left is the image with the features, on the right is the part of the object where I want it to be. I tried to import the image as a plane, but matching the shape of the plane with the face didn't work, and the lines of the face left shadows on the head, and could be seen as a different object from some angles (although it's the closest I've gotten yet). It looked like this: So , I tried selecting the faces of the head that the features should go over, and create a new material for it. Unfortunately, since the .png is transparent, the result produced was this: (where it's impossible to tell the transparency from a black background default color, and where I wouldn't know where to start to adjust size and position). I also tried UV mapping, but then the whole object became black with the features repeated all over. Is it something I have to go into Nodes for? I'm kind of stuck here. Creating a new material and applying it is simple, but applying a material that is an image is a bit more complex it seems... Ideally, I would reproduce the same technique for the adhesive bandage on its arm (seen on the right of image 1). |
When you level up, you gain a number of Hit Points equal to 1d# (6, 8, 10, or 12) + your Constitution modifier. The lowest Constitution modifier possible is -4 (possible by rolling, and rolling 4 1s). If a PC with a negative Constitution modifier, negative by more than 1, levelled up, and rolled a 1 on the levelling up HP dice, would they lose HP? And, would it be possible to die by this HP loss? For example, a Wizard with a 3 in Constitution, would have 2 HP at first level. At second level, we'll say hey rolled a 1 on his Hit Points die. This would mean he gained -3 Hit Points. Would that kill him? I see no rules against this, but it seems to go opposite to the phrase "Levelling Up". | Since and you can get into a situation where your max HP is zero due to leveling up… what happens next? What happens when your max HP is 0 because you leveled up with a negative Constitution modifier? Are you dead, unconscious, or what, and where do the rules say this? (The assumes death, but that isn't established as fact anywhere yet.) |
I got a very tricky problem: Let's begin in the past. I got a Workstation. In the past it ran Blender 2.78b with a Nvidia Quadro FX1800 as Graphics Card. For Rendering, I used the CPU. I used another Computer to work on the Workstation via Windows 10 Remote Desktop Connection. The Host Computer (The Workstation) has Win 10 Pro, the Client Win 10 Home. I bought a new Graphics Card for rendering: ASUS ROG Strix GeForce® GTX 1080. I replaced the Quadro with it. I started the PC and Blender (still 2.78b) and rendered the Pavillon Demo Scene. Everything worked perfectly. But when I tried to start Blender via Remote Desktop and got this: I also tried to use TeamViewer like they mentioned in , but got the same error. I also tried Blender 2.78c, but got also the error message. Does someone know or experienced the same problem? | I want to render my blender project in rdp. But some error has appeared. What is the best solution for this problem? I've spent many hours trying to troubleshoot this problem. |
I am a beginner in ML so apologize in advance if this sounds silly. I did a logistic regression on a real data set and I am having problems measuring how well my model fits. I still don't understand how to apply the F1 score in my case. After performing the error analysis on the cross validation set I got the following values: Precision: 0.8642534 Recall: 0.8488889 Accuracy: 0.8222222 F1 score: 0.8565022 Are those good values? What do I compare them with? Is this a sign of a strong relationship between my predictor variables and the response variable? The classes on the response variable are not skewed (I am predicting a gender). Any help ... I would much appreciate. Thanks a lot | I've fitted my model and am trying to understand whether it's any good. I've calculated the recommended metrics to assess it ($R^2$/ AUC / accuracy / prediction error / etc) but do not know how to interpret them. In short, how do I tell if my model is any good based on the metric? Is an $R^2$ of 0.6 (for example) sufficient to let me proceed to draw inferences or base scientific/business decisions? This question is intentionally broad, to cover a wide variety of situations that members frequently encounter; such questions could be closed as duplicates of this one. Edits to broaden the scope beyond the metrics mentioned here are welcome, as are additional answers - particularly those that offer insight about other classes of metrics. |
I am holding Indian and Portuguese passports, I'm currently in India. Now I have to travel to the UK, I can't travel on my Indian passport because I would need a visa to travel to the UK. My Portuguese passport I can't show at the airport and immigration in India. So my plan is the following, please advise: Book my ticket on my Indian passport and travel to Doha using visa on arrival facilities After arriving at Doha airport switch to Portuguese passport get entry and exit from Doha to the UK by booking flight from Doha to UK My question: Since I will be exiting on my Indian passport and the departure stamp will be on it, while switching to my Portuguese passport at Doha airport, will the immigration official ask for my departure stamp on the Portuguese passport? Will this be a problem at Doha airport while traveling to the UK? | I am a citizen of two different countries, and have two passports. How should I use my passports when traveling? |
For any positive integer $n$, how many polynomials are there of degree $n$ over $\mathbb{Z}_2$? How many distinct polynomials function from $\mathbb{Z}_2$ to $\mathbb{Z}_2$? Attempt: first part is clear to me since there are $2$ choices for each coefficient and there are $n$ coefficient so there are $2^n$ such polynomials. I am having problems understanding the second part where I need to find distinct polynomial functions. If I assume $p(x)$ and $p'(x)$ are two equal polynomial functions over $\mathbb{Z}_2$ such that $p(x)=a_nx^n+\cdots+a_0$ and $p'(x)=a'_nx^n+\cdots+a'_0$, then $p'(x)=p(x)$ for $x=0,1$. So $a'_0=a_0$. And since the degree of these polynomials are $n$ then $a_n=a'_n=1$. So to find distinct polynomial functions we have to consider when $p(x)$ cannot be equal to $p'(x)$ for every value of $x\in\{0,1\}$. From here I cannot proceed. I was looking for solutions. Everywhere I see that they have started the argument with the fact that there are only $4$ such polynomials and then they give the examples of such polynomials. I need help to understand this problem. Thank you | From a bank of past master's exams I am going through: Let $F$ be a finite field. Show that any function from $F$ to $F$ is a polynomial function. I know that finite fields are fields of $p$ elements for $p$ prime [EDIT: It's actually $p^n$ for $p$ prime; see comment below]. Since I have $p$ choices for the $p$ elements to map to, then I have $p^p$ distinct functions. I think every function can be written in the form $f(x) = a_{p-1}x^{p-1} + \dots + a_0x^0$. For then given the values $f(0), f(1), \ldots f(p-1)$, I can solve for the coefficents by the linear system of equations $$ a_0 + \sum_{i=1}^{p-1} n^i a_i = f(n).$$ This then gives me a $p-1 \times p-1$ square matrix over the field $\mathbb{F}_p$: $$\left( \begin{array}{ccccc} 1& 0 & 0 & \ldots & 0 \\ 1& 1 & 1 & \dots & 1 \\ 1& 2 & 4 & \dots & 2^{p-1} \\ \vdots & \vdots & \vdots & & \vdots \\ 1 & p-1 & (p-1)^2 & \dots & (p-1)^{p-1} \end{array} \right) \left( \begin{array}{c} a_0 \\ a_1 \\ a_2 \\ \vdots \\ a_{p-1} \end{array}\right) = \left( \begin{array}{c} f(0) \\ f(1) \\ f(2) \\ \vdots \\ f(p-1) \end{array} \right)$$ If I can show this matrix is invertible, then I can always find the $a_i$. But I am a bit stumped on how to show this (partially because I don't think I've ever done linear algebra in a vector space over a finite field). It does not seem easy to show linear independence, or nonzero determinant, or full row rank. Alternatively (I just thought of this), can I show this is true by arguing that the map between the two sets (the set of polynomials of degree $p-1$; and the set of functions $F \to F$) is injective, and that it must be a bijection because the sets have the same cardinality $p^p$? |
my understanding of a singularity is that it is a 'point' in the universe with an infinite energy density. I have also read on the internet that a singularity is one-dimensional. This is a concept that troubles me. using my (very limited) knowledge of what dimensions are and how they work, I have made the following assumptions: we live in a three-dimensional world with length, width and height (excluding time which I am confused about and am unsure as to whether it is a dimension or not) so a two-dimensional object would have only length and width (sort of like a flat shape in an area question in a textbook). so a one-dimensional object would only have length and would be a sort of 'line'. But a 'line' is not a 'point', therefore in order to have a pointlike singularity it would need to be zero-dimensional. another aspect of the one-dimensional 'linear' singularity that I find difficult to understand is that for the finite amount of energy in the universe to be infinitely dense, it cannot be spread out along one or more dimensions, but rather it must be contained in zero dimensions. Hence the energy is 'X' joules per zero metres so the density is undefined. are singularities one or zero-dimensional and why/how? if the above reasoning is wrong, why is it wrong? | General relativity is expressed in terms of differential geometry, which allows you to do interesting things with the coordinates: multiple coordinates may refer to a single point, eg. the has whole lines at the top and the bottom that correspond to the North and South poles, respectively; or a single coordinate may refer to multiple points, for example by using inverse geometry the origin refers to all the points infinitely far away. So, is the singularity just a single point in the curved spacetime, or can it be a more extended object, described by a single coordinate? |
In terms of ISO, is the ISO performance compromised? Say I was using a 50mm DX on my FX body, would I have a lower quality ISO performance vs an FX 50mm on my FX body? | I unfortunately got a very poor and cheap 18-55mm lens on my Canon 60D. In addition to poor quality of my photos (poor in comparison with my 50mm f/1.8 Lens which makes great pictures) the noise level of my pictures is really high. Should I upgrade my camera or get a better lens? since I'm interested in "night sky photography" this level of noise is really bothering. For example you're taking photo of a special scene with two different lenses with the same ISO, Aperture and Shutter speed. Is the noise level of a photo taken with Zeiss Lens the same as Canon Lens? |
Could someone do me a favor for any guidance (link) for writing an article that is supposed to be submitted to an international journal in micro-biology/micro-organism field? Could you please lead me to another source instead of ? | While writing , I realized I don't really have a good list of resources that could be useful to first-time authors, like MSc or PhD students who write their first paper. I often direct my own students to these two papers: G. M. Whitesides, , Adv. Mater. 2004, 16, 1375–1377 (). P. E. Bourne, , PLOS Computational Biology 2005, 1, 0341. I also make sure that they read the journal's editorial policy and authors guidelines. What are other sources of good information for students and first-time academic authors? |
I have a template presentation and in this presentation there is a line \author{Lal Upendra Pratap Singh \\2014AN-12} When I ran PDFLatex command in TexMaker, I got the following warning Tokens not allowed in the PDF string(PDFDocEncoding):(hyperref) removing '\\' Then I removed the \ and ran PDFLatex again. The warning is not gone. Also, when I try to change code, I am not seeing the results in the generated PDF. I used to run PDFLatex and then ViewPDF command. Do I need to install some other software also? I have only installed TexMaker. I somewhere read that Miketex and Bibtex are also required. Is it true? | When compiling a beamer presentation and using the following \author command \author{Name \\ \texttt{[email protected]}} I get the following hyperref warning in my logfile Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing `\\' on input line 15. Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing `\new@ifnextchar' on input line 15. I understand that this has to do with hyperref setting the PDF metadata, where the linebreak does’t make much sense and should be removed. Trying to set \hypersetup{pdfauthor={Name}} does’t change the situation, seems like hyperref is still looking at the author command. How do I get the desired display of author name with email and still keep hyperref happy? |
What is wrong with the code: String maintext = (String) main_text.getText().toString(); if(maintext =="10") { ToneGenerator toneG = new ToneGenerator(AudioManager.STREAM_ALARM, 100); toneG.startTone(ToneGenerator.TONE_CDMA_ALERT_CALL_GUARD, 200); } The code is working without if statement but with the use of if and .getText().toString() is not working at all. | I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference? |
I have the following code \begin{align} s'(t) &= -\beta s(t) i(t)\\ i'(t) &= \beta s(t) i(t) - \gamma i(t)\\ r'(t) &= \gamma i(t), \end{align} and I want to enclose this with a bracket like a case, but maintaining the numbered equations. | As much as I have tried, it doesn't seem possible to use separate labels when using a casesconstruction (from the amsmath package). Ideally, I would like to be able to write something like \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} f(x)=\begin{cases} 1&x\geq0\label{positive}\\ 0&x<0\label{negative} \end{cases} \end{equation} \end{document} and later refer to both cases at different places. What would be the best way to achieve this result? |
I have proven the left hand side inequality. Can someone give me a hint for the right hand side ? Proof for the left hand side: $\sum_{r=1}^{n} \frac{1}{n+r} >\sum_{r=1}^{n} \frac{1}{2n}$. | Prove by induction that $\sum\limits_{i=1}^n \frac{1}{n+i} \leq \frac{3}{4}$. I have to prove this inequality using induction, I proved it for $n=1$ and now I have to prove it for $n+1$ assuming $n$ as hypothesis, but this seems impossible to me because the difference between the sum of $n$ and the sum of $n+1$ is a positive value. Adding a positive value on both sides of the inequality, I don't know how to prove that is always less than or equal to $\frac{3}{4}$. |
I'm building an application that can accept a shapefile/mapinfo/feature class/spatialite table/etc. So - various formats from various vendors/organizations. So let's say the user is going through a wizard to import data (or visualizing that data in plan view)...is there generic term for spatial data? Something that a typical user would understand that would differentiate it from a text file or standard table? This isn't a GIS product - it just makes use of GIS data. It is not limited to use in one area of the world. Anyone have any experience with lowest common denominator terminology for beginner/intermediate users (advanced users would just figure it out I suppose)? What is most obvious? Spatial data? Spatial file? Geospatial data/file? Geographic data/file/table? Data with one weird column/file that I can't understand? | What word indicates spatial data within the geographical and geological domains? In particular, what word is precise enough for a science journal article (i.e., formal prose)? Candidates might include "spatial data," "geodata," "geospatial data," and "geographic data." "Spatial data" seems too generic (not necessarily within the geographical and geological domains). What is the consensus, if any exists? |
I am using a first difference estimator for my panel data. The panel has people whom I observe over time. I want to include a 'time fixed effect'. I argue that this should be possible, as long as I interpret it slightly differently than a standard time dummy. So basically: y_it-y_it-1=gamma_(t,t-1)+beta*(x_it-x_it-1)+(e_it-e_it-1) Where i is a subscript for the crosssectional element and t is the subscript for the time element. gamma_(t,t-1) would therefore be a time fixed effect (i.e. dummy variable indicating time) A referee claims it is non-sensical. While disagreeing with a referee is a bad idea, I am curious whether he is right or not. Can someone explain his point ? | Is it the same to estimate the time fixed effect by the within estimator and by simply adding time dummies in my regression equation? Why would that be the case mathematically? edit $$\text{Y}_{ist}=\gamma_s+TFE+\sum^m_{\tau=0}\delta_{-\tau}\text{D}_{s,t-\tau}+\sum^q_{\tau=1}\delta_{+\tau}\text{D}_{s,t+\tau}+\text{X}'_{ist}\beta+\varepsilon_{ist} \tag1$$ Where TFE mean time fixed effect, I can estimate this using within estimation in R or Stata, my question is that does estimate equation (1) using within estimator same as estimate the following equation (2) $$\text{Y}_{ist}=\gamma_s+\text{time dummies}+\sum^m_{\tau=0}\delta_{-\tau}\text{D}_{s,t-\tau}+\sum^q_{\tau=1}\delta_{+\tau}\text{D}_{s,t+\tau}+\text{X}'_{ist}\beta+\varepsilon_{ist} \tag2$$ |
Is there a difference between "sugar cane" and sugarcane? Is sugarcane wrong? What is the gramatical rule for joining two names like that? I have found 13.500 entries on google for sugarcane, but 16.000 for sugar cane. Is that a matter of style or grammar? What do you guys think? | When you are trying to say that something is automatically filled in, you use the word autofill, or if you were using past tense, autofilled. I see 3 main ways that people use it: auto fill / auto filled auto-fill / auto-filled autofill / autofilled Note: this also applies to pre fill, pre-fill, and prefill as well. Which way is the most preferred spelling? |
i am building a nepali site ... it works fine with browser...now i am trying to insert the words in mysql database ..first i tried by changing collation to UTF-8_general_ci..It didn't work..after doing hours of google i found a way .. In the file /usr/share/phpmyadmin/libraries/dbi/mysqli.dbi.lib.php at the end of function PMA_DBI_connect() just before the return statement I added: mysqli_query($link, "SET SESSION CHARACTER_SET_RESULTS =latin1;"); mysqli_query($link, "SET SESSION CHARACTER_SET_CLIENT =latin1;"); that worked in phpmyadmin when i did a small query..it gets inserted in the table with nepali words.. bt when i tried simply from php (CI ) though generating last_query().. its doesnt get insert in table...the view i can get is ?????? where the nepali words should be... note : my last_query generates INSERT INTO `scheme` ( `functioning`) VALUES ( 'बन्द भएको ') .. | I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1. Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur? This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2. |
I have visited Denmark two times so far, and my husband lives there. The last time when I went there 8 year ago, I applied for a permanent visa, which was refused. I consequently overstayed for 10 days because I didn't receive a ticket for the return flight on time. Now they do not even give me a visitor visa. I have two children holding danish nationality. I have tried to apply for visitor visa two times, but it was refused each time. Now I want to try again to apply for a visit visa. Can you give any advise about it? The marriage of my husband's son is going to held in august. I want to apply for a visitor visa to attend the marriage. Your fast replies are highly appreciated. Thanks, nabila mushtaq | I have visited two time in Denmark where my husband lives. Last time I went there was 8 years ago. I applied for a permanent visa which is refused and I overstayed there for 10 days because I never got a ticket to come back. Now they won't even give me a visit visa. I have two children holding Danish nationality. I have tried two time for visit visa but it was refused. Now I want to try again to apply for visit visa can u give any advise about it? My husband has Danish nationality. My first son is 10 year old and second is 1 year old they both have Danish passports and they live with me in Pakistan because they can't live without me my husband always came Pakistan after 9 months. They said in refusal that I might be trying to live permanently in Denmark. |
My web designer recently told me that I need to be careful not to Google for my business' website, click on its search result link, then quickly close the page (or click back) too many times. He says "Google knows" that I didn't stay on the page, and could penalize my site for having a high bounce rate if it happens too much. Apparently, it could look like the behavior of a visitor who was not interested in what they found (hence the supposed detrimental effect on the site's search ranking). This sounds hard to believe to me because I would not have thought any information is transmitted which tells Google (or anyone, for that matter) whether or not a website is still open in a browser (in my case Firefox v25.0). Could there possibly be any truth to this? If not, why might he have come to this conclusion? Is there some click-tracking or similar technology employed by search engines which does something similar? Looking forward to hearing everyone's thoughts. | Does Google consider bounce rate or something similar in ranking sites? Background: here at Stack Exchange we noticed that the latest Google algorithm changes resulted in about a 20% dip in traffic to (and a much smaller dip in traffic to ). Stack Overflow traffic was not affected. There was an which hypothesized that bounce rate might be a ranking signal in Google's latest Panda update. According to Google Analytics, these are our bounce rates over the last month: Site Bounce Rate Avg Time on Site ------------- ----------- ---------------- SuperUser 84.67% 01:16 ServerFault 83.76% 00:53 Stack Overflow 63.63% 04:12 Now, technically, Google has no way to know the bounce rate. If you go to Google, search for something, and click on the first result, Google can't tell the difference between: a user who turns off their computer a user who goes to a completely different web site a user who spends hours clicking around on the website they landed on What Google does know is how long it takes the user to come back to Google and do another search. According to the book (page 47), Google distinguishes between what they call "short clicks" and "long clicks": A short click is a search where the user quickly comes back to Google and does another search. Google interprets this as a signal that the first search results were unsatisfactory. A long click is a search where the user doesn't search again for a long time. The book says that Google uses this information internally, to judge the quality of their own algorithms. It also said that short click data in which someone retypes a slight variation of the search is used to fuel the "Did you mean...?" spell checking algorithm. So, my hypothesis is that Google has recently decided to use long click rates as a signal of a high quality site. Does anyone have any evidence of this? Have you seen any high-bounce-rate sites which lost traffic (or vice-versa)? |
I am trying add a Tex source files which should be compiled using XeLaTex in OverLeaf, since some external dependencies were used to add fonts from other languages except English. ArXiv does not accept source files complaining, !Fatal Package fontspec Error: The fontspec package requires either XeTeX or(fontspec) LuaTeX. (fontspec) (fontspec) You must change your typesetting engine to, (fontspec) e.g., "xelatex" or "lualatex"instead of (fontspec) "latex" or "pdflatex". Is there any procedure to mitigate this issue ? | arXiv is smart enough to detect whether your PDF is generated by LaTeX. If it is, arXiv asks for the sources of the PDF instead of the PDF file itself. This is really annoying and inconvenient. I ask a way to fool the arXiv and avoid PDFs being detected as generated by LaTeX (even if they were indeed). I have tried this: : "create a pdf from word and then simply insert pages from your article, and delete the word's page". And it did not work. |
If you go to your user profile on Stack Overflow (and presumably other SE pages) after earning a new badge the box that tells you about it has out of bounds content: As you can see, the text at the bottom is cut off. Here is my system information: Chrome 69 Windows 10 1920x1080 And for clarity, this is the URL I am seeing this on - while logged in as that user: If there's anything else you need to know let me know :-) | When I visit I see this: The "Congratulations! You've earned (badge)" section has dropped down completely beneath the tabs under it. The "You've earned a new privilege!" section has a gap at the bottom: Shog9 says in comments how to reproduce this: Gotta have earned a badge, not dismissed the notification, and be looking at your own profile. |
Given the following equation: $x+ay -z = 1$ $x+y -az = a$ $2x-4y +2az = -2$ Determine the value of $a$ (if any) for which the system has no solutions. Determine the value of $a$ (if any) for which the system has exactly one solution. Determine the value of $a$ (if any) for which the system has infinitely many solutions And in case the system has infinite solutions, find them So I'd like to put the coefficients of $x,y,z$ into a matrix like the following: $\begin{pmatrix} 1 & a & -1 \\ 1 & 1 & -a \\ 2 & 4 & 2a \end{pmatrix}$ And I want to do this by the method of checking when the determinant not equals to $0$. So I calculate it and got to a place where $(a-1)(-4a-6)$ which means that $1$ or $-3/2$ will zero the determinant. So I realize that if $a$ will be $0$ or $3/2$ then the system has no solutions, but then I don't know how to continue, How do I find out about the unique infinitely soulutions? I guess for unique solution $a$ needs to be not $0$ or $3/2$ but for some reason I can't put it all together.. | Consider the system $$x+y+5z=-7$$ $$-2x-y-2z=5$$ $$x+2y+(a^2+9)z=4a-8 $$ Determine the value of $a$ (if any) for which the system has no solutions. Determine the value of $a$ (if any) for which the system has exactly one solution. Determine the value of $a$ (if any) for which the system has infinitely many solutions I created a matrix: $$\begin{pmatrix} 1 &1 & 5 & \Big\vert & -7\\ -2 & -1 & -2 & \Big\vert& 5\\1 & 2 & a^2+9 & \Big\vert& 4a-8\end{pmatrix}$$ I have no idea what to do after though. |
When I view the simulation in the viewport, it looks normal, like this: When I view it in the render preview with SHIFT+Z viewport, it looks perfect: But when I render with F12, it's strangely transparent and looks odd!: Here's my node setup: Also, try viewing directly. It's more apparent what the problem is. Ignore the funky flow shape. Thanks in advance. | When rendering volumes with Film > Transparent enabled, the alpha appears to be the wrong type (premultiplied/straight). In the 3D view it works as expected: This is a known . Is there any way to work around this? |
I am trying to install sendmail, however whenever I run sudo apt-get install sendmail, I end up with the following error messages: Err:1 http://mt.archive.ubuntu.com/ubuntu zesty-updates/main amd64 procmail amd64 3.22-25ubuntu0.17.04.1 404 Not Found Err:1 http://security.ubuntu.com/ubuntu zesty-security/main amd64 procmail amd64 3.22-25ubuntu0.17.04.1 404 Not Found E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/procmail/procmail_3.22-25ubuntu0.17.04.1_amd64.deb 404 Not Found E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? Running sudo apt-get update, or trying again with --fix-missing has no effect, the following still shows up as Not Found. Checking on this issue, I found out that the problem could be that Zesty's End Of Life was back in January. The problem here however, is that attempting to install the update from the settings, or with dist-upgrade fails. Dist-upgrade specifically returns a significant amount of 404 errors. As for updating from settings, this is the error returned: Detailed errors from the package manager follow: apt transaction returned result exit-failed How do I fix this problem? | Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found: $ sudo apt-get install vlc Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package vlc |
SFMC has rolled out a new feature of gmail annotation for promotion tab which requires an script to be added in email template. When i am trying to add that script to my email, SFMC strips out the script tag from email. Link for gmail annotation for promotion tab Is there any other way of having script tag in emails. One way that i am aware of is to have the script in Data extension as a value and then retrieve that value from DE via ampscript. Is there any other workaround for this. | I had a plan to create drag and droppable forms in content builder in Marketing Cloud. I created the forms and I saved them as content areas. Now when I drop them in a Cloud Page content area all the javascript gets stripped away and the forms are unusable. Both links to scripts and all other javasscript blocks are just gone. How on earth can I solve this and still let the customer really easy build their web forms by drag and drop? |
Do I really have to create a boot disc? I downloaded Ubuntu. unpacked the 7zip file and installed. Then it said I must restart for the installation to complete. When I restarted it showed an error. Is this because I didn't create a boot disc? I'm not technical but I would really like to use Ubuntu for safety. I'm finding it very hard to create a boot disc. I guess I'm too stupid. I don't know how to change the boot area. Can't one just install and let it run? | I would like to see a full how-to guide on how to install Ubuntu. |
Some confusion over a warning message saying my root directory is almost full. What exactly is my root directory, is it synonymous with my home directory, or is it literally the 'root' folder which has 0 items in my File System (see attached). Also, can anyone explain my disk usage analyzer results for /media/jim ? I have 2 2TB external drives connected which are far from full yet /media/jim says I am 100% full. And under System Monitor - File Systems I see /dev/sdc2 is 94% full. How do I reclaim this file space? Thanks for any feedback | In Windows there’re perhaps only a couple of important folders (by important I mean important in my logical picture of the Windows file system) in the installation drive (in my case C:\). Namely Program Files and Windows. I simply stay away from Windows folder and the “add remove program files” is good enough to handle the program files folder of Windows. Of course there’s a folder named Users where the users (who are not admins) can access only their folders. Thus there’s a clear picture at some level in my mind of the Windows file system. In Ubuntu, when I reach the location /, there’s a huge list of folders, most of which I have no clue as to what they contain. The /bin folder seems to be the equivalent of the Windows folder in windows. The /usr folder seems like it’s the equivalent of the Users folder in Windows. But even the /home folder looks like it can fit the bill. Please understand that I do understand, that Ubuntu (Linux) has a different character than that of Windows, i.e., there need not be exact equivalent of Windows functions, in Ubuntu. All I am looking for is a bit more clearer picture of the Ubuntu file system. This question is a part of a bigger question which I am splitting up to make it more answerable. The original question can be found here: |
I started learning php and Recently I've faced a problem with a constant variable in my code. recently I've created the Ninja class in the editor and set a stealth constant to the string "MAXIMUM", then I try to echo it to the page using the scope resolution operator (::). <html> <head> <title> Scope it Out! </title> </head> <body> <p> <?php class Person { } class Ninja extends Person { // Add your code here... const stealth = "Maximum"; } // ...and here! if(Ninja::stealth){ echo stealth; } ?> </p> </body> </html> Now question is "How can echo the const Variable in php???" | Say i have this PHP code: $FooBar = "a string"; i then need a function like this: print_var_name($FooBar); which prints: FooBar Any Ideas how to achieve this? Is this even possible in PHP? |
New to Linux and wanted to ask which version is the best to learn Ubuntu? This is what I see on the packages site: trusty (14.04LTS) trusty-updates trusty-backports xenial (16.04LTS) xenial-updates xenial-backports bionic (18.04LTS) bionic-updates bionic-backports cosmic (18.10) cosmic-updates cosmic-backports disco Thank you for your help and appreciate your time! Bob | What are the differences between an Ubuntu Long Term Support release (LTS) and a normal release? |
I was wondering if there is a way to install Chromium snap version 87 along side with the current one. With snap info chromium you only get these versions: channels: latest/stable: 88.0.4324.96 2021-01-26 (1466) 142MB - latest/candidate: 88.0.4324.96 2021-01-26 (1466) 142MB - latest/beta: 89.0.4389.23 2021-01-30 (1470) 143MB - latest/edge: 90.0.4400.8 2021-01-30 (1471) 146MB - installed: 88.0.4324.96 (1466) 142MB - What if I needed both version 88 and 87 as I have some old devices that have web management that needs Adobe Flash Player that has been dismissed since 12th January 2021. Wanted to keep Chromium version 87, only to manage these old devices and use current Chromium version to surf the web. Thanks for you help. Carla | I'm using VS code installed via snap. The latest version has an annoying bug in it and I want to revert to the previous version, but I don't see a way to tell snap to install a specific version. All I see with snap info are the different channels which all yield to the latest version. Also on the I can't select another version. In the snap docs it says that I could revert, but this doesn't work for me, as there is no prior version installed. I can download a snap with the specific version from the VS code website, , but I personally would prefer to handle this by snap directly. There seem to be some people with the same problem, but I didn't find a working answer: The question summed up is: Is there a possibility to revert to an older snap version and if yes, how to do that? |
My host OS is Ubuntu 15.04 and my guest OS is Windows 10. I'm running VirtualBox 5.0.2 r102096. When the guest OS is running in the VM, right-clicking on the little USB icon displays a context menu with a single disabled menu item that says No USB devices connected. When the machine is powered off and I go into its settings, on the USB tab, the Enable USB controller option is checked and USB 3.0 (xHCI) Controller is selected. In the USB device filters list some of my previously created (from when it still worked) filters are present and when I right-click there and select Add filter from device, I am greeted with a similar context menu with a single disabled menu item that says No devices available. My USB flash drive is inserted into the host computer, but other devices should be visible as well, namely the integrated webcam, the touchscreen and stuff. They were previously, before either upgrading Ubuntu or upgrading VirtualBox, I cannot pin point precisely when it stopped working as I run the guest OS sporadically. When I run sudo adduser tomashubelbauer vboxusers, I get The user tomashubelbauer' is already a member ofvboxusers'. When I log out and log in again, the same thing happens. Are there any other knows issues with VirtualBox being unable to enumerate USB devices? Are there other options for me to troubleshoot the issue further? | I'm using Ubuntu Maverick and Virtual Box 3+. I have Windows 7 Ultimate. The problem is that it doesn't detect USB drives in Windows 7, but USB peripherals (mouse + keybord) are working. I followed , but I can't find the user group vboxusers. How can I continue? I would also like to upgrade to the latest version without any risk (without losing my virtual hard disk drive). |
I have a file having some text like: ipaddress="127.0.0.1" I have to replace the 127.0.0.1 with a variable say $ip_add, where $ip_add=127.0.0.2 the following sed command is not working sed -i 's/127.0.0.1/$ip_add/' conf.py when i run this command the text is file like this ipaddress="$ip_address" Please help. thanks in advance | I want to do: cat update_via_sed.sh | sed 's/old_name/new_name/' > new_update_via_sed.sh in my program. But I want to use variables, e.g. old_run='old_name_952' new_run='old_name_953' I have tried using them but the substitution doesn't happen (no error). I have tried: cat update_via_sed.sh | sed 's/old_run/new_run/' cat update_via_sed.sh | sed 's/$old_run/$new_run/' cat update_via_sed.sh | sed 's/${old_run}/${new_run}/' |
I have a very naive question. I started using linguex package, but now I realized I need some options that only expex has. I was wondering if the two packages be used in the same document, or would they be in conflict with one another. The reason I ask this, is that I need to do the following with linguex, but I am not sure it is doable. First, I need to have right-aligned comments on the first and third line of a gloss. Based on on the question linked in the comments: I tried the following: \documentclass[12pt,letterpaper]{article} \usepackage{amssymb} \usepackage{linguex} \usepackage{cgloss} \begin{document} \ex. \a. The girls kissed the boy \hfill {\small \checkmark X} \bg. The boy didn't kiss the girl \\ D boy AUX.NEG kiss D girl \\ \hfill {\small \checkmark X} \trans 'The boy did not kiss the girl'. \hfill {\small \checkmark X} \end{document} This doesn't quite do what I want because ... ? Second, I need to add arrows/lines connecting two parts of the example. Something like: | I'm writing a linguistics paper that uses a large amount of linguistic examples from a wide variety of languages, using the gb4e package. I want to be able to label each example with information about the language it comes from, as I've seen in some texts, sort of like this: Language (family, citation, etc.) (1) example text glosses 'translation' gb4e is great at formatting the examples themselves, but I can't seem to get the label placed where I want it, that is, placed immediately before the example and without an indent. Here's some example code: \documentclass{article} \usepackage{gb4e} \usepackage{lipsum} \begin{document} \lipsum[2] Hungarian (Finn-Ugric, \emph{reference}) \begin{exe} \ex \gll J\'anos h\'aza\\ John house.his\\ \glt `John's house' \end{exe} \lipsum[3] \end{document} If the label text is outside the exe environment, it's treated like a regular paragraph, but if I try to put it inside, it gives me an error. How can I make it look the way I want? I've looked at other packages that do numbered examples, but they don't seem to have solutions either, and they also don't have the same functionality as gb4e that I need. Any help would be greatly appreciated. |
Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ such that $$f(f(x)^2+f(y))=xf(x)+y$$ for all $x,y\in{\mathbb{R}}$. Here is my approach to the problem: We see that $f(x)=x$ is an obvious solution (Just trying easy linear equations). I think this would be the only solution to the problem. Am I right? And how to prove that there is no other solution? (Note: I am a beginner at functional equations) | Find all functions $f:\mathbb{R} \rightarrow \mathbb{R}$ such that $f\left( f(x)^2+f(y) \right)=xf(x)+y$ for all real numbers $x$ and $y$. Clearly $f(x)=x$ is a solution, check by substitution. I'm at a loss as to how to show this is the only one or find others. Any help would be very much appreciated. |
I am looking for an online course devoted to the advanced methods of theoretical condensed matter physics. It is good if the course offers free materials like lectures, homework assignments etc. Things to be covered: Functional integral methods equilibrium and non-equilibrium Green's functions Perturbation theory and Feynman diagrams Applications to bosonic and fermionic systems | What are some good condensed matter physics books that can fill the gap between Ashcroft & Mermin and research papers? Suggestions for any specialized topics (such as superconductivity, CFT, topological insulators) are welcomed. |
Let's $(\mathbb{C},\mathbb{C})$ be a ordered paired of elements form $\mathbb{C}$ when $\mathbb{C}$ is defined as (a,b). addition and multiplication is defined as in $\mathbb{C}$. How do I prove it is not a field if $\mathbb{C}$ is a field | I have a question, and this is it in entirety: Let R be a non-zero ring(that is, R contains at least one element other than the zero element). Prove that $R \times R$ is NOT an integral domain. Now I haven't done a problem like this before, and it seems to be(from the Wikipedia definition) that this ring $R$ needs to be commutative to be an integral domain. Which it isn't stated to be here. What exactly am I meant to do? I haven't been given anything else than the area in grey. |
I'm using Nexus 5X. For some reason, all posts I'm trying to view are not shown well. I see blank page and I have to scroll a long way down to see the post. In addition, the comments and answers are not shown at all. App Version: 1.0.89 Device Manufacturer: LGE Device Model: Nexus 5X OS Version: 7.1.1 (3687331) | I have white blank on the posts. App Version: 1.0.89 Device Manufacturer: Meizu Device Model: m2 OS Version: 5.1 (1464689330) I can't see the questions and the answers and the comments. I saw that it's a common issue.. Does it have a fix? EDIT - I saw answer. This answer is ~2 years old. It says that it will fix in the next update. His version is 1.0.59 - mine is 1.0.89. Huge different. The problem is still exists! |
I installed the TOR client, that's all set. Says "successfully opened a circuit". Now, I would like to know how to set up a browser with it. I am using Ubuntu 14.04 and didn't install TOR through the official repos. | I tried to install Tor on my new version of Ubuntu, but it seems that Tor is not available in the repositories. How else can I install and use Tor? |
the subdomains are not working on the hosting that include this htaccess file this code file ".htaccess": Options +FollowSymlinks -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule .* - [L] RewriteRule ^(.*)/cgi-bin/(.*?)/ $2.php?lang=$1 [L,NC,QSA] I want as follows: to Depending on the above file ".htaccess". Please help me to fix that | I am looking to create a system which on signup will create a subdomain on my website for the users account area. e.g. johndoe.website.com I think it would be something to do with the .htaccess file and possibly redirecting to another location on the website? I don't actually know. But any information to start me off would be greatly appreciated. Creating a sign up area is not the problem - I have done this many a time. I am just unsure where to start with the subdomain. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.