How to Hibernate in Ubuntu 18.04 It seems like Hibernate function is not working properly on Ubuntu 18.04. I have tried with several commands like sudo pm-hibernate, and sudo systemctl hibernate etc. Nothing works.  Is hibernate also related to Hardware? My laptop RAM is 16GB and I have created the swap partition with the size of 24GB.  Any suggestion?
Ubuntu 18.04 can't resume after hibernate Hibernate worked correctly when I had been using Ubuntu 17.04. After upgrade to 17.10 I couldn't resume because of black screen after resume ().   After upgrade to 18.04 if I try to start my computer after hibernation it boots as if there was no hibernation done.
How to adjust the size and placement of chapter heading in report class How could I adjust the size and placement of chapter heading in my custom class? I am using report class as my base. When I used titlesec package inside my custom class, it threw error     ! Package titlesec Error: Not allowed in `easy'   settings. Is it possible to explicitly tell Stack Overflow the language of the code block you are including? Possible Duplicates:             Stack Overflow awesomely detects what language a code block is and syntax highlights it accordingly. But sometimes it fails. Is it possible to explicitly tell it what the language is?  php:  if ( force_ssl_admin() &amp;&amp; !is_ssl() ) {     if ( 0 === strpos($_SERVER['REQUEST_URI'], 'http') ) {         wp_redirect(preg_replace('|^http://|', 'https://', $_SERVER['REQUEST_URI']));         exit();     } else {         wp_redirect('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);         exit();     } }   ruby:  def destroy   @payment = Payment.find(params[:id])   @payment.destroy    redirect_to :back end   yaml (FAIL)  foo: this is foo! bar: this is bar! id: 5 The final state of 1000 light bulbs switched on/off by 1000 people passing by There are  1000  light bulbs and 1000 tutors. All light bulbs are off. Tutor 1 goes flipping light bulb 1,2,3,4... tutor 2 then flips 2,4,6,8... tutor 3 then 3,6,9...etc until all 1000 tutors have done this.  What is the status of light bulb 25? 93? 576?  Is there a general solution to find out the status of any light bulb?  How many light bulbs are on after all 1000 tutors have gone by?  Not homework but a UK university interview question. Please help. Let $|A|=\alpha, |B|=\beta, |C|= \gamma$ be cardinals and $\beta \leq \gamma$. Prove $\alpha ^{\beta}\le \alpha ^{\gamma}$.  So from the given we know that there's an injection $f:B\to C$ and some functions $h:B\to A, g: C\to A$. We want to prove there's an injection $l_1:A\to C$. It appears that $f$ doesn't help here.  Trying to take representatives from $A$ and show they're in $C$ and there's an injection doesn't work so maybe the function should be $l_2: h \to g$ but I don't know how to work with it. How can I view the time of a text message in iOS 7? In iOS 7, I've noticed that some SMS/MMS messages have a date and time stamp displayed above the message.  Although this is useful, not all text's in the list receive such a date and time stamp.  Is there a way that I can view the date and time for ever text message? I am trying to run an executable file from a network drive on Windows 7 Professional (64-bit) in order to install a program, but, each time I try, it doesn't run and the following message appears:  {path-name} The specified path does not exist. Check the path, and then try again.   I am definitely connected to the network drive as I can see all of the directories and files, and can even open non-executable file types. Also, I am fairly confident that this is neither a firewall nor a permissions issue. I want to add additional items to the data returned as . So for every function/query that returns a WP_Post object I want my additional data added.  Example of returned result:  WP_Post (object) =&gt; [     // Default data returned by WP_Post     ID                  =&gt; int,     post_author         =&gt; string,     post_name           =&gt; string,     post_type           =&gt; string,     post_title          =&gt; string,     post_date           =&gt; string,     post_date_gmt       =&gt; string,     post_content        =&gt; string,     post_excerpt        =&gt; string,     post_status         =&gt; string,     comment_status      =&gt; string,     ping_status         =&gt; string,     post_password       =&gt; string,     post_parent         =&gt; int,     post_modified       =&gt; string,     post_modified_gmt   =&gt; string,     comment_count       =&gt; string,     menu_order          =&gt; string,      // Additional data I want to add     extra_data_1        =&gt; array,     more_data_key       =&gt; string,     another_added       =&gt; string ]   For example when the functions  or  are run they will return the WP_Post object along with my additional data.  I've tried finding the appropriate  but this has been unsuccessful.  I am hoping I can do something like:  // This is concept code add_action('pre_wp_post_return', function($data) {     $data-&gt;extra_data_1     = get_post_meta($data-&gt;ID, 'extra_data');     $data-&gt;more_data_key    = get_post_meta($data-&gt;ID, 'more_data', true);     $data-&gt;another_added    = get_post_meta($data-&gt;ID, 'another_data', true);      return $data; });   My reasoning is I am having to build a custom API for WP that uses a range of different core functions which return WP_Post objects. Being able to add my additional data in one place would prevent me from duplicating code.  I hope this is clear enough. Any help would be great! I need help to calculate the  Fourier transform of this funcion  $$b(x) =\frac{1}{x^2 +a^2}\,,\qquad a &gt; 0$$ Thanks. How do a tile with diagonal lines in Photoshop? How does one draw a tile with diagonal lines that can seamlessly tiled with Photoshop? I've lost a command block, how can I find it? I've placed a command block making it day all the time. I want to turn it off, but I've lost it. What's the quickest way to find it? Why can't Discovery's Data Core be separated from the ship? How do you use the Dungeon Defender's Portal Gun? The topic pretty much sums up my question. I have not yet figured out how the gun operates aside from the fact that it creates Portal portals. The weapon description indicates that it deals 250+ base damage, but how is that damage applied to the monsters? Idea behind proof that $\frac{21n+4}{14n+3}$ is irreducible for all $n$ I have a proof of $\frac{21n+4}{14n+3}$ being an irreducible fraction for any positive integer $n$. The proof starts with the following: Indeed, from the equality: $$2(21n+4)-3(14n+3)=-1$$ and so on..But how does this equality follow from the fraction? Lie bracket for Lie algebra of $SO(n,m)$ I was viewing some old posts on Stack Overflow (two-year-old posts) and found that due to "fast technology trend changing," some of them are no longer valid. Stack Overflow (and the Stack Exchange sites generally) should have some sort of criteria to tag questions as Obsolete, or a vote-based system to mark them as such.  I am not in favour of closing obsolete questions. Money transfer from India to USA My daughter is a US Citizen. We (parents)are also planning to permanently settle in US. We will go their as Permanent Resident,as per US Law. We have a house here in India worth Rs.2 Crores.  We want to sell it and take money with us. We have ordinary savings Bank account here in India.  My US Citizen Daughter is a Income Tax payer.  Now your advises are required as under:   What are the routes to take money from India to US and our tax liabilities Can I gift this whole amount to my US Citizen Daughter or what is the maximum limit of Gift amount.  What will be the tax liability on me and on my Daughter in case of Gift   Whether I have to show it in my Income Tax Return or in my Daughter's Tax Return. What US Income Tax Laws says. What will be the procedure to send money as Gift to my Daughter. Will the money will go directly from my Bank Act.to my Daughter's Bank Account. Will there will be wire transfer from bank to bank Can I send money through other money sender Certified Companies also.    Please advise. If there is something more on the subject to make me understand, please advise. Thanks, Is a Schengen visa/transit visa required for a transit flight through two Schengen airports? UNITY : I want to make my UI text fade in after 5 seconds I know this question has been asked and asked but none of the topics i visited gave me an answer. I'm making a game programmed in c# where you control a boat and i want my UI to appear smoothly by fading in after X seconds. May someone help me? Whenever I open my files, my hidden files show up. I can hide them but when I open up my files again, they're showing again. How do I make the hidden files invisible permanently? What's the main difference between int.Parse() and Convert.ToInt32