Posts

Datetime in java and default datetime mapping in hibernate -

I need some help about the state of confusion. Since I came from C # .NET, I was just like C # datetime for Java. While I manage to create a helpful method for converting date objects such as "2009-10-16 11:14:34" string representation of the date. Here is the method public static date convertToDate time (string string date) {DateFormat df = New SimpleDateFormat ("yyyy-MM-dd HH: mm: ss"); Date; Try {date = df.parse (stringDate); } Hold (ParseException e) {e.printStackTrace (); } return date; } Now I just want to continue now (I mean now date, like the actual date) like new date () and the same representation in the database in that date yyyy-MM -dd is HH: mm: s. Unless I am getting fundamental Because I am using Hibernate, is it due to the mapping file? If so, then I have 2 questions 1 then how to map my property so that the new dates will be formulated in this format yyyy-MM-dd HH: mm: s2 How to do a default Datamate mapping so that the property is ...

How to hide parts of HTML when JavaScript is disabled? -

I am trying to adjust users without JavaScript (by the way, is it worth the effort nowadays?) In a HTML file I want to execute it if the script is on , and the other part if the scripts are closed tag pre-eats me, but how to get it later? How can I mark a portion of HTML so that the browser can not be parsed if the script shutdown ? Here is a video tutorial how can this be done with jQuery: Code: & lt; Body class = "noScript" & gt; & Lt; Script & gt; $ ('Body') removeClass ('noscript'). & Lt; / Script & gt; & Lt; / Body & gt; And then just hide related elements under body.noscript . Edit However, jQuery is probably bloated for a small fix like this, so I suggest that there is no need for a digital.

web standards - Is the "address" HTML tag still used? -

I do not see the use of address tags around all Is it still relevant to use Address Tag these days? Does it ever arise to reject any proposal? It is still in the following: address The element represents the contact information for its closest article or body element of the ancestors. If this is the body element, the contact information applies to the entire document. The address element should not be used to represent arbitrary addresses (such as postal addresses), unless those addresses are actually related contact information ( p element is the appropriate element to mark the postal address in general.) Address element should not contain information other than contact information. You are right, it is not often used, but it should be. I think there was a problem in styling it in previous versions of IE, maybe that is why it never stopped?

How to prevent items from going to another page in Reporting Services 2005 -

I currently have the following problem: I have two metrics in the same report, but Let's go to another page. Actually, at any time, I would like to fit all my documents on only one page. The use of pages in HTML is just a pain, as it is in the axle format, the way. My question can also be repeated in this form: for at least html and for Excel output, how to put all the elements of the report on a single page (even if it is too long) ?

Is there a developer licensing program for OSX? -

Microsoft provides a bunch of incentives to develop software for developers (like MSDN) and startup (such as BizSpark). MSDN for example Microsoft platform with low investment, Windows does not exist in my software without purchasing the full license of that version To test every version of BizSpark is even better, giving all software for free, as long as it is used for business purposes of startup. Does the apple offer something like this? PS is by far the only legal way to check our software on OSX, that is to buy a Mac mini, which is almost equal to MSDN and with the tenth of the profit (as far as software development is concerned). has not come. The closest thing to me is the Mac Developer Program which gives you access to various resources but specific your question You currently have access to software for development and other compatibility testing tools for compatibility testing etc. You still need a Mac to use many benefits, but if you are a member then you get a ...

javascript - How can I preserve the page scroll position when opening a dialog in response to a link trigger? -

I would like to know how to create a scrolling status when I open a jQuery dialog. I am using my dialog to open: & lt; One class = "link" onclick = "openmyDialog ();" Href = "#" & gt; Open a dialog & lt; / A & gt; More functions: function openmodialog () {$ ("# dialog") Dialog ('destroyed'); $ ("#in dialog") HTML ("message"). $ ("# Dialog") Dialog ({button: {"yes": function () {$ (this) .dialog ("close");}}, resizable: false, dragable: true, model: true, title: 'error '}); return false; } You are not returning your return value to the click handler correctly: onclic = "return openmodylog ();"

c++ - Why does ofstream sometimes create files but can't write to them? -

I am trying to use the off-class class to write some stuff in the file, but whatever happens File is created, and then nothing. I have some bus code: #include & lt; Iostream & gt; #include & lt; Fstream & gt; # Include & lt; Cstring & gt; # Include & lt; Cerrno & gt; # Include & lt; Time.h> using namespace std; Int main (int argc, char * argv []) {ofstream file; File.open ("test.txt"); If (! File) {cout & lt; & Lt; Strerror (error) & lt; & Lt; Endl; } And {cout & lt; & Lt; "All are fine!" & Lt; & Lt; Endl; } For (int i = 0; i When I make a console application, everything is fine, so I'm afraid the code is not fully representative. However, I am using code in a very big project like this - to be honest - I do not fully understand (neorostim). I should write some classes that have been compiled for a DLL which can be loaded by Neurostim. When code is run, "test.txt" is cre...