<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3694290027391717622</id><updated>2012-02-16T06:56:53.173-08:00</updated><category term='MySQL'/><category term='java'/><category term='Timestamp'/><category term='Connector/J JDBC driver'/><category term='problem'/><title type='text'>java y PHP para tarados</title><subtitle type='html'>Vivencias de un programador, queriendo compartir sus quebraderos de cabeza y las soluciones por si a alguioen le sirven.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javaparatarados.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3694290027391717622/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://javaparatarados.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>black</name><uri>http://www.blogger.com/profile/10088194326045598416</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3694290027391717622.post-6677933492735583937</id><published>2010-02-04T23:37:00.000-08:00</published><updated>2010-02-05T00:39:01.769-08:00</updated><title type='text'>Eclipse Vs NetBeans</title><content type='html'>En lo personal... Net Beans, pero no me considero pro, asi que he leido en varios lugares para darles de manera resumida y entendible algunos pros y contras, nunca he sido fanboy o techno geek asi que mi opinión puede c0nsiderarse casi imparcial.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;Personally ...NetBeans, I´m not a Pro, I ve readed on diferente places and try to extract clear information, Im not a fanboy of NB or eclipse so my opinion tends to be impartial &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Actualmente trabajo en un proyecto para una inmobiliaria y utilizamos Eclipse, en otros proyectos ha sido NEtBeans y debo decir que sigo prefiriendo NB, aclaro nuevamente no soy pro.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;Nowadays, Im using eclipse in a project for the construction industry, we use eclipse and use subversion to coordinate and I must say its excellent, but I still prefer NB.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;Eclipse&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ventajas/advantages&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Los atajos de teclado son excelentes.&lt;/li&gt;&lt;li&gt;El codigo luce limpio y ordenado.&lt;/li&gt;&lt;li&gt;Puedes configurarle TODO lo que se te ocurra.&lt;/li&gt;&lt;li&gt;Comunidad de seguidores enorme por tanto mayor número de plugins disponibles.&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;Excelent shortcuts&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;The code looks clean and ordered&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;Can configure EVERYTHING&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;A huge comunity and of course a lot of plugins&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Desventajas\disadvantages&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Algunas veces debes reiniciar el equipo, de alguna manera Eclipse se las arregla para comerse toda tu memoria.&lt;/li&gt;&lt;li&gt;En ocasiones Eclipse se queda "pasmado" y no reconoce los cambios que haces en el código.&lt;/li&gt;&lt;li&gt;No es muy agradable el debugger.&lt;/li&gt;&lt;li&gt;Porque Diablos llamarle "perspectivas" son solo ventanas  y YA!&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;Sometimes you must restart your machine, Eclipse eats all of the memory, Idont know how&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;Eclipse suddenly gets mesmerized and doesnt recognize code changes&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;I dont like the debugger, at least for me is confusing&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;NetBeans&lt;br /&gt;&lt;br /&gt;ventajas/advantages&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;El autocompletado de codigo es lento, pero mejor que en eclipse&lt;/li&gt;&lt;li&gt;la integracion con SVN es buena.&lt;/li&gt;&lt;li&gt;Respaldo de SUN&lt;/li&gt;&lt;li&gt;Visualmente mas ligero&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;Visually lighter&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;the code autocompletion is slow, but very accurate&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;the SVN integration is acceptable&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(102, 255, 255);"&gt;SUN product support&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Desventajas\disadvantages&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Pocos atajos, lo siento por los programadores puristas del teclado.&lt;/li&gt;&lt;li&gt;Al igual que eclipse , a veces no reconoce algunos de los cambios que haces en el código.&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;need more shortcuts&lt;/li&gt;&lt;li style="color: rgb(102, 255, 255);"&gt;gets mesmerized and does not recgnize code changes&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Ventajas y desventajas de uno y otro la verdad de las cosas es que se siguen tan de cerca que no se puede marcar un claro ganador, el ganador al final es la comunidad de desarrolladores que nos beneficiamos de las continuas mejoras en ambos IDE.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Como les dije, esto no era un post extensivo ni pro, pero les dejo algunas ligas para que se informen más.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;he tomado algunas de aqui:&lt;br /&gt;&lt;br /&gt;http://www.pocascosas.com/2009/04/netbeans-o-eclipse/&lt;br /&gt;&lt;a href="http://rob.purplerockscissors.com/2009/08/14/eclipse-vs-netbeans-round-2/"&gt;http://rob.purplerockscissors.com/2009/08/14/eclipse-vs-netbeans-round-2/&lt;/a&gt;&lt;br /&gt;http://zion.ieeesb.etsit.upm.es/web/?p=1189&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;y sea cual sea su decisión&lt;br /&gt;&lt;br /&gt;http://www.netbeans.org/&lt;br /&gt;&lt;br /&gt;http://www.eclipse.org/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3694290027391717622-6677933492735583937?l=javaparatarados.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaparatarados.blogspot.com/feeds/6677933492735583937/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://javaparatarados.blogspot.com/2010/02/eclipse-vs-netbeans.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3694290027391717622/posts/default/6677933492735583937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3694290027391717622/posts/default/6677933492735583937'/><link rel='alternate' type='text/html' href='http://javaparatarados.blogspot.com/2010/02/eclipse-vs-netbeans.html' title='Eclipse Vs NetBeans'/><author><name>black</name><uri>http://www.blogger.com/profile/10088194326045598416</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3694290027391717622.post-1363465828116228402</id><published>2010-01-28T10:52:00.000-08:00</published><updated>2010-01-28T11:17:10.562-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MySQL'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='problem'/><category scheme='http://www.blogger.com/atom/ns#' term='Connector/J JDBC driver'/><category scheme='http://www.blogger.com/atom/ns#' term='Timestamp'/><title type='text'>Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp</title><content type='html'>problem: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp&lt;br /&gt;&lt;br /&gt;Razon/reason:&lt;br /&gt;&lt;br /&gt;The MySQL Connector/J JDBC driver changed the way it handles DATETIME values in      version 3.1.  DATETIME values of all zeroes are considered illegal in versions      3.1 and above of MySQL Connector/J. Thus,  an exception is thrown when these      values are retrieved from a table.      &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Soluciones para esto:&lt;br /&gt;&lt;br /&gt;The bug is fixed by adding the Configuration property "zeroDateTimeBehavior=convertToNull" to the JDBC URL generated by the Cloud Manager. For manually added connection user must add this property manually to the JDBC URL&lt;br /&gt;&lt;br /&gt;esa es la "complicada" pero correcta, otra puede ser (puede) cacharlo en una excepcion, si tu conoces tu base de datos, sabes que en esa columna tiene un valor de fecha cero (zero date)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The other solution is just to catch it on a try-catch exception handler.&lt;br /&gt;&lt;br /&gt;try {&lt;br /&gt;                  fecha=miResultset.getString("fecha_visita").substring(0,10);&lt;br /&gt;            }&lt;br /&gt;            catch (Exception e) {&lt;br /&gt;                fecha="0000:00:00";&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;y voilà asunto arreglado, las fechas cero iguen en tu BD, pero eso ya lo sabes.&lt;br /&gt;&lt;br /&gt;Si esto te sirvió por favor deja un comentario, aunque sea para saber que pasaste por aqui.&lt;br /&gt;If this worked please leave a comment.&lt;br /&gt;&lt;br /&gt;and please RTFM!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3694290027391717622-1363465828116228402?l=javaparatarados.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaparatarados.blogspot.com/feeds/1363465828116228402/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://javaparatarados.blogspot.com/2010/01/value-0000-00-00-000000-can-not-be.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3694290027391717622/posts/default/1363465828116228402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3694290027391717622/posts/default/1363465828116228402'/><link rel='alternate' type='text/html' href='http://javaparatarados.blogspot.com/2010/01/value-0000-00-00-000000-can-not-be.html' title='Value &apos;0000-00-00 00:00:00&apos; can not be represented as java.sql.Timestamp'/><author><name>black</name><uri>http://www.blogger.com/profile/10088194326045598416</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3694290027391717622.post-7477721715142404644</id><published>2010-01-14T13:02:00.000-08:00</published><updated>2010-02-05T23:51:31.789-08:00</updated><title type='text'>eclipse does not launch the external web browser</title><content type='html'>eclipse no lanza el web browser externo&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Solucion 1 (la simple)&lt;br /&gt;&lt;br /&gt;Al igual que en "the IT crowd" ¿ya probaste aagarlo y encenderlo? , en resumen reinicia.&lt;br /&gt;&lt;br /&gt;Solucion 2&lt;br /&gt;&lt;br /&gt;solucion simplona, cambia el navegador de tu preferencia en la config de eclipse a IE si es q tienes seleccionado el Firefox o algun otro  o voceversa, a veces en estos cambios ECLISE, lee nvamente el valor y ahora si lo lanza.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;solución 3&lt;br /&gt;&lt;br /&gt;Esta es la que me funcionò ya que habiendo probado las otras 2 que ahora no funcionaron, lanzé mi proyecto, y al no ver el web browser  lo abrí de manera manual, tecleé mi direccion local del proyecto "http://localhost: bla bla" y accedi al index de mi proyecto, el servidor esta arriba y pude trabajar.&lt;br /&gt;&lt;br /&gt;por un momento pensé que este procedimiento iba a tener que repetirlo siempre, pero ABRACADABRA, la proxima vez que inicié Eclipse, lanzó bien el web browser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3694290027391717622-7477721715142404644?l=javaparatarados.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaparatarados.blogspot.com/feeds/7477721715142404644/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://javaparatarados.blogspot.com/2010/01/eclipse-does-not-launch-external-web.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3694290027391717622/posts/default/7477721715142404644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3694290027391717622/posts/default/7477721715142404644'/><link rel='alternate' type='text/html' href='http://javaparatarados.blogspot.com/2010/01/eclipse-does-not-launch-external-web.html' title='eclipse does not launch the external web browser'/><author><name>black</name><uri>http://www.blogger.com/profile/10088194326045598416</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
