i have a service that return for me true in the node (article) successfully create and false if something wrong ,  but in the controller i am getting this error 'LogicException : The controller must return a response (success ! given). dans Symfony\Component\HttpKernel\HttpKernel-&gt;handleRaw() (ligne 169 de /var/www/html/vendor/symfony/http-kernel/HttpKernel.php).' can anyone tell me where is the problem in the controller return of my code please ?  service   public function createArticle()   {     $node = Node::create(array(       'type' =&gt; 'article custom',       'title' =&gt; 'article custom',       'langcode' =&gt; 'fr',       'uid' =&gt; '1',       'status' =&gt; 1,       'field_fields' =&gt; array(),     ));     $node-&gt;save();     if($node)       return true;     else       return false;   }   the controller methode   public function myPageCreate()   {     $service = \Drupal::service('mymodule.ran');     $createnode = $service-&gt;createArticle();     if($createnode)       return 'success !';     else       return 'somthing wrong !';   }
I have been creating a table from mysql result , but its printing the html markup only and says controller must return a response . what may be the reason ?      LogicException: The controller must return a response ((5   rows)group_nameparent_nameEditDeleteSelect   itemsL2V9http://192.168.1.236/mailusers/usergroup/edit/6>edithttp://192.168.1.236/mailusers/usergroup/delete/6>delete           L3v3http://192.168.1.236/mailusers/usergroup/edit/7>edithttp://192.168.1.236/mailusers/usergroup/delete/7>deleteAdminsV6http://192.168.1.236/mailusers/usergroup/edit/8>edithttp://192.168.1.236/mailusers/usergroup/delete/8>deleteL4Vodafonehttp://192.168.1.236/mailusers/usergroup/edit/9>edithttp://192.168.1.236/mailusers/usergroup/delete/9>deleteVCNONetworkhttp://192.168.1.236/mailusers/usergroup/edit/12>edithttp://192.168.1.236/mailusers/usergroup/delete/12>delete given). in     Symfony\Component\HttpKernel\HttpKernel->handleRaw() (line 157 of     vendor/symfony/http-kernel/HttpKernel.php).
I came across the phrase, “suck it up and go” in the columnist’s answer to a question from a reader of Carolyn Hax's column in Washington Post’s “Lifestyle” section (July 2nd).  The Q&amp;A titled “Ever the aunt, never the godmom” begins with the following sentence:     “Dear Carolyn: We just got an invitation to the baptism of my seventh nephew on my husband’s side. Once again we were not considered as godparents. I felt snubbed. -- Is this a legitimate snub? Should I talk to my sister-in-law about it?”    and Carolyn answers:     “Boycotting the baptism in a wounded huff would be petty, yes, and that’s the main reason to suck it up and go - but you also need to go because nothing would undermine your own purpose more tidily than staying home.”   I checked the meaning of “suck it up and go” in English Japanese dictionaries at hand only to find one of them shows “suck it and see” meaning “to try” as a British and  Australian usage. Online dictionaries register “suck it (up) and “go suck,” but not “suck it up and go.”   What does “suck it up and go” mean? Is it an American version of “suck it and see”? Let's stop displaying a user's accept rate My feature request (or anti-feature-request perhaps) is the following: Let's stop displaying a user's accept rate.  For those of you who know "Fawlty Towers", the whole issue of a visible accept rate and our behavior towards it starts to feel like .   We generally seem to agree that harassing a user about it is not appropriate and that our decision to answer a question should not depend on it, yet we display it in varying terrorist-threat-levels of color. Yes dear users, please don't pay any attention to the brightly orange colored percentage you see there. And whatever you do, don't bring it up.  But as long as you're displaying the accept rate, people will comment on it, criticize users for it and possibly reconsider answering because of it. And while I'm of the opinion that a low accept rate should not stop you from answering (we're here to make the internet better after all) and that the possible reputation gain (or lack thereof) should not factor in either, I can't blame users for considering it. It's in their face after all. And we're only people.   So let's take the issue off the table. Or at least partially. Information about a user's acceptance behavior can still always be gathered from the profile. But at least that would be less in-your-face.   "But it helps me to see if a user is a help vampire!" I'm still wondering if those are of the sparkly variety as well, but I digress. So what? If the question is bad, downvote it. Evaluate a question on its individual value. There is no need to take a user's history into account. There might be a correlation between the quality of a question and a user's accept rate, but there doesn't have to be. And if there is, the bigger problem is the question's quality.  "Exactly! A user with a low accept rate might indicate there's a problem!" I'm not arguing we should get rid of the accept-rate value within SO/SE. After all, this Q&amp;A works based on up and downvotes, as well as the acceptance of an answer. But why not use it behind the scenes to (very occasionally) nudge the user with a statement like:      "You have received several answers to your questions, yet have not accepted an answer as correct or helpful in a while. You might want to evaluate them and where possible ".    After all, in the various questions with regards to comments on low accept rates, if any comments are encouraged at all, then they are of this soft variety. So why not let the system take care of that?  I feel this would take the whole issue of accept rate off the table, while still providing the user with the information he might have missed or needs. (As a bonus, it would reduce the frequency with which the topic is brought up here on Meta) And those users who would ignore this information are most likely not convinced by a displayed percentage either. I am trying to prove that any conjugate of $a$ has the same order as $a$.  Let $G$ be a group and let $a \in G$.  An element $b \in G$ is called a conjugate of $a$ if $b=xax^{-1}$.  My professor gave us a hint.  Prove $a^k=e$ iff $b^k=e$ for all $k \in \mathbb{Z}$ implies $o(a) = o(b)$.  My first move is to $b^k = (xax^{-1})^k = (x^{-1})^ka^kx^k = (x^{-1})^kex^k = (x^{-1})^kx^k=x^{-k+k}=x^0$  I am not sure that I am doing this correctly?  I am trying to get $b^k=e$.  However when I raise $(xax^{-1})^k$, I am not sure if I what I have done is correct?  I am kind of confused here. I recently installed Ubuntu 14.04, then I installed lamp-server and placed my webpages in /var/www directory, but when I opened localhost in the browser there was nothing. I think that happened because Zend updated Apache.  Whatever the reason may be, I want to know where to keep my php files so that I can access them from my browser. What is the difference of 3 object declarations of javascript How do I connect to a WPA wifi network using the command line? So basically, I'd like to use iwconfig to connect to my wifi network when I'm not inside X. But I just don't see a way to do it in the man page. Any idea? How can I find infinity focus on a kit lens with no markers? I have a kit lens which has no markers. What would be a recommended way to find infinity focus on this lens?  I plan to shoot objects at night -- not necessarily stars or the moon. So, adjusting the focus using the viewfinder may not be an option. Upgrade SQL Server 2000 database to 2008 R2 and enable new features Why are rings called rings? What exactly is TLP doing that default system config wouldn't? All the info about TLP on the surface looks more like advertisement and marketing to me, I can't see any detailed comparison to default configurations. What are the precise differences compared to default (K/L)Ubuntu installs under the hood, are they really effective?  Update: And if they really are, why aren't they a part of a default config? 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 to increase difficulty in Dungeon World I've been GMing for a couple of sessions now and I'm still struggling at making encounters or situations more difficult. I will describe dangerous situations and encounters in fiction but the mechanics make it too easy for my players to succeed.  For instance no matter how big I describe the Troll, if the fighter of the party charges him and swing his sword, roll+2 for Hack and slash, he'll easily hit the troll. Almost 40% chance to hit without consequences. Short story from many years ago: the ancient, brilliant, cruel race was Earthlings Why multiple PTR records in DNS is not recommended? I   that using multiple PTR records in a DNS configuration is not recommended.   However, the reasons are often vague, or not so obvious, naming:    "it can cause problems",  "can trigger bugs in programs expecting a single answer" : it's the software's problem then, isn't it?! "can make DNS answer packet too large" : isn't this fixed with ?   Are these good reasons? Do you know of any other (good) reasons? All this kinda looks like a "legacy fear"... Includegraphics maximum width With \includegraphics I can give the width of the resulting image (which would be scaled).   How can I give a maximum width of the image? That is, if the original is smaller than X, I'd like to keep the smaller image, if the image is larger than X, then the image width should be X.  Using pdflatex/graphicx. For example:   For an MVC architecture, should I prefer Ruby on Rails or PHP [closed] Gmail: What is a jQuery selector for incoming mail senders only? How to work with highly compressed and nested CSS in general? [closed]   Better to convert to   [closed] For an MVC architecture, should I prefer Ruby on Rails or PHP [closed] Gmail: What is a jQuery selector for incoming mail senders only? How to work with highly compressed and nested CSS in general?   I should first read the title and sometimes open the question to understand if the question is closed.  I think the [closed] mark  should be at the beginning of the title, not in the end, where I won't ever be if the title is long.  Also coloring will be a good improvement (via @Shadow Wizard). I have this struct:  struct Map {     public int Size;      public Map ( int size )     {         this.Size = size;     }      public override string ToString ( )     {         return String.Format ( "Size: {0}", this.Size );     } }   When using array, it works:  Map [ ] arr = new Map [ 4 ] {     new Map(10),     new Map(20),     new Map(30),     new Map(40)};  arr [ 2 ].Size = 0;   But when using List, it doesn't compile:  List&lt;Map&gt; list = new List&lt;Map&gt; ( ) {     new Map(10),     new Map(20),     new Map(30),     new Map(40)};  list [ 2 ].Size = 0;   Why? I have secured a visa for the US, be it an ESTA or another visa requiring me to go for an interview. My understanding is that obtaining a visa for the US does not guarantee me entry into the country. Rather, :  Entering the United States A visa allows a foreign citizen to travel to a U.S. port-of-entry (generally an airport) and request permission to enter the United States. A visa does not guarantee entry into the United States. The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP) officials at the port-of-entry have authority to permit or deny admission to the United States. If you are allowed to enter the United States, the CBP official will provide an admission stamp or a paper Form I-94, Arrival/Departure Record.  What happens once I arrive in one such port-of-entry? Will I have to go through customs checks? Will I have to talk to an immigration officer explaining my reasons for visiting the US? What documentation, if any, should I bring? Is the documentation I brought for the interview enough? What if I did not attend an interview since it was not required (for example if I obtained an ESTA online)? Can we implement the low quality flags to delete posts after a certain number of flags? Can we implement the low quality flag to be like the abuse or spam flags. So if a certain number of low quality flags are made  on a post (whether it be a questions or an answer) the post is deleted?  This would also relieve *close vote and delete vote queues. *which is a much discussed topic.        related: How do I inspect the view hierarchy in iOS?