I'm using the method setString(String name, String val) from Query Class of Hibernate.   import org.hibernate.Query;  String q = "from Table n where n.field=:annee "; Query query= session.createQuery(q); query.setString("annee","");   I want to store an empty String and not a null, because this field can not be null in my database. But I get an error message saying that I cant insert a null value.   I don't understand what happens. Because an empty string is not  null.  It is the Query method who converts the empty chain into a null, and then Oracle gives me the error?. Or its Oracle itself who converts an empty string into a null, and then it complains?
I know that it does consider ' ' as NULL, but that doesn't do much to tell me why this is the case.  As I understand the SQL specifications, ' ' is not the same as NULL -- one is a valid datum, and the other is indicating the absence of that same information.  Feel free to speculate, but please indicate if that's the case.  If there's anyone from Oracle who can comment on it, that'd be fantastic!
A type-I superconductor can expel almost all magnetic flux (below some critical value $H_c$) from its interior when superconducting. Light as we know is an electromagnetic wave. So what would happen if we shine a light deep into a type-I superconductor? Suppose the magnetic field of the light is significantly lower than $H_c$.  And what about type-II superconductors? How do I go about tracking down IO usage in Linux and other *nix OS'? Occasionally, something on my system starts hammering the disk. I would like to log data that would let me know about I/O usage per process, then I could go back to it later and see what keeps doing this. How should I go about solving this problem? Bonus points for solving this for arbitrary block devices. Do sets, whose power sets have the same cardinality, have the same cardinality? Hello,   I create an app using the Promoted Links in Sharepoint 2013. I chose to do this because the feature has the awesome hover effect and is easy to customize the image.  The issue is that I have been trying to figure out how to change the tile sizes. They are awesome the way they are, however I just need them smaller. I still want the hover effect as well and for the text to match the same ratio as the tile. I have tried web zones, I have done each ID but with no luck. I have attached a sample image of the tiles I'm referring to. Please help. How to change symbol for footnote in minipage \renewcommand method does not work  \documentclass{article} \renewcommand{\thefootnote}{\arabic{footnote}} \begin{document}  \begin{minipage}{1.3\textwidth}  test this\footnote{abc} \end{minipage}  \end{document}   In the following example the footnote number is incorrect. Why?  \documentclass{article} \renewcommand{\thempfootnote}{\arabic{mpfootnote}} \begin{document} \begin{minipage}{.5\textwidth} test this\footnotemark \footnotetext{abc} \end{minipage} \end{document} Convert hex string to int in Python How do I convert a hex string to an int in Python?   I may have it as "0xffff" or just "ffff". I have been running Ubuntu 12.04 for the past few weeks. I recently tried to download and install some files through the Update Manager. It located a few files, downloaded them, but then failed to install them. It gave the error:  installArchives() failed: (Reading database ...  (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error   I tried using apt-get upgrade but a similar error was produced:  Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be upgraded:   icedtea-6-jre-cacao icedtea-6-jre-jamvm openjdk-6-jre openjdk-6-jre-headless   openjdk-6-jre-lib 5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/34.6 MB of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue [Y/n]? y (Reading database ... 80% dpkg: unrecoverable fatal error, aborting:  reading files list for package 'libasn1-8-heimdal': Input/output error E: Sub-process /usr/bin/dpkg returned an error code (2)   Any help would be greatly appreciated. Thanks in advance.  Edit: Here's some extra information that may be useful. My original problem was that the Ubuntu Software Centre would not open. I found that the Update Manager and Synaptic Package Manager also failed to open. They all gave an error along the lines of:   "installArchives() failed: dpkg: error: reading package info file '/var/lib/dpkg/available': Input/output errorError in function:"   After much googling I seemed to fix that problem as the package managers would open again. When I then tried to download and install any updates from the Update Manager I got the error at the beginning of this post. I'd like to play Dragon Age Inquision in english instead of the language of my operating system, but it seems to default to that and I can't find a way to change it. I already tried setting the Origin client language to english, but that didn't change anything.  Where can I change the language for Dragon Age: Inquisition? What is Chromatic Aberration? Is it a physical part of the lens, or just an optical illusion? iOS emails stuck in All Inboxes In the iOS Mail app, there are 4 emails in the "All Inboxes" section. Those 4 emails are NOT in the actual inbox on Gmail.  I thought, oh well I don't mind deleting them entirely since they're just newsletters. I deleted them directly on gmail, but they still appeared in iOS. So I tried deleting them via iOS and ... they keep coming back!  Even stranger, the 4 emails ONLY appear in "All Inboxes", they don't appear in any of the sub-account inboxes.  So, I disabled "Mail" in my gmail account. They're still here! I no longer have a "gmail" sub-account, but those 4 emails are still in All Inboxes. I tried to quit the app a few times, restart the phone. Still here...  When I tap on one of those messages, I get a black screen (dark mode), no errors. How to integrate OpenCV Manager in Android App Interpreting the 'metric' column in routing table I'm a little confused about the output I'm seeing in my routing table, particularly the 'metric' column:  $ route -n Kernel IP routing table Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0 172.16.35.0     0.0.0.0         255.255.255.0   U     0      0        0 vmnet1 192.168.0.0     0.0.0.0         255.255.255.0   U     9      0        0 wlan0 192.168.82.0    0.0.0.0         255.255.255.0   U     0      0        0 vmnet8   According to the man page, metric indicates the 'distance' to the target. I was a little confused about what exactly "target" was. I assumed it was my router (it goes to gateway 0.0.0.0, which then goes to my router at 192.168.0.1). Thus, I expected the metric to be a single hop to my router. However, it's 9! Why is this so number high? I have problem with CRS Bosnia and Herzegovina?  MGI 1901 / Balkans zone 6  EPSG:3908 MGI 31276 / Balkans zone 6  EPSG:31276  Which of these two is OK? When I open google sattelite image with openlayers plugin, MGI 1901 match an image, when I change to MGI 31276 vector layer mismatch about 300m. When I import my layers to Global Mapper, datum of vector is "MGI Austria"   I need this projection: Proving a trig identity: $\frac{\sin(A + B)}{\sin(A - B)}=\frac{\tan A + \tan B}{\tan A - \tan B}$ "thanks for flagging" popup gets messed up when the comment is automatically deleted For some comments, the comment is automatically deleted when you raise a flag. This includes certain keywords and short +1 comments. But when you raise that flag with the new comment flag interface, the "thanks for flagging" shows up in the top right when the comment is deleted:      As opposed to what happens when you raise a flag on a comment that doesn't auto-delete: A non-trivial, non-negative, function bounded below by its derivative with $f(0)=0$? I did not know what to search to see if this existed elsewhere. But, I could not find it. Here's the question:  Does there exist a continuously differentiable function, $f: [0,1] \rightarrow [0, \infty)$, such that the following hold? (i) $f(0) = 0$ (ii) $f'(x) \le c f(x)$ for all $x$ ($c$ is a fixed constant) (iii) $f \not\equiv 0$  This was a fun problem someone asked me a long time ago. I have always been convinced there is no such function, but I cannot prove it. I have mainly tried using the mean value theorem (in multiple forms), and re-wording the problem in terms of the integral of a continuous function to no avail. I spent some time trying to use (ii), the definition of derivative, and squeeze theorem, but no luck. After much time trying to prove non-existence, I spent a little time trying to find such a function... also with no luck. This problems ability to avoid being solved has since taken away the original fun and replaced it with a twinge of annoyance. Is it lenses which make your photographs, not camera bodies? Prove that if $0\le p_n&lt; 1$ and $S=\sum p_n&lt; \infty$ then  $\prod (1-p_n)&gt;0$. Hint given: First show that if $S&lt;1$, then $\prod (1-p_n)\ge 1-S$.   Attempt: I was able to show the hint by using recursion setting $A_n=\prod_{i=1}^{n}(1-p_i)$ re expression the $\prod (1-p_n)$ as $1-S+\sum_{n_1, n_2=1,n_1&lt;n_2 }^{\infty} p_{n_1}p_{n_2}-..... $ and observed that every subsequent term is less than the previous term hence  $\prod (1-p_n)\ge 1-S$ which is $&gt;0$ if $S&lt;1$ but am unsure about how to extend it to $S\ge1$. Is adjoint of singular matrix singular? What would be its rank? Let $A$ be a square and singular matrix of order $n$.  Is $\operatorname{adj}(A)$ necessarily singular? What would be the rank of $\operatorname{adj}(A)$? Let $A$ be a commutative ring, $I$ an ideal of $A$ and $M$ an module over $A$. Is it true that $\operatorname{Ann}(M/IM) = \operatorname{Ann}(M) + I$?    One inclusion is certainly true, but I don't know about the other one. If the above statement does not hold in general, does it perhaps for finitely generated modules?