24 May 2010

Martin Gardner QEPD

Lamentablemente Martin Gardner ha dejado de vivir, gran difundidor de las matemáticas recreativas.

A pesar de su avanzada edad todos seguiamos su legado que por muchos años nos inspiró en su mundo imaginario.

http://es.wikipedia.org/wiki/Martin_Gardner

20 May 2010

WLS ListenAddress

When the WebLogic Server is set up to listen a specific port then it stops to listen even the loopback address (localhost/127.0.0.1), let's suppose you want to listen each local server where your application has been deployed.

And could appears many Exceptions related to, such as:

Failed to connect to t3://localhost:7003: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination
java.net.ConnectException: t3://localhost:7003: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:203)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:344)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:339)
at weblogic.jndi.Environment.getContext(Environment.java:315)
at weblogic.jndi.Environment.getContext(Environment.java:285)
at weblogic.jndi.Environment.createInitialContext(Environment.java:208)
at weblogic.jndi.Environment.getInitialContext(Environment.java:192)
at weblogic.jndi.Environment.getInitialContext(Environment.java:170)
at weblogic.management.commandline.tools.AdminToolHelper.getMBeanHome(AdminToolHelper.java:590)
at weblogic.management.commandline.tools.ServerInfoCommandLineInvoker.doCommandline(ServerInfoCommandLineInvoker.java:924)
at weblogic.management.commandline.tools.ServerInfoCommandLineInvoker.(ServerInfoCommandLineInvoker.java:117)
at weblogic.management.commandline.AdminMain.main(AdminMain.java:132)
at weblogic.Admin.useAdminMain(Admin.java:43)
at weblogic.Admin.main(Admin.java:22)
Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:225)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:188)
... 16 more

The solution is to eliminate that configuration:

Through the GUI you can go to DOMAIN_NAME -> Environment -> Servers -> SERVER_NAME There you'll find a ``Listen Address'' input text. Leave it blank so WLS can listen to localhost otherwise only it will listen to the address entered.

In the config.xml you will see:

<server><name>AdminServer</name>
      <listen-port>7003</listen-port>
      <listen-address>www.devweb.cl</listen-address>
</server>


Restart the WLS and try out again, now it should be able to reach to localhost, doing a WLS Ping and deploying your application.
``If a server's listen address is undefined, clients can reach the server through an IP address of the computer that hosts the server, a DNS name that resolves to the host, or the localhost string. The localhost string can be used only for requests from clients that running on the same computer as the server.''


Simple WebLogic Ping

Many times someone wants to see if a WebLogic Server is up and running. This can be checked thru (even it has been deprecated still comes bundled in the last WLS 10.3.x ):

If you wish to use a more modern tool then use WLST, but then you should write more text for the same test.

java weblogic.Admin -url localhost:7001 -username weblogic -password  welcome1 -verbose PING 1 1024


Muchas veces se quiere ver si un WebLogic Server esta arriba y funcionando, esto se puede lograr con (a pesar que ha sido descontinuado aun viene dentro del WLS 10.3.x) :

java weblogic.Admin -url localhost:7001 -username weblogic -password  welcome1 -verbose PING 1 1024


Esta herramienta ya esta deprecada, pero aun sirve y es útil.

Si quieren usar una herramienta actual entonces pueden usar WLST, pero deben poner mas texto para poder hacer la misma prueba.

http://download.oracle.com/docs/cd/E11035_01/wls100/admin_ref/cli.html#wp1196567

16 May 2010

Martin Gardner

After reaching Martin Gardner for a particular riddle, He wrote me telling me that he is not longer doing anything related to the subject and have donated all his library to Stanford University.

He always with a innovated progressive thinking...

J2EE Web Services - Richard Monson-Haefel - Source Code

Many times has been asked for for the source code of the J2EE Web Services - Richard Monson-Haefel.
In Code Ranch forums he has answered that question:
http://www.coderanch.com/t/147976/Web-Services-Certification-SCDJWS/certification/Download-codes-XML-J-EE
``I lost the code for the book ... Always and I mean ALWAYS back up your hard drive! I had kept the book code on my old PC because my copy of XMLSpy only works on PCs (I use a Mac). I'm still trying to recover after a worm or wear-and-tear or something made the PC stop working. It won't even boot now.

I did test the JAXR code a lot. In fact, I ran the code through the ringer twice so I'm not sure why you are having problems. That said, the UBR registries never did behave exactly as expected so maybe there was a change.

Anyway, I haven't had time to rebuild all the code for the book yet. If anyone gets a start on this I'll be happy to open source it.''
 So, if anyone has done something please contact him.

05 March 2010

Selected Papers on Design of Algorithms

``The present volume, the seventh in a series of his collected papers, is devoted to his work on the design of new algorithms. Nearly thirty of Knuth’s classic papers are collected in this book and brought up to date with extensive revisions and notes on subsequent developments. The papers cover numerous discrete problems, such as assorting, searching, data compression, theorem proving, and cryptography, as well as methods for controlling errors in numerical computations.''

http://www-cs-faculty.stanford.edu/~knuth/da.html

http://www.press.uchicago.edu/presssite/metadata.epl?isbn=9781575865836

Due: April 2010

01 February 2010

MikTeX 2.8 updating

Trying to update MikTeX behind a proxy is a little tricky.

First of all you have to know the URL and Port of your proxy, let's say:

proxy: www.proxyfoo.org
port: 80

Thus you have to set up the environment variable http_proxy (there are more possibilities setting http,ftp,proxy variables):

http_proxy=http://www.proxyfoo.org:80

Also if you are having the error "GUI framework cannot be initialized" in some IDE as WinShell, TeXnicCenter, etc. then the solution is:

Start MiKTeX Options and choose either Yes or No (but not "Ask me first") for the option "Install missing packages on-the-fly".

14 December 2009

Polisemia

Trabajando en estos tiempo globalizados me ha surgido el problema del uso del gentilicio para la gente proveniente de la India, a los cuales coloquialmente se les ha dicho Hindú, pero en muchos lados he visto que Hindú es sólo para los que profesan el Hinduismo. Por lo mismo al buscar en el Diccionario de la Lengua Española aparece claro que es un término polisémico y usar Hindú es igualmente de válido (con la agregación de Wikipedia que ciertas partes de América prefieran el uso de Hinduista a los que profesan tal religión).

De tal manera evito alguna posible confusión que he tenido con terceros al referirme de Indio a los Hindúes, siendo la manera correcta de referirse por temas históricos.

La polisemia es un fenómeno que se da cuando una palabra o signo lingüístico tiene más de un significado.
 

10 October 2009

Point Packing

Point Packing the last contest from Al Zimmermann. At the beginning I started calculating without a computer to see how good I could do it, after I made a program to optimize my score and I began to growth by the ranking at a real good shape since the program uses heuristics to avoid by running for days to find those optimized solutions. The first week I was on the top 25, whereas time pass many other programmers overcomes me and I realized I had to use longer search than I had, however by now it was a good exercise to this kind of contests, who knows if by the honor I compete again.

Point Packing el último concurso de Al Zimmermann. Al principio partí calculando sin computador par ver cuan bien lo hacia, después hice mi programa correspondiente para optimizar mi puntaje y empece a subir en el ranking de bastante buena forma ya que el programa usa heurísticas para no tener que dejar corriendolo por días para encontrar esas soluciones óptimas. La primera semana dure en los top 25, pero a medida que fue pasando el tiempo me fueron superando decenas de otros competidores donde me di cuenta que hay que usar búsquedas de mayor longitud a las que habia usado, pero por ahora fue un buen ejercicio de este tipo de competiciones. Quien sabe si vuelvo a competir por honor nuevamente.



Rank Score Contestant Last Improvement
140 16.10
German Gonzalez-Morris
Santiago, Chile 19 Jul 2009 18:56

An image representing my 26 solution:

Una imagen de lo más cercano a mi solución de 26 puntos es:



PD1: Despues de varios a~nos veo que quede en la mitad de este concurso:
         quede 140 de 305 competidores.


02 October 2009

Gandhi

Today is the Gandhi's birthday, great leader and always a source of inspiration. Despite my usual behavior doesn't trend to highlight mistakes I was surprise to see a typo at google.cl

Blog Archive

Disclaimer

Qux