Looking for a late 80s novel set in a post-apocalyptic age.   The apocalypse has recently happened, so people remember the old world.  I think the apocalypse was that large amounts of the population just lost their minds and become not zombies but just dysfunctionally out of touch.   I remember the main character's wife was half-infected; she could function normally, but she always tried to kill him after sex, forcing him to lock her in a padded room.  I remember also he had been a sheriff or police office.   The antagonist was his former partner (I think). I remember the antagonist crept up on a line of men walking through the woods and killed them one at a time from behind.   Most of all, I remember the book had a blurb from Stephen King on the cover, saying either it was the scariest book he had ever read or the author was the future of horror.

Its a year or two after Something has caused the collapse of society, Small towns are on their own.  One side effect (or maybe the cause) is a psychosis affecting many people that when they are triggered, they go into a murderous rage and kill people. Shortly later they snap out of it and are back to normal and have no memory of what happened. Society had devolved to the point that when the psychotics are identified, [usually IDed cause they just killed or tried to kill someone], they are just executed because no one knows what may trigger them, or has the resources to care for them if they lock them up.  The Protagonist is the town Sheriff/Police Chief. His wife is one of these Psychotics. But he has learned her trigger is Sex. (After Sex, she gets up, cooks a meal, and when he sits down to eat, attacks him). Now when she attacks him, he just locks her into the pantry or basement. (I think when she snaps out of her rage she is capable of unlocking the door again and goes back to being a normal housewife) Fortunately he lives a ways outside of town so townspeople don't visit.   Unfortunately, although rare, there are occasionally travelers along the road. When someone stops at the house when the Sheriff is at work, his wife psychosis causes her to seduce, feed and then attack and kill the traveler. So the Sheriff has a mess to clean he when he gets home.  He now has like 10-12 Graves (and abandoned cars/motorcycles?) along the road, to 'warn' travellers that stopping might be a bad idea.  The Mayor/Town leaders who know of her condition, are pressuring the Sheriff to get rid of his wife and move into town so he can better protect them from the roving gangs. (But he cant bring her to town, and does not want to kill her so he always refuses) The problem is, there are reports of a very large gang attacking nearby towns and heading to the town and the Mayor is starting to get desperate.  I mostly remember the beginning of the book, and little of the rest.  Pretty sure the book opens with the scene of the Protagonist waking up in the morning after having sex that night before and carefully going to eat breakfast in the kitchen. He is nearly surprised when his wife attacks him before he has eaten. But manages to subdue her and lock her in the pantry. [during or after this event is when the reader is filled in on whats happening] (He is nearly surprised because normally she attacks as they finish eating and she gets up to wash the dishes at the sink behind him)  The other scene I recall The Protagonist is talking to (The Mayor?) who mentions he hears there is another Car/Motorcycle/Grave in front of his house. Isn't that like the 12th(13th,14th?) one now. The Protagonist says yes, but its no one from town, so quit bugging him about it. We've had this discussion before, I'm not killing her, and if you try to force it, I will quit. But the mayor knows the Protagonist is VERY capable, and has been whats been holding the town together so just drops it.  I 'think' if I remember correctly the wife, who has now gone through the psychotic episodes 40-50 times now, is starting to realize something is seriously wrong (either flashbacks, or "waking up" in the pantry to many times) and is asking her husband about it. Which gives him hope maybe it can be reversed or cured.   Book was almost certainly a US mass market paperback.


I installed Ubuntu on an external HDD without adding EFI partition on the HDD. So during installation it added Ubuntu to the existing EFI partition on my laptop and now it is always showed in , near to Windows Boot Manager. I tried to remove it from Windows with Visual BCD but after restart it is still present. In addition, I tried to remove it from Linux with efibootmgr but after restart it is still present. Where am I wrong?  Update: I removed Ubuntu from EFI partition correctly, in fact it no longer appears in boot menu options. Now I have noticed the presence of grub files in . Which files can I remove without problems?

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


I have 2 vector shapefiles of Manila that are supposed to align, but they do not (screenshot attached). I have projected them to the same projection (World Mercator WGS 84, EPSG 3395). One shapefile appears to be shifted to the right and does not align with the Google Street basemap and the other shapefile. I am using QGIS 2.14.16.  The pixelised shapefile in the picture was actually from a MODIS 500m raster image which I polygonised. The other shapefile is the administrative outline of Manila, from GADM.  I understand that MODIS data may have some misalignment issues that may be the cause of this problem, which I have not seen in other forums.   Any ideas as to what could be the problem and solution?      Tried to change the shapefiles to EPSG 3857 to match Google Street's projection as suggested by AndreJ. Unfortunately both shapefiles are more misaligned.

I have a project where I have a few layers (State of Texas, cities, roads, etc.). They are all resaved and projected to NAD83 / UTM zone 14N EPSG: 26914. The project CRS is also NAD83 / UTM zone 14N EPSG: 26914 and on the fly projection is enabled. I added a text delimited file and cannot get them to line up. I checked the attribute table of the delimited file and the coordinates are correct. I cross-checked this with a point close to where a few of the points from the delimited file are and they are very close so in theory they should be lining up. I tried to save the delimited file and save it with the same projection and add the shp file back in and that did not work. Anyone have any ideas? I can't think of anything else to try.


I am trying to install sublime using terminal but it pop out error:  Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package sublime   And when I try to install vlc from Ubuntu Software Center then also I can't install since there is no install icon.  Upon execution of sudo apt-get update terminal pops out following output  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)  E: Unable to lock directory /var/lib/apt/lists/

I get this error when trying to use apt-get:  E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?     How can I fix this?


I am a newbie, using Blender 2.91 to make a sword. But my render result looks very flat like 2D, even worse than render view image. I am not satisfied with images on render view and material view mode either. Can you tell me how to fix it? I have tried to change the viewport settings and shading nodes on world, but it still didn't come to the ideal result. (I want the blade looks metal and handle looks lead.) I spent the whole afternoon but no good effect. Can you help me take a look? Thanks in advance.

When I apply a glossy shader to the material of my text, the text becomes just black. Why?    I have lamp and everything, but the problem persists. The text is red before I add the glossy shader.  I'm using Cycles render.   Thanks!


The answers to  include Elladan and Elrohir as twins. Is there any cannon sources backing this up? Wikia is a dreadful source for Tolkien canon, is it stated anywhere that the sons of Elrond are twin brothers?

Thinking about the idea of Elves having low numbers overall, got me to wondering: as far as Tolkien's writing, could elves ever have twins?  As a "yes" answer, I need an example of twins (any of JRRT work). They must be full on Elves, not half-Men. As a "no" answer, has to be an explicit statement in his work stating Elves ALWAYS had one child at a time. Anything else is a "maybe, we don't know".


There's a question in Herstein:      Prove that the ring $R$ of $2\times 2$ matrices defined over $\Bbb{Q}$ contains only two ideals: $(0)$ and $R$.   This seems to say that if I take any non-zero element, say $a=\begin{pmatrix} 1&1\\1&1\end{pmatrix}$, then $aR=R$.   This implies that for any $\begin{pmatrix} p&q\\r&s\end{pmatrix}\in R$, there exists $\begin{pmatrix} f&g\\k&l\end{pmatrix}\in R$ such that $\begin{pmatrix} f&g\\k&l\end{pmatrix}\begin{pmatrix} 1&1\\1&1\end{pmatrix}=\begin{pmatrix} p&q\\r&s\end{pmatrix}$.   It is clear that such a matrix $\begin{pmatrix} f&g\\k&l\end{pmatrix}$ need not exist in $R$, as the system of equations $f+g=p$ and $f+g=q$ does not have a solution unless $p=q$.      Is th question wrong then?  Thanks in advance!

Denote by $M_{n \times n}(k)$ the ring of $n$ by $n$ matrices with coefficients in the field $k$.  Then why does this ring not contain any two-sided ideal?    Thanks for any clarification, and this is an exercise from the notes of Commutative Algebra by Pete L Clark, of which I thought as simple but I cannot figure it out now.


I'm trying to have a table with a border-radius of 12px set in CSS. There is no border on the tr or td within the table, just the one border around the whole lot. I want the first row in the table to have a border-radius on the top 2 corners but not on the bottom 2 (so it is like a header for the table) which I have managed to do. However, this is creating a white border between the table and this first row - I want them to be right up to each other without the white border as the header row has a coloured background.  I've tried using border-collapse to do this, but this cancels out the border-radius on the overall table, making the header row rounded on the top 2 corners but inside a squared off table.  This is quite difficult to explain so an example can be found . You can see the white border between the table and the row with the blue background.  Has anyone got any ideas how to get rid of the border without border-collapse? Thanks in advance

Edit - Original Title: Is there an alternative way to achieve border-collapse:collapse in CSS (in order to have a collapsed, rounded corner table)?  Since it turns out that simply getting the table's borders to collapse does not solve the root problem, I have updated the title to better reflect the discussion.  I am trying to make a table with rounded corners using the CSS3 border-radius property. The table styles I'm using look something like this:  table {     -moz-border-radius:10px;     -webkit-border-radius:10px;     border-radius:10px }   Here's the problem. I also want to set the border-collapse:collapse property, and when that is set border-radius no longer works. Is there a CSS-based way I can get the same effect as border-collapse:collapse without actually using it?  Edits:  I've made a simple page to demonstrate the problem  (Firefox/Safari only).  It seems that a large part of the problem is that setting the table to have rounded corners does not affect the corners of the corner td elements. If the table was all one color, this wouldn't be a problem since I could just make the top and bottom td corners rounded for the first and last row respectively. However, I am using different background colors for the table to differentiate the headings and for striping, so the inner td elements would show their rounded corners as well.  Summary of proposed solutions:  Surrounding the table with another element with round corners doesn't work because the table's square corners "bleed through."  Specifying border width to 0 doesn't collapse the table.  Bottom td corners still square after setting cellspacing to zero.  Using JavaScript instead- works by avoiding the problem.  Possible solutions:  The tables are generated in PHP, so I could just apply a different class to each of the outer th/tds and style each corner separately. I'd rather not do this, since it's not very elegant and a bit of a pain to apply to multiple tables, so please keep suggestions coming.  Possible solution 2 is to use JavaScript (jQuery, specifically) to style the corners. This solution also works, but still not quite what I'm looking for (I know I'm picky). I have two reservations:    this is a very lightweight site, and I'd like to keep JavaScript to the barest minimum  part of the appeal that using border-radius has for me is graceful degradation and progressive enhancement. By using border-radius for all rounded corners, I hope to have a consistently rounded site in CSS3-capable browsers and a consistently square site in others (I'm looking at you, IE).   I know that trying to do this with CSS3 today may seem needless, but I have my reasons. I would also like to point out that this problem is a result of the w3c specification, not poor CSS3 support, so any solution will still be relevant and useful when CSS3 has more widespread support.


I had the extra wire in the wires run from my thermostat to my A/C, but the old thermostat did not need the C wire, so it was cut and stuff on both ends.  While installing the new thermostat I realized that a C wire is needed, so I pulled out the stuff wire in the wall and attached it to the C on the thermostat.  Went down stairs, opened the A/C unit and found that there isn't a C connection on the board.  There is a W, R and G and it appears the Y goes out to the A/C compressor outside.  My question is, am I able to cut one of the wires from the transformer on the 24v side that I think is the common side, it's grounded, and simply use a wire nut to connect everything back together while splicing in the wire that was unused, now making it the C wire?  here is a picture.   I was going to cut 1 of the 3 blue wires.  It's hard to see in the pic, but there are 3 square terminals on the blue side that 3 wires attach to.  Please help and thank you =)    side note, only terminals on the a/c board are W, R and G.  The yellow wire doesn't even attach to the board, but connects to another wire that looks like it runs out to my a/c compressor outside.

So, the spiffy new wi-fi thermostats want power on the C wire from thermostat, but the old thermostat doesn't have a C wire at it.  What's the easiest way to add the C wire/24 volt to the thermostat location?


I am trying to install prodigal.   I downloaded it and extracted it in a particular location and in terminal I when I used the command:  make Install   After reaching that location it showed error:  install -d -m 0755 /usr/local/bin install -m 0755 prodigal /usr/local/bin install: cannot create regular file '/usr/local/bin/prodigal': Permission denied Makefile:43: recipe for target 'install' failed make: *** [install] Error 1   I also tried to change the INSTALLDIR in the make file and then wrote make install. It made a directory(from home to prodigal) in the prodigal folder itself and again error came like  install -d -m 0755 /usr/local/bin install -m 0755 prodigal /usr/local/bin   Do I need to change something else in make file?

I was wondering about generic installations of all applications in linux. And what that means? Well, when I was using windows I knew that if I want to install an application I am double-clicking the .exe file and then next,next,next.  In linux, I have understood that maybe there is a common (not generic) way to install any application. Installing from source maybe? Well is there any step by step method that can be used to install  application like in windows or not?  I am asking because I do not want to keep asking the google, how to? So, I have managed to install recently from source freecad from  and I think that it would be a very nice start as common method, right?  But the thing then is where to find the right source and when an application has a very unique method of installation!


I have a C++ program which I'd like to have output a certain text file at some point.  Of course I could have it open, read, and output the text file, but then I have to keep the binary and the text file in sync and located together.  I'd rather just compile the file in as a string in some part of my build process.  I've seen things like this done as parts of various IDEs.  However I'm building from the command line with gcc or clang.  Of course I could just write my own script that produces a temporary .cpp file at compile time and make that a build step in my Makefile, but I was wondering if there was a more established option for doing this.  I would prefer not to take on a lot of other dependencies just to do this.

Is there a way to include an entire text file as a string in a C program at compile-time?  something like:   file.txt:  This is a little text file  main.c:  #include <stdio.h> int main(void) {    #blackmagicinclude("file.txt", content)    /*    equiv: char[] content = "This is\na little\ntext file";    */    printf("%s", content); }    obtaining a little program that prints on stdout "This is a little text file"  At the moment I used an hackish python script, but it's butt-ugly and limited to only one variable name, can you tell me another way to do it?


Currently I provision vms at AWS using Juju deploy mysql and setup environment are medium size vms. How can I setup/run using t2 micro vms at AWS?  What are commands?  Here are what I used currently..  juju bootstrap -e juju03 juju deploy juju-gui juju expose juju-gui juju deploy wordpress juju deploy mysql juju add-relation wordpress mysql juju status juju expose wordpress   Juju version I am using is 2.0beta7.xenial-amd64.

After I have specified a default EC2 instance type for my Juju charm, how do I override that for one of the services?  For instance, the  deploys wordpress and mysql, and I can set the default-instance-type in my environments.yaml so both services are m1.small  But how do I configure it so that (only) the mysql service gets deployed on an instance type better suited to a database, like m2.xlarge ?


I used titlesec for customizing chapter titles. How can I put the Table of contents title above the horizontal line?  (I am trying to customize the place of the title, not the title) Added figure is the result I get, from my existing code.    \usepackage{titlesec} \titleformat{\chapter}[display] {\bfseries\large} {\filleft\MakeUppercase{\chaptertitlename} \large\thechapter} {2ex} {\titlerule \vspace{2ex}% \filleft} \titlespacing*{\chapter}{0pt}{120pt}{6pt}

I need to change default title of ToC. Is it possible with titlesec package? Here is my MWE:  \documentclass{book}  \usepackage{titlesec} \titleformat{\chapter}{\normalfont\Large\scshape}{\thechapter}{1em}{} \vspace{6pt}]  \usepackage{lipsum}   %-------------------------------------------------------------------------  \begin{document}   \newpage \thispagestyle{empty} \tableofcontents \thispagestyle{empty} \newpage \thispagestyle{empty}  \setcounter{footnote} {0}\chapter*{{\fontsize{11}{14}\selectfont\normalfont{Author1} \\ {\scshape\Large Title}}} \addcontentsline{toc}{chapter}{\normalsize\normalfont{Author1} \\ \normalfont\scshape{Title}} \thispagestyle{empty} \Author{Author1} \Title{Title} \lipsum \newpage \thispagestyle{empty}    \end{document}


I'm looking to place some holding text in the div if no items are found within the xml file.  Currently it reads the xml and places all the items in a list but I'm struggling to just place some standard text if no items are found but the file is still read correctly.  Here is the code:     Regards,  Dom

How can I check the existence of an element in jQuery?  The current code that I have is this:  if ($(selector).length > 0) {     // Do something }   Is there a more elegant way to approach this? Perhaps a plugin or a function?


I recently installed 8GB of RAM onto a quad core workstation (HP xw8600) running Windows XP Pro (32-bit).  I added the /PAE switch in the boot.ini file, but the SysInfo is saying 3GB total memory still.  Is Windows recognizing the extra memory?  Is there a way to tell?  Any help is appreciated.  Thanks.

I recently upgraded my computer's RAM to 4 GB. My 32-bit Windows installation shows only 3574 MB of the memory. How can I make Windows use the full amount of RAM?


I need to select from a log file only the parts containing a begining string /epg:epg/pgw/apn[name=*] until the first ] and exclude from selection all other variants, so only the first 15 lines to be selected. * can be alphanumeric . or -.  (/epg:epg/pgw/apn[name=(.*))(](?=/)){1}  with this regex I can select the part I don't want. I can select all or a part but I didn't find a way to select only /epg:epg/pgw/apn[name=*] until the first ] and discard all others. Please help me if you know how to. Thank you very much.  This is my list of strings from which I must select the patterns from the first part:      <measValue measObjLdn="/epg:epg/pgw/apn[name=babspaylink.apn.tln.se]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=cinter.apn.tln.se]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=gps-bud.be]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=sensi-two.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=tln1.mic-o-data.nl.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=tlnr01.mixtel.com]"> <measValue measObjLdn="/epg:epg/pgw/apn[name=vtc.apn.vd.net]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=gprs01.fela.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=gprs1.gt.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=gprs2.gt.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=xlm.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=xylem.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=xylem.sam.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=xylemat.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=xylemfi.com]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vbc.com]/service-identifier-stats[value=1102]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vbc.com]/service-identifier-stats[value=1214]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vbc.com]/service-identifier-stats[value=299]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vtc.apn.vd.net]/service-identifier-stats[value=1001]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vtc.apn.vd.net]/service-identifier-stats[value=1102]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vtc.apn.vd.net]/service-identifier-stats[value=1203]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vbc.com]/service-based-charging/rule-space-stats[name=vbc_com_rs]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vtc.apn.vd.net]/service-based-charging/rule-space-stats[name=vtc_apn_vd_rs]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vtc.apn.vd.net]/rating-group-stats[value=100]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vtc.apn.vd.net]/rating-group-stats[value=110]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=aenams01.com]/radius/authentication/server[address=10.224.3.1]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=aenprosess.com]/radius/authentication/server[address=10.224.1.8]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vpn.kayp.com]/radius/accounting/server[address=188.92.2.40]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=vpn.kayp.com]/radius/accounting/server[address=188.92.1.41]">     <measValue measObjLdn="/epg:epg/pgw/apn[name=wlapn.com]/radius/accounting/server[address=10.3.0.1]">

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


So I have a list, let's say list = [1,2,3,4,5,6,7,8,9,10] and I want to divide it equally between x number, in this scenario let's say 3, how can I make it so it turns into, list = [1,2,3]        [3,5,6]        [7,8,9,10]  or something similar, I tried dividing a list of 30 items between 25 lists and it gave me 24 single entries and the last one had 5, instead of giving 20 single items and 5 double items perse.

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


I remember seeing a TV show in the 90s (I am not sure when it was first aired). It...:   Has a medieval setting Has a handful of heroes, all young men and women (ie: mid to high teens)  à la Power Rangers The protagonists use weapons/powers based on the classical elements: Fire, Water, Earth, Air/Wind   Does anyone know what the name of the show?

Alright, so I've been looking everywhere I could think of for just the name of this live-action movie for years. I watched it back around 2003-4.  It starts out with a group of friends throwing disks and "shooting" them with the magic from their weapons. I can remember two of the weapons; a trident with Lightning/electricity, and a sword with fire. The person with the trident was darker in skin tone than the rest and wore mostly blueish colors.  The group goes out on a quest (not sure the reason for it) and they come across monsters on their journey. They end up fighting the monsters one on one (not sure why, the fights happened at different times.)  The monsters I can remember are a Stone monster (fully animated) an Ice monster (more like a human, it speaks in a scratchy voice. Breaks out of the ice when first encountered,) and a sea monster (the man with the trident defeats it).  Does anyone know what this is?


I am from sri lanka. I want to photograph milky way.  Canon 750D EFS 18-135 lens  I know that i should increase aperture & increase iso.  What should be the shutter speed for this camera to capture milky way without startrails ?

mentions the "Rule of 600" for avoiding star-trails in astrophotography.   What is this rule? How was it derived? How should it be applied?


There is a short story circa 1950's with the following plot: the main hero (young men) gets (maybe via a post) a kind of do-it-yourself kit that allows one to create various life-forms including human. He starts with simple life-forms then tries to create more difficult ones. Finally he decides to use the kit to create a copy of a girl who he loves (she doesn't love him). To prepare better, he decides to create first his own copy. When he creates a copy, an officer appear and explains that the kit was delivered by mistake and it belongs to a different time. So he decides to get back the kit and kill a copy. However, the copy claims that it is the original and the officer believe the copy, thus killing the original hero.  I read it about 15 years ago in Russian translation (I believe it's a short story by American author), most probably in a series of other short stories. However, now I wasn't able to find this story using search engines neither in Russian nor in English.

Short story about mis-delivered cloning kit from the future.  Subject man clones himself using scanner and ingredients from the kit (add water), agent arrives (from future) to reclaim the kit, but mistakenly reduces the original recipient to the basic kit ingredients, rather than the clone, who assumes the identity of the original subject.  Asimov? Clarke? It was in a late 1960s-70s collection of short stories.


When Padmé's Naboo Cruiser escaped from the trade Federation, Padmé thanked R2D2 for saving the ship. The one thing I don't get is who is who, Padmé and her handmaid, because the Queen told one of her handmaids to wash R2, and it turns out that it's Padmé herself who is washing R2. Could someone explain this scene to me?

Reading  (the Amidala stand-in) I remembered that I always wondered why she ordered the actual queen to scrub R2-D2. There were enough actual servants who could have done it, so why Padmé? If that wasn't enough, after giving the actual queen (Padmé) the order to go away, she tells Panaka to continue with the discussion. How does that make sense?  The significant piece of dialogue:     AMIDALA : Thank you, Artoo Detoo. You have proven to be very loyal...Padme!    ...    AMIDALA : (Cont'd) Clean this droid up the best you can. It deserves our gratitude...(to Panaka) Continue, Captain.   Note that this question is two-fold:   Why was Padmé chosen in the first place? Why would an important meeting with the ship's captain be continued without her?


Hello guys, when i enter into Edit mode, i always get this shape inside the mesh. (I'm talking about the rectangle inside the cube) does anybody knows how to remove it? or what its for? (if its suppose to be there)  Thanks in advance

I have recently started using blender and one of the models I'm working on has dark shadows along edges. I started this model from scratch. I can't remember them being there when I first started the model, but I had trouble joining areas together and think I've pressed something I shouldn't have. However, there are so many options I'm not sure what I did.  Here is an image of what I mean   The one on the left has the shadow. As a test I started a new model, which is on the right in the image, and as you can see it doesn't have any shadows.  Also, occluded vertices partially show through the model. Occlusion doesn't work properly.   In orthogonal view small darkened triangles appear along the the edges.    I don't really want to start the model again from scratch so any ideas on how to remove this shadow would be great. Thanks.


Let's say i have an array of 6 elements of int type.  It looks like this  var array = new int [] { 0, 1, 2, 3, 4, 5 };   How can I randomly shuffle my array ensuring every index have a new value.  // Bad // The number at index 3 did not change and still has a value of 3 new int [] { 1, 0, 5, 3, 2, 4 }   // Good: // All the index have a new value new int [] { 4, 2, 0, 5, 3, 1 }    I've tried to Shuffle, but sometimes some values will have the same index position

What is the best way to randomize an array of strings with .NET? My array contains about 500 strings and I'd like to create a new Array with the same strings but in a random order.  Please include a C# example in your answer.


Have a question about multiple clients connecting a single server. Here is my server side code:  //...     ServerSocket serverSocket = null;         try{             serverSocket = new ServerSocket(port);         }catch(IOException e){             e.printStackTrace();         }         Socket server = null;          while(true){             try{                 server = serverSocket.accept();                 new createdThread(server).start(); //This is a thread class specified somewhere else to handle the socket.              }catch(IOException e){                 e.printStackTrace();             }   createdThread() is a thread that will start to handle the socket, and it takes the Socket server as an argument. Suppose I have a connection and a thread starts, the accepted socket was passed to the thread as an argument. In this case, server should be passed as a reference if I'm not wrong. If before the end of the first thread, serverSocketgets a new connection and create a new socket, which will change the value of server. Will this impact the execution of the first thread since the first thread takes the reference as its argument, meaning the underlying object of that reference is changed?   I tested the program and it seemed working well. Each thread was not impacted by each other, although all of their constructor arguments are references to the same object. This does not make sense to me, and hope someone could clarify. Thanks.

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


New to 14.04 have choosed french for operating language. Everything went well at the start but now system switched to english keyboard for unknown reasons. How can I fix it to french by default ?

I had a problem with the keyboard layout changing from PT (I'm Portuguese) to EN automatically with the last Ubuntu updates in Ubuntu 13.10. After Ubuntu 14.04 came out, I formatted my computer and installed the new version.  After that I haven't had any problems until the recent Ubuntu base update 2 or 3 days ago, when I started having the same problem again. I even removed the English keyboard from the Keyboard configurations, left only the Portuguese one, but still, every time I reboot my PC I get the keyboard configured for EN, despite Ubuntu displaying the contrary?  How can I remove this? I don't want to format the PC again and I'm getting really tired of this problem, since it looks like many Portuguese/Brasilian Ubuntu users are having the same problem.


Is there a function whose limit does not exist as x approaches infinity but the integral of that function from negative infinity to positive infinity is equal to 1?

Does a function's limit when x goes to infinity must be zero for its integral to converge?  I had proved in my homework that if the function is non-negative, it's not necessarily true.  Now I read a solution that uses this as a fact - For an improper integral to converge, function's limit must be zero.  I hadn't found it in my books and notebook, and I can't find a reliable place says it is.  any help would be appreciate,  thanks


When I search wine in applications it is not shown but when I search in ubuntu software it shows but when I click it to launch but it is not working. I also try to reinstall but it is not installed says broken packages and aborting. This wine was installed during playonlinux.  Image description: here I try to install winetricks and this is the error. when I try to install wine again it also shows error like in the image(Last 3 line). Please give me useful instrction so that i can overcome this problem

I have followed all the instructions on .  In particular, I have run the following commands: sudo dpkg --add-architecture i386  wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'   The first three of the above seemed to work fine.  However, the last command gives me the following error: Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  winehq-stable : Depends: wine-stable (= 5.0.0~bionic) E: Unable to correct problems, you have held broken packages.  I'm running Lubuntu 18.04.3 on a USB live stick.  (However, if I remember correctly, a couple days ago I got the exact same error on a normal hard disk Lubuntu 18.04.3 installation.) I've read that a lot of people get similar errors.  Unfortunately I haven't found any solutions online that worked. Any help would be much appreciated.  Thanks! EDIT:  Thanks for the comments and suggestions everyone.  I'll try them out later today. In the mean time, here's something I don't understand.  Ubuntu 18.04 has been around for almost two years now.  In all that time, surely somebody has successfully installed wine, right?  What did they do to get it working?


I met a problem with testing a method(displayEmployees), which returns a List of objects.  public class Task {     static List<Employee> employeeList;      public static void main(String[] args) {         Employee employee1 = new Employee("Dobrobaba", "Irina", "Ivanovna",                 "Moskva", 1900, 6);         Employee employee2 = new Employee("Shmal", "Anna", "Nikolaevna",                 "Krasnodar", 2017, 8);         Employee employee3 = new Employee("Kerimova", "Niseimhalum", "Magomedmirzaevna",                 "New-York", 2017, 3);         Employee employee4 = new Employee("Dobryden", "Yuri", "Viktorovich",                 "Auckland", 2014, 11);         Employee employee5 = new Employee("Lopata", "Leonid", "Nikolaevich",                 "Beijing", 2014, 11);         employeeList = new ArrayList<>(Arrays.asList(employee1, employee2, employee3, employee4, employee5));     }      /**      * Prints employees' information, which have worked more than 'n' year(s) for now.      *      * @param n years quantity      */     public static List<Object> displayEmployees(int n) {         List<Employee> requiredList = new ArrayList<>();             employeeList.forEach(employee -> {                 if (Year.now().getValue() - employee.getEmploymentYear() >= n) {                     requiredList.add(employee);                 }             });         return Collections.singletonList(requiredList);     } }   This is how I'm trying to make a test, comparing 2 Lists one with another:  public class TaskTest {     public static void main(String[] args) {         displayEmployeesTest();     }      public static void assertEquals(String testName, List<Object> expected, List<Object> actual) {         if (expected.equals(actual)) {             System.out.println(testName + " passed");         } else {             System.out.println(testName + " failed: expected " + expected + ", actual " + actual);         }     }      private static void displayEmployeesTest() {         List<Object> expectedList;         Employee employee1 = new Employee("Dobrobaba", "Irina", "Ivanovna",                 "Moskva", 1900, 6);         Employee employee2 = new Employee("Shmal", "Anna", "Nikolaevna",                 "Krasnodar", 2017, 8);         Employee employee3 = new Employee("Kerimova", "Niseimhalum", "Magomedmirzaevna",                 "New-York", 2017, 3);         Employee employee4 = new Employee("Dobryden", "Yuri", "Viktorovich",                 "Auckland", 2014, 11);         Employee employee5 = new Employee("Lopata", "Leonid", "Nikolaevich",                 "Beijing", 2014, 11);         expectedList = new ArrayList<>(Arrays.asList(employee1, employee4, employee5));          assertEquals("displayEmployeesTest", expectedList, displayEmployees(3));     } }   Problem is - I get an error "java.lang.NullPointerException", running TaskTest.  What is the reason of that error occurrence? Thank you for your attention!

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?


Please look at output:  deploy@li445-201:~$ sudo ls -al /var/log/nginx/ total 152 drw-rw-r--  2 root     adm      4096 Mar 26 16:08 . drwxrwxr-x 14 root     syslog   4096 Mar 26 06:25 .. -rw-r--r--  1 root     root        0 Mar 26 16:08 access.log -rwxrwxrwx  1 www-data adm    108849 Mar 26 06:10 access.log.1 -rw-rw-r--  1 www-data adm     14206 Mar 25 06:17 access.log.2.gz -rw-rw-r--  1 www-data adm     14067 Mar 24 05:31 access.log.3.gz -rw-r--r--  1 root     root        0 Mar 26 16:08 error.log -rw-rw-r--  1 www-data adm      2522 Mar 24 17:13 error.log.1   I try to read log file by deploy user:  deploy@li445-201:~$ cat /var/log/nginx/access.log.1 cat: /var/log/nginx/access.log.1: Permission denied   Why I can't read log file? I've set even 777 permission on it

I am having a bit of trouble understanding what the execute permission means for directories. Do I understand it correctly that anything in a directory for which a user does not have x-rights is inaccessible even if the things inside the directory gives specific rights to the user?  Or will the user still have direct access to the things in the directory, but simply cannot list what is in the directory?  (What I am really trying to understand is how safe a directory is from access from other users if they do not have x-permission for it.)


Let X be a scheme X and $\mathscr{F}$ be a locally free sheaf of rank $n$ over $X$. I want to consider a vector bundle over an algebraic variety $X$ , that is ,   the relative spec over $X$ of symmetric algebra of $\mathscr{F}$ ; $V=Spec(Sym \mathscr{F})$. We write $\rho$ as the natural morphism $V \longrightarrow X$.    Can you define '' transition function of $\rho:V \longrightarrow X$ '' $??$ If it is possible to define that , how can you do it $??$

If $X$ is a scheme and $\mathcal{F}$ is a locally free sheaf of rank $n$, then in Vakil's book the total space of $\mathcal{F}$ is defined to be $Spec(\text{Sym}^\bullet \mathcal{F}^\vee)$, the relative spectrum of the sheaf of algebras. The total space is a rank $n$ vector bundle, which is easy to see, just take any open subset $U$ such that $\mathcal{F}|_U$ is trivial, then we have  \begin{equation} Spec(\text{Sym}^\bullet \mathcal{F}^\vee|_U) \cong \mathbb{A}_U^n \end{equation}  In Ex. 17.1.G, it claims that $\mathcal{F}$ is isomorphic to the sheaf of sections of the total space $Spec(\text{Sym}^\bullet \mathcal{F}^\vee)$. It is easy to see that the sections of $Spec(\text{Sym}^\bullet \mathcal{F}^\vee)$ on $U$ is isomorphic to $\mathcal{O}_U^n$, i.e. when $U$ is affine, say $U=\text{Spec}(A)$, then we have $\text{Sym}^\bullet \mathcal{F}^\vee|_U \cong A[x_1,\cdots,x_n]$ and the sections is in one to  one bijection with the $A$-map $A[x_1,\cdots,x_n] \rightarrow A$, which is determined by the values of $x_i$, thus it is isomorphic to $A^n$.   However, I could not show the transition functions are actually the same. If the transition functions for $\mathcal{F}$ is $T_{ij}$ with respect to the affine open cover $U_i$, then the transition function for $\mathcal{F}^\vee$ is $(T_{ij}^t)^{-1}$, the inverse of transpose. It seems to me that the transition function for the vector bundle $Spec(\text{Sym}^\bullet \mathcal{F}^\vee)$ is actually $(T_{ij}^t)^{-1}$. How could the transition function for the sheaf of its sections be the same as that of $\mathcal{F}$, i.e. $T_{ij}$?


I am working on the  Hotel Search App , where  I let the user filter Hotels by facilities.  Most filters are "AND-filters" but some have to be "OR". For instance, someone may want "wifi" and someone specifically "wired internet". But if I click on both, I am most likely looking at one of those options (the "OR-filter"). Another example is "ocean view" and "mountain view" - I am more likely to look for one of those options than both at the same time.  My question is - how present these "OR-filters" inside "AND-filter categories" in the UI as clear as possible, without confusing the user? Or should they be avoided? Or hidden?  Here is a screenshot of how it is currently done:    My worry is that the small "OR" between the buttons can be easily missed or misunderstood.  Many thanks!

I'm interested to know how people have, or would construct an interface which simplifies constructing logical boolean conditions? (Yes, it's a database query builder) In my mind a bad interface has them typing lots of AND, NOT IN, OR keywords etc. Or else has a million combo boxes.  I'm wondering if anyone has a good example I could glean ideas from? Or some suggestions?  At the moment I'm considering a split screen with a grid for composing the query and a canvas to display a visual representation of the sets of conditions and how they overlap etc. Like a Venn Diagram. This still gives me a problem with the usability/intuitiveness of the controls on the grid.  EDIT:  I'm very interested in ideas which simplify it for less technical users. However, ideas for a version of the UI for advanced users are very helpful as well.


Is it true that if $f$ is entire with a non dense image then it is constant? Can anybody help with the proof? Or give a counter example. Thank you

how to show image of a non constant entire function is dense in $\mathbb{C}$? is there any smallest proof? I have seen this as a theorem in some books but I want some elementary proof.


I see this  message and I would like to test this version on my sandbox Linux Desktop (I have another Laptop for work tasks). I see this old AskUbuntu question  but as I mentionned  « Software & Updates dialog box doesn't contain "Pre-released updates" option any more » Question: what is the mainstream process to upgrade Ubuntu from 20.10 to 21.04 beta?

How do I upgrade to the unreleased version of Ubuntu for testing?


How can I assign array of two elements to two variables?  Here is example of my idea (no valid code):  getTwoValues() {     int a = 7;     int b = 5;     return {a, b}; }  int x, y = getTwoValues();  // Expected output: x = 7, y = 5

Is there a preferred way to return multiple values from a C++ function?  For example, imagine a function that divides two integers and returns both the quotient and the remainder.  One way I commonly see is to use reference parameters:  void divide(int dividend, int divisor, int& quotient, int& remainder);   A variation is to return one value and pass the other through a reference parameter:  int divide(int dividend, int divisor, int& remainder);   Another way would be to declare a struct to contain all of the results and return that:  struct divide_result {     int quotient;     int remainder; };  divide_result divide(int dividend, int divisor);   Is one of these ways generally preferred, or are there other suggestions?  Edit: In the real-world code, there may be more than two results.  They may also be of different types.


The duplicate post doesn't address the items in the dropdown. Only the bpy.types. The dropdown isn't part of that.  I'm have added a custom function to the face dropdown in the header region when in Edit mode. by appending to bpy.types.VIEW3D_MT_edit_mesh_faces  How do I change the order of my function in the dropdown list?    what it looks like now:   what I want to see happen (doctored image):   The script so far:  bl_info = {     "name": "Custom Algo",     "blender": (2, 80, 0),     "category": "Face", }  import bpy  class CustomAlgo(bpy.types.Operator):     """Custom Algo"""     bl_idname = "face.Custom_algo"     bl_label = "Custom Algo"      def execute(self, context):         print("Pretend that you have done something sticky with that face")         return {'FINISHED'}   def menu_func(self, context):     self.layout.operator(CustomAlgo.bl_idname)  def register():     bpy.utils.register_class(CustomAlgo)     bpy.types.VIEW3D_MT_edit_mesh_faces.append(menu_func)  def unregister():     bpy.utils.unregister_class(CustomAlgo)     bpy.types.VIEW3D_MT_edit_mesh_faces.remove(menu_func)  if __name__ == "__main__":     register()

Blender has a built in template for adding a custom menu to the main header (INFO_HT_header). This can be found by going into the text editor under templates->Python->UI Menu.  Can I relocate this custom menu to be inserted between "Window" and "Help" sub menus? If so, how?


I am new to ubuntu. I've just downloaded 'netbeans ide 7.3' for linux and 'jdk 7'. but don't know how to install them. please tell me proper step by step procedure on installing these application.

First and first, I had Netbeans installed on my laptop when it was on 12.04 but after I upgraded it to 13.04 and could not find it on my dash so thought it was removed on upgrade.  I tried to reinstall it using the .sh file from they're official website and then I found out that it was already installed so I uninstalled it from my laptop and tried to again to install it(so it would be a fresh install),but when the installer came out it told me that "All components are installed".  After that I tried cleaning my system with ubuntu tweak's janitor and tried again but yet the problem persisted, and after this I manual deleted any directories/files related to netbeans(searched the directories/files with nautilus) and yet the problem is still there.  When the installer start(without errors), it simply says:"All components are installed" and the "Next" button is deactivated.  I installed Netbeans 7.0.1 from software center but I would want to install the latest version.   Any clues/tips/help?


I have a file test with the content  #!/bin/sh -c 'echo was called with $0'   I if i execute it it with ./test, i would expect the OS to effectively execute   sh -c 'echo was called with $0' ./test   which to my understanding should result in was called with ./test.  However, i get the error message  /bin/sh: 0: Illegal option -   What is the reason for this Error?  please note that i understand that there are easier ways to print the arguments, the echo part is a stand-in for unrelated and more complex things.  Added information: cat -E test gives me  #!/bin/sh -c 'echo was called with $0'$ $

I am wondering whether there is a general way of passing multiple options to an executable via the shebang line (#!).   I use NixOS, and the first part of the shebang in any script I write is usually /usr/bin/env. The problem I encounter then is that everything that comes after is interpreted as a single file or directory by the system.  Suppose, for example, that I want to write a script to be executed by bash in posix mode. The naive way of writing the shebang would be:  #!/usr/bin/env bash --posix   but trying to execute the resulting script produces the following error:  /usr/bin/env: ‘bash --posix’: No such file or directory   I am aware of , but I was wondering whether there was a more general and cleaner solution.    EDIT: I know that for  scripts, there is a way to achieve what I want, documented in  of the manual:   #!/usr/bin/env sh  exec guile -l fact -e '(@ (fac) main)' -s "$0" "$@"  !#   The trick, here, is that the second line (starting with exec) is interpreted as code by sh but, being in the #! ... !# block, as a comment, and thus ignored, by the Guile interpreter.  Would it not be possible to generalize this method to any interpreter?     Second EDIT: After playing around a little bit, it seems that, for interpreters that can read their input from stdin, the following method would work:  #!/usr/bin/env sh sed '1,2d' "$0" | bash --verbose --posix /dev/stdin; exit;   It's probably not optimal, though, as the sh process lives until the interpreter has finished its job. Any feedback or suggestion would be appreciated.


In the following code first sibling stays behind despite having higher z-index. Why is that?
why its not in front?

I have a div in my HTML page. I am showing this div based on some condition, but the div is displaying behind the HTML element where I pointed the mouse cursor.  I have tried all values for z-index from 0 - 999999. Can anyone tell me why this is happening?  Is there any minimum or maximum value of Z-INDEX property of CSS?    .divClass {      position: absolute;       left: 25px;       top: 25px;       width: 320px;      height: 300px;       z-index: 1000;  }

            <asp:HyperLink ID="lnkProgram" runat="server"></asp:HyperLink>

            Some Data

     I am showing and hiding the div with .divClass onclick via the <asp:hyperlink> using jQuery.


I'm 46 and my wife is 36. I met my wife when she was 28 and I was 38. I already had a 2-year-old child from a previous relationship at the time. When my wife hit 30, she was desperate for children, so we had a baby together and she is now 5 years old. 3 years ago, my wife and I went to court and won residency for my son, who was 7 at the time, due to his mother's inability to look after him. So we then had 2 children living in the same house. A year or so ago, we had another baby boy who is now 15 months old. So to sum up we have my 10-year-old boy, our 5-year-old daughter and our new 15-month-old boy.  My wife wants a 3rd child and I don't as we already have 3 and it is tearing us apart. My wife is desperate for a 3rd child of her own. She is not career-driven and loves being a mother. I do not want another child as we already have 3, We are not financially stable and I will be 50 in 4 years time. I am desperate for a vasectomy and she is desperate for a baby. What do we do as neither will budge? Help please!

My wife wants a 4th baby, but I don't.  We have been talking about it for the last few days (talking strongly).   I have raised points such as:   We will get less time to spend with our current kids. The age gap between the first and the last will be too wide. It will cost more money. She will be out of work longer. We will need a bigger house. And we don't even have our own house yet (we are still renting). We will have to start again. Sleepless nights, nappies, feeding, new cot, car seat, etc etc.   She says:   She feels like she is missing something. She has always wanted a large family. Things will be the same regardless of having 3, or 4 kids. She agrees that money will be tighter, but wants to push through it.   Our current kids are 9 months, 2 years, and 4 years. We are young married couple (25), and I have a fairly decent job.  What would be the pros and cons of having another child?   How can we rationally talk to the other about having/or not having another child?  And what should we do if we cannot agree?


I have a android phone spice Mi 350n, android version is 2.3.4. I want to upgrade it, is it possible, if yes upto which version?  Any link for tutorial is helpful.  Thanks!  Edit - Come on guys, if you are a android user you must know that updating android is not a general question can be asked for all android smartphone. Update depends on particular device/hardware etc.

This Community Wiki question is designed to be the "canonical question" for questions asking how to upgrade one's device to a new Android version.   I want to get a newer version of the OS for my Android device. How can I do that?  See also:


How does one find a formula for the sum $\sum_{k=0}^a \frac{x^k}{k!}$ ? According to the post mentioned in the comments: $$\sum_{k=0}^n \frac{x^k}{k!}=\frac{ \Gamma (n+1,x)}{n!}e^x$$ ...but how do you actually evaluate $\Gamma (n+1,x)$ for the positive integer n?

What is the closed form of  $$\sum_{k=0}^n \frac{x^k}{k!}$$  as a function of $x$ and $n$?  Knowing that it converges to $e^x$ when $n\to \infty$.


Considering the following code :  #include <vector> #include <iostream> #include <array>  using namespace std; int main(){  int* ptr; ptr = new int(3);  int* stock = *&*&ptr;   ptr = nullptr; cout << *stock<< endl;  cout << *ptr << endl;   }   that declares a pointer that allocates dynamic memory. when another var stocks the adress of the memory. Then, the pointer is deleted but the memory is not erased.  You can still access the memory using the copy of the pointer. If you then try to access the memory using the pointer, the programs crashes. I would like to know, if it is possible, knowing that the program will crash, to make a function that : in case of crash, stop the program from closing, and just cout << "some message".   thank you   ps: i know that crash means "unrecoverable error", so my question is more a creative nature.

Example  int *ptr; *ptr = 1000;   can I catch memory access violation exception using standard C++ without using any microsoft specific.


I am having an issue with a trigger which i have put together using a couple of similar posts.   It fires on an Order, to update a field called Outstanding_Balance__c on the Order's Account, which should collect all outstanding balances from all associated Orders.  The field on the order is a Roll Up Summary, called Outstanding_Balance__c.  There is no validation, and both the Order and the Account can be updated manually (any mandatory fields are fulfilled.  The trigger successfully updates the Account field if I simply replace the line -   acc.Outstanding_Balance__c = 0.00;   with  acc.Outstanding_Balance__c = 2.00;   So it is firing correctly, otherwise, the Outstanding_Balance__c field on Account isn't being calculated. It seems the following line is not working as intended.  acc.Outstanding_Balance__c += ord.Outstanding_Balance__c;   Full code:  trigger OrderTrigger on Order (After insert, After update, After delete, After undelete){      Set<id> AccountIds = new Set<id>();      If(Trigger.IsInsert || Trigger.IsUpdate || Trigger.IsUndelete){         for (Order ord : Trigger.new){             AccountIds.add(ord.AccountId);         }     }     If(Trigger.IsDelete){         For(Order ord: Trigger.Old){             AccountIds.add(ord.AccountId);         }     }      List<Account> accsToUpdate = New List<Account>();     For(Account acc : [SELECT Id,Name,Outstanding_Balance__c,Sales_Order_Count__c,(         SELECT id,name,Outstanding_Balance__c FROM Orders__r) FROM Account WHERE Id IN :AccountIds]) {         {             acc.Outstanding_Balance__c = 0.00;              for(Order ord: acc.Orders__r) {                 acc.Outstanding_Balance__c += ord.Outstanding_Balance__c;                 acc.Sales_Order_Count__c = acc.Orders__r.size();              }             accsToUpdate.add(acc);                          }         try{             update accsToUpdate;         }         catch(Exception E){             system.debug('Error thrown is: ' + E.getMessage());         }     } }

I have to calculate the sum of related child object(contact) on field (Score1__c and Score2__c) to parent object Account object field(AccountScore1__c and AccountScore2__c)  my code is working on insert update undelete but not working with ****delete**** event  trigger ContactScoreRollup on Contact (after insert,after update,after undelete,Before Delete) {     Set<Id> accountIds = new Set<Id>();     List<Account> accountsToUpdate = new List<Account>();     List<Account> accountsToUpdate1 = new List<Account>();     if(trigger.isinsert || trigger.isundelete || trigger.isupdate){         for(Contact con :Trigger.new){             accountIds.add(con.AccountId);         }     }     if(Trigger.isdelete || Trigger.isupdate){         for(contact con : Trigger.old){             accountids.add(con.Accountid);         }         accountIds.remove(null);     }      for(AggregateResult ar :[SELECT AccountId,SUM(Score1__c) sumammount1 FROM Contact  where AccountId in: accountIds  GROUP BY AccountId]){          accountsToUpdate.add(new Account(Id = (Id)ar.get('AccountId'),AccountScore1__c= (Decimal)ar.get('sumammount1') ));     }      for(AggregateResult arr :[SELECT AccountId,SUM(Score2__c) sumammount2 FROM Contact  where AccountId in: accountIds  GROUP BY AccountId]){          accountsToUpdate1.add(new Account(Id = (Id)arr.get('AccountId'),Account_Score2__c= (Decimal)arr.get('sumammount2') ));     }     update accountsToUpdate;     update accountsToUpdate1; }


I have a profile on AskUbuntu.com which is recognized on my StackEchange profile (). I have already asked and answered questions there. But even though I'm logged in stack exchange, Askubuntu does not see me as logged in. I have a long history of problems with that and though I have been able to access it up to end 2018, and I don't understand why it can't do it anymore. I have seen multiple questions about similar problems, but they all are older than 2018 and do not really helped me solve it. Amongst other, they proposed to log in with the same user and password, but using the same user and password on two different log in systems is a security hole. either your credential cookies are shared, or one should use different logging info. EDIT: it has been suggested to deactivate third party cookies blocking, but I do not want to ruin my browser's tracking protection.

When moving around the sites on Stack Exchange using Safari on my iPad (not the Stack Exchange App), I am fine when moving to any site other than SuperUser.  When logged in, I can switch sites and stay logged in, but when I switch to Super User I need to log in again. If I choose not to log in and switch to another site, I am logged in there. Is there a problem with the login handling for Super User? If it helps, I log in with a Stack Exchange account, not through Facebook or Google. Update After getting fed up with the problem, I took the advice given in the answer below which was to use Chrome, and the problem still exists. The same goes for Firefox. Have I missed something?  As you can see from the screenshots below, there are no cookie settings to be found. Chrome for iOS settings page  Privacy settings page  Content settings page  Google app settings page


I have js function: function getGuid(){     var guid = '@Guid.NewGuid()';     return guid; }  But every time I execute this function I get 1 constant value. Is there a way to rerender guid or it's better to write generating guid into plain javascript?

I'm trying to create globally-unique identifiers in JavaScript.  I'm not sure what routines are available on all browsers, how "random" and seeded the built-in random number generator is, etc. The GUID / UUID should be at least 32 characters and should stay in the ASCII range to avoid trouble when passing them around.


I would like to know if the word "repack" exists at least in one of the variants of the English language (i.e. British English, American English and so on), and if yes, if it can be hyphenated at the end of a line.  Personally, I believe that it exists, because I have read it several times in various articles. But I am completely unsure if it can be hyphenated at the end of a line. On one hand, Merriam-Webster does not know that word at all, Wiktionary knows it, but doesn't say anything about hyphenation, and no online hyphenation service I have tried does hyphenate it.  On the other hand, my personal feeling is that it might be possible to hyphenate it like "re-pack" at the end of a line.  Please note that I am not asking how to spell it when using it in normal text flow, i.e. if it is in one line. I am only interested in separating the word at a line end.  To make it absolutely clear, let's take another word as an example: You may hyphenate the word "power" like "pow-er", but not in normal text flow, i.e. if the word fits into the current line, but only at the end of a line, having the string "pow-" at the end of one line and the string "er" at the beginning of the next one. Of course, writing "pow-er" in the normal case, i.e. not at a line break, is wrong.  So, coming back to my actual problem, I would like to know if I can have "re-" at the end of one line and "pack" at the beginning of the next line even if no dictionary and no online hyphenation service does hyphenate that word.  Could anybody explain which rules apply here (of course, before asking, I have read some articles that gave some general guidance and that made me assume that the word in question could be hyphenated at line ends like shown above, so I just don't get why none of the online services hyphenates that word) or give a reference to a source where I can lookup correct line end hyphenations for English words (the word I have asked for is just an example - since I'm currently translating my website from German to English, there are hundreds of such cases, i.e. words whose line end hyphenation seemingly isn't shown at any source I know and which are not hyphenated by online services although I strongly believe they should).  All links I have seen in the comments so far are definitely not duplicates of my question. Without exception, they all deal with the question how you should write the respective word under normal circumstances, i.e. without a line break taking place.

Some compound words are written without hyphens (nonaggression, nonbeliever), some with hyphens (well-intentioned), and others with spaces (post office).  Is there a rule or good guide as to which option should be used?


Sometimes I need to look up a certain cross section, say the inclusive Z production cross section at $\sqrt{s}$ = 7 TeV. Is there a place where 'all the' cross sections are tabulated (experimental and theoretical), like the branching ratios are in the ? I know it might be hard, because there is often not 'the' cross section and you have to take into account generator cuts and the likes, but still there should certainly be a review somewhere?

Where to find cross section data for $e^{-}$ + $p$ $\longrightarrow$  $p$ + $e^{-}$ ?  does not include it.


I'm trying to integrate a cutom dropdown in my panel that allows to change between different display types for the created proxy objects.  The script runs without error but the dropdown is not shown in the panel. Also, I get this message in the console pointing to a certain line but I can't figure out what's the problem.  D:\XXXXXXX\XXXXXXXX\XXXXXXXXXX\scripting 2_8 wip.blend\Create Proxy Tools:326 rna_uiItemR: property not found: PROPS_UL_ProxyToolDisplayTypes.DisplayType_List   Edit: Here's a .blend with the script

I was watching this  on making a custom UI tab using Python, and in the line from bpy.types import Menu, Panel, UIList, I see the names of objects that look like they can all be used to make different UI elements. Does bpy.types contain all the objects that people use when they want to make custom UI elements?


On the full website, I click the title banner image all the time to hit the content display. It would be fantastic if the site name in the app's title bar was a link to the landing page. It's important to get there to search or browse site specific content. If I enter from a hot question or external link, it's not possible to use the back button to nav to it. If I've followed a few question links and the site isn't in my favorites, it's inconvenient to go search for it.  I'd suggest adding this link to places other than just questions, but I haven't found anywhere else I think it's called for. Search results use it as the dropdown to select search domain. Tag wikis and help pages don't appear to be implemented. The only thing left that merits an entire view is user profiles, and I'm not sure whether it's appropriate there. I wouldn't expect to be directed to the site's main page after clicking on a user's name.

Often (via Google Now, or when searching for a solution to some problem), I'll open a question from a non-favourite site in the app. Sometimes, I'd like to see what else is going on in the site where the question was posted. Currently, I have one of two ways:   Via tag icon:   Click one of the tag icons beneath the title Delete the [tag] text (at which point, thankfully, the sorting changes to Active from Votes).  Via manually searching for the site, which is more cumbersome. I type in hard and Hardware Recommendations is the fourth entry (below Ask Different, Raspberry Pi and Arduino)! This more annoying for meta sites, where I have to pick Meta from the dropdown menu.   Can I pretty please have a way to head to the site directly from the question? Maybe:   the site name in the top bar could become clickable and lead to the site, or an option in the More menu?     This would be especially useful for Meta sites, where questions posted around the same time could be related. Interestingly enough, most questions that Google Now are for metas of sites I visit on occasion, but haven't pinned to the list.


I have an annoying issue, I can detect mobile devices ( with wp_is_mobile() ) on WordPress.  But I want to detect only Tablet devices. How can I do it?

I am building my first responsive WP site with my own custom WP Theme. The primary templates are part fluid, part fixed. This enabled me to create only 3 "versions", a desktop, tablet and mobile version. All changes happen due to media queries. (Sizes are 768 to 1200 px for desktop, 530 to 767 for tablet, 300 to 529 for mobile.)  The homepage (which has it's own template) will show a slideshow. The slideshow claims to be responsive (I haven't set it up yet) and I am anticipating it working through the tablet sizes. But when I get to the mobile size I just want to have a static photo.  I don't want to just use "display:none" for the slideshow as it will still eat up space/power for the mobiles. I DO want to keep all the versions on the same templates, so I'm thinking I'm going to need some php or javascript to make this happen. (Unless there's some other way, which I'd be thrilled to hear about!)  Can anyone help with the code? I have a slideshow div in the CSS:  #slideshow {  height: 296px;  margin: 20px 20px 10px 20px;  padding: 0; background-color: #f00; }/*by not setting a width the sshow box fills the space minus the margins*/   and in the template the slideshow shortcode or template code will go between the open and close slideshow div tags. But I would also want to place a photo there for the mobile version. So I think I would need some kind of "if 529px or more, get slideshow; if less, get photo" right? I'm not a php or javascript programmer, tho I'm great at cutting and pasting!  The site is viewable at   -- we are now at the stage of adding page content and the blog needs attention and the sidebars need work, etc. But shell pages are up and content is getting loaded as I write.  Help greatly appreciated!


I read this in the 80's, probably published around the same time.    The book had two principal strands, a group of professional or semi-professional gamers enter a theme park which exists to provide "real life" RPG experiences. They are playing a new "game".  The second strand of the book was the theme parks security chief tracking a murderer and/or burglar, who ends up being one of the players.   The two strands merge when the security guy is inserted as a PC in the game, so he can investigate the group. There is so much riding on the success of the new scenario that the operators are unwilling to shutdown the game for any reason.  I remember the cover had the party on a raft, possibly in white water, a scantily clad female (a magic user PC) was holding a rune inscribed staff, fighting an enormous snake in the river. The POV of the picture was of someone in the water looking up at the characters on the raft.  The beasties they fought were mechanical, the people they fought were actors playing roles.  The "rune etched staff" was actually a computer, which the "mage" used to give instructions to the operators regarding the spell/alteration she was casting.  Another detail I remember is one of the characters being shocked when their faux sword cut actually appears to cut off someones arm, but that actor had lost the limb previously and the gimmick was setup to enhance the realism of the story setting.  It was English language, set in America, decades before MMORPGs were considered possible.

When I was a child/teenager, I remember reading a series about someone/someones playing some sort of augmented reality games. The players all wore glasses of some sort so they could see the game world, but underneath everything was a prop or robot. So while the glasses the player wore showed the players monsters, in reality they were actually robots walking around, and instead of a razor sharp sword, it would be a sword style object.  I can't remember if the books were in a series or just in the same game world, but there was more then one. It would have been before 2000. The games they played were like live action roleplaying, it would take several days. I remember in one book they went to some desert, maybe navada or somewhere like that in the US to compete in some event.  It's been bugging me trying to think of the series, so any help would be appreciated.


Consider this scenario:     Your computer is broken, so you call tech support. When they arrive to fix the computer, the problem is no longer present and the computer works as intended. Shortly after they leave, the problem begins again.   In this example your computer is broken when you need it to work, and works when you need it to be broken. Is there a phrase that describes this? I know Murphy's Law comes close to describing it, but doesn't seem to fit very well.

I am an IT professional. More specifically in automation. I am looking for a term or phrase that describes the event when either:  a. you are watching something closely and the issue doesn't occur  or  b. you are not watching something at all and the issue does occur


The exercise is: If A is an invertible matrix then there is a polynomial $p(t)\in \mathbb{K}[t]$ that $A^{-1}=p(A)$. I've tried to think that, if A is invertible, then the characteristic polynomial has the form $p_A(t)=t^n+\ldots+a_1t+(-1)^n\det(A)$, with $\det(A)\neq 0$. So, the minimal polynomial is something like $m_A(t)=t^n+\ldots+ b_0$, with $b_0\neq 0$. I am trying do some modification in $m_A$ to conclude the exercise. Some type?

Suppose $A$ is invertible $n\times n$ matrix. Show that $A^{-1}$ can be written as a polynomial of degree at most $n-1$, i.e.  $$A^{-1} = c_{n-1}A^{n-1} + \dots + \ c_{1}A + c_{0}I$$  Are there any tips on how may this proof be approached?


here is the output of echo $PATH  /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/bin:/usr/bin   and when I gave cat /etc/paths this is the output  /usr/bin /bin /usr/sbin /sbin /usr/local/bin   I am not sure whether that /usr/local/bin is creating the error (command not found)  Thank u for your suggestions

I'm really new to Mac OSX and UNIX based systems. I wanted to run a few Windows games on my Mac Mini so I started installing Wine and MacPorts. I think the installs are correct, but when I type sudo port install wine I see a not found error in my terminal. I tried other basic commands like say and clear and all of them return the same not found error. My research shows that my PATH might be incorrectly set, but it lacks steps I can implement. Specifically, I ran this command: echo $PATH and it returned:  /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/bin  I'm a complete newbie to mac and have no idea where .bash_profile or any of those files are. My skills let me install Xcode and the Command Line tools for Xcode and I sense I need to level up on path management. At this point I need help managing my dot files and changing my path to fix these specific errors on Mountain Lion. What are my next steps?


It is well known that $\pi_2(G)$ is trivial for any Lie-group $G$. Is there an elementary proof of this, say, that can be understood with minimal homotopy theory?  Also, who gave the first proof of this theorem?

I try to understand why for a connected Lie group $G$ the first fundamental group $\pi_1(G)$ is abelian, and mainly why the second fundamental group is trivial $\pi_2(G)=0$?  Thanks for anyone who give me references for a 'simple proof' of these results


I'm looking for a word that means a desire/wish that is improbable to be fulfilled ( and you can not do anything to change it).

What is a word which means something difficult or close to impossible to achieve? For example,     A ten-percent growth rate is a __: it is certainly possible on paper, but very difficult to accomplish.   I can think of a castle in the air or an ideal prospect, but I would love to have a simple one-word substitute.


Given two straight lines $$y=m_1x+c$$ and $$y=m_2x+d$$  When two lines are perpendicular to each other the product of their gradients, $m_1m_2=-1.$  How can I show that $$m_1m_2=-1?$$

I am not sure how to explain this. I just know they have negative reciprocals because one one line will have a positive slope while the other negative.


Let's say I need to find the limit: $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{n^2}$$ So I know that the limit is $\infty$, but I'm not sure how to show it in situations like this. $$\lim_{n\to\infty}\left(1+\frac{1}{n}\right)^{n^2}=\lim_{n\to\infty}\left(\left(1+\frac{1}{n}\right)^{n}\right)^n=e^{\infty}=\infty$$ I'm pretty sure this one is wrong, because I can't just have the power of infinity. How do I write it down properly?  Also, is $\lim_{n\to\infty}1^n=1$? I know I can't just write $\lim_{n\to\infty}1^n=1^{\infty}$, how should I do it properly?

How can I compute the limit $\lim_{n\rightarrow\infty}\left(1+\frac{1}{n}\right)^{n^2}$? Of course $\lim_{n\rightarrow\infty}\left(1+\frac{1}{n}\right)^{n} = e$, and then $\left(1+\frac{1}{n}\right)^{n^2} = \left(\left(1+\frac{1}{n}\right)^n\right)^n$. Since the term inside converges to $e$, the whole thing is $e^n$, and can I conclude that the limit is infinity as $n\rightarrow\infty$?


I know this may be an easy fix, and I'm just not looking hard enough, but how am I supposed to have my final render look completely identical to my viewport display? I have taken the time to set up a semi-realistic glossy texture for my eye, but every time I render it, no matter which settings I tamper with, my final render's texture looks like paper. Any possible fix would be appreciated.

I know that I can use default HDRI maps in Rendered mode in Blender right now, but the problem is when I wan to render the image by F12 (or render movie), my settings are changed to use "scene world". Is there a hidden button somewhere in rendering tab or somewhere else? If I have HDRI correct in rendered mode, why I can't have the same result after F12 render?


For systems with periodic boundary condition , plane wave basis is usually adopted. While for molecular systems, gaussian basis set is normally adopted. For periodic systems, the gaussian basis is transformed from real lattice space to momentum space (or k space) through Bloch function. My question is that what is the advantage of the plane wave basis? And a relevant question is that how to determine the number of k points required to converge the energy and density matrix for a periodic system?

Most periodic density functional theory (DFT) codes use plane-wave basis sets in conjunction with three-dimensional periodic boundary conditions. In contrast, for molecular systems of finite size, Gaussian basis sets are often used. The former are quite efficient for periodic systems, but more expensive methods such as hybrid functionals become intractable for large system sizes. The latter is well-suited for finite clusters but rarely is appropriate for periodic systems.   uses a mixed Gaussian and plane-wave approach (GAPW) for periodic systems.  models periodic systems using atom-centered Gaussian functions.  expresses wavefunctions in real space, avoiding explicit basis sets.  What are some positives and negatives of these alternate approaches, when compared to more conventional periodic DFT packages?


This is an old question that I have come back to fix/edit, the essence of the question was how to implement a timer properly which has been answerd many times, so i have marked this as a duplicate  Link to a good answer for implementing a timer:

Just this - How do you add a timer to a C# console application? It would be great if you could supply some example coding.


The relative motion between a conductor and a magnetic field produces voltage. If light is, in part, a series of moving magnetic fields then one would expect to see voltage generated when, let's say, a ray of sunlight passes through a coil of copper wire. Why don't we see this?  Down Vote Risky Speculation: Could it be that light really isn't moving? That it is just disturbances in a field that is already present?

I know that electromagnetic waves induce electric currents in conductors and that's the basis for radio, wi-fi etc.  I also know that light is also an electromagnetic wave. So, can light induce a current in a conductor (like a metal wire? or a coil?). And, if the answer is yes, is the same visible for other high-frequency waves (X-rays, gamma)?  I heard about the photoelectric effect, but it seems related to the particle theory of light (photons transferring their energy to electrons).  So, do high-frequency electromagnetic waves generate electric currents? Is it possible to measure them? Is the skin effect relevant here?


something is not very clear to me while using c#, hope I can get some answers here using System;  public struct SampleStruct {     public float v; } public class SampleClass {     public float v; } public class Program {     private float aaa;     private float bbb;     private SampleClass c111 = new SampleClass();     private SampleClass c222 = new SampleClass();     private SampleStruct AAA = new SampleStruct();     private SampleStruct BBB = new SampleStruct();      public void Main()     {        //test int field       aaa = 10;       bbb = aaa;       bbb = 9;       Console.WriteLine("int test: " + aaa);        //test class       c111 = new SampleClass { v = 10 };       c222 = c111;       c222.v = 9;       Console.WriteLine("class test: " + c111.v);        //test struct       AAA = new SampleStruct { v = 10 };       BBB = AAA;       BBB.v = 9;       Console.WriteLine("class struct: " + AAA.v);     } }   //output //int test: 10 //class test: 9 //class struct: 10  My question is why a Class object behaviors differently than a struct here as you can see if I change the latter object it affects to the object where it copied from

What's the difference between struct and class in .NET?


I'm attempting to install the drivers for my Nvidia GPU by following the steps listed , but after launching the installer it informs me that I must disable the Nouveau kernel driver before installation can continue (There is also an error message displayed before this stating that the 'distribution-provided pre-install script failed', but from what I've read in other posts it shouldn't be a problem to just continue and ignore it?).   Anyway, I've followed the steps listed  in an attempt to disable the Nouveau driver with no such luck. I've run sudoedit /etc/modprobe.d/nvidia-graphics-drivers.conf and populated the file with the given data and saved it, I've edited a line within the /etc/default/grub file so that it now reads GRUB_CMDLINE_LINUX_DEFAULT="nouveau.blacklist=1 nomodset quiet splash", and I've attempted to install the driver from within tty1 by first disabling gdm3 using sudo service gdm3 stop and then using the command sudo sh NVIDIA-Linux-x86_64-384.69.run. Even after doing all this the same error informing me that Nouveau needs to be disabled appears.  I should mention at this point that I used this method of installing the driver once before a few days ago and it worked. For the life of me I can't remember how I got it to work or why it won't work this time around. Also this is essentially a completely fresh install of Ubuntu Gnome 16.04 LTS, the only alterations I've made so far are the installation of Chromium, Discord, a couple of extensions and I've made a few UI changes in the Tweak tool.   So, can anyone offer any more advice on how to disable Nouveau? I feel that if I can get this disabled entirely then I'll be able to install the driver without further issue, but until I can figure this out I can't currently continue using my system because the default Nouveau driver causes the UI to freeze without reason or warning sporadically. In fact it crashed while I was typing this out, lucky for me Chromium saved what I'd written.   Thanks in advance for any help and advice!

So I've been pulling my hair out over this for the last couple days now, I can't seem to find any solutions that work. I've fresh installed Ubuntu Gnome 16.04 on my system which has no other OS's running on it. Everything's fine aside from the fact that the default Nouveau display driver seems to be causing the UI to freeze sporadically every now and then. No problem right? Just install the proprietary drivers for my GPU and we should be golden? Well here's the thing, no matter how I try to get my GPU's drivers installed I always seem to hit some sort of issue. Here's what I've tried so far:   Switch to the proprietary driver from within the 'Software & Updates' app in Ubuntu. For me the only option available is the 'NVIDIA binary driver - version 375.66 from nvidia-375 (proprietary, tested)'.    After selecting this driver it goes through the install process, asks me to 'configure secure boot' by entering a password, etc. This all seems to work fine initially until I reboot, but then before I see the login screen it seems to open a virtual terminal (usually accessed via alt+shift+F1), but then immediately boots me back to a black screen where it will flash this terminal for a split second every 4 seconds or so. I can access this terminal by using alt+shift+F1, and go on to use it as normal, but it will continually boot me back out to the black screen every few seconds. The only way I can solve this is to keep accessing the terminal each time it boots me out while I purge the nvidia drivers using sudo apt purge nvidia-*. After purging I'm then able to access the login screen and access my Ubuntu again as normal, besides having to reboot to presumably activate the Nouveau drivers again otherwise the resolution is all messed up and only one of my three monitors has anything displayed on it.    Using the steps listed  I download the latest stable/certified driver for my GPU (which as of writing this is version 384.69). However on step 3 where it instructs me to run the driver using sudo sh, I reach an issue where the installer informs me that I need to disable the Nouveau driver in order to continue. I've tried everything from uninstalling Nouveau using 'sudo apt-get remove --purge xserver-xorg-video-nouveau` to blacklisting Nouveau using the steps listed , by editing the 'nvidia-graphics-drivers.conf'.    Unfortunately no matter what I do to try and disable Nouveau the installer always informs me that the Nouveau driver is enabled and needs to be disabled in order to continue. What's funny is that I managed to install the driver using this method once before, but for the life of me I can't get it to work again.    Finally, I've attempted to install the driver by installing the PPA. I run sudo add-apt-repository ppa:graphics-drivers/ppa, sudo apt update, and finally going back into the 'Software & Updates' app and select the 384.69 driver. However after going through the install process the same issue as described in my first method (1.) occurs.    I've also tried switching between gdm3 and lightdm with all 3 methods to no avail. I'm at a complete loss as to what to do. If anyone has any possible solutions I'd love to hear them, because right now I'm at the end of my tether.   If you require any further information just let me know and I'll be more than happy to provide it.   System info:   AMD FX-8350  Nvidia GeForce GT710 1gb  16gb RAM  Ubuntu Gnome 16.04 LTS


On the comment to  question, a guy said that     those weren't TRUE lightsabers. They were training-level sabers.     These lightsabers look real (with saber length adjustment) to me which can do real damage including killing. How else can you build a glowing stick which can be turned on or off like the lightsabers Jedi or Sith own? On the other hand, this is the galaxy far far away we are talking about in which technology is comparable to magic.  I want to know from the canon (with proper citation): Could those lightsabers do real damages including death? Were they stripped down versions of the "true" lightsabers which Jedi or Sith own?

While rewatching Star Wars my skin was crawling while watching Luke practice saber technique against a remote on the Falcon.  There's no way I'd want to be in the same room with a beginner waving a lightsaber around, let alone a beginner with his eyes covered.  Samurai apparently practiced with  to reduce training injuries.  Do lightsabers have lower power settings so that a wrong move while practicing doesn't sever a limb or chop through the hull into vacuum?


Something is so annoying when a code snippet contains only one line of code, the scroll bar hides the code.  It would be good if the scroll bar have a specific area for it in the snippet box. See the screenshot:      Note: I'm using Safari v10.1 on macOS Sierra v10.12.4

This question is a duplicate of  (but this question can't be marked as a duplicate because that question is on meta.stackoverflow.com, and this question is on meta.stackexchange.com).  I'm seeing a bug on stackoverflow.com. I'm not sure if the culprit is Stack Overflow, Google Chrome, or macOS.  (Below I refer to a "code box". By that I mean some text that begins with 4 spaces when editing a question or answer.)  When I hover over a code box that contains one long line of code, a horizontal scrollbar appears. When I stop hovering over the code box, very frequently (maybe 3 out of 4 times) the scrollbar does not disappear. Clicking elsewhere on the page also does not dismiss the scrollbar. The only way to dismiss it is to refresh the page.  ...After experimenting more, it appears to always happen if I enter the box from below, but not always when I enter from above. It seems to be triggered by hovering over the lower half of the box.  Also if I enter from the top and scroll to the right, then until I refresh the page again that scrollbox will behave normally (only show a scrollbar when scrolling, and disappear after). In that case the scrollbar also has a different appearance, being much less tall (maybe a quarter of the height of the code box rather than half as tall).  Further, if I get a box and scrollbar into that functional state and then hover over the lower part of the box for a bit, then sometimes eventually it will break and stay broken until refresh again.  And in any case hovering over the lower part of the box causes the scrollbar to get taller.  Here is a screenshot of the issue:        Google Chrome 71.0.3578.98 (Official Build) (64-bit)  macOS High Sierra 10.13.6  Here is a code box that repros the issue for me:  fooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo   Here is another:  foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo foo


I wanted to create a directory structure with certain specified files. The files are just empty text files. Do I start by making a directory of the main directory and then trying to create a subdirectory inside the main directory with the empty text files in the subdirectory? Can I create an empty file with the command touch «path»/«file    ? Would I start making main directory with the touch command just listed? Lookingfor help on how to create a main directory with subdirectories in a structure. Thank you

Let's say the directory ~/this_dir doesn't exist.  I need to be able to run touch ~/this_dir/new.txt to create new.txt in ~/this_dir.  Is there a simple way to make touch also create the directory?  Or an alternative command which would achieve the same thing?  Thanks


My website has 98% visitor from India and 2% from rest of the globe. Now, I am migrating to VPS.   Should, choose those hosts who have Data Center in India or nearer to India.   Will it help to load pages quickly to my users (If Data center would be nearer to India. Assume, that i am subscribing VPS from standard hosts)? Will it help in SEO too (Google search engine).

This is a "catch-all" question designed to serve as an answer for all questions about choosing web hosting.  Pro Webmasters no longer accepts new questions about how to choose hosting.  All future questions pertaining to finding web hosting should be closed as a duplicate of this question. For more information about this policy please see .    How to find web hosting that meets my requirements?  What we're looking for in answers to this question are the basics about web hosting:   What is web hosting? What is the difference between shared, VPS, and dedicated hosting? How does a content delivery network relate to web hosting? Anything else you feel is helpful in finding a web host.   What we do not want is:   Endorsements or recommendations for specific web hosts We do not want your experience or other subjective information (just the facts please)


I have to answer the following problem:  Find $\gamma$ such that $\mathbb{Q}(\gamma)=\mathbb{Q}(\alpha,\beta)$ where $\alpha$ is a root of $x^3-2x+3$ and $\beta$ is a root of $x^2+x+2$  I am a bit confused: How do we pick a root of each of those polynomials? If I didn't messed something, I guess they do not have roots in $\mathbb{Q}$ so what roots should we pick? Should we make two extensions so that we obtain a root for each one of them and then try to find $\gamma$?

I'm currently reading S. Lang's "Undergraduate Algebra". After the primitive root element theorem (Field theory chapter), there are a bunch of exercises to find one primitive element of extensions and, then, their degrees. However, I don't even know how I should start. They are as below:   In each case find an element $\gamma$ such that $\mathbb{Q}(\alpha,\beta) = \mathbb{Q}(\gamma)$. Prove every  statement you make.  a) $\alpha = \sqrt{-5}, \beta = \sqrt{2}$ b) $\alpha = \sqrt[3]{2} , \beta = \sqrt{2}$ c) $\alpha = $ root of $t^3 -t + 1$ , $\beta = $ root of $t^2-t-1$ d) $\alpha = $ root of $t^3 -2t + 3$, $\beta = $ root of $t^2 + t + 2$ $\quad$2. Find the degrees of the fields $\mathbb{Q}(\alpha, \beta)$ over $\mathbb{Q}$ in each case of exercise 1.  I think that exercises a) and b) proceed pretty much the same way, but I'm not sure about c) and d).


I would like to know a linux command that can tell me the operating system and version regardless of what distribution I am using as it seems different distributions have a different way of doing this.  That may make such a thing tricky but then again there may be a way and perhaps the community already has this.  Previous questions on this have elicited responses such as "these users have answered that" but then didn't give a link to the answer or indeed previous question, only the users who had ansked the question which makes finding the answer somewhat of a challenge.  Other resposnes to similar questions have been specific to redhat or whatever and as such not an answer to my new question here.  Many thanks for any help provided.

Say I am logged into a remote system, how can I know what it's running? On most modern Linuxes (Linuces?), you have the lsb_release command:  $ lsb_release -ic     Distributor ID: LinuxMint Codename:       debian   Which as far as I can tell just gives the same info as /etc/lsb-release. What if that file is not present? I seem to recall that the lsb_release command is relatively new so what if I have to get the OS of an older system?  In any case, lsb stands for Linux Standard Base so I am assuming it won't work on non-Linux Unices. As far as I know, there is no way of getting this information from uname so how can I get this on systems that do not use lsb_release?


I have problem with getting records from database when I have words with German letters in SQL query, when I do it in phpAdmin it gives 88 rows with results, when I want to execute the same query but in php code it gives me bool(false). In db I use utf8_bin. What is wrong? $getPapers = mysql_query("SELECT * FROM swt_pubs WHERE column LIKE '%Aß%' ORDER BY id DESC LIMIT 10"); echo $getPapers; while ($papers = mysql_fetch_object($getPapers)) {     echo "string";     echo convertToUTF8($papers->content); } var_dump($papers);?>  Results which I get:  Resource id #6 bool(false)  Edit 1: I have this coding of page: <meta http-equiv="Content-Type" content="text/html;charset=utf-8">  Edit 2: function convertToUTF8 ($string)         {         return str_replace ('Ã„', '&#196;',                str_replace ('„', '&#132;',                str_replace ('“', '&#147;',                str_replace ('–', '&#150;',                str_replace ('', '&#173;',                     str_replace ('È', '&#200;',                         str_replace ('É', '&#201;',                             str_replace ('Ö', '&#214;',                                 str_replace ('Ü', '&#220;',                                     str_replace ('ß', '&#223;',                                         str_replace ('ä', '&#228;',                                             str_replace ('è', '&#232;',                                                 str_replace ('é', '&#233;',                                                     str_replace ('ö', '&#246;',                 str_replace ('ü', '&#252;',                     str_replace ('@', '&#64;',                         str_replace ('Ã?', '&#220;',                             str_replace ('\"', '"',                             str_replace ("\'","'",                                 ersetzeBbCode ($string)                                     ))                                 ))                             )                         )                                                                 )                                                             )                                                         )                                                     )                                                 )                                             )                                         )                                     )                                 )                             )              ))             );         }

I'm setting up a new server and want to support UTF-8 fully in my web application. I have tried this in the past on existing servers and always seem to end up having to fall back to ISO-8859-1.  Where exactly do I need to set the encoding/charsets? I'm aware that I need to configure Apache, MySQL, and PHP to do this — is there some standard checklist I can follow, or perhaps troubleshoot where the mismatches occur?  This is for a new Linux server, running MySQL 5, PHP, 5 and Apache 2.