I ran Ubuntu 13.10 with a startup script that had three xrandr commands in it to add a screen resolution that Ubuntu couldn't detect. After upgrading to Ubuntu 14.04, the system freezes on startup. All I can do is enter terminal mode and type commands.  I think the problem is in the startup script. How do I disable my startup script from the command line?  I tried deleting the original shell file but apparently Ubuntu copied the file elsewhere when I defined it as one of my startup scripts, and the system still freezes on startup.

I've been messing around with Unity and broke something, how do I "start over"?


I would like to find out whether one of two long documents plagiarises the other. I’m looking for software or a website that does this but does not store the documents on the server (i.e., the documents should be kept private if possible).  Does such a software exist?    Note that I’m not looking to compare to millions of possible documents, so I don’t need a service like TurnItIn.

I've had to grade quite a few essay papers in the classes I've taught, and I've suspected some may have plagiarized but I never really pursued check on them because it would be too time consuming to check their sources and pursue any/all possible sources where they may have copied from.    What's the easiest way to check for plagiarism?  Is there a search engine tool that one could use to upload a paper and check for it?  I doubt it, but other than that, I don't know of any other way to check for it than to put in more effort than I have time for.


$$\sum_{n=1}^\infty \left(\frac{n}{n+1}\right)^{n^2} $$ ratio vs comparison. What would you need to evaluate $$\lim_{n\to\infty} \frac{\left(\frac{n+1}{n+2}\right)^{(n+1)^2}}{\left(\frac{n}{n+1}\right)^{n^2}}$$ for the ratio test?

Determine whether the series $\sum_{n=1}^{\infty}(\frac{n}{n+1})^{n^2}$ is convergent or divergent.  I've tried applying all the basic tests to no avail. I need to find out what the "trick" for this particular series is.


A construction that I have been seeing a lot lately that seems surprising to me is "The  8-foot-long bridge ...," with two hyphens.   It seems surprising to me (or maybe I'm just noticing it) that there is a second hyphen between "feet" and "long".   Is this considered a common construction or is it more of an accepted though less common use?

Why are year, pound and mile in the singular form in the phrases below?   five-year-old children  20 pound note 10 mile run   Is that because they're acting as adjectives, which are always invariable in English?  Is it incorrect to say...   five-years-old children? 20 pounds note? 10 miles run?


In the sentence "I have never seen it snow", what tense is the verb "snow"?  My coworker who is learning English asked me why "I have never seen it snowed" is incorrect, and I wasn't sure how to explain.

I have been reading Men With Brooms for a few days. I read a sentence which did not make any sense to me, so I landed here to get some help on it. I have pasted the sentence from the novel. Please go through it and let me know your valuable feedback on it.  An excerpt from the novel (Men With Brooms: A Sweeping Epic, paperback 2002, a novelization by Diane Baker Mason):     Gordon was about to walk away from the Impala when he saw it stop and his son get out. So it was real the boy had come.   As per my opinion it should have been:     Gordon was about to walk away from the Impala when he saw it stopped and his son got out. So it was real the boy had come.   I have two questions here:   Why did the writer use stop and get instead of stopped and got? As she is telling us a story which happened in the past. Let's say the writer is telling us her mind's situation and she used the present tense for it but why did she use stop and get instead of stops and gets?


I'm trying to perfect our disaster recovery steps...  We take backups of a database that, in production, is in an AG.  It is the only database in the AG.  If we lose the building, I need to be able to restore it to a new instance.  Initially, for time's sake, this instance would not be running in an AG.  Of course, if you try a normal restore, you get error Msg 3104: "RESTORE cannot operate on database 'SI_EDI_PRD' because it is configured for database mirroring or has joined an availability group."  And, since the instance is not configured for AlwaysOn, you can't try to run the ALTER AVAILABILITY GROUP command.  How can one restore this database??

Running: SQL Server 2012, Windows Server 2008 R2  I want to test a backup by restoring onto an isolated server. The backup was taken from an Availability Group (HADR) configuration, but the target server does not have the clustering/HADR configuration and I don't want to have to set that up.  When I try to perform the restore, this following is returned:  Could not process the operation. AlwaysOn Availability Groups replica manager is disabled on this instance of SQL Server. Enable AlwaysOn Availability Groups, by using the SQL Server Configuration Manager. Then, restart the SQL Server service, and retry the currently operation. For information about how to enable and disable AlwaysOn Availability Groups, see SQL Server Books Online.   The message makes sense and I understand it, but have no way to take it out of an AG that doesn't exist on my target, and can't exist due to no cluster, etc.   Is there a way to make this scenario work?


This question concerns the yes command found in UNIX and Linux machines: Basically, what is the point (if any) and history of this tool? Are there practical applications for it? Can an example be shown where it is useful in a script or chained (via pipe or redirect) with another tool?  The manpage is below:  YES(1)                    BSD General Commands Manual                   YES(1)  NAME      yes -- be repetitively affirmative  SYNOPSIS      yes [expletive]  DESCRIPTION      yes outputs expletive, or, by default, ``y'', forever.  HISTORY      The yes command appeared in 4.0BSD.  4th Berkeley Distribution        June 6, 1993        4th Berkeley Distribution   Sample output:  $ yes why why why why why ^Cwhy

There is a yes command in unix/linux which basically infinitely prints y to the stdout. What is the point of it, and how is it useful?


Type of conditional expression cannot be determined because there is no implicit conversion between 'lambda expression' and 'lambda expression'   Say whaat? Could someone please explain this compile error to me? This is the code that produces it:      protected override Func<System.IO.Stream> GetStream()     {         return someBool             ? () => EmbeddedResourceExtractor.GetFile("SomeFile1.ext")             : () => EmbeddedResourceExtractor.GetFile("SomeFile2.ext");     }   This does not:      protected override Func<System.IO.Stream> GetStream()     {         return () => EmbeddedResourceExtractor.GetFile("SomeFile1.ext");     }   And neither do this:      protected override Func<System.IO.Stream> GetStream()     {         if(someBool)             return () => EmbeddedResourceExtractor.GetFile("SomeFile1.ext");         return () => EmbeddedResourceExtractor.GetFile("SomeFile2.ext");     }

Generally, when using the conditional operator, here's the syntax:  int x = 6; int y = x == 6 ? 5 : 9;   Nothing fancy, pretty straight forward.  Now, let's try to use this when assigning a Lambda to a Func type. Let me explain:  Func<Order, bool> predicate = id == null     ? p => p.EmployeeID == null     : p => p.EmployeeID == id;   That's the same syntax, and should work? Right? For some reason that doesn't. The compiler gives this nice cryptic message:     Error  1   Type of conditional expression cannot be determined because there is no implicit conversion between 'lambda expression' and 'lambda expression'   I then went ahead and changed the syntax and this way it did work:  Func<Order, bool> predicate = id == null     ? predicate = p => p.EmployeeID == null     : predicate = p => p.EmployeeID == id;   I'm just curious as to why it doesn't work the first way?  (Side note: I ended up not needing this code, as I found out that when comparing an int value against null, you just use object.Equals)


I created TINYINT columns in my MySQL database to interpret boolean variables, which based on whether checkboxes are checked or not in the html store the values (0 for false, everything else for true) in the DB. But it won't update the values when the php file is called. Is there something wrong with my SQL? Are TINYINTs inputted as below? Simply with a 0 and a 1?  <?php include_once("createConnection.php"); session_start(); $checkbox = $_POST['name']; $checked = $_POST['checked']; $currentUser = $_SESSION['validUser'];  if($checked=='yes'){     $request='UPDATE projectDB.Members          SET :name=1 WHERE username=:currentUser';     $preparedStatement = $bdd->prepare($request);      $preparedStatement->bindParam(':name', $checkbox, PDO::PARAM_STR);     $preparedStatement->bindParam(':currentUser', $currentUser, PDO::PARAM_STR);     $preparedStatement->execute(); } else{     $request='UPDATE projectDB.Members          SET :name=0 WHERE username=:currentUser';     $preparedStatement = $bdd->prepare($request);      $preparedStatement->bindParam(':name', $checkbox, PDO::PARAM_STR);     $preparedStatement->bindParam(':currentUser', $currentUser,     PDO::PARAM_STR);     $preparedStatement->execute(); } ?>

Why can't I pass the table name to a prepared PDO statement?  $stmt = $dbh->prepare('SELECT * FROM :table WHERE 1'); if ($stmt->execute(array(':table' => 'users'))) {     var_dump($stmt->fetchAll()); }   Is there another safe way to insert a table name into a SQL query? With safe, I mean that I don't want to do  $sql = "SELECT * FROM $table WHERE 1"


We work on some research problem, obtain some publishable results, then we target an international conference to disseminate the results and methods in, and then there is a 'last' date or deadline.  We submit the complete manuscript to the conference on or before the mentioned deadline of the conference.  Then, suddenly we see the deadlines (both for submission and for the acceptance) continually change over time. For example, in one of the last year's Computer Science conference, the deadlines were changed repeatedly. Please note that the deadlines for submission were getting extended on the very day of the earlier notified deadline, which is another demotivating factor.    Why might it be happening?   Because the targetted number of submissions were not received. The reviewers could not meet the deadlines. Can there be any other reasons than the above two?   I have the following questions:   If the conference organizers were not so firm about this stuff, why did they even have an important date page? It is actually frustrating for the authors who have submitted the paper on the first submission dead line and still waiting for 3 months to get the review. This is ridiculously bad for a conference. The papers which are submitted at the last notified deadline will be reviewed in a less productive way. If this is true, then what is the point of having a peer review? In such a scenario, is it advisable to withdraw the paper from the conference? Does it not hamper the quality of the conference as good researchers would not submit to the same conference again in following years?   I believe that this question is not a duplicate of .

Important Announcement – Paper Submission Deadline Extension The paper submission deadline has been extended to May 25, 2015 June 1, 2015.  This is the third extension of the deadline for the meeting where I have submitted my paper.  To May 1, 2015 May 18, 2015. To May 18, 2015 May 25, 2015. And now, to May 25, 2015 June 1, 2015.  I do not know what think. I have submitted the paper on the afternoon of May 18, 2015. That evening I saw the second extension (like Cinderella, not at midnight but close). Now I have seen another extension, and I am concerned because I have worked very hard in this project. The question is: there is a concrete risk that the conference could have had a few submissions and could be canceled?


What does it mean "a while ago"? For how much time in the past it is said to be definite?   I saw it in the context of a  on Youtube (0:36)   Paraphrasing, the conversation was     Rakesh: Hi, Darren. Do you remember me? You took my sister out on a date. She's slightly larger.   Darren: Maybe. I think so. A while ago?   Rakesh: Yeah, it was a little while ago, right. I know, it's been a little while.

I was told that another alternative for 'a few minutes ago' is 'a short while ago'.  Let's say I am a student of a 20- minute English phone class and my teacher asks me questions which I answer during the first 10 minutes of our class.  On the second 10 minutes she corrects my sentences.  She says, "A while ago you answered, 'I go to work yesterday'.  It should be 'went'.  Past tense."  Is it correct to use 'a while ago' and not 'a short while ago'?  The situation is very clear.  We never talked before the 20-minute class.  It means that she refers to the period of time within the 20-minute class.  Thank you.


I need to make a graph in Excel of people's time serving in a position, their start date to end date.  I'm trying to get their names on the Y axis, and then a horizontal line for each name running from their start date to their end date.  I can't figure out how to create this type of chart.

I'm trying to create a chart to compare the overlap of dates. Sort of a timeline with a bar chart that starts on the Onset Date and ends at the Offset date for each category.  I have included sample data below. For this data, I would have 5 bar charts going horizontal with dates on the X-axis. The Y-axis can be the Category type.  Been playing around with line and bar charts in excel but they just are not right. Any suggestions would be great!  Category    Onset     Offset B1        12/1/2014   3/1/2015 B2        10/1/2014   1/1/2015 B3        5/1/2014    1/1/2015 B4        6/1/2014    8/1/2014 B5        6/1/2014    10/1/2014


I am in the States on ESTA, but I like it here and would like to stay longer and explore more, so I decided to travel to Canada to apply for a B1/2 visa to re-enter for longer period.   MOST IMPORTANTLY : Will my ESTA (visa waiver) period of 90 days still keep counting while I am in Canada, even if I left the US (but not to my residential country, as I am European)? Or will it stop counting on the day I leave the USA?  Could that be a problem, or is it OK and I will probably be granted the tourist visa? Do you know how long it usually takes the Toronto consulate? Is it a problematic spot?   Can I enter straight after the visa is issued, even if it is just a week after I left the USA?   Thanks a lot!

I am currently visiting the USA from the UK (I am a UK citizen) and am intending on staying here for the full 90 days under the Visa Waiver Program.     How long would I have to stay out of the US at the end of this period before returning again?    Would I have to return to the UK, or could I stay with friends in another country (such as Canada) for a while?


Can you help me to prove that $$|x-y|\leq |x|+|y|$$ I get a proff of this equality, but it's very short and I don't know if it's correct.

I understand intuitively that this is true, but I'm embarrassed to say I'm having a hard time constructing a rigorous proof that $|a+b| \leq |a|+|b|$. Any help would be appreciated :)


How to write this maths symbol below:    I search in , but it said \R and $\R$  but is not working.

I know what my symbol or character looks like, but I don't know what the command is or which math alphabet it came from. How do I go about finding this out?


I am using Ubuntu 18.04 and I sometimes write a large amount of files to an external hard disk (might take an hour or so). When that copy process is over I am clicking on      Safely remove drive   after wich a message appears     Device should not be unplugged   But that message is there for a LONG time! What can I do? Wait for 30 minutes? Or a day? Or a week?  What is going on? Why does it take so long time to safely remove the device? The data has been written, so what is going on?  How to improve/fix this situation?

I'm using Ubuntu 17.10.  I formatted an USB pen-drive to NTFS to prepare a Windows7 USB Installer.  I set the bootable flag on this pen-drive and copied the files into it.  EDIT 1: The USB pen-drive is automatically mounted by udev.  umount /dev/sdb1 takes from 10 upto 12 minutes to complete.  Here are the mount options :  $ mount | grep sdb /dev/sdb1 on /media/mansfeld/Win7_USB_Installer type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)   EDIT 2: The cp operation is not INSTANTANEOUS at all, it took 3 minutes to copy the files to the USB pen-drive.  EDIT 3: The sync operation (done right after the cp) took 12 minutes to complete ! But then the umount will be instantaneous.  For FAT32, (with sync also disabled during mount), I notice the same behaviour.  Any ideas why it takes so long to unmount NTFS USB pendrive ?


I have a web application running in JBoss on www.example.com:8080/webapp. I want users to be able to use the URL www.example.com/company and have that redirected to www.example.com:8080/webapp?name=company in order to present company specific logos and names for each client.  Can I do this using the rewrite engine? and use Apache as the redirect to JBoss?

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


I find it impossible to track all the questions that I ever asked. If at some point my question is put on hold, why am I not notified to make changes to it unless I go that question directly on each site? Sometimes questions gets flagged without anyone leaving comments thus there is never notification in inbox.

I think it would really help if you get notified that a question of yours was closed.  Especially for the multi-site power user, usually (at least for me) a question is asked and then left alone for while. I rely on the network-wide inbox to tell me when someone has commented or answered, but if I don't receive any messages then I tend to assume that the question wasn't answered or even noticed. It's only when I check the question a day or two later to see what I can add do I find out it was closed.  This would be especially helpful for duplicates, where the answers you need are already there. A message to the effect of, "Closed as duplicate of question" is just like notifying me that a new answer has been added!  Unfortunately, question closures can remain unnoticed by their askers until months have passed. By then, the questions may either be too old to migrate to the correct site, or may , depending on the specific closing reason. We should notify users of these question closures so that they can improve them and learn from their mistakes.  Could closed questions get added to the inbox?


I want to install Ubuntu on my HP Pavillion G6. It has a Windows 8 logo, but in the BIOS, I can't disable Quickboot or Fastboot, (I can't even find it in the BIOS.) How can I turn it off?

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


Can extension methods be applied to the class?  For example, extend DateTime to include a Tomorrow() method that could be invoked like:  DateTime.Tomorrow();   I know I can use   static DateTime Tomorrow(this Datetime value) { //... }   Or  public static MyClass {   public static Tomorrow() { //... } }   for a similar result, but how can I extend DateTime so that I could invoke DateTime.Tomorrow?

I'm a fan of extension methods in C#, but haven't had any success adding an extension method to a static class, such as Console.  For example, if I want to add an extension to Console, called 'WriteBlueLine', so that I can go:  Console.WriteBlueLine("This text is blue");   I tried this by adding a local, public static method, with Console as a 'this' parameter... but no dice!      public static class Helpers {     public static void WriteBlueLine(this Console c, string text)     {         Console.ForegroundColor = ConsoleColor.Blue;         Console.WriteLine(text);         Console.ResetColor();     } }   This didn't add a 'WriteBlueLine' method to Console... am I doing it wrong? Or asking for the impossible?


what is difference between primary key and unique key in defining tables in sql?

At work we have a big database with unique indexes instead of primary keys and all works fine.  I'm designing new database for a new project and I have a dilemma:  In DB theory, primary key is fundamental element, that's OK, but in REAL projects what are advantages and disadvantages of both?  What do you use in projects?  EDIT: ...and what about primary keys and replication on MS SQL server?


Can someone explain in lay terms how the research done by Lene Hau about Light speed reduction is actually possible? Isn't the speed of light a constant?

I have a quick question about the refraction of light, and I'm sorry if it seems a bit simplistic or even stupid, but I'm still learning.  We know that when light passes through a denser medium, it slows down. However, is there a limit to that slowing down? If no, wouldn't it be possible, with some type of medium we make ourselves (like a crystal), to decrease the light's speed down to a point where we would be able to "see the photons moving forwards"?  I know it is way more complicated than that and that you can't see light unless some other light bounces off it, what I mean is slowing down light to an extreme and unusual speed). That sounds completely absurd but I can't seem to find what is wrong. Can anyone can explain it to me? :)


Orcs appear to be sentient. Orcs are (possibly) derived from elves who do possess fëa. So do they possess "a soul"? and if so, what happens to it when they die? do they get the gift of men?

There are a bunch of theories about the true origin of the orcs. Tolkien tried out a few different origins for his Orcs throughout his life but died before he could fully revise The Silmarillion with his final view on their origins and nature.   There is a list of origins proposed by Tolkien():   Made of stone and slime through the sorcery of Morgoth; East Elves, where The Silmarillion contains a suggestion that Orcs are descended from East Elves captured by Melkor, their minds and bodies distorted and corrupted. Sentient beasts, another of Tolkien's theories proposes that Orcs may have begun as soulless animals of vaguely humanoid shapes, empowered by the will of the Dark Lord (Morgoth) and learning language only as parrots do. Fallen Maiar, there are hints in the History of Middle-earth series of books, (especially in Morgoth's Ring in the section "Myths Transformed"), that some Orc leaders, such as the First Age's Boldog, or the Great Goblin encountered by Bilbo and the Dwarves, may in fact have been fallen Maiar which had taken Orc form. Corrupted Men, while Tolkien at some point saw all Orcs as descended from the original corrupted and tortured Elves, later comments of his indicate, according to Christopher Tolkien in Morgoth's Ring "Myths Transformed" text X, that he began to feel uncomfortable with this theory. At about the same time he removed the references to the Thrall-Ñoldorin, he also began searching for a new origin for the Orcs. It seems Tolkien wanted to change the origin of the Orcs to make them corrupted and twisted Humans.  A mix of corrupted Elves and Men, A late idea of Tolkien seems to be that Orcs (or Orks, showing the late spelling change) had a mixed origin of Elves and Men. Some cross-bred with Men, Tolkien also suggested that Men were cross-bred with Orcs under Morgoth's lieutenant, Sauron (and possibly under Morgoth himself). The process was later repeated during the War of the Ring by Saruman. This possibly refers to the way the Uruk-hai and the Half-Orcs were created, in The Lord of the Rings.   Of all these theories, which is the most accepted, and which did Tolkien agree with the most? I always thought that orcs were made of East Elves, as explained in The Lord of The Rings, but the story goes beyond this, there are the stories in many other books that explain different things.  What can you tell me about this?


I need to change the background of my desktop in Ubuntu 12. 04 with a command in terminal, in order to make a script with bash. Does anyone know how to do it?

I have a script that updates my desktop background every day with the NASA APOD. Since upgrading to 11.10, that script stopped working, presumably because I'm using gconftool-2 to actually update the desktop background. Is there a new way to do this under Unity?


I have an input file which contains variable and their values.  $ cat input.txt var1=SomethingNew var2=SecondPrhase classpath=/this/is/some/path   I have another directory in which there are multiple files across many sub-directories with these variables. I want to replace all these variables in all files with values from above "input.txt" file. Thanks in advance.

Preface: Every couple of days there comes a question of this type, which is easy to solve with sed, but takes time to explain. I'm writing this question and answer, so I can later refer to this generic solution and only explain the adaption for the specific case. Feel free to contribute.  I have files with variable definitions. Variables consist of uppercase letters or underscore _ and their values follow after the :=. The values can contain other variables. This is Gnom.def:  NAME:=Gnom FULL_NAME:=$FIRST_NAME $NAME FIRST_NAME:=Sman STREET:=Mainstreet 42 TOWN:=Nowhere BIRTHDAY:=May 1st, 1999   Then there is another file form.txt with a template form:  $NAME Full name: $FULL_NAME Address: $STREET in $TOWN Birthday: $BIRTHDAY Don't be confused by $NAMES   Now I want a script which replaces the variables (marked with $ and the identifier) in the form by the definitions in the other file, recursively, if necessary, so I get this text back:  Gnom Full name: Sman Gnom Address: Mainstreet 42 in Nowhere Birthday: May 1st, 1999 Don't be confused by $NAMES   The last line is to ensure that no substrings of variables get replaced accidentally.


My question specifically deals with certain real indefinite integrals such as $$\int e^{-x^2} {dx} \ \ \text{and} \ \ \int \sqrt{1+x^3} {dx}$$ Books and articles online have only ever said that these cannot be expressed in terms of elementary functions. I was wondering how this could be proved? I know this is a naive way of thinking, but it seems to me like these are just unsolved problems, not unsolvable ones.

In the past, I've come across statements  along the lines of "function $f(x)$ has no closed form integral", which I assume means that there is no combination of the operations:  addition/subtraction multiplication/division raising to powers and roots trigonometric functions exponential functions logarithmic functions  which when differentiated gives the function $f(x)$. I've heard this said about the function $f(x) = x^x$, for example. What sort of techniques are used to prove statements like this? What is this branch of mathematics called?  Merged with "" by : Sometimes we are told that some functions like $\dfrac{\sin(x)}{x}$ don't have an indefinite integral, or that it can't be expressed in term of other simple functions. I wonder how we can prove that kind of assertion?


I had to edit an illustrator file, a menu for a restaurant that needed some changes in the texts.  When opening the Ai file provided I found that the text boxes/blocks are not boxes anymore, but instead single separated lines and even single characters (they're editable, not curves)  Do you guys know why this happens?

I recently had to convert some PDF files to SVG, and did this by opening the PDF in Illustrator, and saving out to SVG.    The issue was that when Illustrator opened the pdf, many (but not all) text objects would be broken up into different text objects.  For instance, the word "policy" wouldn't be one text object, but rather several text objects, "po", "l", "icy".  There didn't seem to be any rhyme or reason to it.    How can I prevent this from happening?


My syslog is being flooded be the following, which is obviously WLAN connection related.  This question is How to disable logging of wpa_supplicant into syslog?  Nov 16 03:58:14 vb-nb-mint wpa_supplicant[1523]: wlan0: WPA: Group rekeying completed with 30:b5:c2:b9:c8:f2 [GTK=CCMP]   EDIT1: I think my question is different, because I don't even know what wpa_supplicant is doing in the background and not in some script. I am on Mint 18 and just want a clean syslog without this.

I am experimenting with aircrack-ng and I managed to fill up / with the syslog file complaining about what I'm doing to the poor wifi card. How can I disable logging to syslog for the duration of my Bash session?. Of course I would like other, unrelated, processes to continue their logging as necessary.  The /var/log/syslog file looks like this, repeating:  Oct 24 03:39:40 loathe NetworkManager[673]: <error> [1445647180.233086] [platform/nm-linux-platform.c:2782] do_chan     ge_link(): platform-linux: do-change-link: failure changing link 4: Unspecific failure (1) Oct 24 03:39:40 loathe wpa_supplicant[762]: Could not set interface mon0 flags (UP): Name not unique on network Oct 24 03:39:40 loathe wpa_supplicant[762]: nl80211: Could not set interface 'mon0' UP Oct 24 03:39:40 loathe wpa_supplicant[762]: nl80211: deinit ifname=mon0 disabled_11b_rates=0 Oct 24 03:39:40 loathe wpa_supplicant[762]: Could not set interface mon0 flags (UP): Name not unique on network Oct 24 03:39:40 loathe wpa_supplicant[762]: WEXT: Could not set interface 'mon0' UP Oct 24 03:39:40 loathe wpa_supplicant[762]: mon0: Failed to initialize driver interface   This is on Kubuntu 15.10.


upgrading the Ubuntu this error occurs:  $ sudo apt-get upgrade error Malformed line 1 in source list /etc/apt/sources.list (type) E: The list of sources could not be read   Line 1 in source list is this:  123#deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted

I have unistalled and reinstalled the Ubuntu Software Center as per info I found in a similar thread and I got the same response about line 91 or something like that.  I just tried to upload a screen shot but since I'm new it won't allow me to.  I also can not figure out how to cut and paste anything so I have to hand type what the error screen says, both when I attempt to open the software center and nothing happens, when I try to enter commands into the terminal to uninstall, reinstall, whatever I get the same following:  COULD NOT INTITIALIZE THE PACKAGE INFORMATION An unresolvable problem occured while initializing the package information Please report t:his bug against the 'update-manager' package and include the following error message: 'E: Malformed line 91 in source list/etc/apt/sources.list (dist parse)  E: The list of sources could not be read.,  E: The package list of status file could not be parsed or opened.   How do I report bugs?  What can be done about this.  I have searched and everything everyone says to do leads me back to the same line error message.  So, I don't know how to get to line 91 in the source list; to tell you what it says. Sorry, I'm really new to this. That is what I need is to find out how to get there and fix what it says. I would really like to NOT have to re partition my hard drive and start from scratch, so I'm really looking forward to getting this problem solved. I need to be able to install new software.


I have installed Ask Ubuntu Lens on my 12.04 desktop some time back and I could see it in my installed applications from Ubuntu Software Center. But I cannot find it on the dash. How I can launch it ? I installed Alacarte hoping that I can see it there, but could not find it there either.  Note: I reviewed the question , but could not find answer to my specific question.

I heard about the  over in the , and I was wondering how to install it. What are the step-by-step instructions to get it installed, activated and once that's done, how do I use it?


\begin{equation} \d{u} \left( t \right) = Z \end{equation}   Am I missing a package or what?

I'm trying to find the equivalent to \d (or \textsubdot) for the math mode.


The definition of Topological Space via open sets is :  A topological space is an ordered pair (X, τ), where X is a set and τ is a                    collection of subsets of X, satisfying the following axioms:  -The empty set and X itself belong to τ. -Any (finite or infinite) union of members of τ still belongs to τ. -The intersection of any finite number of members of τ still belongs to τ.   Why the intersection of any infinite number of members of τ is neglected by the definition ?

I was wondering if there is a reason why in the definition of a topologic space, the reunion of any collection of open sets is also an open set but the intersection has to be finite to be a set.  Is there because of the definition of an open set itself ? I have always seen it as a definition, but now I want to know why.  Thanks for your help.


As I read about database design from logical model to physical databases, I noticed that the column ordering may need to be changed the sequence recorded in the logical data model. The DBMS is SQL Server.My question is how columns ordering in sql server database table  impact performance ?  Thank you so much for answering! I REALLY APPRECIATE IT.

When defining a table, it's helpful to order the columns in logical groups and the groups themselves by purpose. The logical ordering of columns in a table conveys meaning to the developer and is an element of good style.  That is clear.  What is not clear, however, is whether the logical ordering of columns in a table has any impact on their physical ordering at the storage layer, or if it has any other impact that one might care about.  Apart from the impact on style, does column order ever matter?  There is a  about this, but it lacks an authoritative answer.


I've made an ExpandableListView with ArrayList as following:`  public void setChildGroupData() {      /**      * Add Data For TecthNology      */     ArrayList<String> child = new ArrayList<String>();     child.add("Java");     child.add("Drupal");     child.add(".Net Framework");     child.add("PHP");     childItem.add(child);      /**      * Add Data For Mobile      */     child = new ArrayList<String>();     child.add("Android");     child.add("Window Mobile");     child.add("iPHone");     child.add("Blackberry");     childItem.add(child);     /**      * Add Data For Manufacture      */     child = new ArrayList<String>();     child.add("HTC");     child.add("Apple");     child.add("Samsung");     child.add("Nokia");     childItem.add(child);     /**      * Add Data For Extras      */     child = new ArrayList<String>();     child.add("Contact Us");     child.add("About Us");     child.add("Location");     child.add("Root Cause");     childItem.add(child);   }   Now i want do do an action by triggering an if statement when some of the children is selected:  if(childItem.getText(childPosition) == "Java"){          mDrawerLayout.closeDrawer(drawerList);      }   However it is not working. I wonder if there's a way to get text from lets say child.add("Java"); so that if statement work and triggers an action?

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I am a beginner and I have a problem regarding Planck's Quantum Theory  The following is one of the postulate of Planck's Quantum Theory  1) The energy of each quantum is directly proportional to frequency of radiation.   Q.) What is the sense of the word "frequency" here, despite the fact that Planck's Quantum theory contradicts wave nature of Electromagnetic radiations? (Since, Frequency is defined for waves).

During emission spectrum $$\Delta E=h\nu,$$ where $\nu$ is the frequency. All books write that it is the frequency of photon, but photon is a particle and not a wave.  More than that what this frequency actually is? Is it the frequency at which energy packets are released?  This wave and particle nature is causing conflict!  What is the meaning of frequency of photon? I mean it is a particle and not a wave and frequency is a physical quantity associated with a wave.


I'm trying to use Excel with the INDEX and LIST functions (rather than VLOOKUP) as I am trying to return multiple results from one worksheet into another.  I've got close with the following formula: =INDEX(Sheet1!A2:AJ100,MATCH(B1,Sheet1!O2:O100,0),1) but it is only returning 1 result, how would I return the list of results within the Sheet1!A2:A100 range which match the content of B1 against the data in Sheet1!O2:O100 range?  The range of data I want to retrieve will be unique, the matching criteria won't be.  Multiple website about matching multiple criteria and returning 1 result, but very few about multiple matches to 1 criteria and returning all the results. Thanks

I'm looking to use Excel to look up and return multiple reference values for a given key. VLookup does something very similar to what I need - but only returns a single match.   I assume it'll involve array-returning and handling methods, though I haven't dealt with these before. Some Googling starts to lean on the if([lookuparray]=[value],row[lookuparray]) as part of a solution - though I can't get it to return a single match...  For example, if I have this reference data:  Adam    Red Adam    Green Adam    Blue Bob     Red Bob     Yellow Bob     Green Carl    Red    I'm trying to get the multiple return values on the right. (Comma separated, if possible)  Red      Adam, Bob, Carl Green    Adam, Bob Blue     Adam Yellow   Bob   (I already have the key value on the left - no need to pull out those values)  Any help as to how to approach handling multiple values in th this context is apprecited. Thanks.


I DM for a group of a group of rather intellectual players. They like to discuss the situations at hand and really try to do the right things. I use that a lot by posing them with moral questions and missions where the "good" solution is not always obvious or even contradicts the mission target.  So far this worked out very well, but last round a new player joined our game. She plays an impatient, man-hating Amazon (her self-chosen description). The man-hating part kinda does work since she frequently gets into arguments with the male players, which is funny, but the impatient part is the real trouble.  Whenever the group stops to discuss something, she interrupts and just wants to fight stuff. Whenever they talk (in character) about anything else than the mission she interrupts saying that it doesn't matter or doesn't help the group.  Also, whenever someone says anything against her, she does get a bit offended.  In the end of the mission I put a moral choice, where they had to retrieve a magical object, but by doing so kill a whole forest and everything within it. While the rest of the group was discussing it, and trying to find a different solution (of which there where some), she just went ahead and cut that object from it's socket, thus killing the whole forest. This in turn will have negative consequences for the group and the world they live in in the sessions to come.  I expected her to be like that so I included a couple of things where only thinking would get them ahead and just charging into fights would hurt them, but she doesn't care about consequences and just barges in.  Since she doesn't fit into the group at all, I'd usually just put her into another of my groups where she'd fit better, but she's the girlfriend of one of the core players of that group, so I can't do that.  I thought about having an NPC, that the rest of the group know, join the group and keep her in check every time she goes overboard again, but I fear that by limiting her I'd take the fun away for her.  My problem here is not that I don't want the players to commit mass murder. I have another group that is quite murderous and that's fine. The problem here is that I have a quite homogenous group and one player that really doesn't fit the group. It's not even so much about her murdering people (which can be quite fun in an otherwise good minded group) but that she is disrupting the kind of play that the other players want to have.  Do you have any ideas what I can do here?  This is not so much a My-Guy-Syndrome, but rather a clash of expectations. I talked to the player in question. It is really not about her "having" to stick to her character, but rather that her character reflects herself. She says of herself that she is impatient and that she rather wants to fight than to discuss. In the end she wanted to get transferred into my other group, which is more combat-oriented and generally more diverse.

I've been reading forum posts and blogs who mention "my guy" syndrome as a specific type of difficult player, but I can't seem to find a solid definition for the term. Can someone explain this particular kind of problem player to me? How do you deal with this kind of problem?


I read a book 10+ years ago where the world was ruled by various factions, each one had a special ability of some sort. The main characters faction had regenerative ability. Another faction had the ability to speed up or slow down time. I am not sure of the plot, but I know at one point he is injured so badly he starts growing a clone which he attempts to kill, but comes back later in the story.    Any ideas?

I read a book while in the US for a few months back in the early 1990s.  I remember liking the book, and only have loose bits and pieces in my head.  The main character was a male. I believe it started with him being horribly disfigured and was thrown of a ship. He discovered he could regenerate if seriously hurt. On his journeys he picked up new abilities (He learnt how to speed up and slow down time, just for himself). He could also travel through earth.  I remember a passage where he was with the people that could control time, there was a "statue" of a woman, but it was really a woman who lost someone and slowed down time so much that she appeared to be a statue for years..  I seem to remember some sort of twist with a spaceship at the end, but I might be mixing it up with something else.  I've been looking for this book for over 15 years now without any luck. Any idea what it is?


I have a setup in which I make AJAX calls to load the html files containing to be displayed data. Let's say the main page is index.html and I have two other pages: pages/1.html and pages/2.html. In index.html either 1 or 2 is set as content. My browser however caches both 1 and 2 and when I change either of them and reload the page it won't display the changes I've made because I didn't actually refresh 1.html or 2.html. How can I make it so that this is not an issue?

I have the following code making a GET request on a URL:  $('#searchButton').click(function() {     $('#inquiry').load('/portal/?f=searchBilling&pid=' + $('#query').val());             });   But the returned result is not always reflected. For example, I made a change in the response that spit out a stack trace but the stack trace did not appear when I clicked on the search button. I looked at the underlying PHP code that controls the ajax response and it had the correct code and visiting the page directly showed the correct result but the output returned by .load was old.  If I close the browser and reopen it it works once and then starts to return the stale information. Can I control this by jQuery or do I need to have my PHP script output headers to control caching?


I want to install Filmora video editing software on my Ubuntu GNOME 17.04. How can I do that?

Can .exe and .msi files (Windows software) be installed in Ubuntu?


When I plant the bomb in a Condition Zero match, how long does it take until it explodes?

In Counter-Strike, is there any count (in seconds/minutes) until the bomb explode when it's first set-up? And can the timing be modified?


I am trying to output the ps command to a file in /home/username/ps.txt.  I want to create the file on the go, write the output of ps to it and also read the same in a single command. I tried this:  ps > /home/username/ps.txt | less /home/username/ps.txt   It writes to the file after creating it but does not output it. But using less seperately gives proper output.   Could I perform this in a single command?

I have a script that outputs text to stdout. I want to see all this output in my terminal, and at the same time I want to filter some lines and save them in a file. Example:  $ myscript Line A Line B Line C  $ myscript | grep -P 'A|C' > out.file  $ cat out.file Line A Line C   I want to see output of first command in terminal, and save the output of the second command in a file. At the same time. I tried using tee, but with no result, or better, with .


Consider the vector space: $$ \mathbb{V} = \{ \ A \in M_{3 \times 3}(\mathbb{R}) \ | \ A^{T} = A \mathrm{\ and\ }\mathrm{Tr}(A) = 0 \} $$  As well as the Lie Group: $$ O(3) = \{ \ A \in M_{3 \times 3}(\mathbb{R}) \ | \ A^{T}A = A A^{T} = \mathbb{I} \} $$  Define the group action $\Phi : O(3) \times \mathbb{V} \to \mathbb{V}$ as $\Phi(A,X)= \Phi_{A}(X) = AXA^{T}$. I am to determine the group orbit$s$ of this action.  The way I am understanding this, is that I am to examine the structure of the set $$ S := \{ \ \Phi_{A}(X) \in M_{3\times 3}(\mathbb{R}) \ | \ A \in O(3), X \in \mathbb{V} \ \} $$  I know that symmetric matrices are orthogonally diagonalizable, which means that I can write $X = P D P^{T}$ for any $X \in \mathbb{V}$ (where $P \in O(3)$ and $D$ is diagonal and traceless).  This tells me that $\Phi_{A}(X) = AXA^{T} = APDP^{T}A^{T} = \Phi_{AP}(D)$, where $AP$ is just another matrix in $O(3)$. This tells me: $$ S = \{ \ \Phi_{A}(D) \in M_{3\times 3}(\mathbb{R}) \ | \ A \in O(3), D = \mathrm{diag}(a,b,c) \mathrm{\ with\ }a+b+c=0 \ \} $$  So the orbits of the whole vector space are exactly the orbits of the diagonal matrices in this subspace.  Can I narrow this down further?

Let $O(n)$ be the set of $3 \times 3$ orthogonal matrices, and $S$ be the set of traceless real symmetric $3 \times 3$ matrices.  Now  $O(n)$ will act on $S$ by conjugation. Note that by the spectral theorem $ \forall A \in S$ in the orbit of $A$ there is a diagonal matrix $D=diag(\lambda_1, \lambda_2,\lambda_3)$ with $\lambda_1\le\lambda_2 \le\lambda_3 $.  Determine the all the orbits of the action & the orbit space of the action.  What I've done:  Since all elements of $S$ are diagonlizable that the orbit of any element should be the orbit of its' diagonalized form because $\forall A \in S,   \exists P \in O(3)$ st  $PAP^t=D $ with $D$ a diagonal matrix and moreover for any other  $Q\in O(3)$ we get $QDQ^t=QPAP^tQ^t=(QP)A(QP)^t=RAR^t$.   And so would that imply the orbit space is just the set of traceless diagonal matrices as $tr(QDQ^t)=tr(DQ^tQ)=tr(Q)$ (cyclic property of trace) and $Q\in S$.  Any help is appreciated.


If it be your will / that I speak no more / and my voice be still / as it was before.  I would like to ask why there is used "be" insted of "is" in the first verse of Leonard Cohen's song. Is it just due to rhythm or does it have something to do with grammar?

Need we add that it be usable in the woods?   1, albeit an old one, contains an example of this odd way of writing. Where I would expect  "..that it would/could/may/should/... be", there is nothing! I feel there is some lost information in here.   Is this an ordinary way to express oneself nowadays, or is it more archaic, or "upper class"? Is there only one meaning to "it be"?   A Personal Computer for Children of All Ages - Alan C. Kay, Proceedings of the ACM National Conference, Boston Aug. 1972


I have made a main class as well to run it, but it is throwing out an NPE NullPointerException at the readFile() method. I'm not sure why this is occurring.  /* this code is to read from a file testfile.txt which is already made beforehand with data in it*/ import java.io.*; //imported files import java.util.*;  public class file_read {   private Scanner x; //for reading from file    public void openFile() {     try {       x = new Scanner(new File("testfile.txt"));     } catch (Exception e) {       System.out.println("error occurred");     }   }    public void readFile() { //error in this method(NPE)     while (x.hasNext()) {       String a = x.next();       String b = x.next();       String c = x.next();       System.out.printf("%s %s %s \n", a, b, c);     }   }    public void closeFile() {     x.close();   } }  public class file_read_main {   public static void main(String[] args) {     file_read obj = new file_read();     obj.openFile();     obj.readFile();     obj.closeFile();   } }   This is one class. The other class is already made having main() in it having object of this class as well as calling of the methods from the object.

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


If a sequence of positive integers $a_n$ satisfies $a_n=\sqrt{a_{n-1}a_{n-2}}$, then how can we show that $a_n\to(a_1a_2)^{\frac1{3}}$? I am unable to start the problem. The difference equation is non-linear with no hint of even whether the sequence converges. How  do we proceed in this problem? Any hints? Thanks beforehand.

We're given a sequence defined by the recursive relation: $$a_n = \sqrt{a_{n-1}a_{n-2}}$$  $a_1$ and $a_2$ are positive constants. We have to show the following:   The sequences $\{ b_n \} = \{ a_{2n-1} \}$ and $\{ c_n \} = \{ a_{2n} \} $ are monotonic, and if one is increasing, the other is decreasing. The limit of the sequence $\{ a_n \} $ is $ \left(a_1a_2^2\right)^{\frac13} $     Now, I have proved the first part. Besides that, I have also proved a few other things:  If $a_1 > a_2$, then:  a. $ \{ b_n \} $ decreases, and $ \{ c_n \} $ increases.  b. $ c_n < b_n $  If $a_1 < a_2$, we just flip $\{ b_n \}$ and $\{c_n\}$  Besides, I have also shown that both the sequences : $\{b_n\}$ and $\{ c_n\}$ have the same limit. What I don't know, is how to evaluate the limit.


I am building a map reduce job.  The problem is that comparing is not working correctly.  How can I compare these Strings?  public void reduce(Text key, Iterable<Text> values,         Context context) throws IOException, InterruptedException {      int numItems1 = 0;      for (Text val1 : values) {         if(val1.toString()  == "view")   /// if not working         {             numItems1 = numItems1+1;             numItems2 = 0;             numItems3 = 0;             result1.set( numItems1 );             // val1.set(   result1 + "," + numItems2 + "," +   numItems3  );         }     }      val1.set(result1 + ",");     context.write(key,val1); }

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


If I use a possessive apostrophe and then denote a term as an acronym i.e. "the US Government's (USG's)," I don't include the apostrophe after "USG," right? It just feels a bit odd when I don't, as if a term is plural one generally includes the 2nd "s" if denoting an acronym (i.e. Project Managers (PMs).

When expanding an abbreviation in parentheses, sometimes the thing that was abbreviate was used in a possessive context.  Consider the following example:     If the Giant Ostrich Bomb's (GOB) fuse is too short, you may be too close when it goes off and you may get kicked in the face.   Is the above correct, or should it be rewritten this way instead:     If the Giant Ostrich Bomb (GOB)'s fuse is too short, you may be too close when it goes off and you may get kicked in the face.   If this is a matter of style, do any of the popular style manuals have a recommendation?


Im trying to write an app that puts a string in a textview if there is a file in a given url, this is the code and the crash info, what could be the error?.  public class MainActivity extends AppCompatActivity {  String url = "https://images.pexels.com/photos/617278/pexels-photo-617278.jpeg?cs=srgb&dl=adorable-animal-blur-617278.jpg&fm=jpg";  TextView textView;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      textView.findViewById(R.id.textView);          try {             HttpURLConnection.setFollowRedirects(false);             HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection();             connection.setRequestMethod("HEAD");             connection.connect();              if(connection.getResponseCode() == HttpURLConnection.HTTP_OK){                  textView.setText("File Exists!!");              }          } catch (IOException e) {             e.printStackTrace();         }      } }      --------- beginning of crash   E/AndroidRuntime: FATAL EXCEPTION: main       Process: com.example.android.archivoexiste, PID: 6160       java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.archivoexiste/com.example.android.archivoexiste.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.widget.TextView.findViewById(int)' on a null object reference           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)           at android.app.ActivityThread.-wrap11(Unknown Source:0)           at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)           at android.os.Handler.dispatchMessage(Handler.java:105)           at android.os.Looper.loop(Looper.java:164)           at android.app.ActivityThread.main(ActivityThread.java:6541)           at java.lang.reflect.Method.invoke(Native Method)           at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)        Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.widget.TextView.findViewById(int)' on a null object reference           at com.example.android.archivoexiste.MainActivity.onCreate(MainActivity.java:23)           at android.app.Activity.performCreate(Activity.java:6975)           at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)           at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)           at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)            at android.app.ActivityThread.-wrap11(Unknown Source:0)            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)            at android.os.Handler.dispatchMessage(Handler.java:105)            at android.os.Looper.loop(Looper.java:164)            at android.app.ActivityThread.main(ActivityThread.java:6541)            at java.lang.reflect.Method.invoke(Native Method)            at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)    Application terminated.


I want to know if specific content is copyrighted, Where can I do ask a question?  It's about images

I want to make a summary of a book and use it to earn money. However, I don't know whether it's legal or not.  Which Stack Exchange site can I ask this question on?


When I run this command  lspci | grep "Wireless\|WiFi"   I got this result:  05:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter   How can I install a wifi driver for this chip?

I have installed Ubuntu 15.04 on my laptop with RTL8723BE Wi-fi card. But it is always disconnecting from network. I have tried echo "options rtl8723be fwlps=N ips=N" | sudo tee /etc/modprobe.d/rtl8723be.conf but that didn't helped. What can I do to prevent the wifi from disconnecting? If I upgrade to kernel 4.X, will it help?  ~$ lspci -knn | grep Net -A2  09:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]     Subsystem: Hewlett-Packard Company Device [103c:2231]     Kernel driver in use: rtl8723be   ~$ rfkill list 0: hci0: Bluetooth     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no   ~$ ifconfig && iwconfig && route -n && ping -c 1 google.com eth0      Link encap:Ethernet  HWaddr 38:63:bb:cd:4a:7e             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:3 errors:0 dropped:0 overruns:0 frame:0           TX packets:53 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:752 (752.0 B)  TX bytes:8445 (8.4 KB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:3870 errors:0 dropped:0 overruns:0 frame:0           TX packets:3870 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:314613 (314.6 KB)  TX bytes:314613 (314.6 KB)  wlan0     Link encap:Ethernet  HWaddr c0:38:96:6d:c4:83             inet addr:192.168.1.205  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::c238:96ff:fe6d:c483/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:15240 errors:0 dropped:0 overruns:0 frame:0           TX packets:14627 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:14410285 (14.4 MB)  TX bytes:2192744 (2.1 MB)  eth0      no wireless extensions.  wlan0     IEEE 802.11bgn  ESSID:"DIR-615"             Mode:Managed  Frequency:2.437 GHz  Access Point: 00:90:4C:08:00:0D              Bit Rate=150 Mb/s   Tx-Power=20 dBm              Retry short limit:7   RTS thr=2347 B   Fragment thr:off           Power Management:off           Link Quality=70/70  Signal level=-22 dBm             Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           Tx excessive retries:0  Invalid misc:186   Missed beacon:0  lo        no wireless extensions.  Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.1.1     0.0.0.0         UG    400    0        0 wlan0 169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlan0 192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0 PING google.com.Dlink (172.26.136.19) 56(84) bytes of data. 64 bytes from 19.136.26.172.in-addr.arpa (172.26.136.19): icmp_seq=1 ttl=249 time=102 ms  --- google.com.Dlink ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 102.547/102.547/102.547/0.000 ms


As we all know some  have errors when represented as floating point as witnessed here :  SELECT SUM( TEST )  FROM (  SELECT @N := @N +1 AS rownumber, 1/3 AS TEST FROM INFORMATION_SCHEMA.COLUMNS, (  SELECT @N :=0 )dummyRowNums LIMIT 3000 ) AS test   I have extensive use of rational numbers arithmetics in my system and im looking for an approach to make it as precise as possible, is there any out of the box solution to this?  Its not a duplicate of  as I'm asking how to do rational arithmetic right on mysql, while there they discuss why rational arithmetic is broken.

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


I was wondering if the word sans is correctly used in the following sentences: He was broke sans a few dollars. He was naked sans a shirt. Can it be used in more ways than simply the word without?

People often use sans, the French word for ‘without’ in English.   What I don’t get, is when should that switch be made. When should I say sans when I really want to say without. Are there any general rules regarding usage, or is it kind of a person-to-person basis/feeling of flowerness.


Say I have a file of filenames like this: requests.log responses.log resources used.log  and I want to view all of those files. I'd be tempted to do: $ vi `cat /tmp/list`  but that winds up opening the files "requests.log", "responses.log", "resources", and "used.log" which is not what I want. I tried $ cat /tmp/list | xargs -L 99 vi  but that results in the error message "Warning: input not from a terminal" I've tried editing the file and quoting each of the individual lines, but that was no help either. Is there a way to do this short of writing some sort of front-end script?

I've got this situation:  ./ ./myscript.sh ./arguments.txt ./test.sh   Inside myscript.sh, I have to run the file test.sh, passing to it the arguments contained inside arguments.txt.  myscript.sh is:  arguments=$(cat arguments.txt) source test.sh $arguments   This works well if if arguments.txt contains at most one argument:  firstargument    The substitution is:  ++ source test.sh 'firstargument'   But the problem is with two or more arguments. It does this:  ++ source test.sh 'firstargument secondargument'   Also, I don't know in advance the number of arguments inside arguments.txt. There can be zero or more.


"forced to make due with"  I don't know it doesn't sound right to me, is it grammatically correct?

When someone says "I'll make due" what does it mean?


I read the following :  Technically, online searches would stop looking for URLs  (the Uniform Resource Locator) and start looking for URIs (Uniform Resource Identifiers).   and I am wondering, what does that mean ? I understand the difference between URL and URI but I don't get this. How can I reach a server by just using URI ?

People talk about URLs, URIs, and URNs as if they're different things, but they look the same to the naked eye.  What are the distinguishable differences between them?


Hello ladies and gentlefolks,  I am trying to create a live USB running Ubuntu server. I have everything loading fine and dandy (after a lot of trial and error with the network) and everything is installing fine now. My question is where do I install grub? I am using my computer that runs Windows 10 by default on a 1TB hard drive, and I have been unplugging that so that I can guarantee that I don't screw that up. I have 1 USB as my installer, ande another USB as my drive to install everything on. Where should I install grub if I eventually want to plug my hard drive back in and use Windows 10?  Also: is there a way to clear out all partitions and completely reset a USB drive? Just formatting doesn't seem to be working for me.  Cheers!

I was trying to install Ubuntu live on a USB-drive with persistent changes. However i wanted to write the changes to HDD instead of USB for various reasons (Performance, Space).  I found out, that the changes are handled within a file with a ext3 file-system that is mounted by the system (casper-rw). But it seem to be auto-detected on flash-drive on startup.  How can i create a new casper-rw file on HDD and reroute the Ubuntu live system on the USB-drive to HDD?  edit 2015-07-14:  Thank you for the answers so far. They are very interesting and help a lot to understand the mechanics of the "live system persistent save feature" better, and show good approaches to solve the problem. Unfortunately i was trying to overcome some limitations that i had in mind when asking the question regarding access to the host system and/or access to new hardware i did not clearly state (sorry for that).  If partitioning is an option, i think the answer stated  is very good, since it only requires you to create a new partition, label it casper-rw and you're done (work's great, i tested it).  If buying new hardware is an option, usb3.0 Flash-Drive (MLC or SLC), portable HDDs, eSATA and other options come to mind that have a far better performance than an average USB2.0 flash-drive.  So i was wondering if there is a way to just create a casper-rw file instead of a partition on a disk with limited access to (or copy/link the one on the flash-drive).  This way it would be easy to just copy the casper-rw file back to the flash-drive and use it from there again or move it to an other computer, granting great flexibility, minimal changes to the HDD and easy removal of changes done to the system.


I installed the  package using the following command:  nathan@ubuntu:~$ sudo apt-get install jockey-gtk Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   jockey-gtk 0 upgraded, 1 newly installed, 0 to remove and 176 not upgraded. Need to get 3,228 B/3,228 B of archives. After this operation, 53.2 kB of additional disk space will be used. Selecting previously unselected package jockey-gtk. (Reading database ... 153816 files and directories currently installed.) Unpacking jockey-gtk (from .../jockey-gtk_0.9.7-0ubuntu13_all.deb) ... Setting up jockey-gtk (0.9.7-0ubuntu13) ...   But when I attempt to actually run the command:  nathan@ubuntu:~$ jockey-gtk The program 'jockey-gtk' is currently not installed. You can install it by typing: sudo apt-get install jockey-gtk   Why am I receiving this error message? I just installed the package!  This machine is running Ubuntu 13.04 64-bit - which I installed only yesterday.

zuber@zuber-pc:~$ sudo apt-get install jockey-gtk   Reading package lists... Done Building dependency tree        Reading state information... Done The following packages were automatically installed and are no longer required:   nvidia-common python-xkit Use 'apt-get autoremove' to remove them. The following NEW packages will be installed:   jockey-gtk 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/3,158 B of archives. After this operation, 53.2 kB of additional disk space will be used. Selecting previously unselected package jockey-gtk. (Reading database ... 156414 files and directories currently installed.) Unpacking jockey-gtk (from .../jockey-gtk_0.9.7-0ubuntu11_all.deb) ... Setting up jockey-gtk (0.9.7-0ubuntu11) ... zuber@zuber-pc:~$ jockey-gtk The program 'jockey-gtk' is currently not installed. You can install it by typing: sudo apt-get install jockey-gtk   And this not only occur with jockey-gtk. I have same problem with synergy(I did not tried with other software). Is it known problem or am I only one? How do I fix it?


How do I upgrade from Ubuntu 12.04 to Ubuntu 13.10. I have tried the one I this   I gives option to upgrade to 12.10 not 13.10  I want to directly upgrade to 13.10 from 12.04

I am currently using Ubuntu 10.04. I know there is a 10.10 release, but can I upgrade directly to 11.04? Could you walk me through the steps please?


I have a time string, say  str = "2018-09-23 14:46:55"   and an offset  offset = "0530"   I want to get str2 with offset added, ie  str2 = "2018-09-23 20:16:55"   Please guide.

I've got a huge list of date-times like this as strings:  Jun 1 2005  1:33PM Aug 28 1999 12:00AM   I'm going to be shoving these back into proper datetime fields in a database so I need to magic them into real datetime objects.   This is going through Django's ORM so I can't use SQL to do the conversion on insert.


Let $x,y \in K$ and $n \in \mathbb{N}$. Determine the rank of the following $n \times n$ Matrix:  $xI_n$ + $y\cdot \sum_{i\neq j}E_{ij}$ in dependence of $x$ and $y$.  $I_n$ is the identity matrix and $E_{ij}$ is the standard matrix.  The matrix has $x$ on its diagonal and the rest looks like a triangular matrix with $y$. So we are trying to find the number of linearly independent rows or columns. The standard procedure would be to find the echelon form and count the non-zero rows.   My first idea was to subtract the first row from the others, when I subtract it from a $3\times 3$ matrix I get a rank of $2$, when we take a $4\times 4$ matrix we get a rank of $3$, so maybe the rank of our matrix is $n$?

This question aims to create an ""  of numerous questions that ask about determinants of specific matrices (I may have missed a few):              The general question of this type is  Let $A$ be a square matrix of rank$~1$, let $I$ the identity matrix of the same size, and $\lambda$ a scalar. What is the determinant of $A+\lambda I$?  A clearly very closely related question is  What is the characteristic polynomial of a matrix $A$ of rank$~1$?


Please note that although there is a very similarly titled question  this question received no answers.  Let $p$ be an odd prime and $V_p\subseteq \mathbb P^2$ the variety $$V_p : X^2 + Y^2 = p Z^2 $$ I'm trying to show that $V_p \cong \mathbb P^1$ over $\mathbb Q$ if and only if $p\equiv 1\pmod 4$. The forward direction is easy: suppose $p\cong 3\pmod 4$. If $V_p$ is isomorphic to $\mathbb P^1$ over $\mathbb Q$ then $V_p (\mathbb Q) \cong \mathbb P^1 (\mathbb Q)$. But $X^2 + Y^2 = p Z^2$ has no solutions in integers and thus $V_p (\mathbb Q)=\varnothing$, and we know $\mathbb P^1 (\mathbb Q)\neq\varnothing$.  However I'm struggling to do the other direction because I can't cook up a good isomorphism $V_p \cong \mathbb P^1$ defined over $\mathbb Q$ when $p\equiv 1\pmod 4$. Can anyone help me out with this? Thank you!

I am having trouble with Silverman's exercise 1.10(b). The converse of (a) is easy because there is no integer solution to the equation when $p \equiv 3$ mod $4$. However, this method does not work for (b) because we always get empty set when intersecting whatever $V_p (p \equiv 3 $ mod $4)$ with $\mathbb{Q}$. I tried to intersect two varieties $V_p, V_q$ with something else, for example $\mathbb{Q}({\sqrt{p}})$ and try to tell the difference, but this is hard since it is very possible for $V_q$ to have nonempty intersection with $\mathbb{Q}({\sqrt{p}})$ and I think it is true that if so then $V_p, V_q$ are isomorphic over $\mathbb{Q}({\sqrt{p}})$. Are there some invariants I can use in this circumstance to show that two varieties are not isomorphic over $\mathbb{Q}$?


I have already checked out , but that didn't answer my query. I already know that from the De-Broglie wavelength equation we can say, $$p = \frac{h}{\lambda}$$ where $p$ is the momentum of the photon. But as a high school student I know that momentum is defined as $$\vec{p} = m\vec{v}$$ but photons aren't like normal particles, right ? Their rest mass is zero and they behave as both wave and particle (aka wave-particle duality). So, how can one define the momentum for massless objects ? PS : I had also checked :  but that didn't fully answer my query.

As an explanation of why a large gravitational field (such as a black hole) can bend light, I have heard that light has momentum. This is given as a solution to the problem of only massive objects being affected by gravity. However, momentum is the product of mass and velocity, so, by this definition, massless photons cannot have momentum.  How can photons have momentum?   How is this momentum defined (equations)?


When playing a Steam game that supports Trading Cards, you can receive a certain amount of trading cards which you can use to craft badges or sell on the Steam Market.  Does Steam give away these cards randomly, or do they give it away at set intervals (Ex. every hour a new card is given)?

Steam .  In order to get them, you're supposed to play specific games (currently there are  supported, but they've said more will come).  However, I can't figure out how to actually get the cards.  I played a bit of Portal 2, but didn't find any cards.  Do I need to find/pick up actual cards within the game?  Do I get them for completing certain objectives/achievements?  Do I need to beat the game?  How do I get cards?


I do not understand the difference between $\rightarrow$ and $\Rightarrow$. Sometimes I see implication truth tables labeled with the former, sometimes with the latter.  Aren't they synonyms of logical implication or is there any difference?

I was looking at an exercise where it asked the following:  $$\begin{array}{ccc} p&q&p\rightarrow q \\ T&T&T \\ &\ldots \end{array}$$  So, for the third column, I just put $T$ which was correct but I didn't understand what $\rightarrow$ meant. I have seen $\implies$ but I haven't the arrow. Are they the same thing?  Thanks a bunch!


In Deathly Hallows, Dumbledore says:     He took your blood and rebuilt his living body with it! Your blood in his veins, Harry, Lily’s protection inside both of you! He tethered you to life while he lives!   So was it the fact that Voldemort used Harry's blood in Goblet of Fire that tethered Harry, or something about Lily's enchantment made it so Harry could use this connection to come back?  For example, if Lily's enchantment no longer was active and disappeared, would the blood connection alone be enough to bring Harry back? Or is it something about her enchantment that allowed him to use the connection to go back into his body and live? Is it because Lily's enchantment exists on Earth that Harry can come back, and the blood is just the host for the enchantment? So is it the blood, or the charm that it carries?  Does Lily's enchantment have that capability? If it is because the blood, how is the enchantment relevant. Dumbledore makes it sound like the charm does have something to do with his ability to return.  Dumbledore made it confusing IMO by mentioning both, and not explaining how they correspond.

There are, of course, an incredible amount of theories on how Harry Potter survived. Problem is that the most important one, the one that is canon, is the one I don't get: how Harry's blood inside Voldemort saves him?  Because all that I have read so far, leaves me with questions. I understand why Voldemort wanted Harry's blood, but why does it save Harry? Why is that necessary to keep the sacrifice alive, while it's still inside Harry? And if Harry lost it at 17 (I have seen some different ideas on this as well), why does Voldemort still have it at 69 (give or take a few)?  To clafiry, the parts I'm talking about:     "For a fleeting instant, Harry thought he saw a gleam of something like triumph in Dumbledore's eyes"    (GoF, right after Harry tells Dumbledore that his blood now goes through Voldemort.)  And:     "He took your blood believing it would strengthen him. He took into his body a tiny part of the enchantment your mother laid upon you when she died for you. His body keeps her sacrifice alive, and while that enchantment survives, so do you"   (Albus Dumbledore in DH)  I just don't get why the blood transfusion thing suddenly gave Harry the chance to survive the whole thing, and it's never really been satisfyingly answered, not to my knowledge at least, as every answer I've read raises more questions.


I am using this jquery ajax script to grab values from checkboxes.  $('.cb_delete').click(function(){      //$(document).onclick('.cb_delete' , (function() {              var checkboxes_delete = [];          $('.cb').each(function(){               //if($(this).is(":checked")) {              if(this.checked) {                                checkboxes_delete.push($(this).val());               }          });          checkboxes_delete = checkboxes_delete.toString();          $.ajax({               url:"",               method:"POST",               data:{ checkboxes_delete:checkboxes_delete },               success:function(data){                    $('.echo').html(data);                    $('.dynamic-content').load('index.php .dynamic-content > *');             }          });       });   When click on the button with class cb_delete, data is send to php and it deletes the values. After the click, the page is dynamically reloaded. When checking again checkboxes and click on delete button, it does not work anymore. I first have to do a hard refresh, then check the checkboxes and then it works again.   How can i solve this problem?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Voldemort already knew he planned on making 7 Horcruxes - he asked Slughorn specifically about 7 and also the rocks on his window. So, why didn't he know Harry was one? Or surely he knew Harry would end up becoming one, inevitably meaning that he would die in the battle and life was pointless?

Harry: "He made seven Horcruxes?"   Dumbledore: "...Not seven Horcruxes: six. The seventh part of his soul, however maimed, resides inside his regenerated body..." (HP6, US Hardback, page 503).    I would think that Dumbledore had already known that there were 6 horcruxes:    the diary  Gaunt's ring  Salazar's locket Helga Hufflepuff's cup Nagini (the whole essence divided thing)   Now those are the five that he was sure of. He knew that when Riddle came to Hogwarts to ask for the DADA position, he was really there so he could hide a horcrux. (But he never got a chance to tell Harry that, right?) Did Dumbledore know of the diadem? Or did he just think Riddle wanted to hide the cup?   Did Dumbledore say there were 6 and not 7 because he didn't know about the diadem but did know about Harry being a horcrux? Or did he say there were 6 to ensure Harry didn't guess he was a horcrux? Sorry if this makes no sense.  I know that in the end there were 7 horcruxes and an 8th part of Voldemort's soul right?


Let $x_1,\ldots, x_n$ be positive integers. Use mathematical induction to prove that  $$\left(\sum_{i=1}^n x_i\right) \cdot \left(\sum_{i=1}^n \frac{1}{x_i}\right) \ge n^2$$ for all integers $n \ge 1$.  (Given Hint: For all positive integers $a$ and $b$, $\frac{a}{b}+\frac{b}{a} \ge 2$.)  Can anyone help? Thank you.

If $x_1,...,x_n$ are positive real numbers and if $y_k=1/x_k$, prove that $$\left(\sum^n_{k=1}x_k\right)\left(\sum^n_{k=1}y_k\right)\geq n^2.$$   I've been learning induction, and I've come across this problem that I really can't even break down and begin to think about. I've been told it has something to do with Cauchy-Schwarz, but I cannot figure out how to apply it. I would appreciate help figuring out how to go about and formulate this proof. Thanks!


The following fact is known:  If $a$ and $b$ are both irrational numbers, then $a^b$ can be a rational number.  Proof. Suppose $a^b$ is always irrational. Then $\sqrt{2}^\sqrt{2}$ is an irrational number, which in turn implies that  $\left(\sqrt{2}^\sqrt{2}\right)^\sqrt{2}$ must also be irrational. However: $$ \left(\sqrt{2}^\sqrt{2}\right)^\sqrt{2} = \sqrt{2}^{\sqrt{2}\times\sqrt{2}} = 2 $$    Now assume $a$ is a rational number and $b$ is irrational. I wonder if  $a^b$ can be a rational number. Any way to prove, or a reference maybe?

Can an irrational number raised to an irrational power be rational?  If it can be rational, how can one prove it?


As suggested in this thread   I tried to locate Desktop Window Manager Session Manager and also start it manual by net start uxsms. Same problem With Themes service. Seems that none of these services are pre installed on my Windows 10 version. Any chance to install them ?

I've updated from Windows 7 to Windows 10 and I miss the Aero Glass transparency that I had in Windows 7.   How can I enable this again?


I want to order query results by name, then on a specific table alphanumerically.  This works for all results by alphanumeric:  `ORDER BY 'name'+0 ASC"`;   But I need only table 'week' sorted alphanumerically, all other results alpha.  I have tried the following but not working:  ORDER BY name, week('name'+0) ASC";   Table week results should be like:  Week 1 Week 2 Week 3 Week 4 ... Week10   Not:  Week 1 Week 10...   See

Is there an elegant way to have performant, natural sorting in a MySQL database?  For example if I have this data set:   Final Fantasy Final Fantasy 4 Final Fantasy 10 Final Fantasy 12 Final Fantasy 12: Chains of Promathia Final Fantasy Adventure Final Fantasy Origins Final Fantasy Tactics   Any other elegant solution than to split up the games' names into their components    Title: "Final Fantasy" Number: "12" Subtitle: "Chains of Promathia"   to make sure that they come out in the right order? (10 after 4, not before 2).  Doing so is a pain in the a** because every now and then there's another game that breaks that mechanism of parsing the game title (e.g. "Warhammer 40,000", "James Bond 007")


Hello there Community, I'm modeling a simple blocky logo and want to inset and then extrude by exactly the same amount, but this doesn't happen. When I inset a face by 0.00115...  and extrude then by -0.00115, this happens:  What I want is something like this:  Am I missing something here? Is it a bug? Is it a feature? Any help is greatly appreciated.

I just found out about the Mesh Display : Length feature in the "N" panel (thanks to ) that allows one to measure the length of a face or vertice.  But my first encounter with this tool gives me complex feelings of love and hate, see how, as I was trying to measure the aspect ratio of this TV screen, I am getting WIDTH = 20.33 and HEIGHT = 37.57.  These values seem awfully wrong, since my betrusted eyes tell me the height should be shorter than the width.    I have tried measuring the single vertices as well, to identical results.


Wasn't sure why this suggested edit was necessary.  The only tag is  so I thought this should be picked up by our algos.  Tagging as bug but it may be a feature request.

I just noticed that the prettify language hint for questions tagged  has been changed to lang-default; it was lang-css before. While this allows HTML code blocks to be highlighted as HTML, unfortunately it prevents CSS code blocks from being highlighted as CSS. So now instead of , I now have to add lang-css to CSS code blocks!  What's the reason for this change? (Note, only developers and moderators have the ability to change the prettify language for a given tag.)  Also, if I try to change it back to lang-css, I get this prompt:     Setting a language to a value other than default should ONLY be done if the odds of a XML, Javascript, or HTML code block in the same post is very low,are you sure you wish to make this change?   And then I'm reminded of that question I asked not too long ago, linked above, regarding highlighting HTML code blocks in questions with lang-css, and then I cancel and step back on making the change.  Is there something else going on with prettify and HTML/CSS code blocks behind the scenes that I'm not aware of? It'd be great if a developer working on integrating prettify with the site could help me understand this.


I have been trying to get this trigger to work and it has been impossible... ugh... maybe you guys can help me.  I have created the following trigge with the help of some freinds under "Opporunity Products" triggers. The issue is that the second product is not being added automatically to the opportunity once the first product is added manually. I don't understand why it is not working. Can you guys help me please?  trigger Attempt1 on OpportunityLineItem (after insert) {     List<OpportunityLineItem> OpportunityLineItems = new List<OpportunityLineItem>();  for(OpportunityLineItem item: [    SELECT OpportunityId, Name     FROM OpportunityLineItem    WHERE Id = :Trigger.new AND Name = 'Car_Filter_Plus']) {         OpportunityLineItems.add(new OpportunityLineItem(             OpportunityId = item.OpportunityId,              PricebookEntryId ='01eE000000QopleIAD',             Quantity = 1,             UnitPrice = 25)         ); } }

I was trying to accomplish this through a trigger, but its not really working. Is there a way to get this done through Process Builder? If so, what is that process?  I'm trying to have ProductB being added to the opportunity automatically once ProductA is manually added to the opportunity.  Also, is there a way to have the $ amount of ProductB being 0.5% of ProductA?  Trigger that I have so far:  trigger Attempt1 on OpportunityLineItem (after insert) { List<OpportunityLineItem> oliList = new List<OpportunityLineItem>();  for( OpportunityLineItem item: [SELECT  OpportunityId,                                          Name                                  FROM    OpportunityLineItem                                 WHERE   Id = :Trigger.new AND                                          Name = 'NAME OF PRODUCTA'])  {   oliList.add(new OpportunityLineItem(     OpportunityId = item.OpportunityId,      PricebookEntryId ='01uA000000QPDldEAt',     Quantity = 1,     UnitPrice = 25)   );  }  Insert oliList; }


I just got this error message from some software     Request does not fall under your permitted scope. So you are not authorized to update the same.   This "the same" construction was particularly odd to me. I've been hearing it more and more in corporate contexts.    Can anyone explain where it comes from?  My instinct was that it was military phrasing (or other government/public agency).

I frequently use "the same" as in the following sentence.  I need the details of XYZ project. Could you please send me the same as soon as possible?  Is this grammatically correct? I have not been corrected till now, but I have not seen the usage from native speakers very much either. Update: Seems like my example sentence was ambiguous. Hope the following sentence is better.  I need the documents for the meeting. Could you please send me the same as soon as possible?


For about a year now, I have done most of my SO searching using the "Ask Question" button rather than search bar.  Case in point, this question:     How do I turn off this highlighting for HTML in PhpStorm?   Zero results in "search" but I found the answer in under a minute by "asking a question".  Anyone want to investigate and maybe improve the ordinary search tool? Not a big problem as I now know how to help myself if need be. I mostly arrive at SO having asked a general question in Google.

When I search for similar questions that I am going to ask, I usually can't find anything through the search box on Stack Overflow. But when I enter my question on the "Ask Question" page, the questions suggested through the "Questions with similar titles" box are usually relevant. Do you experience the same thing?


Information can never be lost. But what does it mean when it's said that information can't be cloned?

I am trying to get an intuitive idea of how the  affects Quantum computation. My understanding is that given a qubit $Q$ in superposition $Q_0 \left| 0 \right> + Q_1 \left| 1 \right>$, NCT states another Qubit $S$ cannot be designed such that $S$ is equivalent to the state of $Q$.   Now the catch is, what does Equivalent mean? It could mean either that:   $S = S_0 \left| 0 \right> + S_1 \left| 1 \right>$ such that $S_0 = Q_0, S_1 = Q_1$. Or it could mean that $S = Q$, meaning that if $S$ is observed to be some value ( for example 0) then $Q$ MUST be that same value, and vice versa.    So it seems that point 2, occurs anyways in entangled systems (particularly cat-states), so I can eliminate that option and conclude that that No Cloning states, given a qubit $Q$, it's impossible to make another qubit $S$ such that:  $S = S_0 \left| 0 \right> + S_1 \left| 1 \right>$ such that $S_0 = Q_0, S_1 = Q_1$.  Is this correct?


Here's and example of what I have which italicizes everything: \begin{equation}  \lambda = c/f = (3x10^8~m/s)/2x10^8~Hz = 1.5~m \end{equation}

I know there are a few packages related to typesetting units:   unitsdef units, which can be seen as a "base package" used by unitsdef SIunits siunitx, which is the successor to SIunits maybe others? like cjwunits and hepunits   What is the difference between them? Do they also work inside Math mode? And, more importantly, which one should I use?  Suggestion for people trying to answer this question: show some examples of how to typeset both simple and complex units. For instance, try typesetting these items:   100 Celsius 3 x 10^5 km/s gravitational constant is measured in N m^2/kg^2 10 kHz = 1 s^{-4} sin(x) meters   I think these examples cover most needs when writing scientific texts: simple measurements (value + simple unit), values written in scientific notation, simple fractional units, complex fractional and squared units, units without any value accompanying them, units with arbitrary exponents, and arbitrary math code instead of a simple value.


I have a table with three columns.  I want to write a query which joing all the values present in the 3rd row and merge it in a single value seperated by commas.  ex -   Table A   +------+------+------+ | Col1 | Col2 | Col3 | +------+------+------+ |    1 | A    | AB   | |    2 | B    | BC   | |    3 | C    | CD   | |    4 | D    | DE   | |    5 | E    | EF   | |    6 | F    | FG   | +------+------+------+  Result I want :   AB,BC,CD,DE,EF,FG   PS: I am using MS SQL server 2008

I'm trying to migrate a MySQL-based app over to Microsoft SQL Server 2005 (not by choice, but that's life).  In the original app, we used almost entirely ANSI-SQL compliant statements, with one significant exception -- we used MySQL's group_concat function fairly frequently.  group_concat, by the way, does this: given a table of, say, employee names and projects...  SELECT empName, projID FROM project_members;   returns:  ANDY   |  A100 ANDY   |  B391 ANDY   |  X010 TOM    |  A100 TOM    |  A510   ... and here's what you get with group_concat:  SELECT      empName, group_concat(projID SEPARATOR ' / ')  FROM      project_members  GROUP BY      empName;   returns:  ANDY   |  A100 / B391 / X010 TOM    |  A100 / A510   So what I'd like to know is: Is it possible to write, say, a user-defined function in SQL Server which emulates the functionality of group_concat?   I have almost no experience using UDFs, stored procedures, or anything like that, just straight-up SQL, so please err on the side of too much explanation :)


I have a JSON object that I get from a PHP script using the JSON_ENCODE method.  My JSON:  [{"0":"1","field_name1":"1","1":"fieldValue1","field_name2":"fieldValue2","2":"0","field_name3":"fieldValue3","3":"1","field_name4":"fieldValue4"}, {"0":"11","field_name1":"1","1":"fieldValue1","field_name2":"fieldValue2","2":"0","field_name3":"fieldValue3","3":"1","field_name4":"fieldValue4"}]   I want to be able to access my field names and my field values via a loop for loop or via an each function , I can use JavaScript or JQuery, but I don't know how to do it, can you help me?   EDIT : I already tried the answer on this question :    it gives me this output :   [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval.


Evaluate the sum $\sum ^{\infty}_{n=1} \frac{1}{n^2+a^4}$  I don't to know how to processed this problem. Can any one help with problem please. thanks

Does anyone know the general strategy for summing a series of the form:  $$\sum_{n=1}^{\infty} \frac{1}{n^2 + a^2},$$  where $a$ is a positive integer?  Any hints or ideas would be great!


Unfortunately, I cannot write a better title for the question.  I am trying to parametrize my workflow, where I will allow myself to override page margins from the command line with the following:  xelatex "\newcommand{\mygeometry}{margin=2cm}\input{myfile.tex}"   Where in myfile.tex I have the defaults and actual application using \newgeometry command:  \providecommand{\mygeometry}{margin=3cm}  % ...  \newgeometry{\mygeometry}   I get the following error when trying to process this:  ! Package xkeyval Error: `margin=2cm' undefined in families `Gm'.   As I understand, geometry uses xkeyval to parse arguments in its command set, and the kind of constructs like \newgeometry{\myargs} do not work as intended, because the value of \myargs is somehow not parsed by xkeyval, instead being understood verbatim, with = sign not having any effect, i.e. being interpreted as part of the argument(s).  How can I fix this? I would like to pass custom geometry to my .tex from command line, this has to do with me needing to produce different versions of the layout for different intentions.  Everything works if I simply use \newgeometry{margin=2cm}, i.e. substitute the value myself in the file.

I currently have several environments from mdframed that have a large number of options that are shared between them. The situation looks like  \newmdtheoremenv[options0,options1]{env1}{Environment 1} \newmdtheoremenv[options0,options2]{env2}{Environment 2} \newmdtheoremenv[options0,options3]{env3}{Environment 3}   etc., where in place of options0, etc, there are a long list of various options like backgroundcolor=red!1, leftmargin=0.5in, etc. I would prefer not to write out all the arguments in options0 repeatedly for each of these environments, and I was wondering if I could use a macro to do this. I tried  \newcommand{\myopts}{options0} \newmdtheoremenv[\myopts,options1]{env1}{Environment 1} \newmdtheoremenv[\myopts,options2]{env2}{Environment 2} \newmdtheoremenv[\myopts,options3]{env3}{Environment 3}   but it did not work, telling me that there is a Package kvsetkeys error. Any suggestions?


Trying to learn Java. I am working on arrays. Here is a simple program that the output is not being displayed as I want it to be. package arrays2;  public class Arrays2 {      public static void main(String[] args) {         int[] userAge;         userAge = new int[] {22,24,26,27,28};         System.out.println("The ages of my friends are " + userAge + ".");              }      }   The output shows: run: The ages of my friends are [I@15db9742. BUILD SUCCESSFUL (total time: 0 seconds) Shouldn't the output be displayed as: The ages of my friends are 22,24,26,27,28.

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


If $p$ and $8p^2+1$ is prime number than $$8p^2+2p+1$$ is prime number proof.  I know that prime number can write as a multiply 1 and $8p^2+2p+1$, so if I show that this number is a multiply $a*b$ where $a\not=1$ and $b\not=1$ than that is not a prime number, can someone help me?

If $p$ and $p^2 +8$ are both prime number, prove that $p^3 +4$ is also prime.   I was thinking using two cases for even and odd. So $p$ is even thus there is no prime, the statement does not hold. So, $p$ is odd, $p$ has to be of the form of $2k+1$.   let $p=2k+1$ which is prime  $(2k+1)^2 + 8 = 4k^2+4k+1+8 = 2(2k^2+2k+4)+1$ which is prime   so $(2k+1)^3 +4 = 8k^3+12k^2+6k+1 +4= 2(4k^3+6k^2+3k+2)+1$ which is also prime.   is that all that i need to show


I recently downloaded and created Ubuntu 14.04 32 bit using Unebootin. The process was successful,but after reboot the screen is stuck with Syslinux screen forever. I tried numerous times,but everything ended in vain. Any help folks !!.

I tried to use the usb-creator.exe from Ubuntu 10.10 desktop i386 ISO image and it does create an USB stick that doesn't boot. When I try to boot from it I get:     Operating System not found.   I try to do this from Windows 7 x64. I'm not looking to create a live Ubuntu media, only an installation USB disk.  I repeated the process several times and I even tried to reformat the USB drive (FAT32), no success yet.  The USB stick is a 8GB one.


I'm using libSVM for binary classification and my training data is very unbalanced (-1:90%, +1:10%). According to libSVM's documentation, it's better to set different penalties for positive and negative classes. For example, the SVM problem is:  $\min\limits_{w,b,\xi}  \frac{1}{2}{\bf w^Tw} + C^+\sum\limits_{y_i=1} \xi_i + C^-\sum\limits_{y_i=-1} \xi_i$    My question is which penalty should be larger and why. Thanks

I want to attempt to use Support Vector Machines (SVMs) on my dataset. Before I attempt the problem though, I was warned that SVMs dont perform well on extremely unbalanced data. In my case, I can have as much as 95-98% 0's and 2-5% 1's.   I tried to find resources which talked about using SVMs on sparse/unbalanced data, but all I could find was 'sparseSVMs' (which use a small amount of support vectors).  I was hoping someone could briefly explain:   How well SVM would be expected to do with such a dataset   Which, if any, modifications must be done to the SVM algorithm What resources/papers discuss this