I am hoping someone can give me some pointers and a little direction. I love photography and I am currently in a rut career wise. I would love to start on a path to make a living of some kind from photography and want to get an idea as to the best way to start.  I am happy to be labelled a complete novice and would like to know the best courses that I can enrol on to learn nthe basics. I have a digital SLR and an eye for a photo (I think anyway!) and a genuine love for photogaphy and in a perfect world when it all works out I would be doing portraits/landscapes, but that's a way away just now.  So if anyone can recommend a great course and offer advice I would be really grateful. I live in London so courses local to that would be preferable.  Really hope to get some feedback and thanks in advance.

I have a great passion for photography. I own a normal Canon digital camera of 10 megapixel. I would like to learn more about the various techniques, tips for taking great pictures so that I an enthusiast currently can become a professional someday. Please let me know how this can be achieved.


I have a SQL Server database where the log file is massive and keeps growing every day.  I've archived data from the database and then done a full backup.  I was expecting the log to then be basically "empty".  e.g. It might be the same physical size, but now have lots of free space.  However, it's currently only got 0.1% free.  Any ideas why there is still almost no free space in the log?

This one seems to be a common question in most forums and all over the web, it is asked here in many formats that typically sound like this:  In SQL Server -  What are some reasons the transaction log grows so large? Why is my log file so big? What are some ways to prevent this problem from occurring? What do I do when I get myself on track with the underlying cause and want to put my transaction log file to a healthy size?


When I hover cursor in a question link with several images, the "popup" becomes too large:    I noticed this issue in several sites from SE, a example, go to  and hover mouse in "Banners pra que te quero!" question.

When mousing over a link to a question on the main page, a tooltip appears with the first few sentences of the question.  When a question includes a picture or quote in those first sentences, this leads to weird spacing in the tool tip. It doesn't matter where specifically the picture or quote is in the first few sentences, of course. Update: Further testing shows this weirdness also happens with Lists (bulleted at least) and Video Embeds (On Movies.SE)  For comparison, how a normal paragraph break is shown:        Single line break.   Picture as first paragraph in question:        Notice the double blank line.   Quote, as second paragraph:        Notice the triple line before and after the quoted text.   List as first paragraph:        Single unneeded line break.   Youtube/Flash Embed as first paragraph on Movies.SE"        This actually two issues, as for some reason embedding a video leads to the system rendering the question as having a
 followed by the video
 followed by another
.   I thought it may have had to do with how paragraph html marks are parsed, but the block quotes do not use
 or
. Instead they use
  The same issue happens if the picture is 1st, 2nd or 3rd paragraph, if the text of the question is short enough for those to be included.  Can this be fixed? It's on multiple stacks (First example is EE.SE, second is here on Meta.SE)  Update: I looked at the source for the page, and the rendered title tag for the second example () is
Golden tag badge owner can insta-close questions not originally tagged with a tag they own a golden badge for [duplicate]
   Four line breaks (New Line characters) just dumped in. The fix would be easy. Eliminate multiple New Lines in a row when rendering the Title attribute. A better fix, include spaces in that. That question actually has 3 new lines, space, 1 new line, and then new line, 2 spaces, 3 new lines. Should be simple to implement, I'd think.


I think commas are typically placed after closed parentheses and within quotation marks. This creates a dilemma when all three are used together.  Example one: You may like snelms (or "snail helms,") which are etc.  Example two: You may like snelms (or "snail helms"), which are etc.  Which example, if either, is correct? Thanks in advance for your help and sorry if this has already been asked; I've spent over fifteen minutes searching and couldn't find any answers to this question.

Are there cases where a period is placed inside parentheses? In which cases the period (or a comma) should be placed inside the parentheses?


I found this sentence on       Amber Rose hangs out with (a) turquoise-haired mystery girl.    I couldn't find 'turquoise-haired' in any dictionary, but a similar construction, "", has its place in Collin dictionary.   I don't understand how it's possible to attach the -ed suffix to a noun. Do we have a fancy term for this?

The question is raised from the viewpoint of a foreign language learner.  -ed is known to be added to a verb to mean past tense or past participle, but some phrases like four-legged animals, winged birds, are in the form of noun+-ed, why is it so? What is the logic behind such a structure?


I am unable to use the Japanese version of Stack Overflow.  I have an account on .  The problem I am facing is this: Whenever I try to upvote/downvote or post questions/answers, I get an error:     Bad request-invalid url      Http 400 error: the requested url is invalid     How can I fix the issue?

Which browsers are officially supported by Stack Exchange?  Also, what else is needed in order to use every feature of the site?


Is it possible to configure Keychain to share passwords in Chrome on OS X Catalina? The problem I face is that some websites function better in Chrome than Safari and I would like to be able to switch between the two browsers and use auto-logins in each. Currently I can do this in Safari if use Keychain and Password autocomplete. I would like to be able to do same or similar in Chrome.

Background:   Story: A colleague of mine told me about  and it seems good to me. I am always trying to use tools which Mac OS X itself gives me, so I've given the Keychain a try. It seems satisfying, but I don't know how to tell Google Chrome to use my specific keychain. I need it to separate saved stuff for work and for private (syncing private to work, but separated from work data).  Stuff:   Google Chrome 21.0.1180.57 (Fully updated) Mac OS X Lion (Fully updated) OS X Mountain Lion (Fully updated)   Question:  How do I tell to Chrome to use a specific keychain and to save data from/to this keychain?


Suppose my database contains the following tables :   table_A with primary key PKA table_B with foreign key FKA   Suppose also that I have no clue of the content of the database, except that it contains a table named table_A.  Here is my question : given table_A's name, what (PL/)SQL request do I have to make to the database to know that there is a table B that has a foreign key to table A ?  I'm using Oracle 11g

In MySQL, how do I get a list of all foreign key constraints pointing to a particular table? a particular column? This is the same thing as , but for MySQL.


When viewing the main stackoverflow.com site in Chrome 28, I don't get the CSS.     It works fine in IE10.  The chrome debugger shows a failure to get CSS resources over the HTTPS connection:  GET https://cdn.sstatic.net/stackoverflow/all.css?v=7f92ff1ddd7d  stackoverflow.com/:10 GET https://cdn.sstatic.net/js/stub.js?v=dd6898efd655  stackoverflow.com/:10 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:16 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:23 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:30 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:35 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3079 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3092 Uncaught ReferenceError: StackExchange is not defined stackoverflow.com/:3105 allow right click initializing for http://stackoverflow.com/ rightclick.js:1 allow right click processing http://stackoverflow.com/    On stackexchange sites where the CSS resources are retrieved over an HTTP connection, there are no errors.   I note that if I try to directly go to , chrome gives me a warning about the certificate's domain not matching *.stackexchange.com.  If it matters, I am behind an iPrism web filter.

Starting yesterday,  pages on Stack Overflow have been coming up as text and links only,  no images or CSS.  It is only doing this in Chrome, and only for stackoverflow.com.   Chrome developer tools console shows the following:  Failed to load resource https://cdn.sstatic.net/stackoverflow/all.css?v=da12668b668c Uncaught ReferenceError: StackExchange is not defined dynamic-dependency-injection:18 Uncaught ReferenceError: StackExchange is not defined dynamic-dependency-injection:35 Uncaught ReferenceError: StackExchange is not defined dynamic-dependency-injection:40 Uncaught ReferenceError: StackExchange is not defined dynamic-dependency-injection:261 Uncaught ReferenceError: StackExchange is not defined dynamic-dependency-injection:375 Uncaught ReferenceError: StackExchange is not defined dynamic-dependency-injection:388 Failed to load resource https://cdn.sstatic.net/js/stub.js?v=dd6898efd655 Uncaught ReferenceError: StackExchange is not defined dynamic-dependency-injection:467   Example of a URL that shows the error:    I don't have adblock or JavaScript blocked.  Is this a browser issue? I'm using Chrome Version 28.0.1500.72 m on Windows 7 Enterprise with SP1, 64 bit.


I am traveling from the US to India via London Heathrow on November 6. I will be at LHR on 7th at 6:20 am and departing at 9:25 pm. I'm an Indian national and have a valid US visa.  Do I need a transit visa to stay airside?  I have been scared that British Airways have stopped a few people from boarding flights (no details just rumors).  Do I need a transit visa to stay landside? I want to do some sightseeing. What are the chances of getting past officials using transit without visa concession?  Real stories will help a lot to calm the butterflies in my stomach.

Is there a website or some other way to find out if I need a transit visa for a short stop in the UK on my way somewhere else? Ideally this should give me the answer for all nationalities, and take into account any other visas I may have.


I have reviewed this:   but it does not answer my question. The suggested fixes in this question is to set up FB, IG, and other social media pages. We have had these for months. We have 576 Instagram followers, 293 followers on Facebook, 17,425 views on Vimeo, Youtube, Pinterest and LinkedIn presence. Here is the response in a YouTube search:  Let's be clear. If you search for my company name and product name YT changes the spelling to something that doesn't exist and suggests a video with no matching result terms (using either spelling) disparaging OTHER luxury handbags, while insinuating it is referring to my handbags. When a user searches for our business, , Google and Youtube changes the spelling to Aslan Vaughn and displays these results:  For the first few months it just seemed like it was taking some time to percolate, but over 7 months we have had 17,500 unique visitors and nearly 90 backlinks.  The only results for Aslan Vaugn is the birth announcement of the second child of a musician in New Jersey. It is a Facebook post and has 14 likes. Google is favoring a spelling that has only two results with 14+ views over dozens of links and tens of thousands of views. How is this possible? An FB post with 14 likes is that much more popular than a business with 17,500 unique visitors (despite the Google obfuscation)? Is my company on some list? On other search engines my company covers the first few pages in results. Through Google, you cannot find our company no matter how many pages in you go. Unless you search for the term in quotes, . In which case we cover the first few pages here as well:

I don't know much more about SEO, but it's interesting to learn about it. When I tried to search my website with an associated keyword or you can say with the exact name of the domain, I got some suggestions by Google. Here's .  First of all, I don't want to spamming here, I just want prove my question and want to give a hint about what I am talking here. The above link display the Did You Mean, I know the specific reason why Google shows this, but I want to know the Google's guidelines and some guidance by you experts so that if someone search for the particular keyword then Google hide that Did You Mean and display the result.


Who that gets notifications are defined in the service and host definitions, but what I would like is that it is only defined on a pr host level.  So whoever that is in the contact_groups for the host also get all service notifications.  For this particular host definition example would I like the groups admins and sandradebug to receive all host and service notifications.  Is that possible?  Typical host definition  define host {   use                     linux-host   host_name               example   alias                   example   address                 10.10.10.10   hostgroups              default-linux-services   contact_groups          +sandradebug }   Service check that all Linux hosts get  define service {   use                     generic-service   name                    check_disks   service_description     Check Disk   check_command           check_nrpe!check_disk   contact_groups          linux-admins   hostgroup_name          default-linux-services }   Don't know what this does, or why it is required  define hostgroup {   hostgroup_name  default-linux-services   alias           All Linux hosts shall have these service checks   members          }   Service template  define service{   name                            generic-service   active_checks_enabled           1   passive_checks_enabled          1   parallelize_check               1   obsess_over_service             1   check_freshness                 0   notifications_enabled           1   event_handler_enabled           1   flap_detection_enabled          1   failure_prediction_enabled      1   process_perf_data               1   retain_status_information       1   retain_nonstatus_information    1   is_volatile                     0   check_period                    24x7   max_check_attempts              3   normal_check_interval           10   retry_check_interval            2   contact_groups                  admins   notification_options            w,u,c,r   notification_interval           60   notification_period             24x7   register                        0 }

So my setup:   Services are shared between all hosts (CPU/RAM/Disk/Services). Hosts are split into two main groups: "Production" and "Development". We have two contact groups: "Production" and "Development".   Lets say my development SQL server runs low on RAM, I want it to only alert those in  "Development" contact group (this service is of course assigned to a host in the "Development" host group, using the shared RAM monitoring service).  I'm pretty much stumped on this... I can't configure it at the service level (they're shared there), and I can't seem to get escalations to do it for me either...   Do I need to use service groups along with escalations and bite the bullet on building that list? Or am I missing something stupidly simple?  I'm using Centreon for configuration if that helps.


I am new to linux and I was trying to set up path of JAVA_HOME but I accidentally wrote export PATH=/usr/lib/jvm/java-11-openjdk-amd64 which I think overwrote $PATH. I am quite sure I have messed up big time. Because when I enter $PATH, it says zsh: no such file or directory: /home/gshacklebolt/.local/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games Is there any way to revert what I did?

How do I add a directory to the $PATH in Ubuntu and make the changes permanent?


Let $(X,\|\|)$ be a normed space, and  $(X^*,\|\|_*)$ and $(X^{**},\|\|_{**})$ be it's topological dual and topological bidual respectively. Now consider a norm $\rho$ in $X^*$which is equivalent to $\|\|_*.$ Does there exists a norm $\mu$ in $X$ such that $\mu_*= \rho$? (Of course, $\mu_*$ denotes the dual norm of $\mu.$)  I know that if $X$ is reflexive, such a norm indeed exists, and it is just $$\mu(x)=\sup_{\rho(x^*)\leq 1} |x^*(x)|.$$   The question is: can we remove reflexivity? I think that for a proof we could use Goldstine's Lemma. A proof or counterexample would be nice.

I am wondering the following question: Let $X$ be a separable Banach space which is linearly isomorphic to a dual Banach space $Y^*$. Is there a Banach space $Z$ such that $X$ is lineraly isometric to the dual of $Z$: $X=Z^*$.  I think that the answer is no, but I do not have a counterexample. Since $L_1$ is not isometric to any dual Banach space, maybe one can find a dual Banach space which is isomorphic to $L_1$...  To finish, do that change anythink if I suppose $X$ to be almost linearly isometric to $Y^*$ ? By almost linearly isometric I mean that for every $\varepsilon >0$ there exist $T$: $X \to Y$ a linear isomorphism satisfying $\|T\|  \|T^{-1}\| \leq 1+\varepsilon$.


I have student visa 'D'. Is it possible for me to travel and stay in other Schengen countries like Belgium, Germany, etc.?

I’m going to Germany for a semester exchange and I have a long-stay visa from Germany. Can I travel to the other Schengen states during this period with this visa or do I have to apply for a separate short stay Schengen visa?  My visa is German national visa type D. It is for a duration of 4 months, i.e., longer than 90 days. It says on the visa that the long stay visa is valid in Deutschland, which is different from my earlier visa, which I had when I visited Germany earlier; that one was a short stay visa and said it was valid in Schengen Staten.  Perhaps my current visa means that I can stay in Germany for a period of longer that 90 days can visit the other Schengen states if I don’t exceed the 90 day period.


So in the beginning, I just had this code to add to my array:  public void getMyArray() {     myArray[0] = ("String1");     myArray[1] = ("String2"); }   But I kept getting a null pointer exception whenever I called it, and I wasn't sure why. So I changed my code to this:  public void getMyArray() {     String [] myArray = {"String1", "String2"};     System.out.println(myArray); }   And now I get what seems to be the address when printing:     [Ljava.lang.String;@1ca6218

In Java, arrays don't override toString(), so if you try to print one directly, you get the className + '@' + the hex of the  of the array, as defined by Object.toString():  int[] intArray = new int[] {1, 2, 3, 4, 5}; System.out.println(intArray);     // prints something like '[I@3343c8b3'   But usually, we'd actually want something more like [1, 2, 3, 4, 5]. What's the simplest way of doing that? Here are some example inputs and outputs:  // Array of primitives: int[] intArray = new int[] {1, 2, 3, 4, 5}; //output: [1, 2, 3, 4, 5]  // Array of object references: String[] strArray = new String[] {"John", "Mary", "Bob"}; //output: [John, Mary, Bob]


I can easily specify offset of fields:  [StructLayout(LayoutKind.Explicit)] public struct MyMarshaled {     [FieldOffset(0)]     public int Version;     [FieldOffset(3)]     public int SubVersion; }   but how I can specify field lengths in bit representation? For example like this:  [StructLayout(LayoutKind.Explicit)] public struct MyMarshaled {     [FieldOffset(0, lenght=3)]     public int Version;     [FieldOffset(3, length=5)]     public int SubVersion; }   So, given the byte bitmap 00100001 it will print out struct with value '1' in both fields, i.e 001 is for Version, and 00001 is for SubVersion.

I have a structure which I need to populate and write to disk (several actually).  An example is:  byte-6     bit0 - original_or_copy   bit1 - copyright   bit2 - data_alignment_indicator   bit3 - PES_priority   bit4-bit5 - PES_scrambling control.   bit6-bit7 - reserved     In C I might do something like the following:  struct PESHeader  {     unsigned reserved:2;     unsigned scrambling_control:2;     unsigned priority:1;     unsigned data_alignment_indicator:1;     unsigned copyright:1;     unsigned original_or_copy:1; };   Is there any way to do this in C# that would enable me to access the bits using the struct dereferencing dot operator?   For a couple of structures, I can just do bit shifting wrapped in an accessor function.  I have loads of structures to handle in this way, so I'm looking for something that's easier to read and quicker to write.


Filter email address with regular expressions:  I am new to regular expressions and was hoping someone might be able to help out. I am trying to pattern match an email address string with the following format: FirstName.LastName@gmail.com I want to be sure that there is a period somewhere before the '@' character and that the characters after the '@' character matches gmail.com

Over the years I have slowly developed a  that validates MOST email addresses correctly, assuming they don't use an IP address as the server part.  I use it in several PHP programs, and it works most of the time.  However, from time to time I get contacted by someone that is having trouble with a site that uses it, and I end up having to make some adjustment (most recently I realized that I wasn't allowing 4-character TLDs).  What is the best regular expression you have or have seen for validating emails?  I've seen several solutions that use functions that use several shorter expressions, but I'd rather have one long complex expression in a simple function instead of several short expression in a more complex function.


Trying to join a shapefile layer - polygons - (municipalities with a data table with corresponding data sets) an Excel file with the .xlsx extension, BUT as showed in the attached image some error occurs.  Any suggestions what's wrong with this join procedure?

When trying to join Excel datafile to shapefile in ARC GIS 10.2.2 I keep getting the following message:  "Failed to connect to database.  An underlying database error occurred.  Class not registerd."  Any ideas how to resolve?


When spawning on our server, the player is located on an island we've dubbed "Spawn Island" (Original name isn't it?). On this island is a series of platforms with pressure plates. Under the pressure plates are command blocks encapsulated in bedrock. The command blocks have a tp command to teleport anyone standing on the platform to their respective destinations. At the destination is a duplicate platform with the ccounterpart command block to teleport them back to the proper platform.   The system works well with one big problem we've found. If a player is riding a horse, the horse does not teleport and is left wandering around near the departing platform.  Is there a way to change the command to teleport a player as well as any horse they are riding (preferably staying on the horse if so)?

I've created a big circuit in my vanilla server to teleport all players to an arena each 3 days.  It's all working like a charm, but a few days ago a player wasn't teleported. Chatting with him, he told me that he was on a horse.  Players on horses are not teleported?


I have my old 2016.2 kali version on usb stick.I installed it on dual boot. I ran uname -a in terminal and got output: Linux kali 4.6.0-kali1-686-pae #1 SMP Debian 4.6.4-1kali1 (2016-07-21) i686 GNU/Linux which i suppose is kali 2016.2. But when i do sudo apt-get update; sudo apt-get upgrade and sudo apt-get dist-upgrade it doesn't install anything. And 2017.1 is out.

I've installed Kali Linux (normally I use ArchLinux, but I need Kali for work) and every time I want to upgrade, a few packages can't upgrade and are kept back. To force them to update I have to manually select them and perform an installation.  To update, I use the following command:  apt-get update && apt-get upgrade   Even from a clean installation the problem persists. Is there someone with the same problem? How can I solve it permanently?


When in the 3D viewport, you can set your mesh colors to "random". But can you change this randomly assigned color of one certain mesh to something different, in case you -like me - happen to have a much too similar color in another mesh, and unfortunately the two are overlapping?

In the 3d-view workspace, we can use a random color to give our separated object a distinct look.  What if I don't like the result and I want to randomize the color again?   Swapping the setting doesn't change the random seed in color.    (Blender 2.80.64.)


I have Ubuntu installed and, I want Windows 7 also. (I don't have any backups of Windows from when I installed Ubuntu, I have an HP deskop, also I want to boot via USB.)

I have Ubuntu on my laptop. Now I want install Windows 7 in a dual-boot. How can I do this? I can't lose my Ubuntu files, and I'm afraid that I might break . Go  for UEFI only!


Can I say that a phenominon(e.g. like a coin flip) Is not deterministic but also not 50/50 ,rather completly unpredictable ? Is there a term for such behaviour ? Is that what "random" mean or is random apply for 50/50 ?

When I say totally random, I mean absolutely random, not pseudorandom. If I want to say "totally random" numbers such as 1,26,17,4,1 and 27, although I see them to be totally random, they aren't. These are numbers that I think are influenced by my childhood, ideology and everything that I've seen. So, what do you think? Is there anything completely random?


I'd like to be able to debug the execution order of the jobs started by Upstart (ideally without injecting dumping code into every job file).  How can I do this?

Is there a list of available events that can be used for Upstart?  For example start on local-filesystems so local-filesystems is an event but when is it triggered and what other events are there?


See how on the image the positioning isn't correct. I'm talking about the white pieces see how far they are from those movers with arrows that means If I move I would have to move an extra. It also makes it impossible for me to rotate them to the exact way I want without spending 2 hours.

How can I change the local origin of an object, without changing the object location in the world space.  This is the object located at position (0,0,0) in the world space    This is the same object located at position (0,1,0) in the world space, but with its local origin offset so that the object is in the same place    Is there a way to do this in a single step?


As Hartshorne goes     Let $Y\subseteq \mathbf{A}^3$ be the curve given parametrically by $x=t^3,y=t^4,z=t^5$. Show that $I(Y)$ is a prime ideal of height $2$ in $k[x,y,z]$    which cannot be generated by 2 elements.    It is algebraic routine to check that $I(Y)$ is prime and of height $2$. But how to show it cannot be generated by 2 elements? I can give an elementary solution (see under). But what's more? Any solutions are welcome no matter how less elementary they may be.

How can I determine the height and the least number of generators of the ideal $ I=(xz-y^2,x^3-yz,z^2-x^2y) \subset K[x,y,z] $?      I tried to calculate the dimension of the vector space $I/I\mathfrak m$ with $\mathfrak m=(x,y,z)$, but I'm not able to find it.  I think the height is $2$, because the affine variety should be a curve, and also I know that the ideal is prime, so I need a chain $0\subset \mathfrak p \subset I$. Maybe $(xz-y^2)?$ Is it prime?


I am looking for a book that I would have read about 17 years ago (not sure how old it was by that point).  Would have been published prior to 2002 I believe.  The book begins with the main character being some sort of farmer or tradesman who is very strong.  His dad is sick and he is bringing him to a hospital (carrying him actually, recurring mentions of how strong this guy is) but when he arrives the dad dies or is already dead. In his grief he accidentally kills someone or is framed (can't remember that part well) and is shipped to a prison planet along with other folks.  I believe everybody was cryogenically frozen but I can't be sure on that. The ship crash lands along the way, on a dangerous planet with dangerous fauna.  He bands together with his fellow prisoners to fight both the creatures/fauna and other inmates. One inmate was genetically- or cybernetically-engineered and is super dangerous. He beats him because he was strong.  Forces are sent to kill the crash landed inmates and they overpower them, and possibly return to Earth to start some sort of revolution.  I think the forces had some gnarly fire guns or plasma rifles of some sort.  I remember thinking they were excessively powerful.  I believe this is actually a series and not just a single book.  If I remember right it had pretty neat cover art.  The main character also may have gotten romantic with the main girl in the story too.  The beginning antagonist in the story which was the dangerous genetically engineered guy was also covered in tattoos I think.  I also think they eventually reconciled when they had a common enemy which was the Earth armed forces.  I might be thinking of a different book but I believe when the earth forces first landed they used a weapon called a "sun gun" that vaporized people and was rather destructive.

I'm trying to identify a book (or possibly a series, as I seem to recall reading a sequel which still left the story unfinished).  I read the book or books in the early 90's and had picked them up from a jumble sale at school, so they were probably published in the 80's or possibly 70's. I guess you would class them as YA fiction, though that wasn't really such a thing back then...  As I recall the story began with a slave transport craft crash landing on an alien world, with only a handful of teenage and pre-teen humans surviving. They scraped together what they could, including a couple of functional 'sunguns' (basically, laser rifles) and began a low level guerilla rebellion against the alien race that were using humanity as slave labour on the planet.  I've googled 'sungun' repeatedly, thinking that this should be the best way of finding the story but the references that come up are all for other stories or conspiracy technologies.  Anyone got any vague recollections of a book or series like this?


I want to create a list of ctypes.c_int32's  I have read and understand .  No matter what I do, I keep creating a list of one instance of the c_int32. This works fine for int or floats or what not. Specifically I can not get ctypes to work.   f=[ctypes.c_int32]*10   but f[0] IS f[1], so...  f[0].value=1   changes f[1] as well. I know why it is doing it. How do I make it stop. That is, how do I make the list all unique instances of c_int32?

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


I am writing an academic paper and confused about the following usage of "a/an":     with an MAP score below 0.4   Or      with a MAP score below 0.4   While the second one seems more "grammarly" correct, I see frequent usage of the first one. Indeed, if you Google an mAP with Google Scholar, you will find plenty of usages in research papers.   So, which one is more correct? Any advice or suggestion will be appreciated.

99% of the time, I'm clear on when I should use "a" versus "an." There's one case, though, where people & references I respect disagree.  Which of the following would you precede with "a" or "an," and why?   FAQ FUBAR SCUBA   [Note: I've read the questions  and , but the rules given there don't necessarily apply here.]    [Edited to add]  Here's a shorter (and hopefully clearer) version of the question…  In written English, which is correct (and why): "a FAQ" or "an FAQ"?  Some references with differing opinions:   an: the  and  a: the Microsoft Manual of Style for Tech Publications, 3e either: the  and


I have a problem getting a figure from Matlab into Latex. I have saved the figure as a EPS-file in the same folder as I have saved the latex-documents. This is what I wrote in Latex:  \begin{figure} \includegraphics{diffusion} \end{figure}   diffusion is the name of the figure. The problem is that when I run this code in Latex, I only get much open space, but no figure. Does anyone have an ide what I should do differently?   David

The images in my paper are in EPS format. If I execute pdflatex to get a PDF version of my paper, the figures won't appear. I have to typeset using the latex command, and then convert the DVI file to PDF using dvipdf.   Why doesn't pdflatex support EPS figures?


In my module, I was trying to make use of db_or() in this way...  $filterSparten = db_select($this->tbl_hat_sparte, 'hs')   ->fields('hs', array('hat_AID'));  $or = db_or();  foreach($_GET['tags'] as $tag) {   $or->condition('hat_KID', $tag);  }   $filterSparten->condition($or)   ->execute()   ->fetchAssoc();   ...which, unfortunately, only returns a SelectQuery-object:  SelectQuery Object (     [fields:protected] => Array         (             [hat_AID] => Array                 (...   Why doesn't my code return a fetched results-object? I have compared it several times with the examples on the Drupal-pages, but I can't help myself with it.

I am studying the new database layer, and I am glad it is changed to an OOP layer. I need to implement a query with db_select(). I found I can add a WHERE statement with $query->condition(), but by default the conditions are AND'ed together.  How can I OR the conditions together?  $query=db_select('users','u')->fields('u',array('uid','title','created','uid')); $query->join('flag_content','fc' , 'u.uid = fc.content_id'); $query->condition('fc.fid', '5' , '='); $query->condition('fc.uid', $uid , '='); //…


Is there a CSS (non-javascript) way to make input fields (text/textarea/password) shown the same way cross-browsers (from IE7+ and all other common browsers (safari, chrome, firefox)) ?

This is one of the minor CSS problems that plague me constantly. How do folks around Stack Overflow vertically align checkboxes and their labels consistently cross-browser? Whenever I align them correctly in Safari (usually using vertical-align: baseline on the input), they're completely off in Firefox and IE. Fix it in Firefox, and Safari and IE are inevitably messed up. I waste time on this every time I code a form. Here's the standard code that I work with:   <form>     <div>         <label><input type="checkbox" /> Label text</label>     </div> </form>    I usually use Eric Meyer's reset, so form elements are relatively clean of overrides. Looking forward to any tips or tricks that you have to offer!


There is no sound in space because there are not enough particles to transmit the pressure wave. But what about really high in the atmosphere where there is just a little air? Would sound move faster, slower or at the same speed? Would the intensity (aka volume) go up, down, or stay the same? And would the frequency go up, down, or stay the same as it traveled through space?

I am wondering, air makes sound propagate. So in a vacuum there is no sound, but what is the relation of pressure to sound volume? Is it linear?  If I have a source of sound and let's say I am in a room with an air pressure half of the pressure outside, would the sound be 0.5 lighter? Or does air pressure have no impact on the sound volume?  Is there a comprehensible formula for that?


Something after installing Cinnamon has screwed up my ability to use Unity and KDE on Ubuntu 13.10. When I try to log in to either I get an error that dbus could not start. Any ideas what has happened?  When I try to log in to KDE I get: "Could not start D-Bus. Can you call qbus?"

I was reading an article that warns not to use cinnamon 2.0 on ubuntu 13.10 or it will break. Is this true? This is the article.


Here is the question:  Let f be a real valued continuous function on $[0, ∞)$. Suppose $f (x) = f (x^2)$ for all x ≥ 0, prove that f (x) is a constant function.  My attempt: Since f(x) is continuous, and $f(x^2)$ is continuous, then $f(x)-f(x^2)$ is continuous.   I will try to prove the contrapositive. If f(x) is not a constant function, then $f(x)$ does not equal $f(x^2)$  for all x.   Let $f(x)$ be of the form $a_n*x^n + .... +a_1*x + a_0$  Let $f(x^2)$ be of the form $a_n*x^(2n) + .... +a_1*x^2 + a_0$  In both cases, $a_j$ does not equal 0 for all j in ${1,...,n}$  So $g(x)=f(x)-f(x^2)$ doesnt equal 0 for some x. Also, $g(x)$ is continuous.  Now I'm stuck, and your help would be appreciated.   Also, we haven't yet covered derivatives in our class.

Let $f:[0,1] \to \mathbb{R}$ be a continuous function such that $f(x)=f(x^2)$ for all $x \in [0,1]$.  Any hint/idea for proving that $f$ has to be constant?


Does anybody know how to get desaturated reflection (monotone) made from colorful object? Blue object, white plane beneath. With standard settings the reflection is blue. I would like to have it black and white. I tried adding HUE/SATURNATION node to diffuse or glossy shader (connected into mix shader) but this doesn't seem to work… I know it's possible with compositing but it's a bit tedious…. Any idea?

I want to change the color of the shadow casting by a cube to green. While it's very easy to do it in Blender Internal (you select the lamp, go to the Lamp data header and change the shadow's color in the Shadow panel) in Cycles there're no such options. How to achieve it in Cycles?


Is it possible to have the PDF of the difference of two iid r.v.'s look like a rectangle (instead of, say, the triangle we get if the r.v.'s are taken from the uniform distribution).  i.e. is it possible for the PDF f of j-k (for two iid r.v.'s taken from some distribution) to have f(x) = 0.5 for all -1 < x < 1?  There are no restrictions on the distribution we take j and k from except that the min is -1 and the max is 1.  After some experimentation, I'm thinking this might be impossible.

Taken from :  Show that it cannot be the case that $U=X+Y$ where $U$ is uniformly distributed on [0,1] and $X$ and $Y$ are independent and identically distributed. You should not assume that X and Y are continuous variables.  A simple proof by contradiction suffices for the case where $X$, $Y$ are assumed discrete by arguing that it always possible to find a $u$ and $u'$ such that $P(U\leq u+u') \geq P(U\leq u)$ while $P(X+Y \leq u) = P(X+Y \leq u+u')$.  However this proof does not extend to $X,Y$ being absolutely continuous or singular continuous. Hints/Comments/Critique?


It is known that "every vector space has a basis" $\Leftrightarrow$ Axiom of choice   but do we have the same thing with a vector space over $\mathbb{Q}$?

In Zermelo-Fraenkel set theory $ZF$ consider the following statement defined for every field $K$:  $B_K$ : Every vector space over $K$ has a basis.  It is well-known that $AC \Rightarrow \forall K  (B_K)$. A. Blass proved the converse. In his paper from 1984 he said that for a fixed field $K$, the problem of proving $B_K \Rightarrow AC$ is open. What is the current status? Specifically, I would like to know:  Does $B_{\mathbb{Q}}$ imply $AC$?  Does $B_{\mathbb{C}}$ imply $AC$?


Say we have 2 particles where 1 moves with constant velocity $u$ and the other moves with speed $v$ towards the first particle. After what time does the 2nd particle catches up with the 1st one?

Assume there is a dog A on a field and a sephard B. B moves on straight line with constant $v$ velocity. The dog A is running always towards B with also constant - magnitude  `$u$ velocity.   If initially B's velocity vector is perpendicular to A's velocity vector, when will they meet?  Is it possible to solve the problem above without the use of calculus? How?


I've been playing around with the time.time() function, which prints the time elapsed since . When printing its result, I've tried multiplying it with a number on the power of 10. I've expected that I will eventually see a number with zeroes at the end (e.g. 1516895254.85 * 10000 = 15168952548500). Instead, it went as far as printing a 309-digit number, with no zeroes at the end, when reaching the function's precision.  >>> print('{0}'.format(int(time() * (10**299))))  151688275429037515979926334429405401106271490533817517185371446220795471128402317934144559501851174348970520458946580306822182798812776130098014987340202895198224161052094530708120342982016788576011755725325408112135784020427445752709662939740525586044947507255593760381150928852505533344315172483047700299776   At 310, it didn't start printing zeroes, but gave me the error message:  OverflowError: long int too large to convert to float   It seems impossible that python's time measurement would be THAT precise. Does anyone know what is happening? Are these random digits? Or am I misunderstanding something here?  Edit: Thank you for your answers, sorry for asking a duplicate question.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


I used ratio test and ended up with $|x|\lim \limits _{n\rightarrow \infty}(n+1)$  If $x\neq 0$, the limit is infinite and thus the series diverges. Now, when $x=0$, I have the series $\sum\limits _{n=0}^{\infty} n!0^n$  I am sure that all terms will be zero except the first term with $0^0$. I know this to be one of the indeterminate forms and I am not sure of what to do with it.

I need help with how to compute the radius of convergence of the power series $\sum_{n=0}^{\infty} n!x^n$?  I was thinking of using the ratio test but am unsure of how to go about it. Any help would be greatly appreciated, thanks


The usual decision when the host name and the name in the certificate don't match is to reject the certificate. I see no reason to desensitize users to Man-in-the-Middle attacks by telling them: "it's okay to accept a certificate although the names don't match".  EDIT:  I have Firefox Cert Patrol extension installed. Yes, I have read the alt names, but not everybody does that. Scaring a user away out of desire to save money on certs isn't a good tactic, IMHO.  EDIT #2: As reported by Carlos Campderrós (and observed by me now), the name mismatch is definitely encountered without any alternative names on .

So it looks like Stack Exchange now supports HTTPS (to some extent). Which is awesome! But there are a few problems, the main one being that some content is delivered over the CDN, which is plain HTTP. This causes browsers to complain about "unsecured content":


Which one is correct? I'm not sure where to put the apostrophe on "phones":  This software allows iphone users to remotely access their phone's settings.  vs   This software allows iphone users to remotely access their phones' settings.

Should I say     Some people use the word "flat" to describe their phone when its battery is dead.   or     Some people use the word "flat" to describe their phones when their batteries are dead. (I wanted to use "their" here to refer to the phone's instead of the people's)   or      Some people use the word "flat" to describe their phones when their battery is dead. (I wanted to use "their" here to refer to the phone's instead of the people's)   Which one is grammatically correct and why?


Let $p < q$ be distinct prime numbers and $G$ be a group with $|G| = pq$.  Give an example of $p$, $q$ and $G$ such that $G$ is not isomorphic to $\mathbb{Z}_{pq}$.  Now suppose that $p = 5$ and $q = 7$. Show that $G$ is isomorphic to $\mathbb{Z}_{35}$.  I know we are learning about Sylow's Theorems and group actions, but those are very confusing to me, so I'm not sure how to implement them really.

I just constructed the semidirect product in Lang, and I'm trying to tie some facts together. From Ash's Algebra, I know that if $p\lt q$ are distinct primes, if $q\not\equiv 1\pmod{p}$, then any group $G$ of order $pq$ is abelian.  Is the converse true, that for any primes $p\lt q$, if $q\equiv 1\pmod{p}$ then there exists a nonabelian group of order $pq$?  One example I found online is that $\mathbb{Z}_3\ltimes \mathbb{Z}_7$ is nonabelian, and here $7\equiv 1\pmod{3}$. I was considering then semidirect products $\mathbb{Z}_p\ltimes\mathbb{Z}_q$ where $q\equiv 1\pmod{p}$ and some homomorphism $\phi\colon \mathbb{Z}_p\to\operatorname{Aut}(\mathbb{Z}_q)$ I calculate that  $$ (1,0)(0,1)=(1+0,\phi_0(0)+1)=(1,1) $$ and $$ (0,1)(1,0)=(0+1,\phi_{-1}(1)+0)=(1,\phi_{p-1}(1)). $$ Is it true somehow that $\phi_{p-1}(1)\neq 1$ in each case to show the group is nonabelian? I guess if it did this would imply $\phi_{p-1}$ is the trivial automorphism, so maybe there's something there? If not, is there a way to show $\mathbb{Z}_p\ltimes\mathbb{Z}_q$ is nonabelian in these cases in general? Thanks.


I recently installed ubuntu on my windows pc and everything worked fine and i was using ubuntu since i installed it and everytime i restart my computer it would bring me an option to choose from ubuntu and windows boot manager...and now i choose to open windows and when i restart again there is no option anymore i couldnt go back to ubuntu again.I tried enabling boot menu options on windows cmd but it just gave me an option to choose from windows versions. Is there anyway i can fix this?

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


I have a C++ classe in a .h file like this:  #ifndef __GLWidget_h__ #define __GLWidget_h__  class PivotShape {     // This is allowed     void do_something() { std::cout << "Doing something\n"; }      // This is not allowed     void do_something_else(); }  // This is not allowed void PivotShape::do_something_else() {     std::cout << "Doing something else\n"; }  #endif   If I add methods inside the class declaration everything seems fine. But if I add methods outside of the class declaration, I get errors like this:  /usr/share/qt4/bin/moc GLWidget.h > GLWidget_moc.cpp /programs/gcc-4.6.3/installation/bin/g++ -W -Wall -g -c -I./ -I/usr/include/qt4 GLWidget_moc.cpp /programs/gcc-4.6.3/installation/bin/g++ main.o GLState.o GLWidget.o MainWindow_moc.o GLWidget_moc.o -L/usr/lib/x86_64-linux-gnu -lQtGui -lQtOpenGL -lQtCore -lGLU -lGL -lm -ldl -o main GLWidget.o: In function `std::iterator_traits<float const*>::iterator_category std::__iterator_category<float const*>(float const* const&)': /home/<user>/<dir>/<dir>/<dir>/<dir>/<dir>/GLWidget.h:141: multiple definition of `PivotShape::do_someting_else()' main.o:/home/<user>/<dir>/<dir>/<dir>/<dir>/<dir>/GLWidget.h:141: first defined here   I think the duplication is being caused by this snippet in the Make file. I think the .h files are being converted to _moc.cpp files and this is allowing the multiple inclusions:  # Define linker LINKER        = /programs/gcc-4.6.3/installation/bin/g++  MOCSRCS       = $(QTHEADERS:.h=_moc.cpp)  # Define all object files to be the same as CPPSRCS but with all the .cpp # suffixes replaced with .o OBJ           = $(CPPSRCS:.cpp=.o) $(MOCSRCS:.cpp=.o)   Is this the problem? If so, how can I fix it? If not, what's going on?  I thought it was illegal in C++ to include class methods inside the body of the class declaration. If this is legal, then it seems like an easy way to solve the problem. Is this legal?  Edit:  I forgot to mention that I had already discovered that declaring the methods as inline works, but I was wondering how to avoid the duplication.

I have a c++ header file containing a class. I want to use this class in several projects, bu I don't want to create a separate library for it, so I'm putting both methods declarations and definitions in the header file:     // example.h #ifndef EXAMPLE_H_ #define EXAMPLE_H_ namespace test_ns{  class TestClass{ public:     void testMethod(); };  void TestClass::testMethod(){     // some code here... }  } // end namespace test_ns #endif   If inside the same project I include this header from more than one cpp file, I get an error saying "multiple definition of test_ns::TestClass::testMethod()", while if I put the method definition inside the class body this does not happen:  // example.h #ifndef EXAMPLE_H_ #define EXAMPLE_H_ namespace test_ns{  class TestClass{ public:     void testMethod(){         // some code here...     } };  } // end namespace test_ns #endif   Since the class is defined inside a namespace, shouldn't the two forms be equivalent? Why is the method considered to be defined twice in the first case?


If  $$ \frac{b_1}{a_1}, \frac{b_2}{a_2}, \dots, \frac{b_n}{a_n} $$ lies within $[\alpha, \beta]$, does $\frac{\sum_{i=1}^nb_i}{\sum_{i=1}^na_i}$ lies within the same range? (Given that $\sum_{i=1}^na_i \neq 0$.) If the answer is no, what about the situation that $a_n\gt 0$?


This is from a list of problems from a local university's Integration Bee.  I have no idea how to do it, but I thought maybe someone here can explain it to me.  $$\int_{0}^{1} \frac{\ln(1+x)}{1+x^2} dx$$  The answer they have is $\frac{\pi \ln(2)}{8}$, but no clue how they got there.  Thanks!


I'm learning Factor Analysis  in SPSS. I faced the following problem. I am performing a PCA for factor extraction on a 49×5 dataset using SPSS. Separately I computed factor loadings by using the formula Loadings=(Orthonormal Eigenvectors) X  (Square root of Absolute Eigen values)  using spreadsheet (MS excel).   Two factors have been extracted in my study.  But loadings of my 1st factor in Excel  is just of opposite sign of the result of SPSS. The loadings of the second factor matches exactly in both Excel  & SPSS.  This mismatch is due the direction of orthonormal eigen vectors considered in both the cases. I can realize the fact that direction is not important but the absolute values are required to know which variables are loaded on which factor.   But  the problem arises when I am going to calculate factor scores, which will be utilized in further regression analysis. If I consider SPSS out put as right then I will get different factor scores for the first factor and if I consider Excel out put  as right then I will get a different factor scores for the first factor. Basically the factor scores in both the cases are of different sign but having same magnitude.   Which one should I accept in my research?   However , for the second factor, there is no ambiguity between SPSS result and Excel result.

I performed principal component analysis (PCA) with R using two different functions (prcomp and princomp) and observed that the PCA scores differed in sign. How can it be?  Consider this:  set.seed(999) prcomp(data.frame(1:10,rnorm(10)))$x              PC1        PC2  [1,] -4.508620 -0.2567655  [2,] -3.373772 -1.1369417  [3,] -2.679669  1.0903445  [4,] -1.615837  0.7108631  [5,] -0.548879  0.3093389  [6,]  0.481756  0.1639112  [7,]  1.656178 -0.9952875  [8,]  2.560345 -0.2490548  [9,]  3.508442  0.1874520 [10,]  4.520055  0.1761397  set.seed(999) princomp(data.frame(1:10,rnorm(10)))$scores          Comp.1     Comp.2  [1,]  4.508620  0.2567655  [2,]  3.373772  1.1369417  [3,]  2.679669 -1.0903445  [4,]  1.615837 -0.7108631  [5,]  0.548879 -0.3093389  [6,] -0.481756 -0.1639112  [7,] -1.656178  0.9952875  [8,] -2.560345  0.2490548  [9,] -3.508442 -0.1874520 [10,] -4.520055 -0.1761397   Why do the signs (+/-) differ for the two analyses? If I was then using principal components PC1 and PC2 as predictors in a regression, i.e. lm(y ~ PC1 + PC2), this would completely change my understanding of the effect of the two variables on y depending on which method I used! How could I then say that PC1 has e.g. a positive effect on y and PC2 has e.g. a negative effect on y?    In addition: If the sign of PCA components is meaningless, is this true for factor analysis (FA) as well? Is it acceptable to flip (reverse) the sign of individual PCA/FA component scores (or of loadings, as a column of loading matrix)?


I bought this element from CGTrader and imported as a obj file.  The pixellation doesn't seem to be from ngons.  The normals are facing outside.  My thoughts are that it has a ton of overlapping geometry.  Any thoughts on this?  Thanks]

I found, that some faces are blinking (like Moire effect) while rotating in preview.  Is this normal?  Reboot didn't help. Blender version is 2.76  OS is Windows 10 prof.  Video is GeForce GTX 770.  Sample:   UPDATE  The following message appears upon start:    (AL lib: (EE) UpdateDeviceParams: Failed to set 44100hz, got 48000hz instead)  UPDATE  I found it is the problem of my model, since it affects only half of it:    I was extruding circle and the split is located exactly where I started. I.e., right half was extruded from the circle to the right, and the left half was extruded from the left vertices to the left.  Also I noticed extruding behavior changed when I was doing this:


i have Dell Insoiron 15R intel core i7  so here the Question is ubuntu 14.10 desktop amd64 will work with intel ?  Thanks

I was told that computers with more than 2 gig's memory need a 64 bit operating system to utilize all RAM.  Is the 64bit Ubuntu download really JUST for AMD processors? I am asking because the disk image I downloaded says AMD64.  So will my new Intel 2.3Ghz Core i3 Dual Core processor work with 64 bit Ubuntu?  It runs the 64bit version of Windows without any qualm.


I'm trying to solve the problem:  $5|(6^n-1)$ with $n > 0$  I'm thinking about $6^n$ always ends with 6 as the last digit and subtract $1$ we have $5$ as the last digit of $(6^n - 1)$.  A number with $5$ as the last digit is always divisible by $5$.  However, I don't know how to use direct proof to prove that.  Edit: I don't want to use induction proof.

I'm trying to prove the following, but can't seem to understand it. Can somebody help?     Prove $6^n - 1$ is always divisible by $5$ for $n \geq 1$.   What I've done:  Base Case: $n = 1$: $6^1 - 1 = 5$, which is divisible by $5$ so TRUE.  Assume true for $n = k$, where $k \geq 1$: $6^k - 1 = 5P$.  Should be true for $n = k + 1$  $6^{k + 1} - 1 = 5Q$  $= 6 \cdot 6^k - 1$  However, I am unsure on where to go from here.


package com.company;  import java.lang.String; import java.util.Scanner;  public class Main {     public static void main(String[] args) {         String str = "";         do{             Scanner input = new Scanner(System.in);             System.out.print("Input: ");              str = input.nextLine();         }while(str != "key123");          System.out.print("Good!");      } }   The user must enter the correct key, but the code doesn't work and I can't figure out why?  Screen shot:

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'm having an issue where the whole scene is set up, with maybe a few tweaks left. I have Cycles selected to render the scene. When the render is processing, instead of processing the image, it renders a black screen.   Here's the .blend file

I have a model of a building with a sidewalk around it.  Both show up when I switch to rendering mode in both Blender Render and Cycles Render mode.  But:  when I hit F12 for a final proper render, the building shows up -- but the sidewalk doesn't.    I've checked the normals and I thought the normals seemed pointed in the right direction.  I've set the Clipping on the Camera to a high number.  I removed all the materials from the sidewalk and added a new material-- the problem persists.  I've exported the blend as an FBX file and the Sidewalk shows up fine in Unity.  Just in final renders, it doesn't show up.    Here is a blend file: .  I tried to destroy everything unrelated to the issue and label things in a clear way.    Thanks.


If I'm adding some new receptacles to a garage, and the wiring will be run surface-mounted to walls and ceilings, I think protecting the wiring with EMT conduit is probably a wise way to go.   I'm seeing some conflicting information as to whether it's OK to run NM-B (e.g. romex) inside EMT tubing. The more typical application is individual THHN conductors inside EMT. Rather than having to buy two types of wiring, is it OK to run the NM-B inside the EMT? Are there any special considerations?

A few days ago I asked an electrician if I could run cable through conduit - he gave me a funny look and said "No, Romex is not allowed in conduit." When I searched online, there seems to be a wide belief that Romex cannot be run through conduit, but no one can find the code which states this.  See for example , , or .   However, in many other places it's stated that you can, for example  or .  And , someone claims that the NEC says it's only allowed if explicitly stated in local code! So, which is it?  Can I run Romex through conduit!?


I created a custom jar file for the purpose of learning how to build my own jar file. So, basically, it is a hello world jar. I followed the steps from this . The following is my program: public class TEST_JAR {      public static void main(String[] args){      }     public void helloWorld(){         System.out.println("This the new JAR WORLD!!");     }  }  This is the Manifest.txt file: Manifest-Version: 1.0 Created-By: 1.8.0_111 (Oracle Corporation) Main-Class: TEST_JAR  The JAR file is creating successfully. But when I use it in another application, the import statement is not showing the class file to import. I am using IntelliJ-IDEA. Any clues on what is going wrong?

I'm working now together with others in a grails project. I have to write some Java-classes. But I need access to an searchable object created with groovy. It seems, that this object has to be placed in the default-package.   My question is: Is there a way to access this object in the default-package from a Java-class in a named package?


I'm a total beginner at Java and am struggling with making a simple card game where you choose between values "red" and "black". Can anyone see what's wrong?  String guess; Scanner keyboard = new Scanner(System.in);  Random r = new Random(); char answear = r.nextBoolean() ? 'R' : 'B'; String s = String.valueOf(answear);  do {     System.out.println("Guess the color of the card - (R)ed or (B)lack?");     guess = keyboard.next();     if (guess == s)         System.out.println("Correct");     else         System.out.println("Wrong"); } while (guess != s);


I am trying to blit an image with transparencies on top of a Surface with the rest of the map. ( This is the second layer. ) When I blit it, it shows with the transparency as black. Is there a way to fix this. I included the code related to it. lily_tex = spritesheet.get_sprite(1, 4).convert_alpha()  This gets the image from the spritesheet.     img = pygame.Surface((self.tilesize, self.tilesize))     img.blit(self.img, (0, 0), (x, y, self.tilesize, self.tilesize))     return img.convert()  And this is what pulls it from the sprite sheet. Below is what blits it to a surface to be blitted to the screen buffer. def create_map(self):     for map_data in self.map_data:         for row in range(len(map_data)):             for column in range(len(map_data[row])):                 if map_data[row][column] == 0:                     continue                 texture = self.key.get(map_data[row][column])                 self.map_img.blit(texture, (column * self.tilesize, row * self.tilesize))  Thank you

Can someone give me some example code that creates a surface with a transparent background in pygame?


I recently found my old Lenovo which has Ubuntu 12.04 LTS and I've forgotten my user login. My dad is the registered admin but he's no longer here and I've tried holding the shift key when I restart like so many people have said but nothing notable really happens?  I'd really appreciate it if someone could help me and explain it as if they're talking to a toddler because computer talk really confuses me. Thank you :)

I'm working on a Ubuntu system, and my client has completely forgotten his administrative password. He doesn't even remember entering one; however it is there.  I've tried the suggestions on the website, and I have been unsuccessful in deleting the password so that I can download applets required for running some files. Is there a solution?


I would like to convert my ball model into a 2d-ish model with an animation. Already tried to find some tutorials or materials presenting ways to do that, without success.    I would like to animate the ball into something like this:    I believe this is a hard thing to do, specially cause I don't have too much experience with Blender (started to model with 3Ds max) or animation, but I would like to try even so. Any ideas or tutorials?

I'm trying to fold a cube with an animation. I've tried inverse kinetics with no luck. Here are some images that explain what I'm trying to do. I'm trying to make this so that    when the upper bone is pushed down, the box is folded to the ground. when the upper bone is pulled up, it unfolds the box.


So I'm supposed to come up with a bijection that fulfills the criteria above but I have no idea how to approach this problem. I know that $f(x)=\tan(\frac{\pi}{2}x)$ would work if the domain was restricted to $(-1,1)$ but I don't know how to expand this to include the endpoints of the interval? Any hints in the right direction appreciated!! EDIT: I also know that no such continuous map exists but just don't know an alternate approach or how to split the problem up.

How to define a bijection between $(0,1)$ and $(0,1]$?   Or any other open and closed intervals?   If the intervals are both open like $(-1,2)\text{ and }(-5,4)$ I do a cheap trick (don't know if that's how you're supposed to do it): I make a function $f : (-1, 2)\rightarrow (-5, 4)$ of the form $f(x)=mx+b$ by \begin{align*} -5 = f(-1) &= m(-1)+b \\ 4 = f(2) &= m(2) + b \end{align*} Solving for $m$ and $b$ I find $m=3\text{ and }b=-2$ so then $f(x)=3x-2.$  Then I show that $f$ is a bijection by showing that it is injective and surjective.


In short my question is how can I remove/delete an panel/class/operator which: a. I don't know the full name b. and I don't know where it is stored in Blender system. In other words, how I can undo a script that I run several times... when I only have the script? Below you could find the script.  more on mocap operation could be found in this tutorial : if relevant, some additional details on what I did: I tested a mocap script. Thus, I had to run also the below mentioned script. Which displays a panel on the UI and also a small button on the tool menu. Currently it doesn't function. I don't know why. So I decided to uninstall then reinstall the scripts later. Reboot. I run it before from different files. I unregistered and deleted the scripts from all of them, but the operator exists somewhere in the system. cannot figure out how to remove the panels+actions created by the script. I tried the following which didn't work. OpenCvClass = bpy.types.WorkSpaceTool.bl_rna_get_subclass_py('ui_plus.opencv')  bpy.utils.unregister_class(OpenCvClass)  Sorry, I struggle to paste the code properly, this question though relates to the forum's Meta:    import bpy        class OBJECT_MT_OpenCVPanel(bpy.types.WorkSpaceTool):         """Creates a Panel in the Object properties window"""         bl_label = "OpenCV Animation"         bl_space_type = 'VIEW_3D'         bl_context_mode='OBJECT'         bl_idname = "ui_plus.opencv"         bl_options = {'REGISTER'}         bl_icon = "ops.generic.select_circle"                      def draw_settings(context, layout, tool):                  row = layout.row()             op = row.operator("wm.opencv_operator", text="Capture", icon="OUTLINER_OB_CAMERA")             def register():         bpy.utils.register_tool(OBJECT_MT_OpenCVPanel, separator=True, group=True)          def unregister():          bpy.utils.unregister_tool(OBJECT_MT_OpenCVPanel)          if __name__ == "__main__":         register()

I'm currently twiddling with an old addon and insert some print statements for debugging. Currently I'm restarting Blender each time to see the new messages. Is there a way to 'refresh' an already loaded Python script?  An API call would be preferred to disable/re-enable the addon in the User Preferences dialog.


Assuming my world is made up of 100 distinct states such that:  $$S = (s1, s2, s3, ... s100)$$  Let's call the number of states 'K'.  And assuming that I perform N trials, wherein each trial I visit one of the states in S randomly, with replacement.  What is the probability that I visit all states at least once in N successive independent trials?  Here's what I have so far: The probability of visiting all states at least once is the inverse of the probability of never visiting a particular state, for each state $s_i$.  $$P(S_{once}) = N * (1 - P(s_i))^{N}$$  However, the math shows I am wrong here. Assuming N = 200, In this example, this works out to: $$P(S_{once}) = 200 * (1 - \frac{1}{100})^{200}$$  Clearly, this seems wrong. For one thing, the probability is greater than 1 at the end of this exercise. My guess is I am assuming some independence here which does not hold true. Can you help me come up with the right formula here, assuming there is one?   Update  I made an error in translating my words to formula:  The probability of visiting all states at least once is the inverse of the probability of never visiting a particular state, for each state $s_i$  This should be represented by the formula:  $$P(S_{once}) = K * (1 - P(s_i))^{N}$$  Answer  Thanks to the comments pointing me to the Coupon Collector problem, I have my answer now.  The number of trials T required to visit all K states is:  $$ T = K * \sum_{i=1}^K\frac{1}{i} $$  This is approximately equal to $K ln K$  Reference:  Note: The video has a typo on the final formula, the summation is from 1 to K (not K-1).

I'm trying to solve the well known Coupon Collector's Problem by explicitly finding the probability distribution (so far all the methods I read involve using some sort of trick). However, I'm not having much luck getting anywhere as combinatorics is not something I'm particularly good at.   The Coupon Collector's Problem is stated as:  There are $m$ different kinds of coupons to be collected from boxes. Assuming each type of coupon is equally likely to be found per box, what's the expected amount of boxes one has to buy to collect all types of coupons?  What I'm attempting:  Let $N$ be the random variable associated with the number of boxes one has to buy to find all coupons. Then $P(N=n)=\frac{|A_n|}{|\Omega _n|}$, where $A_n$ is the set of all outcomes such that all types of coupons are observed in $n$ buys, and $\Omega _n$ is the set of all the possible outcomes in $n$ buys. I think $|\Omega _n| = m^n$, but I'm not even sure about that anymore, as all my attempts so far led to garbage probabilities that either diverged or didn't sum up to 1.


I have been searching this answer for quite a while. I asked my physics teacher and he said it is current that causes death. A friend of mine, who is a EE student, and his answer was voltage. When i searched the internet i read that if the voltage is high then the current is high, so you die. But what if the resistance is so big that even if the voltage is huge the current is small?  So which one?

Though voltage and current are two interdependent physical quantity, I would like to know what gives more "shock" to a person - Voltage or Current? In simple words, will it cause more "electric - shock" when the voltage is high or Current is more?


In the Last Jedi, the First Order fleet, commanded by General Hux is...      ... chasing Resistance fleet led by the ship . The Resistance fleet is faster than the large First Order ships so Hux decides to just slowly chase them, waiting for them to run out of fuel.    Why didn't Hux just order one or more of the Star Destroyers jump slightly ahead of the Raddus and attack them from multiple angles? How is a chase situation possible when the chaser has multiple ships with hyperspace technology?

For a large portion of The Last Jedi,       the First Order fleet is chasing the remnants of the Resistance fleet through space, but they are unable to catch up until the Resistance ships run out of fuel.   I've seen a number of suggestions for how the First Order might have better handled this situation, including the idea that they perform a micro-jump through Hyperspace to close the distance or get ahead of the Resistance.  However, this might not be technically possible. Every example of a micro-jump I can think of relies on taking advantage of an existing gravity well -- a planet, or an interdictor -- to "force" the early drop from Hyperspace.   Is there any precedent in canon of a capital ship performing a targeted micro-jump through Hyperspace without the use of a gravity well to assist?


I am tired of always trying to guess, if I should escape special characters like '()[]{}|' etc. when using many implementations of regexps.  It is different with, for example, Python, sed, grep, awk, Perl, rename, Apache, find and so on. Is there any rule set which tells when I should, and when I should not, escape special characters? Does it depend on the regexp type, like PCRE, POSIX or extended regexps?


I have pretty much the exact same problem as discussed . Re-posting this as a separate question since I can't comment and was advised to do so.  For me, the crashes happen most often when I hover the mouse over a panel launcher that has an open window. This is almost guaranteed to crash Plasma with the same dialog as shown in the linked question.  I've tried Aidan's suggestions in his answer to that question and will wait a week to see if that helps, but in the meantime I'd really appreciate any more info that the community can provide. MTIA! :D

I get      every few minutes on Kubuntu (KDE), and the panels disappear.  It restarts itself automatically, so it's not a real problem, just an annoyance, but it is a big annoyance.  I've tried sudo apt install --reinstall plasmashell plasma-desktop, but that made no difference.  When I try a backtrace from the error message, it says it's unable to produce a useful backtrace.


I am using SQL Server 2016 SP1 standard edition.  The view dm_db_index_physical_stats is very slow on big databases. Even if I specify the 'LIMITED' option.  I use the view to get index fragmentation, to determine if I should do a REBUILD or a REORG in my maintenance. But as the databases grows, the call to the DMV dm_db_index_physical_stats takes more and more time. On some database, which can be as big as 1TB, it can take an hour to query the DMV. (I have no down time, there is always clients connected to the database doing work.)  So I was wondering if there's a way to know index fragmentation without querying the DMV.

I have a database that is around 4.5TB, since we have parallel inserts (to reduce daily load time) on one table (partitioned by month) the clustered index on this table tends to be heavily fragmented. When I do a select from sys.dm_db_index_physical_stats (Limited) on this table it takes ages (> 4-5 hours). Is there a faster and better way to check the fragmentation levels on the partitions of this table, the current time this takes is completely inacceptable.


Preamble \usepackage[style=apa]{biblatex} \defbibheading{bibliography}[\bibname]{\section{#1}} \addbibresource{sources.bib} % replace this with your actual bibfile name \usepackage{csquotes}  Document \parencite{wikiparsing} \printbibliography  sources.bib @misc{wikiparsing, author = {Wikipedia}, title = {Parsing}, howpublished = {\url{https://en.wikipedia.org/wiki/Parsing}}, month = {}, year = {2020}, note = {Zuletzt aufgerufen am 13.06.2020} }  Log  Data structure  Comment I am using TexStudio as editor. Leistungsüberwachung This is BibTeX, Version 0.99d (TeX Live 2020/W32TeX) Capacity: max_strings=200000, hash_size=200000, hash_prime=170003 The top-level auxiliary file: cs_workshop.aux I found no \citation commands---while reading file cs_workshop.aux I found no \bibdata command---while reading file cs_workshop.aux I found no \bibstyle command---while reading file cs_workshop.aux You've used 0 entries,             0 wiz_defined-function locations,             83 strings with 496 characters, and the built_in function-call counts, 0 in all, are: = -- 0 > -- 0 < -- 0 + -- 0 - -- 0 * -- 0 := -- 0 add.period$ -- 0 call.type$ -- 0 change.case$ -- 0 chr.to.int$ -- 0 cite$ -- 0 duplicate$ -- 0 empty$ -- 0 format.name$ -- 0 if$ -- 0 int.to.chr$ -- 0 int.to.str$ -- 0 missing$ -- 0 newline$ -- 0 num.names$ -- 0 pop$ -- 0 preamble$ -- 0 purify$ -- 0 quote$ -- 0 skip$ -- 0 stack$ -- 0 substring$ -- 0 swap$ -- 0 text.length$ -- 0 text.prefix$ -- 0 top$ -- 0 type$ -- 0 warning$ -- 0 while$ -- 0 width$ -- 0 write$ -- 0 (There were 3 error messages)

Running the minimal example  \documentclass{article} \usepackage{filecontents} \begin{filecontents*}{\jobname.bib} @ARTICLE{example,   author  = {Other, Anthony Norman},   title   = {Some things I did},   year    = {2014},   journal = {J.~Irrep. Res.},   volume  = {1},   number  = {1},   pages   = {1-10} } \end{filecontents*} \usepackage[backend=biber]{biblatex} \addbibresource{\jobname.bib} \begin{document} Hello\cite{example}. \printbibliography \end{document}   I get the warning There were undefined references.  I have read  and know that I need to run:   LaTeX Biber LaTeX   However, my editor is only set up to run BibTeX. How do I go about setting up my editor/IDE to be able to run Biber, and how do I run the LaTeX/Biber/LaTeX cycle?  Answers (sorted alphabetically by editor name)                    Answer guidelines   Each answer should be for one editor. If the editor is cross-platform, if possible give a single answer with notes covering the minor platform variations. Please edit the question to include new answers in the 'link list' Each answer should be 'stand alone', i.e. don't say 'It's almost the same as editor Y but ...' for the editor part Instructions for 'build tools' such as arara or latexmk are welcome but should explain how to set up the editor in question as not all editors allow simple addition of arbitrary tools


I just had a review queue audit question "fail" because I clicked "Close" on a post that the community felt should be left open. This particular meta question is about the close vote review queue, but the same principle should apply elsewhere.  Audits are good. I see what the idea behind them is, and for the very most part I agree wholeheartedly. However, just clicking "Close" in the review queue doesn't actually do anything. All it does is bring up a dialog box with a bunch of options for how to close the question. Nothing of significance happens until you actually vote to close.  I often pull up that dialog box to refresh my memory if I am uncertain what is considered on topic by the community on various sites. For example, product recommendation questions are off topic on SuperUser but not on Unix & Linux. On the other hand, on Unix & Linux non-reproducible problems are specifically off topic, which they are not on SuperUser (though posts about nonreproducible problems may be off topic for other reasons). Since there can be quite a bit of overlap between the sites, sometimes I'd rather just check to be sure before deciding to leave a question open. There have been a number of times when actually checking has made me decide that a question really is not off topic where it was posted; it might have been off topic on a different site, but it's fine on this one according to the earlier judgement of the community.  However, unless you really go out of your way, before you're able to make that determination you have already failed the audit.  If the issue at stake is (as has been indicated previously) that  in voting, that can easily be detected (handled, mitigated, fixed, ...) by putting in some random votes in the audit "close" dialog box, or not displaying any votes at all in the case of audits. Or even possibly showing exactly such a set of "wrong reason" votes. The reason for that being that what one should be trying to catch is people taking action based on incorrect judgment, which is quite different from just clicking on the "Close" button quite possibly without even a clear intention (see above about the memory refresher).  Hence:  In a review queue audit, only actually doing something that would ordinarily result in taking action should cause you to pass or fail the audit. That is, for example, clicking "Close" in the outer view shouldn't fail you even if the question should be left open, although clicking "Vote To Close" in the resultant dialog box should.

My question pertains to the review audits that occasionally appear when using the "review" feature on Stack Overflow. I know that . This was implemented () because:     A lot of people are blindly upvoting everything in the queue without even reading the posts, just so that they can get the badges. So, some posts in the review queue are designed to catch such users...   However, I think there is a loophole in this system. A user can conceivably pass every audit without reading the post by using the following method:   Immediately select "flag" or "Recommend Deletion" without reading the post. If the question/answer being reviewed was an audit, then the results will automatically appear when the user flags the post. Since (as far as I know) the audits are always negative tests; i.e. they are posts that should be flagged or deleted and not posts that should be approved, if the audit results do not automatically appear, it means the post is not an audit. After determining if the post is an audit, the user can ultimately choose not to flag/recommend the post for deletion by Xing out the screen that asks for the reason the user wants to flag/recommend for deletion. They can then approve the post without reading it and without running the risk of failing an audit.   Especially since posts can be flagged within the ~3 seconds during which the system does not allow the user to click "No Action Necessary," this is a simple method to pass every audit while wasting no time in moving through review posts. Hence users can continue to blindly allow posts or edits that should be flagged/deleted/undone to earn badges, to the detriment of the Stack Overflow community.  My question: Wouldn't it be better to force the person to confirm the flag or deletion recommendation before displaying the audit results?


I am trying to install conjure-up to install the kubernetes on my ubuntu (16.04.1) with the command:  sudo snap install conjure-up --classic   After a few seconds, the below error is shown:  error: unable to contact snap store   I have both http_proxy and https_proxy already setup  Below is the output from snap version  snap    2.34.2 snapd   2.34.2 series  16 ubuntu  16.04 kernel  4.15.0-42-generic   I came across the similar question,  but the answer provided (issue with snap store try after some time) did not solve my issue.

I installed Ubuntu 18.04 yesterday. Today I tried to install micro editor through snap, but it doesn't work. Any command like this sudo snap install hello-world freezes for a minute and I receive  error: unable to contact snap store  Is there some problem with the snap store or is it because I couldn't connect to it from my network? How could I check that?


I enjoy to read Universe by Roger A. Freedman and William J. Kaufmann. I love this book because it contains lots of images and illustrations about the contents so i do not get bored with all the details. That's what i loved about the Universe. And i am not having any problem with the math in the book so far.   Are there any books similar to this but about Standard Model, Particle Physics or Quantum Field Theory.  (The math can be harder than Universe, it is okay.)

I know classical physics, quantum mechanics, special relativity, and basic nuclear physics. I would like to get into some particle physics.   Where can I find a good introduction? It might be useful to segment books by whether they require quantum field theory or not.


This question has nothing to with why C++ has header files, or what extensions are commonly used for header files.  Why would a file have both ".cpp" and ".hpp" in the name?  For example,  example.cpp.hpp   Sorry if the answer seems obvious or easily searched, but I've looked through a number of different search engines and can't find anything.

Why does C++ have header files and .cpp files?


What is the meaning of  \;  in  find  command? What is the reason to use it?  In manual I can find example:  find . -type f -exec file '{}' \;   Why not:  find . -type f -exec file '{}'  ?

Using the following command, could someone please explain what exactly is the purpose for the ending curly braces ({}) and plus sign (+)?  And how would the command operate differently if they were excluded from the command?  find . -type d -exec chmod 775 {} +


/**  * A placeholder fragment containing a simple view.  */ public class FragmentOS extends Fragment{      private Dialog dialog;       public FragmentOS() {}      @Override     public View onCreateView(LayoutInflater inflater, ViewGroup container,             Bundle savedInstanceState) {         View rootView = inflater.inflate(R.layout.fragment_os, container, false);         return rootView;     }       @Override      public void onActivityCreated(Bundle savedInstanceState) {           super.onActivityCreated(savedInstanceState);          new ListaOS1(getActivity().getApplicationContext()).execute();      }        public class ListaOS1 extends AsyncTask<Void, Void, ArrayList<OS>>{          private Context context;         private LinearLayout linlaHeaderProgress;         private ArrayList<OS> array;          public ListaOS1(Context context)         {             this.context = context;         }           @Override         protected ArrayList<OS> doInBackground(Void... params) {              array = new ArrayList<OS>();             array = new OSController().listarTodos();                return array;         }          @Override         protected void onPreExecute() {             super.onPreExecute();              linlaHeaderProgress = (LinearLayout) getActivity().findViewById(R.id.linlaHeaderProgress);              linlaHeaderProgress.setVisibility(View.VISIBLE);          }          protected void onPostExecute(ArrayList<OS> result) {             super.onPostExecute(result);              if(array.size() > 0){                 BaseAdapterOS ad = new BaseAdapterOS(getActivity(),array);                 ListView lv = (ListView) getActivity().findViewById(R.id.listViewOS);                 lv.setAdapter(ad);             }              if(linlaHeaderProgress.isShown() == true)                 linlaHeaderProgress.setVisibility(View.GONE);         }      }       @Override         public void onResume(){             super.onResume();              new ListaOS1(getActivity().getApplicationContext()).execute();          }    }   Error:  06-02 19:39:38.770: E/AndroidRuntime(28279): FATAL EXCEPTION: main 06-02 19:39:38.770: E/AndroidRuntime(28279): java.lang.NullPointerException 06-02 19:39:38.770: E/AndroidRuntime(28279):    at com.bioscontrole2.FragmentOS$ListaOS1.onPostExecute(FragmentOS.java:102) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at com.bioscontrole2.FragmentOS$ListaOS1.onPostExecute(FragmentOS.java:1) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at android.os.AsyncTask.finish(AsyncTask.java:631) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at android.os.AsyncTask.access$600(AsyncTask.java:177) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:644) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at android.os.Handler.dispatchMessage(Handler.java:99) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at android.os.Looper.loop(Looper.java:137) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at android.app.ActivityThread.main(ActivityThread.java:4929) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at java.lang.reflect.Method.invokeNative(Native Method) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at java.lang.reflect.Method.invoke(Method.java:511) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:798) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:565) 06-02 19:39:38.770: E/AndroidRuntime(28279):    at dalvik.system.NativeStart.main(Native Method)

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?


If $G$ is a group of order $6$. How do I show that there is some $x\in G$ with $x^2\neq e$?. I was thinking of trying a contra positive approach, by proving that if there is some $x^2=e$ then $G$ is Abelian. But how would I continue after showing that $x^2=e$?

Show, without Lagrange theorem, that every group $G$ of order $6$ has an element of order $3$.   I know that if $G$ has an element $a$ of order 6, then $a^2$ has order $3$, but I am not shure how to show that for the case where $G$ does not have an element of order $6$. I also know that we can only have elements $1,2,3,$ or $6$ (we proved this independent without Lagrange theorem).


QUESTION: Is it necessary to include the wordpress loop in page.php? If it is not necessary, why do many themes (including the wordpress 2013 default theme) include it? I noticed  discussion on the wordpress forums, but I didn't understand the final answer. furthermore it is stated,  You use The Loop in your template files to show posts to visitors. (Source:)  BACKGROUND: I am attempting to develop special page templates, and I realized that I don't quite understand what the benefit is of including the loop for pages.php, because after all, pages don't care about posts, that is something that concerns index.php.

I'm writing my first WordPress theme and have a question about the use of The Loop in page templates. The page templates I've looked at all follow basically the same pattern (example from Twenty Twelve):  <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?>   But a page will only have one post associated with it so iterating through the posts seems unnecessary. My page template is more readable and seems to work fine:  <?php the_post(); the_title('<h1>', '</h1>'); the_content(); ?>   Is this a good practice? Are there any downsides?


first='4x2' second='9x' self.first = [i + ' ' for i in first] self.second = [i + ' ' for i in second]     self.poly = list(chain(self.first, self.second)) if self.poly[1].lower() is 'x' and self.poly[4].lower() is 'x':     >> Fails here   but if i have an array like:  array = ['x'] if array[0] is 'x':   it passes?

My  has failed me.  In Python, are the following two tests for equality equivalent?  n = 5 # Test one. if n == 5:     print 'Yay!'  # Test two. if n is 5:     print 'Yay!'   Does this hold true for objects where you would be comparing instances (a list say)?  Okay, so this kind of answers my question:  L = [] L.append(1) if L == [1]:     print 'Yay!' # Holds true, but...  if L is [1]:     print 'Yay!' # Doesn't.   So == tests value where is tests to see if they are the same object?


I installed Ubuntu 15.04 (64 bit) on a DELL XPS 13 (model 9343, 2015 edition - bios A03). It is a dual boot machine (Windows and Linux). I am having an annoying problem: Ubuntu randomly freezes. The screen does NOT go blank, mouse and keyboard do not work, touchpad does not work. I ran the bios diagnostic tests and found no hardware problems. My kernel is 3.19.0-16.

I am fairly new to Ubuntu and I was wonder what a good way is to debug when something crashes?   For example: I installed 11.04 and the default media player banshee makes my laptop crash after a few minutes of playing music. Since the system completely freezes and there is not error message it's hard to find out what is wrong.  Second problem I have is that sometimes the system crashes to login. I am suspecting it to be a Chromium or Flash but I am not 100% sure.  So anybody got some tips on how to debug stuff like this?


I'm working on a commandline that retrieve some data (curl), extract the relevant fields (awk) and format it (column).   It work nice, although it's very ugly (but all my script begin from a "too long and ugly" one-liner) but when I try to have some colour column goes wrong.  This is the plain (reduced) version that work:  curl "http://webservices.rm.ingv.it/fdsnws/event/1/query?lat=42.35&lon=13.4&maxradius=5.0&starttime=2016-01-01T00:00:00&endtime=2016-12-31T23:59:59&minmag=5&format=text&orderby=time-asc" 2>/dev/null  \  | awk 'BEGIN { FS= "|"; OFS= "|" }  {print  $1, $2, $5, $10, $11, $13}' \  | column -t -s '|'   Now, I want to underline some fields, and then add some ANSI escape code in awk:  curl "http://webservices.rm.ingv.it/fdsnws/event/1/query?lat=42.35&lon=13.4&maxradius=5.0&starttime=2016-01-01T00:00:00&endtime=2016-12-31T23:59:59&minmag=5&format=text&orderby=time-asc" 2>/dev/null  \  | awk 'BEGIN { FS= "|" ; OFS= "|" }  \      $13~/Rieti/||/Perugia/ {$13="\033[1;31m"$13"\033[0m"} \      $11~/[0-9]+/ && $11 > 5.8 {$11="\033[1;33m"$11"\033[0m"}       {print  $1, $2, $5, $10, $11, $13 }' \  | column -t -s '|'   Now, the alignment is wrong (see the picture).    Why? And how can I fix it?    UPDATE  I already saw the question  but does not solve my problem because his answers are applied and work in the case of a fully colored line.    In my case I can't apply or adapt the answers (or I'm not able to) because:   The problem is circumscribed to the case where the column $11 is colored, regardless of the subsequent column. I can't see a good or elegant way to add color code after column. If I send column's output to awk for the test I don't know how to instruct awk to separate the fields correctly (if the fields were separated by more space I could use a regex but in some cases the separation is by a single space, and awk would not know how to recognize spaces between words and spaces as Fields Separators).   The only thing I can see is that if I move the reset color code from the assignment to the print block the first row was better spaced, like the plain output version (see below, the \033[0m underlined in second commandline):    Then, how can we fix it? There is another way, more elegant, to colorize as I did?  (I know, I can do it better with some lines of perl, but I'm curious about this problem)

I'm colorizing the header of a table formatted with column -ts $'\t'  Works well without color codes, but when I add color codes to the first line column doesn't properly align the output.  Without colored output it works as expected: printf "1\t2\t3\nasdasdasdasdasdasdasd\tqwe\tqweqwe\n" | column -ts $'\t'  But when adding color on the first line column doesn't align the text of the colored row: printf "\e[7m1\t2\t3\e[0m\nasdasdasdasdasdasdasd\tqwe\tqweqwe\n" | column -ts $'\t'  Observed this behaviour both on Ubuntu Linux and Mac OS X.


I'm looking for a word to describe someone that is easily persuaded to believe things that they are aware is likely to be too good to be true. Something along the lines of an optimistic cynic, perhaps? More specifically, someone who expects the worse but wants to believe in things so badly that they allow their gullible side to override their common sense.   EDIT: To clarify, this differs from  in that this person isn't necessarily worldly wise and is not pretending to be naive; their gullibility arises more from desperately hoping their belief will be justified. There is no intention to deceive others into thinking that they are more gullible than they actually are.   EDIT 2: Having looked at various answers linked in the comments, further clarification is needed; the person in question is not Pollyannaish in that they are aware that what they are believing in might not be logical, but because they are hoping against hope that this is true, the end result is a sense of gullibility.

What is a word for someone who is experienced and wise, but who deliberately acts naïve?    I don’t intend it for sarcastic use; I’m trying to describe someone succeeding in making people think that that person truly is naïve.   Is there a word for this?


Okay so I have a slight problem.   I can't figure out how to get rid of the animation panels? Please help, I'm quite new to blender so sorry if this is quite simple.

I can't find a way to close a view panel, in particular the horizontal at the bottom, is pretty useless to me at this moment.


Is there anyway to tell when the last query was made against a SQL 2008 R2 database without downloading a third-party tool ?

What is the best indicator in finding out whether a database is utilized or accessed?  I tried index statistics and  based on I/O utilization but none seem to be a good indicator.   Problem: I have a lot of databases on a development environment and due to space issues we are trying to decommission those that are not used without actually messing with the ones that are really needed.


I'm using a Windows 8 64 bit and I'm intending download Ubuntu 13. i downloaded the windows installer version but ubuntu wouldn't load, so I uninstalled it. So now that I'm downloading the actual thing, am I going to lose my Windows 8 os and all my other data, or will I be able to choose from both OSs whenever my computer boots up? I know this will be closed, but i just need to be positive of what I'm doing, as I don't want to lose anything.

I'm absolutely new to Linux. I would like to know how to install Ubuntu alongside the pre-installed Windows 8+ OS.  Should I do it with Wubi, or through the Live USB/DVD?  What steps do I need to take to correctly install Ubuntu?


So I've tried a bunch of sets and I believe the statement to be true. However I am not quite sure how to formulate a correct proof. I know so far that for an element x in set $C$, it cannot be in set $A$ or $B$. And on the right side, we are taking the union of the sets where for an element $x$, $C\setminus A$ and $C\setminus B$ is $x$ that is in $C$ but not $A$ and $B$.

Statement: Let $A$, $B$, and $C$ be sets. Then $(A \setminus B) \cap (A \setminus C) = A \setminus (B \cup C)$.   Proof: Let $(x,y) \in ( A \setminus B) \cap (A \setminus C)$, where $ x \in A$ and $y \in (B \cap C$ by definition of intersection. So, $(x,y) \in (A \setminus B \cap C)$ which show that $(A \setminus C) \cap (A \setminus C) \subseteq A \setminus (A \cup C)$. \ Now let $(x,y) \in A \setminus(B \cup C)$, where $ x \in A $. So, $ (x,y) \in (A \setminus B) \cap (A \setminus C)$ by definition of intersection, which shows that $A \setminus (B \cup C) \subseteq (A \setminus B) \cap (A \setminus C)$. Therefore, by the Axiom Set of Equality we know that $(A \setminus B) \cap (A \setminus C) = A \setminus (B \cup C)$ .   Am I on the right track to proving that this is a true statement or is there a better way to show this?


The latest  had just been released - jeej - but, the  doesn't contain packages for 13.04 only 13.10. The  just says to sudo apt-get install vlc.     2.1.0 Highlights      With a new audio core, hardware decoding and encoding, port to mobile   platforms, preparation for Ultra-HD video and a special care to   support more formats, 2.1 is a major upgrade for VLC.      Rincewind has a new rendering pipeline for audio, with better   effiency, volume and device management, to improve VLC audio support.      It supports many new devices inputs, formats, metadata and improves   most of the current ones, preparing for the next-gen codecs.      Rincewind fixes around a thousand bugs, in more than 7000 commits from   140 volunteers.   How can I get the latest vlc, if it's not available from the vlc download page or the PPA?

As VLC 2.0 is released, how do I get it in Ubuntu (XUbuntu actually, in my case) 11.10? Any PPAs or packages to download? The official page says "Ask your favorite packager..."


i could install malayalam language from system settings>language support. but then when i go to system settings>text entry, malayalam is not showing up in the "select an input source to add"

I've upgraded from Ubuntu 16.10 to 17.04 today. I'm from Bangladesh, and Bengali is my native language. There was an option to set keyboard layout to Bengali in all previous Ubuntu versions I've used. But there's no such option in 17.04, strangely. I can use Bengali by installing the package ibus-m17n,  so I thought maybe there was some problem during my upgrade. But then I checked my friend's PC which runs ubuntu 16.10 and found that ibus-m17n was not installed in 16.10 but there's option for Bengali keyboard layout. So is Bengali keyboard support really removed from 17.04, or was there a problem during my upgrade?


Before writing this post I have try two way to resolve this problem. I attack the screenshot of my gparted which I would add the unallocated space to the /dev/sda8 /home.  First way: I used the command umount -l /dev/sda8(I used command line because it's impossible to unmount from gui ----> error: device is busy to unmount the space and then I tried sudo resize2fs /dev/sda8 but I have this output --> The filesystem is already 36621056 blocks long Nothing to do!.    Second way: run mint in live and through this I tried to modify with gparted the partition space /dev/sda8 but when  click on the bottom resize it's impossible to grow the space, as there isn't an unallocated space.  So how can I try to resolve this problem?

Previously, I have installed Windows 7 on my 320 GB laptop with three partitions 173, 84 and 63 GB each. The 63 GB partition was where the Windows was installed. The rest were for file containers.  Now I changed my OS to Ubuntu 12.04 LTS. I installed Ubuntu by replacing the entire Windows 7 on the 63 GB partition. The rest of the partitions remain as an NTFS Windows partition and I can still access them both (the 173 and 84 GB partitions).  Now I want to change the two partitions of Windows into an Ubuntu format partitions plus most importantly, I want to extend the 63 GB partition to more than a 100 GB because at the moment I am running out of disk space. Whenever I try to install any application, especially using wine, it always complains for a shortage of disk space.  How do I do the extending activity before I entirely format my laptop again and lose all the important files on my partitions?