installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS.
Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/
https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=SOS_RHELx64
$ ls
public class MyEventHandler implements Listener { | |
@EventHandler | |
public void onJoin(PlayerJoinEvent event) throws NoSuchFieldException, IllegalAccessException { | |
Player player = event.getPlayer(); | |
//Craft Player (NMS varient of player) | |
EntityPlayer nmsPlayer = ((CraftPlayer) player).getHandle(); | |
//Get connection | |
ServerCommonPacketListenerImpl connection = nmsPlayer.c; |
public class MyEventHandler implements Listener { | |
@EventHandler | |
public void onJoin(PlayerJoinEvent event) throws NoSuchFieldException, IllegalAccessException { | |
Player player = event.getPlayer(); | |
//Craft Player (NMS varient of player) | |
EntityPlayer nmsPlayer = ((CraftPlayer) player).getHandle(); | |
//Get connection | |
ServerCommonPacketListenerImpl connection = nmsPlayer.c; |
public static char[] numberToByteArray(int number) { | |
int numDigits = getNumDigits(number); | |
char[] charArray = new char[numDigits]; | |
for (int i = numDigits - 1; i >= 0; i--) { | |
charArray[i] = (char)('0' + number % 10); | |
number /= 10; | |
} | |
return charArray; | |
} |
import javax.crypto.Cipher; | |
import javax.crypto.NullCipher; | |
import javax.crypto.ShortBufferException; | |
import java.io.EOFException; | |
import java.io.FilterInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
public class CipherInputStream extends FilterInputStream { |
installing HPE StoreOpen Software for RHELx64 to Ubuntu 20.04.2 LTS.
Reference: https://rabbit-note.com/2020/01/12/ubuntu-ltfs/
https://h20392.www2.hpe.com/portal/swdepot/displayProductInfo.do?productNumber=SOS_RHELx64
$ ls
<?php | |
class JWK { | |
public static $curveOID = '06082a8648ce3d030107';//'1.2.840.10045.3.1.7'; | |
private $jwk; | |
function __construct(){ | |
} | |
public function create($jwk = null){ |
#include <stdio.h> | |
#include <string.h> | |
typedef struct { | |
char *protocol; | |
char *host; | |
char *path; | |
int port; | |
} URL; |
public static void main(String[] args){ | |
try{ | |
DatagramSocket s = new DatagramSocket(); | |
byte[] b = new byte[10]; | |
DatagramPacket p = new DatagramPacket(b, b.length, InetAddress.getLocalHost(), 8000); | |
s.send(p); | |
p = new DatagramPacket(new byte[65535], 65535); | |
s.receive(p); |
I tried to make the layout as similar as possible to androids relative layout, as feel that it is the superior layout.
Heres an example:
pane.add(mjlabel, new RelativeConstraints().alignParentRight().toRightOf(mjlabel1).setHeight(RelativeConstraints.MATCH_PARENT));
import javax.crypto.Cipher; | |
import javax.crypto.NullCipher; | |
import java.io.EOFException; | |
import java.io.FilterInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.Arrays; | |
public class SRI extends FilterInputStream { |