Skip to content

Instantly share code, notes, and snippets.

View rugi's full-sized avatar
🎯
Focusing

Isaac Ruiz Guerra rugi

🎯
Focusing
View GitHub Profile
@rugi
rugi / Main.java
Created August 30, 2012 03:40
Codigo principal de la implementación del "juego de la vida" en java.
public class Eden {
public static final byte SIZE_UNIVERSE = 66;
public static final int HAPPY_TIME = 100;
public static void main(String[] args) throws InterruptedException {
//Requerimos una realidad para poder visualizar lo que ocurra
Reality realidad = new Reality(SIZE_UNIVERSE);
//iniciams la realidad
realidad.init();
@rugi
rugi / UIFont Simple
Created January 9, 2013 15:59
Definir fuente de la manera mas sencilla.
UIFont *font = [UIFont fontWithName:@"Arial" size:16];
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.xhubacubi.jarhalla.client.util;
import java.io.IOException;
import java.net.URL;
import java.net.URLClassLoader;
import java.util.Enumeration;
public static void main(String[] args) throws ClassNotFoundException, IOException {
ClassInfoUtil ciu = ClassUtil.getClassInfoFromClassInJar("/Users/rugi/Downloads/commons-collections-3.2.1.jar", "org/apache/commons/collections/BeanMap.class");
Method[] m = ciu.getMethods();
Constructor[] c = ciu.getConstructors();
System.out.println("--------------------");
System.out.println("Constructores:"+c.length);
for (int i = 0; i < c.length; i++) {
System.out.println(" Constructor["+i+"]");
Constructor constructor = c[i];
System.out.println(" "+constructor.getName());
@rugi
rugi / Salida1
Created September 2, 2013 02:49
Clase Buscada cargada org.apache.commons.collections.BeanMap
--------------------
Constructores:2
Constructor[0]
org.apache.commons.collections.BeanMap
Parametros:0
Constructor[1]
org.apache.commons.collections.BeanMap
Parametros:1
Parametro[1]:java.lang.Object
<pluginGroups>
<pluginGroup>com.oracle.weblogic</pluginGroup>
</pluginGroups>
java.util.logging:Location=AdminServer,type=Logging
com.bea:Name=base_domain,Location=base_domain,Type=GzipCompression,WebAppContainer=base_domain
com.bea:Name=oracle.sdp.client#[email protected],Location=base_domain,Type=Library
com.bea:Name=Default[http][2],ServerRuntime=AdminServer,Location=AdminServer,Type=ServerChannelRuntime
com.bea:Name=AdminServer,Location=base_domain,Type=OverloadProtection,Server=AdminServer
com.oracle:type=OVD,context=ids,name=AdaptersConfig
com.bea:Name=base_domain,Location=AdminServer,Type=CdiContainer
com.bea:Name=adf.oracle.domain.webapp#[email protected],Type=LibDeploymentRuntime
com.bea:Name=oracle.adf.desktopintegration.model#[email protected],Type=LibDeploymentRuntime
com.bea:Name=defaultCoherenceCluster,Location=base_domain,Type=weblogic.coherence.descriptor.wl.CoherenceLoggingParamsBean,Parent=[base_domain]/CoherenceClusterSystemResources[defaultCoherenceCluster],Path=CoherenceClusterResource[defaultCoherenceCluster]/CoherenceLoggingParams
java.util.logging:Location=AdminServer,type=Logging
com.bea:Name=oracle.bi.adf.view.slib#[email protected],Location=otn_multitenant,Type=Library
com.bea:Location=AdminServer,WseeClientConfigurationRuntime=oracle.sysman.emInternalSDK.sdkas.general.pojo.fwk.swb.ruei.SesdiagSoap12HttpPortClient/sesdiagService,WebAppComponentRuntime=AdminServer_/em,ServerRuntime=AdminServer,ApplicationRuntime=em,Name=getAlertInfo,WseePortConfigurationRuntime=SesdiagSoap12HttpPort,Type=WseeOperationConfigurationRuntime
com.bea:Name=OHW_it,ServerRuntime=AdminServer,Location=AdminServer,Type=ServletRuntime,ApplicationRuntime=em,WebAppComponentRuntime=AdminServer_/em
com.bea:Name=emagentsdkimplpriv_jar#[email protected],Type=Library
com.oracle:type=OVD,context=ids,name=AdaptersConfig
com.bea:Name=adf.oracle.domain.webapp#[email protected],Type=LibDeploymentRuntime
com.bea:Name=oracle.adf.desktopintegration.model#[email protected],Type=LibDeploymentRuntime
com.bea:Name=otn_multitenant,Location=otn_multitenant,Type=Interceptors
com.bea:Name=JspSe
com.oracle:Location=Cluster-01-1,name=mlsfilter,context=ids,type=OVD.PluginsChain.PluginConfig,OVD=ServerConfig,OVD.PluginsChain=PluginsChain
com.bea:Location=AdminServer,WseeClientConfigurationRuntime=oracle.sysman.emInternalSDK.sdkas.general.pojo.fwk.swb.ruei.SesdiagSoap12HttpPortClient/sesdiagService,WebAppComponentRuntime=AdminServer_/em,ServerRuntime=AdminServer,ApplicationRuntime=em,Name=getAlertInfo,WseePortConfigurationRuntime=SesdiagSoap12HttpPort,Type=WseeOperationConfigurationRuntime
com.bea:Name=OHW_it,ServerRuntime=AdminServer,Location=AdminServer,Type=ServletRuntime,ApplicationRuntime=em,WebAppComponentRuntime=AdminServer_/em
com.bea:Name=AdminServer,Location=Cluster-01-1,Type=WebServiceReliability,Server=AdminServer,WebService=AdminServer
com.bea:Name=AdminServer,Location=Cluster-01-1,Type=WebService,Server=AdminServer
com.bea:Name=emcoreconsole_jar,Location=Cluster-01-1,Type=Library
com.bea:Name=em_core_ppc_pojo_jar,Location=Cluster-01-1,Type=Library
com.bea:Name=emagentsdkimplpriv_jar#12.4@12
@rugi
rugi / JConsole_WLST
Created March 10, 2018 17:36
Línea de comando para invocar Jconsole con las clases requeridas para conectarse a un WLS 12c
jconsole -J-Djava.class.path=/u01/oracle/products/jdk_home/jdk1.8.0_77/lib/jconsole.jar:/u01/oracle/products/jdk_home/jdk1.8.0_77/lib/tools.jar:/u02/oracle/Oracle/Middleware/Oracle_Home/wlserver/server/lib/wljmxclient.jar -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote -debug