How can I diagnose random freezing on Ubuntu? I've tried fresh reinstalls several times but the OS still freezes often.
All operating systems freeze sometimes, and Ubuntu is no exception. What should I do to regain control when...   just one program stops responding? nothing at all responds to mouse clicks or key presses? the mouse stops moving entirely? I have an    In what order should I try various solutions before deciding to pull the power plug?  What should I do when starting up Ubuntu fails?  Is there a diagnostic procedure I can follow?
Filling a polygon with a pattern of insets Change \headheight for a \pagestyle I have a document class that auto generates header from some user input. The problem is the first page should have a different page header than the others and the headline can be multi line. So \headheight is too small. Here is a demonstration of the problem:  \documentclass[twoside]{scrartcl} \newcommand{\longfirstpagehead}{% \begin{minipage}{10cm} some\\long\\text\\text\\text\\text\\text\\text \end{minipage}} \newcommand{\normalhead}{normal} \usepackage{scrpage2}  \newpagestyle{firstpage}{%     {\longfirstpagehead\hfill} %twoside links     {\longfirstpagehead\hfill} %twoside rechts     {\longfirstpagehead\hfill} %oneside     (\textwidth,1pt) }{%     {\pagemark\hfill} %twoside links     {\hfill\pagemark} %twoside rechts     {\hfill\pagemark} %oneside } %  \newpagestyle{normal}{%     {\normalhead\hfill} %twoside links     {\normalhead\hfill} %twoside rechts     {\normalhead\hfill} %oneside     (\textwidth,1pt) }{%     {\pagemark\hfill} %twoside links     {\hfill\pagemark} %twoside rechts     {\hfill\pagemark} %oneside } %    \pagestyle{normal} \AtBeginDocument{     \thispagestyle{firstpage}}  \usepackage{blindtext} \begin{document}     %\vspace*{1cm}     \blindtext      \blindtext     \pagebreak \end{document}   I tried to read the height with \settototalheight and:   add a \vspace at beginning of document (unnice hack):  still the bad box warning (of cause) first section has different alignment  manually change \headheight in pagestyle  text height and page foot is wrong (can't change this because some scoping?)  use Komascript in pagestyle  \recalctypearea warning  geometry in pagestyle  pretty much the same problem like the manual attemp    So I would like to change the \headheight for the pagestyle firstpage, but the page should still have the same page margins, etc. The problem is that this has to work with \thispagestyle. (Better Ideas are also welcome) Something like \thispagegeometry in geometry would be great. ;) Suppose a package provides whatever.service file so certain events (including whatever.socket) cause a daemon to start with a certain configuration.  I want to disable this completely. In particular, I want the old socket and any other unit files that might refer to this service by name to be unable to start the daemon.  Instead, I want to create my own unit files for this daemon with a different .socket unit and different environment variables. I also want my override to automatically take account of possible upstream updates to the original unit file (which my current solution of copying whatever.service as whatever-modified.service and editing it unfortunately does not provide).  If I create the following symlinks and files: /etc/systemd/system/whatever.service → /dev/null /etc/systemd/system/whatever-modified.service → /usr/lib/systemd/system/whatever.service /etc/systemd/system/whatever-modified.service.d/fix.conf  systemd considers the new service to be masked as well and refuses to start it. How to avoid this? Hi i want to put this simbol "%" in the tick labels only in the x axis how can i do? While watching  I noticed a very characteristic camera shot. At a scene where the main character, Wendy, sits in her room at the computer (watching the supposedly foretelling fotos), her sister talks to her from the outside (asking if she can have the camera/fotos). There is a certain camera shot, where on the left side a frontal close-up of Wendy's face is shown, while on the right side you see her sister standing in full height inside the open door.    This shot immediately struck me as being somehow characteristic and out of place and infused feelings to me of some kind of older Hitchcock or Brian De Palma thriller or something the like. I also think to remember of having seen this kind of shot or something similar used in , where Jessica Lange is shown in front of the dresser talking to Nick Nolte who stands in the door or father away.  I would like to know if this technique has a certain name or theory behind it and where its origins lie, or if there is any particular director or movie who made this famous. It may be even that Final Destination 3 uses this especially in reference to some director or movie. Does there exist a $1$-form $\alpha$ with $d\alpha = \omega$? I've been working with Corel Draw previously and now i use Illustrator more.Still getting used to some of their features though. I want to insert an image into a circle I've drawn but i don't know how to go about it.It is called power clipping in Corel. Any answers would be appreciated. Do I have to buy a second wildcard certificate for a subdomain? We already have a wildcard certificate for *.mycompany.com. Our network has hosts that are only reachable internally. All of them belong to the internal.mycompany.com subdomain. There is a private server with the host name server.internal.mycompany.com on which I deployed our wildcard certificate.  When I visit the web server I get a host name mismatch error. Do I really have to get another wildcard certificate for *.internal.mycompany.com or is there another (free!?) way to use our wildcard certificate for all of our subdomains and its subdomains without getting an error in the browser? Finding the search terms behind 'not provided' We use Google Analytics to track the vistors to our websites, were currently putting together a big audit of our SEO and one of the things we want to see is what search terms are working for us.  About 90% of our organic search traffic comes under 'not provided' which as i understand means a user is signed into a Google account when coming to our site, thus Google doesn't track their search terms.   This makes it really hard to conduct a meaningful study, (i suppose we could get the data of the 10% that we do have search terms for and multiply them it but i dont think thats a particularly good or meaningful approach).  Is there a workaround to see behind the 'not provided' data and see the search terms actually used ?    UPDATE  I read  last night from Hacker news, which states :     [using https will allow you] more complete referrer information in Google Analytics for people   visiting from sites already using HTTPS   and contained a link to this , it seems to say that because Google's users are using https that an https site cannot pass data to an http site, as the http site is not secure, none of the sites i manage have https / sll setup, could some one confirm if Google will pass you more referrer data if your site has https implemented ? I never dealt with Android devices before so I'm completely newbie at it, please comment if something is too simple.  Say I purchase , that has got Android Froyo 2.2 installed in it.  If there is a new version of Android released tomorrow or next month, will I be able to update it (like I will be able to update my iPod Touch 4 to iOS 5)? " java.lang.IllegalArgumentException: uri.getScheme() == null! " error using JavaFX to play audio How do I prove if $\sup\{ (n!)^{1/n} | n \in\Bbb N\} = +\infty$?  I don't know how to properly explain it I am new to the telecom simulations system specially multisim, which I am having a project that I want to simulate.  My project in (Analog Communications) is consisting to have FM Transmitter (Modulator) that accepts a generated signal (Sin, Cos) and get me the modulated output as a Graph.  I've found this FM transmitter circuit (3 km range):   ![two muppets][1]  and I am building that circuit on Multisim, and I failed. Because I faced many problems, first of, the variable capacitor symbol is weird here in the multisim, and the regular capacitor doesn't have variable options. Secondly, when I Use signal generator as (Sin, Cos), the output gets weird after 5 second of the simulation.  I want to show the input signal (before modulation) and the output signal (transmitted or modulated).  I guess my output result where not the as expected, as the signal (Sin with phase 90&deg;) is giving weird result of few seconds of simulating.  Below are screenshots of the simulation results within time.          Any ideas how to edit or fix the above circuit to have this output is similar to what it should be? Printing pointers in C I was trying to understand something with pointers, so I wrote this code:  #include &lt;stdio.h&gt;  int main(void) {     char s[] = "asd";     char **p = &amp;s;      printf("The value of s is: %p\n", s);     printf("The direction of s is: %p\n", &amp;s);      printf("The value of p is: %p\n", p);     printf("The direction of p is: %p\n", &amp;p);      printf("The direction of s[0] is: %p\n", &amp;s[0]);     printf("The direction of s[1] is: %p\n", &amp;s[1]);     printf("The direction of s[2] is: %p\n", &amp;s[2]);      return 0; }   When compiling it with gcc I get these warnings:  $ gcc main.c -o main-bin -ansi -pedantic -Wall -lm main.c: In function ‘main’: main.c:6: warning: initialization from incompatible pointer type main.c:9: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char (*)[4]’ main.c:11: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char **’ main.c:12: warning: format ‘%p’ expects type ‘void *’, but argument 2 has type ‘char ***’   (The flags for gcc are because I must be C89)  Why incompatible types of pointer? Isn't the name of an array a pointer to it's first element? So if s is a pointer to 'a', &amp;s must be a char **, no? And why do I get the other warnings? Do I have to cast the pointers with (void *) in order to print them?   And when running I get something like this:  $ ./main-bin The value of s is: 0xbfb7c860 The direction of s is: 0xbfb7c860 The value of p is: 0xbfb7c860 The direction of p is: 0xbfb7c85c The direction of s[0] is: 0xbfb7c860 The direction of s[1] is: 0xbfb7c861 The direction of s[2] is: 0xbfb7c862   How can the value of s and it's direction (and of course the value of p) be the same? Multiple one to many relationships in series I am making a DB for storing reports that have following fields:  Ad_system, Ad_Campaing, Ad_Group, Keyword, Date, Impressions, Clicks, Conversions   Logic is that, Ad_system can have multiple Ad_Campaings, Ad_Campaing can have multiple Ad_Groups and Ad_Groups can have multiple Keywords, and for every Keyword there is a report. Should It be like this? Because it kind of makes sense to me, but it doesn't look correct. Primary key can also be:  ad.system.name for first table  ad.system.name ad.campaing.name for second table  ad.system.name ad.campaing.name ad.group.name for third table  ad.system.name ad.campaing.name ad.group.name keyword for fourth table  They will always be unique, but then Report will always have all DB columns in it, so it's kind of redundant.  Is the approach that I have in the diagram below correct? Or is a better one what I just described? If I am not mistaken both should satisfy 3rd NF. Underlined math in a Beamer presentation: felt-tip marker underlining Front suspension or full suspension mountain bike "Needs cleaned" or "needs to be cleaned" How can I tell if an ETF is expensive? For stocks, I can easily look at the price/earnings ratio, and, according to The Intelligent Investor, stand clear of those with a ratio higher than 20.  How can I tell if the current price of an ETF is a good price to buy it? Are there such simple metrics? Difference in meaning of "frustrated at" and "frustrated with" What is the difference in meaning of "frustrated at" and "frustrated with" used in sentences like     He is frustrated with me   or      He is frustrated at me   When is each of these sentences above are used?