How can I skip the unity launcher for a (Py)Qt-app?  As you see when running the code below, there is an icon in the launcher. I don't need that icon because I manage the windows of that application by a menu in the unity top panel.  I could of course use devilspie and set skip_taskbar, but than I can't show the window again after it has been minimized.  Moreover, I know a Gtk-application that works as intended, but in contrast to my application, its GUI is generated by an .ui-file. There it is done by  &lt;property name=”skip_taskbar_hint”&gt; False &lt; /property &gt;. I need this in PyQt.  import sys from PyQt4.QtGui import QMainWindow, QApplication  class MyApp(QMainWindow):     def __init__(self, parent, title):         super(QMainWindow, self).__init__(parent)         self.show()  if __name__ == "__main__":     app = QApplication(sys.argv)     myapp = MyApp(None, "App")     app.exec_()   EDIT: Qt.X11BypassWindowManagerHint does remove the icon from the launcher, but makes the window always stay on top regardless if Qt.WindowStaysOnTopHint is set or not. So as a 2nd solution, does anyone know how to fix that? I guess because X11 is now bypassed, no Flag will work.
With Glade Designer that lets you set up Gtk-Ui's you can check the option that windows are not shown in the launcher. If I take a look at the ui-file generated by Glade, it says &lt;property name="skip_taskbar_hint"&gt;True&lt;/property&gt;. In gtk code this hint is  window.set_property('skip-taskbar-hint', True). However I believe that this option is not exclusively Gtk-specific, and want to apply this one on my PyQt4-app. The Ubuntu window manager must be able to receive that hint, otherwise I would see the window of a gtk-application i use (stickynotes-indicator). So there MUST be a way of doing this in Qt or any other language, right?  Does anybody know such an option? Python or Qt syntax, doesn't matter!
Why do we need to fork to create new processes? Clone a hard disk content to another hard disk I subjected my hard disk (C drive) to a disk scan and found that there was 12 KB of bad sectors. I now consider that disk to be unreliable, and am looking forward to transferring all my data to another file.  The problem is, I want to clone the complete drive (including the apps, OSes, files and everything, verbatim) to another drive. I know there would be some crazy software activation issues, like Windows Not Genuine problem and so on. But I wonder whether is there a tool powerful enough to do the cloning and at the same time maintain the  OS and apps? What's a big-vocabulary word for someone with a big vocabulary? What's a big-vocabulary word for someone with a big vocabulary?  I'd like to say I'm looking for a "_____". Some publications capitalize He, Him, etc., when referring to a god.    What is this practice called? 'Proper noun' is rather generic. Let $(X,d)$ be a metric space and let $S$ be the set of Cauchy sequences in $S$. Define "~" in $S$ by "$\{s_k\}$ ~ $\{t_k\}$" to mean that $d(s_k,t_k) \to 0$ as $k \to \infty$. Let $X'$ denote the set of equivalence classes of $S$ and let $s'$ denote the equivalence class of $s = \{s_k\}$.   I know $\phi(s',t') = \lim\limits_{k \to \infty} d(s_k,t_k)$ is a metric on $X'$.   Show $(X',\phi)$ is complete.  For $x \in X$, define $x'$ to be the equivalence class of the constant sequence ${x,x,...}$. Show that the function $x \to x'$ is an isometry of $X$ onto a dense subset of $X$.   If anyone can share a proof, or steer me in the right direction, maybe tell me what it is that I need to prove specifically, that would be great. How do you get the rendered height of an element?  Let's say you have a &lt;div&gt; element with some content inside. This content inside is going to stretch the height of the &lt;div&gt;. How do you get the "rendered" height when you haven't explicitly set the height. Obviously, I tried:    var h = document.getElementById('someDiv').style.height;   Is there a trick for doing this? I am using jQuery if that helps. Decomposition of semisimple Lie algebra via its roots how to turbo boost my cpu on Ubuntu? My PC has one Intel Haswell i5 4690, which is supposed to be boosted up to 3.9GHz from the regular frequency 3.5GHz. I do not know if it is possible to use some softwares to turbo boost this cpu on Ubuntu 14.04LTS. THX! Distributing distinct apples and pears to three people so that each person receives at least one pear How many ways are there to distribute seven distinct apples and six distinct pears to three distinct people such that each person has at least one pear.   Note: The first part of the problem was the same but the word distinct was replaced with identical apples and pears. That answer is $360$ ways.   What has to be done differently when the word identical is replaced with distinct? If $\left|z+\frac{2}{z}\right |=2$, then prove that max value of $|z|$ is $\sqrt 3 + 1$ (Corrected version) Then the expression will be  $$|z|+\frac{2}{|z|}\ge 2$$  Solving the quadratic inequality   $$|z|\ge1+i$$ and $$|z|\le1-i$$  I don’t know how to solve further. Please help  Thanks!   this is the corrected version of an identical question asked by me. I am sorry for the inconvenience caused Referencing List by indexVar in lightning component I have nested list in my lightning component and now I want  to refer records of list using indexVar.  Has anyone done this before?  &lt;aura:iteration items="{!v.records}" var="row" indexVar="rowCnt"&gt;  Like `{!row[rowCnt]}?`  &lt;/aura:iteration&gt; How to configure splash screen after plymouth I have configured my splash screen for plymouth - and it works perfectly. I've also configured the display manager (I'm using gdm). In between these two I get a very brief splash screen - a kind of swirl of multi-coloured ubuntu like colours. Where does this splash screen get set, and how do I change it?  Edit: Here is a video of my boot sequence, showing the screen in question: Random place change in row with restrictions How could I randomly change places of characters in a text file, with some probability (say 10%)?  file:  1  34567 2  12356 3  16987   outcome:  1  35674 2  12653 3  61987 How and why do you use an image histogram? I realize that an image histogram is a graphical display of an images tonal distribution (i.e. horizontal darks to lights, vertical pixel distribution), but how does one really use it and why? I mean, can't you determine everything you need just by looking at the image? Why does the Cauchy distribution have no mean? Why does the Community user approve and reject edits? How to make shortcuts on Ubuntu 17.10? "ImportError: No module named _struct" configuring python-minimal When I run sudo apt-get upgrade, the dpkg error appears and interupts the process.  Error details:  Setting up python-minimal (2.7.3-0ubuntu7.1) ... Traceback (most recent call last):   File "/usr/local/lib/python2.7/runpy.py", line 162, in _run_module_as_main     "__main__", fname, loader, pkg_name)   File "/usr/local/lib/python2.7/runpy.py", line 72, in _run_code     exec code in run_globals   File "/usr/local/lib/python2.7/compileall.py", line 16, in &lt;module&gt;     import struct   File "/usr/local/lib/python2.7/struct.py", line 1, in &lt;module&gt;     from _struct import * ImportError: No module named _struct dpkg: error processing python-minimal (--configure):  subprocess installed post-installation script returned error exit status 255 dpkg: dependency problems prevent configuration of python:  python depends on python-minimal (= 2.7.3-0ubuntu7.1); however:   Package python-minimal is not configured yet.   And this problem leads to a series of dependency problems when processing the following packages:    python  gwibber-service  libgwibber3  libgwibber-gtk3  gwibber  gwibber-service-facebook  gwibber-service-identica  gwibber-service-twitter  python-all  python-dev  python-all-dev  python-apt  python-problem-report  python-apport  python-libxml2  unity-lens-gwibber  unity-scope-video-remote   Finally, nothing I can do for this problem. And several days later, the root directory is full and I even could not uninstall any software because of this problem. Checking if Ubuntu package contains desired update Can quarks be considered real and elementary?