4 quadrant div with logo div in center
How can I vertically center a "div" element for all browsers using CSS?
How can I see the phone number dialed after I initiate a call? How long does it take for DNS records to propagate? Hibernate: comparing current & previous record I want to compare the current value of an in-memory Hibernate entity with the value in the database:  HibernateSession sess = HibernateSessionFactory.getSession(); MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id); newEntity.setProperty("new value"); MyEntity oldEntity = (MyEntity)sess.load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity sess.update(newEntity);       In CODEBLOCK#1 I get that newEntity.getProperty()="new value" AND oldEntity.getProperty()="new value" (while I expected oldEntity.getProperty()="old value", of course). In fact the two objects are exactly the same in memory.  I messed around with HibernateSessionFactory.getSession().evict(newEntity) and attempted to set oldEntity=null to get rid of it (I need it only for the comparison):  HibernateSession sess = HibernateSessionFactory.getSession(); MyEntity newEntity = (MyEntity)sess.load(MyEntity.class, id); newEntity.setProperty("new value"); HibernateSessionFactory.getSession().evict(newEntity); MyEntity oldEntity = (MyEntity)sess.load(MyEntity.class, id); // CODEBLOCK#1 evaluate differences between newEntity and oldEntity oldEntity = null; sess.update(newEntity);   and now the two entities are distinct, but of course I get the dreaded org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session.  Any idea?  EDIT: I tried the double session strategy; I modified my HibernateSessionFactory to implement a map of session and then...  Session session1 = HibernateSessionFactory.getSession(SessionKeys.DEFAULT); Session session2 = HibernateSessionFactory.getSession(SessionKeys.ALTERNATE); Entity newEntity = (Entity)entity; newEntity.setNote("edited note"); Entity oldEntity = (Entity)session1.load(Entity.class, id);  System.out.println("NEW:" + newEntity.getNote()); System.out.println("OLD: " + oldEntity.getNote()); // HANGS HERE!!!  HibernateSessionFactory.closeSession(SessionKeys.ALTERNATE);   My unit test hangs while attempting to print the oldEntity note... :-( Electric monopoles do exist, but why cannot magnetic monopoles exist?    The question is closed because I need to clarify it, but I don't know how I could ask it another way. However, I've recieved many answers that were appropiate and added something to my knowledge, so I consider it answered. Grant Select on all Tables Owned By Specific User Delete all but the most recent n file for each group of files that share the same prefix in a directory My question is a bit different from some older questions simply asking for "deleting all but the most recent n files in a directory".  I have a directory that contains different 'groups' of files where each group of files share some arbitrary prefix and each group has at least one file. I do not know these prefixes in advance and I do not know how many groups there are.  EDIT: actually, I know something about the file names, that is they all follow the pattern prefix-some_digits-some_digits.tar.bz2. The only thing matters here is the prefix part, and we can assume that within each prefix there is no digit or dash.  I want to do the following in a bash script:   Go through the given directory, identify all existing 'groups', and for each group of files, delete all but the most recent n files of the group only. If there are less than n files for a group, do nothing for that group, i.e. do not delete any file for that group.   What is a robust and safe way of doing the above in bash? Could you please explain the commands step-by-step? Why do people call their characters "toons"? I've seen that in games like MMORPGs and the Diablo series, where the player has an "arsenal" of several characters, people refer to their characters as "toons".  What is the origin of this term? Equal standard errors for all levels of a categorical factor in lmer I have a question about the standard error of mixed model parameters estimated using the lmerTest package.  I have 12 sites with 6 treatments over each site. I measured a response variable (biomass_of_insects) (which has a Gaussian distribution).   library (lmerTest)   model &lt;- lmer(biomass_of_insects ~ as.factor(treatments) + (1 | sites))   However, the model summary shows the same standard error for every treatment (see below: 114.065). Why is the standard error always the same?   Fixed effects:                                Estimate    Std.err      df       t        p (Intercept)             501.333     80.656  66.000   6.216 3.91e-08 *** as.factor(treat)F       126.667    114.065  66.000   1.110    0.271  as.factor(treat)I        -8.333    114.065  66.000  -0.073    0.942      as.factor(treat)I+F1/3  -75.000    114.065  66.000  -0.658    0.513    as.factor(treat)I+F2/3   18.333    114.065  66.000   0.161    0.873     as.factor(treat)I+F3/3   15.917    114.065  66.000   0.140    0.889 I've been trying to work out what generic means but I'm not making much progress.   You can find an example of the usage of the word generic for example : "School on Generic Singularities in Geometry" or :  "Rigidity of generic singularities of mean curvature flow"  Here is what I have so far:  I found  which mentions   "... "generic" singularities, i.e., singularities that appear for almost all maps ..."  Just after that he mentions "generic maps" but does not elaborate on what it means. He mentions it later (kind of) by saying  "...The precise definition of a generic map is very delicate; for the moment, we say only that any map may be approached by a generic map (up to an approximation on the derivatives of order r), and that any map that is sufficiently close to a generic map, in the preceding sense, is itself generic. ..."  and later  on he gives a definition of "generic singularity of a singular set":  "... A critical point $x$ of $S_r$ will be called transversally critical, or, furthermore, generic, if the tangent planes to $ \overline{f}(\mathbb R^n) $ and $F_r$ are in general position at the point $\overline{f} (x)$ of the Grassmannian, which is assumed to be ordinary on $F_r$ . ..."  Does this mean that generic and transversally critical are synonyms?  I feel I still don't understand what generic means even after reading this definition and part of the article.      Please could someone help me understand what generic means? There are a number of services that will scan a website for vulnerabilities and allow the display of a trustmark image if the site passes their tests.  This allegedly increases the level of trust a potential client feel toward the website and therefore makes them more likely to complete a purchase.    McAfee claims it has studies which show significant increases in sales. Should I take their word for it?  What sort of increase should I really expect, if any?  Are these types of services worth the prices they charge? Is there a way I can share the 3.42 GB download of Windows 8.1 from Windows Store? Why didn't Thor lose his power? In Thor: Ragnarok, Valkyrie told Thor this about Hela:  Her power comes from Asgard the same as yours  Thor's plan was to unleash Surtur who destroys Asgard, which weakens Hela allowing Surtur to kill her. But why didn't that weakened Thor as well? We saw him later in Avengers: Infinity War very powerful. Accessing site-specific Help Center from iOS app Can the Stack Exchange developers add an option to access the site-specific Help Center via the iOS app?  My use case is when I read a question that I think is off-topic, and want to double-check that the wording from the site's Help supports that position, having the Help Center available would be nice. Reason for the current trend to use «she» as the gender-neutral pronoun? There are some questions on gender-neutral pronouns both  and on .  User Christine Letts :     In academia, there is currently a   movement toward using the feminine   pronoun at all times.   I wonder why that is. I came across several examples on papers I read, but the only one I can remember at the moment is a book: Seth Godin's . While some might not be comfortable labeling it as part of academia, it suits my point perfectly. Every time he refers to a person, he uses the feminine pronoun.  User Senseful  the following, potentially identifying affirmative action as the precursor for this trend.     I remember reading somewhere that it   was recommended to use the opposite of   what most people stereotype the   profession as. So, for example, when   talking about a chiropractor, you   would use "her", and when talking   about a secretary, you would use   "his".   So, where do you think this trend comes from? When should I load assets for optimal performance? I'm writing a game using LWJGL and Java, and was wondering if there were best practices for when to load resources.  I have seen examples that load all resources when initializing the game (XNA), ones that load the new resources needed for each level while referencing the already loaded assets again. How do I straighten UV maps? My question is a little silly I know, but I'm curious to know if a particle of light can be theoretically trapped between two reflective screens.   For example once the particle of light has left it's source, and is reflected against a mirror (assuming there is no loss of energy) and you immediately replace the source of light with another mirror. Would the light beam bounce in between the sheets endlessly? When trying to execute a symbolic link which points to an exe file (on Windows 7), the "Open with" windows appears. When renaming it to a ".exe" file, it says "The specified path does not exist. Check the path, and then try again.".  Symlinks to other destinations seem to work fine.  So is there any way to execute a symlink?  EDIT: In the command prompt, I execute the following and the MyProgram.exe runs both times.  However, if I double-click on the symbolic link in Windows Explorer it fails with the above error message.  C:\Temp&gt;mklink SomeProgram.exe MyProgram.exe symbolic link created for Backup.exe &lt;&lt;===&gt;&gt; Backup-1.0.1.exe  C:\Temp&gt;SomeProgram.exe  C:\Temp&gt;del SomeProgram.exe  C:\Temp&gt;mklink SomeProgram.exe C:\Temp\MyProgram.exe symbolic link created for Backup.exe &lt;&lt;===&gt;&gt; C:\Temp\Backup-1.0.1.exe  C:\Temp&gt;SomeProgram.exe Performance differences between visibility:hidden and display:none Shell command for outputting absolute path of binary Is there a shell command for outputing absolute path for specified program? I'd like to know where executable binary file is.