For a school assignment, I need to write an essay comparing the novel Norwegian Wood by Haruki Murakami to a film with a similar theme.   Over the course of the novel, the main character is torn with sadness, feeling responsible for his love of a girl which is now in a mental hospital, the suicide of an old friend, and the uncomfortability of growing into adulthood. The novel focuses mainly on its characters' thoughts and feelings due to past events (usually ones of sadness, a lust for another's warmth, or loneliness) rather than the events themselves.  In fact, almost all of the characters in the novel have some sort of life event which causes them to be haunted with sorrow for many years (for example, the suicide of a loved one), and each of them handle this emotion differently, either isolating themselves, ignoring them, or trying to face them. This is the theme I want to use as the point of comparison in my essay, how people handle their sadness, but I can't seem to find a corresponding film.  I've never really been into watching too many movies, I've been spending hours looking for a corresponding movie (that's not the official live action film) with no avail.   Is there any movie concentrating on the described themes?

As a general case, how can I find movies or TV shows similar to an existing movie or TV show that I like?


I have this problem with my redstone. Im trying to build a trapped chest piston trap, but 3 of the pistons will just not deactivate. it stays powered even when its not connected to anything. is there any way to stop this?

To reproduce this problem make layout like this and then power the piston. Once the piston is extended, removing the power source will not retract it:    Since piston head block is transparent, I see no explanation for this. Also, even if it wasn't transparent, it still wouldn't power a piston. For example this doesn't power the piston:    But if I place redstone and THEN place the piston, it's powered:    It also remains powered no matter what, as long as there isn't a block update event:    I suppose this behavior can be used to make a block update detector, but in my case this sucks. I wanted such setup for automatic smooth stone generator (without any clocks):    But due to this bug, it won't work - the piston will be always extended.


If there is an n-by-n matrix, each element in the matrix can only be 1 or 0. We assume that an n-by-n matrix is nonsingular, then we do the two's complement at only the diagonal of the matrix. After I do the two's complement at the diagonal, an n-by-n matrix is still nonsingular. How many numbers of this kind of matrices can be found in an n-by-n matrix??? Can we derive a general formula?? If n=2, I can derive the number of this kind of matrices is 2, n=3, the number of this kind of matrices is 48. But I have no idea whether it exists a general formula when we expand to the n-dimensional matrix.

There is an invertible $n×n$ matrix with each entry $0$ or $1$. Now we negate ($x\to 1-x$) the diagonal of the matrix, and it is still invertible. How many such matrices exist for a given $n$?  Can we derive a general formula? If $n=2$ there are $2$ such matrices, if $n=3$ there are $48$. But I have no idea whether a formula exists for higher $n$.


How do you call someone who turns to force to impose their view?  That is how I call you, and I think it is time for a change.  Consider how SE works:   You are the one that built a platform -- thank you for that.  We are the ones that produce the content.  We try to do so freely, democratically, out of our needs, passion, and interest.  You are the one that profits economically on the content that we create -- thank us for that, maybe?   The issue with this balance is that you structured the platform to give yourself absolute ruling power, and while pretending to allow us some freedom and democracy, you haven't hesitated in showing it to us on multiple occasions. I do not think it is a healthy relationship when you can push your agenda on the rest of us, and we can barely write a complaint to show our disappointment.   Regardless of the specific topic of the particular abuse, the issue is that you took no significant action towards a change. There could have been many things you could have done to improve our relations:   Separate your activity from ours. You do that one thing that you know how to do, and that is to build and maintain the platform. We freely and democratically organise ourselves, elect our representatives, and contribute to our shared knowledge. Give us the full power to undo the effects of your abuses and to veto any further action that you may wish to take on members of our community, and on its content. Open any decisions that may affect our participation in the platform to referendum votes, as it is done in all respected democracies around the world. Accept that if you wish to partake in the community, you may do so as any other user with limited privileges unless elected to a position of power by the community itself.   You have done nothing of it, and that is where the line is drawn. All the rest, apologies, promises, chit-chats, mea culpas, and excuses... they are just cheap words in the air.  More action, less talking.

There's no need to  the  that have led to a lack of trust between  of  and . Suffice it to say that astoundingly they continue to assert that  and, instead of apologizing and reinstating Monica have demanded that she go through a process with no transparency, due process, or involvement from the community.   Has the time has come for Stack Exchange, Inc to spin off the community and all the data needed to keep the sites running to a separate non-profit, who would then in turn license the software from the company?  What's in it for the community?   The community can practice self determination for issues from as basic as the number of moderators they have to as fundamental as the policies they enforce. If the company development continues to be unresponsive to the community's needs, the community would be able to develop its own open source software that would meet its needs. They can find their own funding model instead of having ads imposed on them.   What's in it for the company?   Community actions will no longer reflect on the company. Interaction with the community as a customer may come more naturally to current leadership than the present paradigm. They don't have to worry about paying for the community's operating expenses. They can focus on doing one thing well.


I have installed UBUNTU 13.04 32bit,afer installing CCSM and NVIDIA drive,Unity launcher,top panel,Dash and title bar disappeared. Now what should I do?

When I login, nothing happens.   I am presented with my desktop wallpaper.    No Dash, no Launcher, nothing.


In Afrikaans, it is considered very disrespectful to use "you" ( "jy") when referring to someone who is above the level of a peer. Instead,  it is expected that you use "u", which is a very respectful form of "you". Also you can talk in the third person "How is ma'am today" would be the equivalent.   I cringe internally when I say "How are you" to someone older than me, because in Afrikaans it would be very rude. I was bought up to only ever refer to my parents in the third person. "how is mom today", "what is dad doing" when speaking in Afrikaans.  The lack of English equivalent feels very wrong and disrespectful.   What is the best way to convey this in English?  I have been reassured that saying "you" to a parent isn't rude, and I understand that this can be cultural, but I'm particularly looking for what options English offers in this regard, as far as existing vocabulary, that convey respect. I'm in South Africa.

From the top of my head, Danish "De" (practically never used), German "Sie", Chinese "您", French "vous", Spanish "usted" are a formal way of addressing someone, especially if one isn't familiar with the addressee. Did English ever have this? It sounds as though Proto-Indo-European might have had this (based on my 4 examples), but perhaps someone can enlighten me?


I have a json like this:  [ {"numbers":["1","2","3","4"],      "city":"Tokio",      "color":"blue",     },      {"numbers":["5","6","7","8"],     "city":"Tokio",      "color":"green",     },      .........   ]  and i need to convert to another json with javascript like this: [ {"numbers":"1,2,3,4",      "city":"Tokio",      "color":"blue",     },      {"numbers":"5,6,7,8",     "city":"Tokio",      "color":"blue",     },      .........   ]  so, i need to convert the array of numbers in a string, any idea? Thanks in advance.

I have a one-dimensional array of strings in JavaScript that I'd like to turn into a comma-separated list. Is there a simple way in garden-variety JavaScript (or jQuery) to turn that into a comma-separated list? (I know how to iterate through the array and build the string myself by concatenation if that's the only way.)


I am doing a tutorial for homework, which is to build an Instagram app. The tutorial is about two years old and I am having some problems with the coding.  I am having the following error and am not sure why.    java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Context android.content.Context.getApplicationContext()' on a null object reference   My UniversalImageLoader class  public class UniversalImageLoader {      private static final int defaultImage = R.drawable.ic_android;     private Context mContext;      public UniversalImageLoader(Context context) {         mContext = context;     }      public ImageLoaderConfiguration getConfig(){         //File cacheDir = StorageUtils.getCacheDirectory(mContext);         ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(mContext)//<--the error is in this line                 .memoryCacheExtraOptions(480, 800) // default = device screen dimensions                 .diskCacheExtraOptions(480, 800, null)                 .threadPriority(Thread.NORM_PRIORITY - 2) // default                 .tasksProcessingOrder(QueueProcessingType.FIFO) // default                 .denyCacheImageMultipleSizesInMemory()                 .memoryCache(new LruMemoryCache(2 * 1024 * 1024))                 .memoryCacheSize(2 * 1024 * 1024)                 .memoryCacheSizePercentage(13) // default                 .diskCacheSize(50 * 1024 * 1024)                 .diskCacheFileCount(100)                 .diskCacheFileNameGenerator(new HashCodeFileNameGenerator()) // default                 .imageDownloader(new BaseImageDownloader(mContext)) // default                 .defaultDisplayImageOptions(DisplayImageOptions.createSimple()) // default                 .writeDebugLogs()                 .build();          return config;     }   in HomeActivity:(and OnCreate)[in every Activity I call it like this]  initImageLoader();    private void initImageLoader(){         UniversalImageLoader universalImageLoader = new UniversalImageLoader(mContext);         ImageLoader.getInstance().init(universalImageLoader.getConfig());     }

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?


I have almost solved the question but I am stuck in the last part we know $X_1 , X_2,......,X_{(n-1)}$ and $Y_1, Y_2 ,.....Y_{(n-1)}$ can be filled only in one way, so the question reduces to filling the $(n-1) \times (m-1)$ table with $±1$ with out any condition i.e $2^{(n-1)(m-1)}$ but what about the green ( right bottom) box how can we fill that box?

How many $m\times n$ tables are there if they are subject to the following two conditions?    In each cell of the table we have $1$ or $-1$. The product of all the cells in any given row and the product of all cells in any given column equals $-1$.    I already know if Parity of $m$ and $n$ are different there is no such a table. what is the answer in general?


cmd+tilde does not work as the key below Esc is mapped to '<' character on my layout. I cannot find any preferences to remap this. Franky I am surprised this does not work, this mapping should be bound to a key and not a character. Is this a bug that should be opened at Apple? Thanks

I opened two Google Chrome windows (because I am using multiple Gmails) and when I do the Cmd ⌘ Tab ⇥ shortcut it just shows me other applications that I opened but does not show me the other Chrome windows that are already opened.  How to switch to the other Google Chrome window that I opened using keyboard shortcut?


Imagine firing one electron at a time at a double slit. Clearly the wave function interacts with the atoms of the material, and presumably many electrons do not pass through. Why does decoherence from these interactions not spoil the experiment? The question has been asked , but there is no answer Edit, to clarify the question: since the electron wave function interacts with the atoms of the material in which the double slit is cut, I naively expect that decoherence would make the system classical,  no matter how carefully the experiment is set up. I must be misunderstanding the decoherence mechanism that prevents macroscopic systems being in quantum superpositions. The question is, why doesn't this decoherence spoil the double slit experiment? Can anyone explain why decoherence ensures Schrodinger's cat is alive or dead, but does not ensure the electron goes through one slit or the other?

If we shine light on an electron wave passing through a double slit then the interference pattern is destroyed. This is now understood as decoherence coming from interaction of the electrons with light.   What I do not understand is why decoherence doesn't occur from the material making up the barrier (in which we have the slits). I mean why do we need the light to cause decoherence and why in the absence of the same does the electron behave like an isolated system?


Occasionally I come across methods with an uncomfortable number of parameters.  More often than not, they seem to be constructors.  It seems like there ought to be a better way, but I can't see what it is.    return new Shniz(foo, bar, baz, quux, fred, wilma, barney, dino, donkey)   I've thought of using structs to represent the list of parameters, but that just seems to shift the problem from one place to another, and create another type in the process.  ShnizArgs args = new ShnizArgs(foo, bar, baz, quux, fred, wilma, barney, dino, donkey) return new Shniz(args);   So that doesn't seem like an improvement.  So what is the best approach?


I'm running Ubuntu 18.04 on a Toshiba Satellite C55-A and trying to upgrade to 20.04. Software Updater first gives a "Failed to download repository information" message but I continue on.  My internet connection is fine.  Then I get a notice that third party sources are disabled.  Then I get 404 errors. I've also tried the upgrade via the terminal and get the same results. Please help. This is an edit. Thanks for the suggestion @Matthew.  This would have done it. It turns out that the mirror I'd been using for years was not able to handle the upgrade.  This old mirror had at one time been the optimal one for me but something changed along the way. Hope this info helps somebody and Thank You to you good folks.

When I run software updater it says that it failed to download repository information and to check Internet connectivity.  I have Internet connectivity.  How do I fix this?  editing to add content of sources,list:  sorry I can't figure out how to paste in the content of sources.list without making a huge mess.  Some of it previews as really large bold print.  I tried to follow the block quoting and code rules but it is a huge mess anyway.


Now I have truly seen everything. The community user does a lot of things, but editing answers to add information? Now that is truly bizarre. What am I talking about? Have a look at the revisions to  question. Yeah, that's right - the community user suggested an edit that adds to the answer. What is going on? Do we need to fear the new intelligent bots? Should we run for cover... or should we try to get rid of it? A plausible explanation of what happened here would be great if nobody can think of a good defense strategy.

When clicking "edit" I see:  Your edit will be placed in a queue until it is peer reviewed. We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.  Like:     Likewise, when I am not logged in, clicking "improve this question" or "improve this answer" shows:  You are not . Your edit will be placed in a queue until it is .  And when I click 'Save', I get:  Thanks for submitting an edit. It is only visible to you until it's been approved by trusted community members  Like:     Who can suggest an edit? Where do suggested edits go? Who can vote on a suggested edit? How do suggested edits get reviewed? Can I earn reputation? What about abuse or bad edits? Sometimes the Community user approves or rejects my edit. Why is that? When can I not suggest an edit? Is there a minimum change requirement for a suggested edit? How do I check my suggested edit history? I disagree with the reasons why my suggested edit was rejected. What can I do? How do I know whether there are edits waiting for review? Someone suggested an edit to my own post, and the reviewers took the wrong action. What can I do? Are tag wikis included in this scheme? What do the "Improve Edit" and "Reject and Edit" buttons do? Why are apparently valid links to rejected edits resulting in 404 errors?   For more information about editing, see "" in the .


An engineer has been shot, he was working on creating AI. His neural connections were broken and some kind of robot helped him to repair neural networks. The robot has micromanipulators each of which could split into two which were twice smaller (like a recursive tree structure), then he started to work on AI, created brain-computer interface through these manipulators. Then, using this brain-computer interface with help of the robot he created AI. And they started to share mind with this AI through the brain-computer interface.  Meanwhile, the engineer was becoming more and more senseless while the robot (AI) instead started to be more and more human.  I read it about 5 - 10 years ago. It was quite short I was able to print it. And in my opinion, at that time, it was new.    PS: Some american scientist with a Japanese last name was editor of this book.

I'm trying to remember the name/author of a novel I read a few years ago.    The basic premise is the main character wakes up after being in hospital, to find a chunk of brain missing from a gunshot wound and a cybernetic implant being used to connect the missing synapses.    The main character was the actual developer of the tech, and during the course of the novel he gradually works out who tried to kill him and stole the tech.  The thief/attempted killer re purposed the tech as a robotic pest controller to try and patent the overall tech without being obvious it was the stolen tech.  I think the novel was written in the early 2000's.


Is it posible to define a structure with a pointer to that type of structure? What I mean is:  typedef struct {     char* name;     node* parent; } node;   As far as I tried or read, I don't know how to do this or if it's even possible.

How can I have a pointer to the next struct in the definition of this struct:  typedef struct A {   int a;   int b;   A*  next; } A;   this is how I first wrote it but it does not work.


I am reading a file Java, using this code :  File file = new File(--path-);  Scanner reader= new Scanner(file);  while(reader.hasNext()){      // i want to add here if reader.Next() == emptyline     // I tried if reader.Next()=="" but it did not work.  }   thank you all

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


I left a 5 pound block of sliced white American cheese in my car all day it was hot out like 75/80 it was very soft I put it in the frig is it still good to eat

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


I have a shapefile which contains a 20 hectare polygon. I want to demarcate 9,48 hectares from the entire polygon with a parallel.  I can make the parallel line with the longer line but I can not do the incision...  Can you help me how to do the incision?

I am new at using QGIS. How can I simply split features in QGIS? The manual tells to simply draw a line through the polygon you want to split. But it doesn't work. The line disappears when finishing it. When I select the polygon and then split it, it sometimes works and sometimes doesn't (an info appears after which it does not split the feature). Does anybody have an idea why the tool does not work properly?


I was recently typing up a short story essay when my computer's spelling & grammar check informed me that the sentence "What kind of things are in there?" should be written as "What kind of things is in there?" I am not sure which one is grammatically correct to use. I am sure, due to subject-verb agreement that my original was correct, but I am not sure.

Is it correct to say, "What kind of patents are being issued in these sophisticated times?" It seems like it should be What kind of patents is being issued..., but that sounds wrong.  What kind of patent is being issued... is correct and sounds right, but loses a little bit of the original meaning.  Is there something magic about what kind that allows it to be plural, or do people just misuse it a lot?


I am creating a drow ranger. They're at 3rd level, and it's my first time playing.  Their attack score is proficiency + ability + other bonuses.  They have Drow weapon training which includes shortswords, rapiers, and hand crossbows. My ranger class gives me simple & martial weapons training.  Does that mean their attack score is (2+2) + ability + other bonuses?

In D&D 5e it is possible for a character to receive proficiency in the same skill, tool, weapon and/or armor more than once via Class, Race, and/or Background.   Do any of these proficiencies stack, thereby allowing a character to receive their proficiency bonus more than once?


I am using the following code:  \documentclass[11pt,a4paper,twoside]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel}  \usepackage{mdframed} \theoremstyle{definition} \newmdtheoremenv[linewidth=1.1pt]{Definition}{Definition}[chapter]  \begin{document}  \begin{Definition} (blah blah)\newline Text... \end{Definition}  \end{document}   which produces    Is it possible to reduce the space between the first line of text and the upper black line?  Thank you in advance!

I have seen several similar questions on TeX.SE of a similar nature, but none of them seem to address my precise issue. I have been working with mdframed environments for a while. I read that there were some issues with older versions, so I updated to the latest version, 1.9b, but it seems to have introduced a spacing issue that I did not have before.  \documentclass{article} \usepackage{amsthm} \usepackage{mdframed}  \theoremstyle{definition} \newmdtheoremenv{definition}{Definition}  \begin{document}  \begin{definition} This is a definition. \end{definition}  \end{document}   The output, zoomed in, is seen here:    There is more vertical space above the contents than below. This only began after I fully updated my TeX distribution, so I assume that this possibly changed how mdframed works. Any ideas? Obviously I can manually change the spacing to fix this, but I'm looking to diagnose the problem, if there is one. Thanks in advance.


i am getting serious error in the production server when i deploy for the first time. Please find the below PDO exception which i am getting.  PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away in variable_set() (line 977 of /var/www/htdocs/includes/bootstrap.inc).   I am not allowed to increase allowed packet size and wait timeout in the mysql end, because multiple sites are running on the DB and such a way we are not allowed to change php.ini also.  Is there any other solution for this problem I am facing this issue with the client for past one week not it has been very critical for me.  Could anyone please help me out to get ride of this issue? Thanke in advance.

Recently I started getting an error every time I try and add a content no matter what type.  This is the error that shows up in the browser:     Additional uncaught exception thrown while handling exception.        Original   PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT COUNT(cid) FROM {comment} WHERE status = :status; Array ( [:status] => 0 ) in comment_count_unpublished() (line 313 of /Applications/MAMP/htdocs/modules/comment/comment.module).        Additional      PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 1 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:154:"SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT COUNT(cid) FROM {comment} WHERE status = :status; Array ( [:status] =&gt; 0 ) ";s:9:"%function";s:27:"comment_count_unpublished()";s:5:"%file";s:56:"/Applications/MAMP/htdocs/modules/comment/comment.module";s:5:"%line";i:313;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => ; [:db_insert_placeholder_7] =>  [:db_insert_placeholder_8] => 127.0.0.1 [:db_insert_placeholder_9] => 1338336955 ) in dblog_watchdog() (line 154 of /Applications/MAMP/htdocs/modules/dblog/dblog.module).   I also get the following error in my php error file:     PHP Fatal error:  Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2006 MySQL server has gone away' in /Applications/MAMP/htdocs/includes/database/database.inc:2136        Stack trace:   0 /Applications/MAMP/htdocs/includes/database/database.inc(2136): PDOStatement->execute(Array)   1 /Applications/MAMP/htdocs/includes/database/database.inc(664): DatabaseStatementBase->execute(Array, Array)   2 /Applications/MAMP/htdocs/includes/database/database.inc(2315): DatabaseConnection->query('SELECT expire, ...', Array, Array)   3 /Applications/MAMP/htdocs/includes/lock.inc(167): db_query('SELECT expire, ...', Array)   4 /Applications/MAMP/htdocs/includes/lock.inc(146): lock_may_be_available('theme_registry:...')   5 /Applications/MAMP/htdocs/includes/theme.inc(447): lock_acquire('theme_registry:...')   6 /Applications/MAMP/htdocs/includes/bootstrap.inc(427): ThemeRegistry->set(Array)   7 [internal function]: DrupalCacheArray->__destruct()   8 {main}         thrown in /Applications/MAMP/htdocs/includes/database/database.inc on line 2136   I am having a little trouble deciphering these error messages. Could anyone help me understand what's going on here?


Many years ago I read a short story about mankind searching the galaxy, hoping to find intelligent non-human life. After many millennia, on the opposite side of the galaxy, they think they have finally found an alien species, who have been undertaking the same quest. Later, DNA analysis reveals that the supposed alien race are actually descended from humanity, but evolved differently while going the opposite way around the galaxy. They initially conclude that mankind is alone in the universe, but then turn to look at the Andromeda galaxy, and say something like "No, we are alone in this galaxy".  Anyone recognise this story?

I'm looking for a plot line (it should be a short story) that depicts Earth population (or their close descendants) establishing contact with another intelligent life form deep into space.   After careful studying of DNA samples and language / communication symbols they then realize that the civilization in question is also from Earth but that they departed very long ago and travelled throughout the galaxy in the completely opposite direction so that they are now meeting practically at the point of the circle opposite to Earth. There might have been some anatomical differences as well.  As far as I can remember, the story concludes shortly after that.  This should be a work of a well-known SF author, so I'm hoping for a quick response (if time didn't corrupt my memory too much).  I don't think it was part of an anthology, but it's entirely possible it was in a magazine.  As for the timeline, I've read it about 2-3 years ago, but since I have a passion for older SF works it might not be of much use.  Edit: Not sure if this could help but for what it's worth, it might be contained in .


I am not a native speaker and I find the following sentence pretty confusing.     Ask any doctor — they'll all tell you that alcohol is a poison.   Here the speaker is referring to any doctor. Why is they used instead of he/her? Or to put it in other words shouldn't the correct form of the sentence be as follows?     Ask any doctor — he/she'll all tell you that alcohol is a poison.`

Is there a pronoun I can use as a gender-neutral pronoun when referring back to a singular noun phrase?  Each student should save his questions until the end. Each student should save her questions until the end.


I'm curious to hear some opinions from serious physicists on this site as to why no top physicists have ever worked on Bohmian Mechanics. Except Bohm and Bell, the theory has received virtually no attention from the world's most elite physicists. It does receive a lot of attention from lesser known physicists, and they are not well respected.   Bohmian Mechanics just seems like a much more sensible theory. All paradoxes completely vanish, no Schrodinger's Cat, no particles in two places at once, no nonsense about the moon only being there when you look at it.  Why won't any heavyweights take this reasonable approach seriously?

Possible Duplicate:          I've heard of De Broglie–Bohm theory a.k.a causal interpretation of quantum theory. The predictions match accurately with with the nondeterministic quantum theory.  As a philosophy buff this one seems just like the classical universe. No funny new-age religion style gimmicks.  So why don't people use this interpretation instead of the Copenhagen "magic" interpretation?  P.S. I'm not an expert. I possess only superficial knowledge of quantum physics.


Is is true that $$\lvert a+b\rvert^2\geq (\lvert a\rvert-\lvert b\rvert)^2, \quad \forall a,b\in\mathbb{R} ?$$ Is there any related result, related to this inequality?

Consider following inequality:     $|z_1 + z_2|\ge|z_1| - |z_2|  \  \ \ \ \ \  z_1,z_2 \in \mathbb{C}$   Is that true always? I tried many examples and it was correct but I don't know how to prove that if it's right.


Let's assume I want to create a function first that returns the first element of an array in C. Obviously I want to create something that accounts for all types.  I would start with this:  int first(int list[]) {    return list[0]; }   Which works. Obviously...  I would now like to do the same for char  char first(char list[]) {    return list[0]; }   Which does not compile as there is already a first function in the program.  How do you C guys handle this kind of scenarios?  Is one forced to go with different names?  int first_int(int list[]) {    return list[0]; }  char first_char(char list[]) {    return list[0]; }

Is there any way to achieve function overloading in C? I am looking at simple functions to be overloaded like    foo (int a)   foo (char b)   foo (float c , int d)   I think there is no straight forward way; I'm looking for workarounds if any exist.


I've some interesting Q&A posts about programming in my personal blog and I would like to post these questions (and the respective answers) on Stack Overflow, because a lot of people can be helped (for real, you can't find the answers easily on the web).  I know that users are encouraged to create self-answered questions, but can I create a self-answered question that is already available at my website? And my main question: can I link my blog as a reference for the answer of the question?   Hope that I've made the question clear, but ask me if you don't get something.

It's    that posting links to your own website is ok, but should there be a line drawn? There were several spam flags today for 's recent posts, presumably because they all link to his website. Initially I disagreed because his answers seem for the most part relevant to the question, but then I looked into it more and realized there's three things that set this apart from most of the related cases that have come up:   This isn't an occasional thing -- he's posted  in the last year This isn't a random blog he writes for a fun, it's a for-profit company he  and makes money promoting I'm not willing to go through all 412, but from the sample I checked, he generally doesn't mention that the products he's recommending are his own. The site is linked from his profile, but most people aren't going to check that   Is all this considered acceptable use, or are the spam flags accurate?


Trying to make something on my bukkit 1.8.7 server that detects a nether star in an inventory named "Nut Gem" with the lore "Gem used to summon Nut", which will then try to remove the nether star from your inventory.  For some reason it will not clear the item I need it to, but it does clear any normal nether stars. I am using   /clear @a nether_star 1 0 {display:{Name:"Nut Gem",Lore:["Gem used to summon Nut"]}}   Now found out that this is a problem with bukkit!  Not sure why but it works in single player but not in bukkit servers(at least this version).  Any info on how to fix this would be appreciated!

Recently I've been messing around with making a few minigames, and have used a few plugins to help make it easier to create and run them. However, a newer one I'm making requires me to use the /summon command in order to spawn zombies. However, no matter what I put in, I can't spawn hostile mobs. All other entities still spawn perfectly fine. Strangely, the /spawnmob command which comes with Essentials can summon hostile mobs fine. I would rather use /summon since it's more customizable though. Here's a list of plugins I have installed.   Essentials EssentialsChat HolographicDisplays PermissionsEx setspawn [A plugin I have made, just a simple timer] Vault VoxelSniper WorldEdit WorldGuard   Please let me know if you have any ideas on what I'm doing incorrectly or isn't functioning the way it should.


I feel like there is some silly syntax error going on here but I can't for the life of me figure it out. I am trying to sort a big list using multiple properties.   Method A:  IOrderedEnumerable<myClass> orderedList = myList.OrderByDescending(e => e.Tier);  orderedList = orderedList.ThenByDescending(e => e.Priority[0].Value); orderedList = orderedList.ThenByDescending(e => e.Priority[1].Value); orderedList = orderedList.ThenByDescending(e => e.Priority[2].Value);  orderedList = orderedList.ThenByDescending(e => e.Score);   Method B:  IOrderedEnumerable<myClass> orderedList = myList.OrderByDescending(e => e.Tier);  for (int i = 0; i < 3; i++) {     orderedList = orderedList.ThenByDescending(e => e.Priority[i].Value); }  orderedList = orderedList.ThenByDescending(e => e.Score);   The above Method A works perfectly, but Method B (the way I need to do it) keeps returning an index out of range error, even though it should be the exact same (i.e. 0, 1, 2)  In both instances e.Priority represents a list of 3 KeyValuePairs. I don't understand why Method B is returning an out of range error.

I met an interesting issue about C#. I have code like below.  List<Func<int>> actions = new List<Func<int>>();  int variable = 0; while (variable < 5) {     actions.Add(() => variable * 2);     ++ variable; }  foreach (var act in actions) {     Console.WriteLine(act.Invoke()); }   I expect it to output 0, 2, 4, 6, 8. However, it actually outputs five 10s.  It seems that it is due to all actions referring to one captured variable. As a result, when they get invoked, they all have same output.  Is there a way to work round this limit to have each action instance have its own captured variable?


I had a piece of code.    compareScanMz = new Comparator<Triplet>() {   @Override   public int compare(Triplet o1, Triplet o2) {      int scan1 = o1.scanListIndex;     int scan2 = o2.scanListIndex;     int scanCompare = Integer.compare(scan1, scan2);      if (scanCompare != 0) {       return scanCompare;     } else {       int mz1 = o1.mz;       int mz2 = o2.mz;       return Integer.compare(mz1, mz2);     }   } };`   In the code I am able to figure out the other statements, but am unable to get the first one. i.e:  compareScanMz = new Comparator()   What does this statement mean?

What is the use of anonymous classes in Java? Can we say that usage of anonymous class is one of the advantages of Java?


I have this example   public class AClass {      public class BClass      {          public string name;          public string id;      }  }   now i want to make an intsance of Aclass   public class Program {     public static void Main()     {          AClass newitem = new AClass();      } }   but i haven't access to the properties of BClass with the object newitem. How can achieve that with an instance of AClass?

Say if I have a dropdown in a form and I have another nested class inside of this class . Now what's the best way to access this dropdown from the nested class?


How do I make a HashMap, that maps     Integer or int to a class instance of a class that extends a specified Class:  public HashMap<Integer, ? extends myClass> myMap = new HashMap<Integer, ? extends myClass>();   This gives a error: Cannot instantiate the type HashMap<Integer,? extends mySuperclass> (by Eclipse)  I am not too experienced with Java and I really appreciate your answers. To make this a little bit more obvious, this is a short image explaining what I want to achieve:   Trying to add a class that does not extend that Superclass should not work.  I'm really sorry if this has been asked already but I tried searching for a couple of terms and could not find a similar question. There was  quite similar, but I did not understand what the accepted answer said and I don't think it was even the question I am asking here.

I have a couple of questions about generic wildcards in Java:   What is the difference between List<? extends T> and List<? super T>? What is a bounded wildcard and what is an unbounded wildcard?


I did lasso regression for feature selection, and then I test the significance using logistic regression. But I wonder if I should do logistic regression after lasso regression, if not I don't know how to interpret my results. I did lasso regression in R using glmnet package.

[A similar question was asked  with no answers] I have fit a logistic regression model with L1 regularization (Lasso logistic regression) and I would like to test the fitted coefficients for significance and get their p-values. I know Wald's tests (for instance) are an option to test the significance of individual coefficients in full regression without regularization, but with Lasso I think further problems arise which do not allow to apply the usual Wald formulas. For instance, the variance estimates neded for the test do not follow the usual expressions. The original Lasso paper:  suggests a bootstrap-based procedure to estimate the coefficients variance, which (again, I think) may be needed for the tests (section 2.5, last paragraph of page 272 and beginning of 273):  One approach is via the bootstrap: either $t$ can be fixed or we may optimize over $t$ for each bootstrap sample. Fixing $t$ is analogous to selecting the best subset (of features) and then using the least squares standard error for that subset  What I understand is: fit a Lasso regression repeatedly to the whole dataset until we find the optimal value for the regularization parameter (this is not part of the bootstrap), and then use only the features selected by the Lasso to fit OLS regressions to subsamples of the data and apply the usual formulas to compute the variances from each of those regressions. (And then what should I do with all those variances of each coefficient to get the final variance estimate of each coefficient?) Furthermore, is it correct to use the usual significance tests (for instance Wald's test which makes use of the estimated betas and variances) with the Lasso estimates of the coefficients and the bootstrap-estimated variances? I am fairly sure it is not, but any help (use a different test, use a more straightforward approach, whaterever...) is more than welcome. According to the answers  I suspect inference and p-values just cannot be obtained. In my case, p-values are an external requirement (although the use of L1 regularization was my choice). Thanks a lot EDIT What if I fit an OLS logistic regression using only the variables selected by a previous run of the Lasso logistic regression? Apparently (see ),  There's no need to run the model again after doing cross-validation (you just get the coefficients from the output of cv.glmnet), and in fact if you fit the new logistic regression model without penalisation then you're defeating the purpose of using lasso  But what if I do this with the sole purpose of being able to compute p-values while keeping the number of variables low? Is it a very dirty approach? :-)


After creating the admin user on a new build server, I create the builder user via the command-line using Ansible. gitlab-runner is installed via brew and a launch daemon plist starts the service  automatically as the builder user. Unfortunately, gitlab-runner hangs when git fetching changes until I manually log-in the builder user account via Remote Desktop one time and click through the first-time setup of the user account. After the initial login, you can logout, reboot and everything just works after that.  Since I have a workaround of logging in the first-time through the GUI to complete the setup of the builder user is there a way to get the macOS Mojave to do whatever it does during the first login via the command-line?  gitlab-runner.plist  For completeness, I'm providing the /Library/LaunchDaemons/gitlab-runner.plist file  <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0">   <dict>     <key>SessionCreate</key><true/>     <key>KeepAlive</key><true/>     <key>RunAtLoad</key><true/>     <key>Disabled</key><false/>     <key>Label</key>     <string>gitlab-runner</string>     <key>UserName</key>     <string>builder</string>     <key>GroupName</key>     <string>staff</string>     <key>ProgramArguments</key>     <array>       <string>/usr/local/opt/gitlab-runner/bin/gitlab-runner</string>       <string>run</string>       <string>--working-directory</string>       <string>/Users/builder</string>       <string>--config</string>       <string>/Users/builder/.gitlab-runner/config.toml</string>       <string>--service</string>       <string>gitlab-runner</string>       <string>--syslog</string>     </array>   </dict> </plist>

How do you make a script or app to run or stop running automatically when the system is booted, a user logs on, at a specific time, when a disk is attached, etc.?


I am looking for an opensource web based metadata management tool for geographic data. I have gone through a related question:   First of all it was asked six years ago. And it recommends tool like Geonetwork. Geonetwork at first looked promising but has several issues while installing (tried on windows). i am unable to install it despite asking for help on several forums.   I have gone through this link listing quite a few tools :   If anyone has had experience with any of it kindly share.

I am looking for a free open source ISO metadata editor for the development of an enterprise database.    It will mostly be used for documenting shapefiles and GeoTIFFs.   Hoping that it will be an intuitive software since a range of skill levels will be working with it.  Any suggestions?


Dear fellow Ubuntu users, for two years now I've been using Ubuntu. Although I love the system, it's quality is going downhill, steeply. Every new update (12.10, 13.04, 13.10) the issues only seem to get worse. Now my system laggs every other minute (freezes for a couple of seconds) and is unresponsive at times. Firefox, for example, seems to crash every 10 minutes (but only for a few seconds where a grey zone overlays the whole browser window).  I figured my issues could be due to Unity failing as I found many people on the internet with the same conclusion so I exchanged Unity for Gnome only to discover that it didn't fix anything (it actually added to the problem).  A second guess would have been a malfunctioning or slow HDD, running a benchmark yielded following results:  /dev/sda:  Timing cached reads:     2 MB in  6.42 seconds = 319.19 kB/sec  Timing buffered disk reads:   2 MB in  4.38 seconds = 467.79 kB/sec   Which is extremely strange since I wouldn't expect cashed reading to be slower than buffered reading.  So having said this, can anyone tell met whether I should be on the lookout for a new HDD or whether my OS is in fact failing?  Working for school has been extremely annoying with a laggy system like this and I desperately need a fix here. What I have tried/done:   HDD benchmark installing GNOME rather than Unity Reinstall every Ubuntu OS from 12.04 to 13.10,   Thanks in advance!

What are your tips for improving overall system performance on ubuntu? Inspired by this  I realized that some default settings may be rather conservative on Ubuntu and that it's possible to tweak it with little or no risk if you wish to make it faster.  This is not meant to be application specific (e.g. make firefox load pages faster), but system wide.  Preferably 1 tip per answer, with enough detail for people to implement it.  A couple of mine would be:   Install  (via Software Center or sudo apt-get install preload); Change  value - "which controls the degree to which the kernel prefers to swap when it tries to free memory";   What are yours?  PS: Since this is not intended to have a unique answer but rather, several useful tips, I'm making this community wiki out-of-the-box.


I want to rename a file dynamically based on data which contains spaces  Name="Abc DEF" Name1="GHI JKL"  mv /sample/pdf/noriginalName.pdf /sample/outputPdf/${NAME}${Name1}".pdf"   But it gives me an error because it encounters space in between.  How can I do this?

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


Suppose that $f : [a,b] \rightarrow \mathbb R$ is continuous on $[a,b]$, differentiable on $(a,b)$, and that $\lim_{x\rightarrow a^+}f'(x)=L$. Show that $f$ is differentiable at $a$, and that $f'(a) = L$.  I have tried starting with the continuity of the function, but I'm still not sure how to even begin or where to go from there.

Suppose $f(x)$ is continuous on $[a,b)$ and differentiable on $(a,b)$ and that $f '(x)$ tends to a finite limit $L$ as $x \to a^+$. Then $f(x)$ is right-differentiable at $x=a$ and $f '(a)=L$.  (epsilon-delta proof not needed).  This is a practice exam question.  I am having trouble translating this into a 'mathematical' statement. The MVT states that there exists $c$, $a\leq c\leq b$, such that:  $f'(c) = (f(b)-f(a))/(b-a)$  I suppose to prove that $f(x)$ is right differentiable at $x=a$, using the MVT, I need to somehow show that as $x \to a^+$, $f'(c)=f'(a)=L$ ??? Am I on the right track here? Can someone help me get started?


This was a post apocalyptic movie in which the character is a disabled teacher in a wheelchair. He loves one woman, so he goes to test therapy which is supposed to make him fully functional.  Then company that is providing therapy puts him in a sort of coffin with green goo in it. In order to walk he gets armour but he cannot breathe outside of it.  At the end he kills himself.

I'm trying to find the name of a lower-budget science fiction film that was available for viewing on demands on MIT student cable in the late 1990s.  I suspect the film was made earlier in that decade, and it definitely seemed to have been influenced by RoboCop.  The plot involves characters is a somewhat dystopian near future.  One of the characters (named Hawkins, I think) is initially in a wheelchair, and that is interfering with his relationship with the woman he loves.  (He watches virtual reality simulations of himself having sex with her when he's alone at home.)  Maybe halfway through the movie, he decides there's no hope for their relationship, so he lets the bad guys turn him into a RoboCop-like cyborg.  I think he ends up fighting the other main characters, but I don't remember how the movie ends.  The film was clearly shot cheaply but competently.  The color palette was rather drab, I think, and there were few indoor sets.  It's possible that the film never got a normal release of any kind, since I don't know where the students at MIT cable got ahold of it.  So does anybody know what this film was?


I am upgrading my home PC. On my current PC, all my VirtualBox VMs reside on a data drive separate from the primary OS drive. The current PC uses Windows 10 and the new PC will also be using Windows 10.  I have about 30 VirtualBox VMs on that data drive. My question is if I can do the transition using the method listed below.   Move data drive to the new PC Assign the data drive with the same drive name (e.g. D:) Install the same version of VirtualBox I have right now onto the new computer Move my .VirtualBox directory from C:\Users\foo\.VirtualBox to my new PC

I use VirtualBox 4.1.x on my Ubuntu machine and I’ve set up several virtual machines. Since there are several ways one can move a virtual machine in VirtualBox to another computer, I was wondering which one is the recommended way:   Use the “Import/Export utility.” Copy the entire virtual machine folder, containing the .vdi and .vbox files. Clone the VDI using “Virtual Media Manager” and then recreate a VM on the target machine but using the cloned VDI as the hard disk.   I have successfully used the 1st method several times and it has always worked. The problem is that after exporting and importing, the disk image is transformed into VMDK and not VDI anymore!  The 2nd method is probably the easiest but I’m not sure that simply copying the files will work or not on the target machine. When searching about this method, I found some people had problems in which they had to edit the VirtualBox.xml file to solve it!  At last, there’s the 3rd method, but it requires the extra work of creating a VM similar to the original VM configuration, which is not desirable.  It’s clear from the above explanation that my desired method is the 2nd one, but I need expert advice on this if it works or not. I don't want any XML editing getting in my way!  What’s the best method of safely transferring my VM’s to another computer with VirtualBox?


In general, if a bad question has already been closed (not necessarily for , but, e.g., for being off-topic), and it already has a negative vote score, is it meaningful to further add your downvote?  I see no benefit to this, I only see that you lose 1 rep for adding your downvote. Can anyone explain if there’s a point to doing so?  I don’t believe this question is a perfect duplicate of “,” because that question (which is itself a duplicate of , which does not answer my question) requests making it impossible to do so whereas my question is meant to spark discussion only, leaving users with the freedom to downvote.

That question of mine was closed a long time ago (relatively, to me at least).  However, from time to time I still get downvotes for it.  That got me thinking: is there any reason to still downvote closed questions?


I am Relatively inexperienced in regex. I am playing around with various java classes that are used for regex. Below is an example I am trying out -   import java.util.regex.*;  public class Regex {     public static void main(String[] args){         Pattern p = Pattern.compile("\\d*");         Matcher m = p.matcher("ab34ef");         while(m.find()){             System.out.println(m.start() + m.group());         }     }    }   When I run this I get -   0 1 234 4 5 6   The m.start() function returns the position of the character the match was found on. The pattern follows a 0 based index.  So here is my interpretation of the output -   0   (index = 0 , no matching group) 1   (index = 1 , no matching group) 234 (index = 2 , matching group = 34) 4   (index = 4 , no matching group) 5   (index = 5 , no matching group) 6   (Why does this happen?)   Why would m.start() return 6 ? The string is 6 characters long so the last index should be 5. I think I am missing something very basic here. Any pointers or suggestions are welcome.

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


Is it possible to have a desktop login password that's different from the password used for super user permissions, like for example when you are installing software or running a command with sudo or something that needs super user access?

How can I give a user one password for normal usage when logging in, and another password for system administration and sudo access? I want one user to have two passwords.


Are there any proofs of this equality online? I'm just looking for something very simply that I can self-verify. My textbook uses the result without a proof, and I want to see what a proof would look like here.

Multiple Angle Identities:  How to expand  $\cos nx$  with  $\cos x$, such as  $$\cos10x=512(\cos x)^{10}-1280(\cos x)^8+1120(\cos x)^6-400(\cos x)^4+50(\cos x)^2-1$$ See a list of trigonometric identities in /


I use "Texmaker-3.5.2" with "basic-miktex-2.9.4757" on Windows 8.1 on my personal laptop (LenovoZ5070).  I checked Options\Configure Texmaker\Commands. It includes:  LATEX:     latex -interaction=nonstopmode %.tex  PDFLATEX:  pdflatex -synctex=1 -interaction=nonstopmode %.tex  XLATEX:    xelatex -synctex=1 -interaction=nonstopmode %.tex  You can see that my system contains "-synctex=1". However “click to jump to the line”  is not working! Please help me.

I am compiling LaTeX files with Texmaker on Ubuntu 12.04 system.   When I run pdflatex and then view the pdf file (internal), it does not show me the exact place where I am editing on Texmaker i.e. the generated pdf file does not show me the position of the cursor.   But some days before it was working fine. I don't know what causes this problem.  I already tried uninstalling and then reinstalling, I did update and upgrade too. But the problem still persists.


I need to use a variable from the main script of a game which is the score variable public int scoreCount; I need it in the main script because it will be needed to update the score when they get past a certain point.  I need to be able to access this variable.. so add or subtract from it i.e. scoreCount++; however I am not sure how to do this, I have looked at tutorials and they make no sense for me.. could someone please explain it in more detail.  I also need to be able to use the public void UpdateScore() function from the mainscript too, do I just do it the same way as the variable or is there a different method. Thank you.

I am working on a simple game project, and have a problem. The problem is accessing the variable from one script to another.   For example :-   I have 2 Scenes (Game Scene and Game Over Scene), Game Scene has a Player Game Object , who has a int Variable Score.   using UnityEngine; using System.Collections;  public class Game_Scene_Script : MonoBehaviour  {      private int Score ;       // Use this for initialization      void Start ()       {           Score = 0 ;      }       // Update is called once per frame      void Update ()       {           // Let us assume some one played the game           // And Now the Score is 207           Score = 207 ;       } }   Now I want to access that int Variable Score in Game Over Scene which a Game Object.  So how can I access that int Variable from that script?   I searched for, but couldn't find any proper answer I wanted. Even-though some answers are in JavaScript , some are in Unity 4.x etc.


I first read this book around 1983-1985 (no actual idea of when it was first printed), and, while I can't remember all that much from the book itself (other than enjoyable), I do remember the cover of the book.  The cover prominently featured and depicted a robot, silver in color, sitting down (maybe in a field of some sort?), drinking a cup of tea in a very posh 'pinky extended' fashion.  I've brought this fact up to friends, who have also read the book (and who are also trying to remember the book), and they always come back with 'Douglas Adam's: The Long Dark Teatime of the Soul.'  I am pretty sure this is not correct, for a quick GIS of that book, shows no covers bearing what I remember.  A small, small part of me, thinks it was a Heinlein book, but, none of the covers look familiar, I imagine it's possible the changed cover on a re-print, but, none of the titles stick out to me either.  Any help, and all the internets to you, if you find this book!

I can't stop thinking about this book but my memory won't come up with a title, author, or even character names. Help? :)  The cover had a large seamless cube sitting in a circle of sand on an alien planet. The plot involved several humanoids (maybe 5?) including a male and female from Earth and an android. There was also a military commander from a planet of war. They all just appear with no explanation of how they got there. Over the course of the book they are killed off one by one until only the male and female remain. (I was most sad to see the android go) The couple finds their way back to the cube and they solve the riddle of how to get across the sand. They are transported inside and are told that they have been chosen to travel to a new world and repopulate.   Sorry I don't remember much more than that. Thank you for any help you can give.


I am on Linux/Centos7. I have multiple csv files I want to merge, I am using this command to merge.  cat *csv > all.csv   But the first column contain a sequential number that needs to be merged and renumbered in sequential order.   ==> 1.csv <== 1,bob,date,body 2,joe,date,body 3,ann,date,body  ==> 2.csv <== 1,lisa,date,body 2,paul,date,body 3,mike,date,body   I would like the result to renumber the first column to be like this  ==> output.csv <== 1,bob,date,body 2,joe,date,body 3,ann,date,body 4,lisa,date,body 5,paul,date,body 6,mike,date,body   When I do a regular merge I have this, And if I can renumber this merged file that would work too.  1,bob,date,body 2,joe,date,body 3,ann,date,body 1,lisa,date,body 2,paul,date,body 3,mike,date,body

I have a text file of numbered entries:  1. foo 2. bar 100% 3. kittens 4. eat cake 5. unicorns 6. rainbows   and so on up to some large number. Then after an empty line, a new block starts from 1.  I insert a new entry, replacing, say, 4. and I need to renumber all the subsequent entries in the block:  1. foo 2. bar 100% 3. kittens 4. sunshine < 5. eat cake 6. unicorns 7. rainbows


Can anyone advise on the status of the recent mesa issue after an update January 4th or 5th, 2018? If it was update related what is a normal time frame for resolution? Noob getting his feet wet with Ubuntu! Thanks for your time. GordK  follow up...I followed the suggestions in that answer prior to placing my question. I jumped ahead to the 17.3 ppa as per that answer. Things are OK for now. I see there will be a fix released for this issue. I will watch for that fix and get back on track with regular sourced updates. Thanks for your time! GordK  190118 Thanks for the follow up on this issue. I have been checking on progress and just saw that the issue has been resolved. I have updated to remove the 17.3 work around and rebooted and did the suggested update. Things look solid. Thanks again for your time and expertise! GordK

The latest updates (4/1/2018) make my laptop constantly crash the GUI/Unity:  (Intel Pentium su4100 processor)  syslog:  Jan  5 11:38:53 1810 kernel: [ 1850.327738] compiz[11911]: segfault at 0 ip 00007f6c7baf0c16 sp 00007ffd5ec71c60 error 4 in i965_dri.so[7f6c7b513000+82d000]   After login I end up with an empty desktop, just a wallpaper, GUI/Unity are in a crash loop:   No panel.  No dash.  Can't start a program. Launcher disappears. Sidebar disappears. System crash. Windows key not working. The key combination Alt+Tab not working.   Simply, the computer is not usable. Same for guest login. The only thing working: open up a terminal CTRL+ALT+T to examine log files.  I somehow forced  to let me log in and file the bug, but still lots of problems:   Dash not working Alt+Tab not working Sometimes windows all disappear for a few seconds     Any ideas for a solution or workaround?   UPDATE     If you have the same/ very similar problems, follow the link to my    report and mark there that you're affected too. Or file your own. Please leave a comment   if you wish, or upvote - this is a nasty problem - but an answer should   offer a fix or a workaround so users can use their computer again.    Without , Ubuntu can't fix issues.


This document sets out the rights and responsibilities of [you || yours], the Company, and the concerned third parties.   If "the Client's rights" can be rephrased to "the rights of Client", then, I suppose, "your rights" can be rephrased to "the rights of you", but "the rights of yours" sounds greater.  So, is either variant appropriate and which should one better use?

As  shows, we nearly always use the possessive form of personal pronouns for friend of mine/his/ours/etc.  But when it comes to actual names, we prefer  without the possessive apostrophe. That preference is even more marked with, say, . Not that I think the usage itself is particularly American - it's much the same with .  Personally, I find friend of him grates. In general I've no strong feelings either way as to whether it's friend of Peter or friend of Peter's (though I deplore the possessive in ), but in line with many others, I really don't like the possessive in relation to things like countries.  Why is this?   Edit: Noting an apparent "progression" (pronoun -> person -> nation) marked by reduction in use of the possessive, I checked at a finer "granularity". NGram shows that although it does occur,  virtually "flatlines" against friend of mine. But the bias reduces through of you, of us, and by the time I get to  it's much less extreme. There seems to be something "egocentric" about the double possessive.  Presumably when babies learn to speak, they soon notice that possessive pronouns, possessive apostrophes, and the word "of", all do the same job. Parents would correct a child who says "of mine's", but probably wouldn't even notice the same "redundancy" in "of Peter's". Younger speakers are unlikely to even be talking about something "of America's". Perhaps as we mature we tend to discard the "double possessive" for the more "distant" things that only adults are likely talk about, but we keep it for "closer" people because that's how we spoke when we were younger.  EDIT2 I note that I'm a great fan of him is vanishingly rare compared to ...fan of his, but with ...fan (of John) the double possessive occurs far less often than ...friend (of John's). Usage seems to be affected by the noun before "of" as well as the one after it. This is getting complicated...


I am implementing a String matching algorithm for a username database. My method takes an existing Username database and a new username that the person wants and it checks to see if the username is taken. if it is taken the method is supposed to return the username with a number that isn't taken in the database.  Example:  "Justin","Justin1", "Justin2", "Justin3"  Enter "Justin"  return: "Justin4" since Justin and Justin with the numbers 1 thru 3 are already taken.  In my code sample below, newMember returns Justin1 even though it already exists--where is the mistake?  public class UserName {      static int j = 0;      static String newMember(String[] existingNames, String newName){         boolean match = false;          for(int i = 0; i < existingNames.length; i++){             if(existingNames[i] == (newName)){                 match = true;             }          }         if(match){             j++;             return newMember(existingNames, newName + j);         }         else{             return newName;          }     }      public static void main(String[] args){          String[] userNames = new String[9];         userNames[0] = "Justin1";         userNames[1] = "Justin2";         userNames[2] = "Justin3";         userNames[3] = "Justin";          System.out.println(newMember(userNames, "Justin"));          // I don't understand why it returns Justin1 when the name is already taken          // in the array.     } }

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?


What is the real number called to which the sequence $$\gamma_n =1+\frac{1}{2}+\frac{1}{3}+\frac{1}{4}+\cdots+\frac{1}{n} - \log _e n$$ converges and what is the radius of convergence?

How to show that  $$\lim_{n\to\infty}\left[\sum^n_{k=1}\frac{1}{k}-\ln(n)\right]=0.5772\ldots$$  No clue at all. Need help!  Appreciated!


I am very familiar with cycles and its material nodes. Now I want to use luxrender, because it has a nice net rendering system. Is there any way to convert the cycles materials to luxrender materials?

I'm doing a project in cycles and I want to render it but its too slow on my CPU. So I want to render the scene in luxrender but without starting the project all over again.


I have created a content type and take field collection for some field. Within field collection I have taken 4 select box. Now I need to get these select box value in content type tpl file. For this I am using this code : $wrapper = entity_metadata_wrapper('node', $node_data);  but its not giving me select box option value.

I have a node that has a few field collections on it.  When I look at node_load() output, I see:  [field_rich_text_group] => Array         (             [und] => Array                 (                     [0] => Array                         (                             [value] => 6                         )                      [1] => Array                         (                             [value] => 7                         )                      [2] => Array                         (                             [value] => 8                         )                  )          )   What API function can I use to actually load the field data contained in the collection that has an entity_id of 6, 7, 8, etc?


Is is possible to use only equation or align environments without the * and then automatically suppress the equation number if there is nothing refering to that equation? It would make the LaTeX-life much easier I think.

I have a paper where all equations are numbered, but I want to number equations only if they are actually referred to in the .tex file using \ref{}. How can I make that happen? Alternatively, how can I make all equations that have no \label next to them (because then I know I don't refer to them) not have a number? Do I have to use \nonumber separately for each such equation?


... at which point they had no choice but to fire upon the enemy.  They opened fire.  They returned fire.  Aim! Fire!  Fragments of reports from the battlefield.  The first hand-held firearms appeared in Europe in the middle of the 15th century. Well. At least that's what people better acquainted with such matters than myself keep telling me.  Before muskets, there were crossbows, and before the crossbows archers had to make do with the bow and arrow.   Suppose you were a reporter, or an officer in charge of the archers, at, say, the Battle of Hastings (1066 A.D.). Did the above phrases have equivalents in those times?

Did the verb “fire a weapon” exist before the actual introduction of firearms on battlefields?  More specifically, does it make sense for a creative work to have archers (or whatever ranged weaponry) be told to “fire!”, when the world they live in has not yet seen firearms?  It seems some kind of an anachronism to me, since before firearms, “fire” would never propel any projectile...  I've seen several movies do it; I can't remember them all, but for instance I verified it in The Lord of the Rings trilogy (left), Kingdom of Heaven (top right), and more recently Frozen (bottom right):    The first two do it several times (with Kingdom of Heaven also using it on ballistae, and The Return of the King even having Aragorn ask Legolas to ), whereas firearms never appear on the battlefields they feature (Kingdom of Heaven is set in the 12th century; as for The Lord of the Rings, apart from one occurrence of a witchcraft-ish bomb, it's archery and medieval siege engines all the way).  Frozen may be debatable, happening probably somewhere in the 18th or 19th century, but since we only see swords, spears and the like, it made me flinch to hear crossbowmen use “fire!”.  I've also noticed other movies avoiding this, using “loose!” instead, such as Troy (left) and Gladiator (right):    This makes me think it would be the right thing to say instead... although I'm still wondering why not use “shoot”, which seems simpler to me.


I have a text file,of 100 lines,i need to move line 40 to line 39(refer to position) How to do this with sed? I tried  sed '40 m 39' file   and  sed '40,39m' file   but give me error. Thanks

I have some text files, and I'd like to be able to move an arbitrary line in any of the files up or down one line (lines at the beginning or end of the file would stay where they are).  I have some working code but it seems kludgy and I'm not convinced I have all the edge cases covered, so I'm wondering if there's some tool or paradigm that does this better (e.g. easier to understand the code (for other readers or me in 6 months), easier to debug, and easier to maintain; "more efficient" isn't very important).  move_up() {   # fetch line with head -<line number> | tail -1   # insert that one line higher   # delete the old line   sed -i -e "$((line_number-1))i$(head -$line_number $file | tail -1)" -e "${line_number}d" "$file" }  move_down() {   file_length=$(wc -l < "$file")   if [[ "$line_number" -ge $((file_length - 1)) ]]; then     # sed can't insert past the end of the file, so append the line     # then delete the old line     echo $(head -$line_number "$file" | tail -1) >> "$file"     sed -i "${line_number}d" "$file"   else     # get the line, and insert it after the next line, and delete the original     sed -i -e "$((line_number+2))i$(head -$line_number $file | tail -1)" -e "${line_number}d" "$file"   fi }   I can do error checking of inputs inside or outside these functions, but bonus points if bad input (like non-integers, non-existent files, or line numbers greater than the length of the file) are handled sanely.  I want it to run in a Bash script on modern Debian/Ubuntu systems.  I don't always have root access but can expect "standard" tools to be installed (think a shared web server), and may be able to request installation of other tools if I can justify the request (though fewer external dependencies is always better).  Example:  $ cat b 1 2 3 4 $ file=b line_number=3 move_up $ cat b 1 3 2 4 $ file=b line_number=3 move_down $ cat b 1 3 4 2 $


Let $f$ and $g$ be continuous mapping of $S \subseteq \mathbb{R}^n$ into $\mathbb{R}^m$. Show that the inner product $h(x) = \langle f(x),g(x)\rangle$ is continuous.

Let f,g be continuous maps of S in $\mathbb{R}^n$, to $\mathbb{R}^m$. Show the inner product h(x) = $\langle f(x), g(x)\rangle$ is continuous.  My attempt: Since f,g are continuous, their product is a continuous mapping, so for $\epsilon \gt 0\: t.e\:  \delta \gt 0$ such that $\parallel x - a\parallel \lt \delta $ implies $\parallel \langle f(x),g(x)\rangle - \langle f(a)g(a)\rangle \parallel \le\parallel f(x)g(x) - f(a)g(a)\parallel \lt \epsilon$ by schwartz inequality.


I just found a file at the /tmp/ directory named .<?php passthru($_GET['cmd']);echo 'm3rg3';?>  Owner and GroupOwner are "proftpd" and "nogroup", respectively, as follows:  -rw-r--r-- 1 proftpd nogroup   89 Apr  9 01:15 .<?php passthru($_GET['cmd']);echo 'm3rg3';?>   FILE CONTENT  proftpd: 45.33.17.183:39686: SITE cpto /tmp/.<?php passthru($_GET['cmd']);echo 'm3rg3';?>   QUESTIONS   How could one break into my server through ProFTPD? What can I do to fix this issue? What else should I look for after this finding? Is there a default password for the user "proftpd"? Can I find the "proftpd" password? At the "/tmp/" directory* I see this file .<?php passthru($_GET['cmd']);echo 'm3rg3';?> which is owned by "proftpd". Does is imply that someone successfully logged through FTP and uploaded that file there? Is there another way that it happened? How can I find the hole that allowed this happening?   MEASURES TAKEN SO FAR   Changed ProFTPD port from 21 to something else; Commented mod_copy.c as suggested on this russian site:  Moved the injected file from /tmp/ to another directory, eg.: /tmp/injected_file/ Didn't change ANY password (note: ftp is not used on this server). Searched for all files from user proftpd using find / -user proftpd. Nothing was found, besides the one file mentioned in the beginning.

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


I created a simple crontab job.   It should execute every 15 minutes to alert me that I need to take a short break. However, it does not work. I don't know why.   Please help me if you have experience with crontab. I used the command crontab -e to create this file and save it.  # Edit this file to introduce tasks to be run by cron. #  # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task #  # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any').#  # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. #  # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). #  # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ #  # For more information see the manual pages of crontab(5) and cron(8) #  */15 * * * * /home/galaxy/Documents/projects/Bash/cron_job.sh   This file is supposed to execute the script cron_job.sh every 15 minutes.  This is a Bash shell script that has a chmod value of 500. It contains one command to create a new gnome-terminal and immediately run a command inside that new terminal to cat the file take_a_break. That is a text file with a simple message telling me to take a break.   Running from the terminal directly either the shell script or just running the command contained inside of it works flawlessly, but the crontab job does not work at all. Maybe I formatted something incorrectly.   Here is the contents of the file cron_job.sh:   #!/bin/bash  gnome-terminal -e "bash -c \"cat /home/galaxy/Documents/ascii/take_a_break; exec bash\""   The reason I put the command inside a shell script is because cron did not run it previously, but cron also does not run the shell script.   I checked and it seems to me that I have the correct syntax.  Also if it is relevant, trying to run the crond command gives an error:  $ crond No command 'crond' found, did you mean:  Command 'cron' from package 'cron' (main) crond: command not found

Once upon a time,  DISPLAY=:0.0 totem /path/to/movie.avi   after ssh 'ing into my desktop from my laptop would cause totem to play movie.avi on my desktop.  Now it gives the error:   No protocol specified Cannot open display:    I reinstalled Debian squeeze when it went stable on both computers, and I guess I broke the config.   I've googled on this, and cannot for the life of me figure out what I'm supposed to be doing.   (VLC has an HTTP interface that works, but it isn't as convenient as ssh.)  The same problem arises when I try to run this from a cron job.


using TeXShop in OS X Maverick, a simple subfigure script is returning "undefined control sequence". Although I can bypass it and still generate the image-included pdf by typing "s" to "ignore all" (of the warnings), I would still like to know the cause and fix for this. Thanks!  The sample script is:  \documentclass[a4paper,12pt]{article} \usepackage{graphicx}  \begin{document}  \begin{figure}[htdp]   \begin{center}     \subfigure{\includegraphics[width=0.3\textwidth]{fig1}}     \subfigure{\includegraphics[width=0.3\textwidth]{fig2}} \end{center} \end{figure}  \end{document}

I want to place 2 images side by side in LaTeX. I have 2 .png files and I don't understand how to do it in LaTeX. I have tried many ways but could not get a good result.


I am using mysql - 10.1.39-MariaDB - mariadb.org binary distribution - and phpmyadmin for managing my db:  I have the following table:  | ID  | NAME       | AMOUNT | CREATED_AT          | UPDATED_AT          | |-----|------------|--------|---------------------|---------------------| | 1   | Product 1  | 4      | 2019-08-30 19:03:16 | 2019-08-30 19:03:16 | | 5   | Product 1  | 3      | 2019-08-29 20:03:16 | 2019-08-29 20:03:16 | | 2   | Product 2  | 4      | 2019-08-30 19:03:16 | 2019-08-30 19:03:16 | | 3   | Product 33 | 3      | 2019-08-30 19:03:16 | 2019-08-30 19:03:16 | | 4   | Product 4  | 2      | 2019-08-30 19:03:16 | 2019-08-30 19:03:16 | | ... | ...        | ...    | ...                 | ...                 |   I would like to have all rows that have been updated last.  I tried the following:  SELECT     `name`, `updatedAt` FROM     issuers ORDER BY     updatedAt   However, I still get all rows in my result data.  Any suggestions what I am doing wrong?  I appreciate your replies!

My table is:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   3 10 03/03/2009 john 300   4 11 03/03/2009 juliet 200   6 12 03/03/2009 borat 500   7 13 24/12/2008 borat 600   8 13 01/01/2009 borat 700     I need to select each distinct home holding the maximum value of datetime. Result would be:     id home datetime player resource     1 10 04/03/2009 john 399   2 11 04/03/2009 juliet 244   5 12 04/03/2009 borat 555   8 13 01/01/2009 borat 700     I have tried: -- 1 ..by the MySQL manual:   SELECT DISTINCT   home,   id,   datetime AS dt,   player,   resource FROM topten t1 WHERE datetime = (SELECT   MAX(t2.datetime) FROM topten t2 GROUP BY home) GROUP BY datetime ORDER BY datetime DESC  Doesn't work. Result-set has 130 rows although database holds 187. Result includes some duplicates of home. -- 2 ..join  SELECT   s1.id,   s1.home,   s1.datetime,   s1.player,   s1.resource FROM topten s1 JOIN (SELECT   id,   MAX(datetime) AS dt FROM topten GROUP BY id) AS s2   ON s1.id = s2.id ORDER BY datetime   Nope. Gives all the records. -- 3 ..something exotic:   With various results.


How can i use the mysql_real_escape_string() function in my MySQL queries for $_SESSION variables? This is my code at this moment. Hope that someone can help me.  Thanks :-)  <input value='<?php echo $_SESSION['reg']['data']['password1']; ?>'

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


Recently I installed Ubuntu 14.04, now I am unable to play/listen to any music or video. I am a new user.

I'm new to Ubuntu. I tried installing it with Windows 8.1, but failed I lost all my files.  I have successfully formatted my PC and installed Ubuntu, but how do I install codecs to play audio and videos files ?


If Mad-eye Moody's only purpose was to get Harry to Lord Voldemort then why did he have to wait until the very end of the Tri-wizard tournament? Being a teacher he had Harry at his mercy anytime so should he take the pain of getting Harry into the tournament, risk helping him with the tasks, and so on? He could have easily done it any time during the entire year with any other object as the port key.  Why was the Triwizard cup chosen?  Is there anything that I'm missing?

In Harry Potter and the Goblet of Fire the Triwizard Cup was used as the portkey to send Harry and Cedric to the graveyard in Little Hangleton to face Voldemort.    Why was the Triwizard Cup chosen?    Couldn't Crouch Jr. have used anything as a portkey; which would have been much easier and without as much risk (after all of their planning Cedric almost ended up getting the cup first).


How can we automate developer tools - console section using Selenium? how to get data from the console for a particular service call. ex: as per the screenshot attached I what to know a.fn.init[div#804]  call data using Java and Selenium in eclipse  Is it possible? If so, how do I achieve this?

How can we automate developer tools particularly the networks section using Selenium?  I need the preview section data of a service call to be logged while using automation.    Is it possible? If so, how do I achieve this?


I am looking for a word ( a compound word or phrase would be acceptable) that describes a negative event that may take place in the future. However, I was unable to find such a word in the prominent online thesaurus or dictionary. For instance, this year a number of countries the world over were forced to impose lock downs to stop the spread of the ongoing corona virus pandemic.  What word can be used to describe a negative event like the corona virus pandemic that may occur in the future? Sample Sentence: A _ like the 2020 corona virus pandemic might occur in the future. So I can fill that blank with the words negative event. A negative event like the 2020 corona virus pandemic might occur in the future. In place of the words negative event I am looking for a word that describes such an event that might occur in the future.

I have the feeling I'm forgetting a very simple word. But anyway, is there a word for that? Example:     The [...] that haven't occurred yet are the most scary ones.


Is Ubuntu Touch support available for porting to latest devices that runs Android L or Android M? To run Ubuntu touch on Android devices, some of the components from Android are required (E.g, Modified kernel to support Ubuntu Touch, Android HAL, drivers etc.) The initial Ubuntu Touch port for the list of compatible devices were based on Kitkat.  Is there a working Ubuntu Touch port available for the latest Android devices that runs Android L or Android M? What level of support available from Ubuntu Touch for porting the components (modified kernel, HAL, drivers based on Android L or M) to these devices?

With the announcement of the Ubuntu Phone OS I'd like to know what phone (and tablet) models are supported at this time.  Note from foss & Oli: We are making this the master question for all future "Will this work on <insert random tablet/phone/device here>?!" questions


This may be a simple question, but I was unable to find anything resembling the topic:  I have a program that needs to be run in Linux, and Windows.  As you know, Windows new line character is \r\n, and in Linux/Unix it is \n (Mac is \r).  When I need to print anything to a file or to the command line, I can use println() function to create a new line.  This works fine, but I need to return many new line characters as Strings so that I can for example use them more than once, modify them, etc. (I can also use find-replace to replace all my \r\n at the same time.)  The windows character \r\n I am using currently prints ^M in Linux.  Is there a character, or method I can use to return new lines in Strings?

How do I get a platform-dependent newline in Java? I can’t use "\n" everywhere.


I want to have continuous numbering for all my theorem, lemma, etc environments, which wan be achieved with using a shared counter.  However this seems to break cleveref's capability of referencing them by distinct names:  \documentclass{book} \usepackage{amsmath, amsthm, mathtools} \theoremstyle{definition} \newtheorem{definition}{Definition} \newtheorem{example}[definition]{Example} \usepackage[capitalise,nameinlink]{cleveref} \crefname{example}{Example}{Examples}  \begin{document} \begin{definition}\label{def} Definition \end{definition}  \begin{example}\label{ex} Example \end{example}  \cref{def}  \cref{ex} \end{document}   This does produce the references Definition 1 and Definition 2, instead of Definition 1 and Example 2.  How can this be circumvented?

I am trying to use the  package.  I have the following counters defined (hopefully this is the right way to do it!)  \newtheorem{thm}{Theorem}[section] \newtheorem{lemma}[thm]{Lemma} \newtheorem{cor}[thm]{Corollary}   This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.)  My problem is \cref always returns Theorem 1.2, Theorem 1.3. I   Perhaps this is not right? (In my preamble)  \crefname{thm}{theorem}{theorem's} \crefname{lemma}{lemma}{lemma's}


I keep getting this error:  The value of the p3_lkid parameter contains a character that is not allowed or the value exceeds the maximum allowed length. Remove the character from the parameter value or reduce the value length and resubmit. If the error still persists, report it to our Customer Support team. Provide the URL of the page you were requesting as well as any other related information.   We are using Lighting. My intent is when someone clicks on the button on the opportunity layout, it sends an email to two individuals and uses the classic HTML email template. Please note that my logic had the real email addresses. Any help would be greatly appreciated! Thank you!  /_ui/core/email/author/EmailAuthor?p3_lkid={!Opportunity.Id}&retURL=%2F{!Opportunity.Id}&p6="Special Offer: "&{!Opportunity.Special_Offer__c}&"-Account: "&{!Opportunity.Account}& "- License Seats: "&{!Opportunity.Licensed_Seats__c}&p24=xxxxx@greathorn.com;xxxxxxxx@greathorn.com&template_id=00X1P000000Z2Hp

I am trying to make a share on linkedin link on my lightning component of community like this :    <a href="https://www.linkedin.com/shareArticle?mini=true&amp;url=my_url_here;&amp;title="+{!v.SingleBlog.Title__c}+"&amp;summary=sdfsjf"   target="_new" >  Linkedin      </a>    But When I am saving this its giving me an error :  Getting   Field Integrity Exception :  Failed to save undefined: markup://c:BlogDetail:70,162: ParseError at [row,col]:[71,162] Message: Element type "a" must be followed by either attribute specifications, ">" or "/>".:    I know its because of the variable {!v.SingleBlog.Title__c} whose value I want to append in share url at runtime.   How to put this variable's value in url?


I wonder if someone could recommend me some textbook (or recourse in general) on machine learning, suitable for mathematics students. I am a student in pure math, specialized in real and functional analysis, I am also familiar with basic probability theories based on measure theory. I have no knowledge of computation theories however. I want to find a text that focuses on ML theory that uses precise and rigorous mathematical statements in terms of axioms, definitions, theorems, and proofs, as opposed to a more applicational manner focusing on specific codes. In particular, I do not want text that spends half its length talking about basic definitions such as vector space or continuity/differentiability, rather some text that assumes reader's familiarity with mathematics. Any suggestions?

I am a math master student and have done fundamental math courses like probability theory, measure theory, linear algebra and know a little bit about functional analysis. What is good way for me to learn machine learning in depth?  I have read the classical text  last summer; my impression was that it was very ineffective to read the book chapter by chapter like a mathematical text. The book does not go deep enough for many algorithms and skip too many steps considered too technical by engineers.   Is there a machine learning book that maybe does not cover too many topics, but treat each one in depth and takes advantage of math when necessary? It will be great to be able connect fundamental mathematical objects with machine learning (I am thinking about Lp spaces, hilbert space etc).


It's my first time in coding in Python, I have created a code that bubbles sort a given list. This is my code:   def bubbleSort(alist):     for passnum in range(len(alist)-1,0,-1):         for i in range(passnum):             if alist[i]>alist[i+1]:                 temp = alist[i]                 alist[i] = alist[i+1]                 alist[i+1] = temp  alist = ["hi",50,93,"/",77,31," ",55,20] bubbleSort(alist) print(alist)   I am trying to ask the user for the list instead of storing the list in the code, but I have no idea of how to do that in Python. Would someone help me out with it.

How do I have a Python script that a) can accept user input and how do I make it b) read in arguments if run from the command line?


If $1+ab$ divides $a^2+b^2$ , prove that the quotient is a perfect square.   Tried to use the fact that $\displaystyle\frac{a^2+b^2}{1+ab}$ is an integer but I am stuck.

Let $a,b$ be positive integers.  When $$k = \frac{a^2 + b^2}{ab+1}$$ is an integer, it is a square.    Proof 1: (Ngô Bảo Châu): Rearrange to get $a^2-akb+b^2-k=0$, as a quadratic in $a$ this has two values: $a$ and $kb - a = (b^2-k)/a$. (The second root is determined in two different ways from the expansion $(x-r_1)(x-r_2) = x^2 - (r_1 + r_2)x + r_1 r_2$.)  Now suppose we have $a,b$ such that $k$ is an integer but not a square, by the investigation about roots we have that the second root is a nonzero integer since $k,b,a$ are integers and $k \not = b^2$, futhermore it is positive which is easily seen from its defining equation.  WLOG assume $a \ge b$ so that the second root is strictly smaller than $a$. This leads to a decent, replacing $a$ with the second root.    Proof 2 (Don Zagier): Apply reduction theory (specifically, Sätze 1 and 2 of Section 13 of my book on quadratic fields) to the quadratic form $x^2 + kxy + y^2$, which is the unique reduced quadratic form in its equivalence class.    Note that Proof 2 is pretty much the same as Proof 1 when written out in explicit detail, but I could not read Zagier's book because I cannot read German.  I would like to know more approaches to this and other alternative proofs of this result if possible! Thanks in advance.  I would also be interested in related problems (especially easier ones of a similar nature) and texts which cover the reduction theory in English.


when I play minecraft it runs super well no lag at all, but when I use ubuntu with minecraft on it seems to be that ubuntu gets super slow it takes 5 seconds to get to my home folder it has never done that before I also try to run a bukkit server it works well but the I use a plugin and I get a timeout error ever since ubuntu got slow bukkit always crashed. can anyone help? i have 2.9 GB RAM. Thank You

How to correctly install Minecraft, including setting any needed packages or apps to install it and to troubleshoot the most common problems that Ubuntu users face when trying to use Minecraft.  I am trying to install and run Minecraft without first having to install the Oracle version of Java. I want to use the OpenJDK version that comes with Ubuntu and as a last resort, use the Oracle one.  I also want to know a list of problems related to Minecraft in Ubuntu and the possible solutions to them.  A step by step guide on how to install Minecraft would also help.