-
Install create-react-app globally
npm install -g create-react-app
-
Create a new application
create-react-app <name-of-application>
-
Run server
npm start
inside of the applications directory.
# Run this script from the maven module directory to start a jshell with | |
# all dependent class paths injected. | |
# Please never run it on the parent maven project directory. | |
# It depends on java9 or above | |
if [ ! -d "target" ]; then | |
echo "Please run it under a module directory. And make sure it's not parent module directory. And make a maven install first" | |
exit | |
fi |
- Create a
module.xml
file in$JBOSS_HOME/modules/org/springframework/${spring-version}
:
<?xml version="1.0"?>
<module xmlns="urn:jboss:module:1.1" name="org.springframework" slot="${spring-version}">
<resources>
<resource-root path="aopalliance-1.0.jar" />
<resource-root path="spring-aop-${spring-version}.jar" />
<resource-root path="spring-beans-${spring-version}.jar" />
<resource-root path="spring-context-${spring-version}.jar" />
This configuration worked for me, hope it helps
It is based on: https://becominghuman.ai/deep-learning-gaming-build-with-nvidia-titan-xp-and-macbook-pro-with-thunderbolt2-5ceee7167f8b
and on: https://stackoverflow.com/questions/44744737/tensorflow-mac-os-gpu-support
If you have your code defined in classes in lib/ folder you may have problems to load that code in production.
Autoloading is disabled in the production environment by default because of thread safety.
Change config/application.rb:
config.autoload_paths << Rails.root.join("lib")
config.eager_load_paths << Rails.root.join("lib")
# start a guest in headless mode | |
vboxmanage startvm guestvmname --type headless | |
# add a nic (number 2) to guest, setting it to be on the host-only network, and make it a virtio device | |
vboxmanage modifyvm guestvmname --nic2 hostonly --nictype2 virtio --hostonlyadapter2 vboxnet0 | |
# remove nic number 2 | |
vboxmanage modifyvm guestvmname --nic2 none | |
# turn on host i/o cache - needed for the virtual disk on ext4 on older kernels |
Here's an example of the kind of GraphQL query that Code.gov might submit to the GitHub GraphQL endpoint. It also explains why the switch to using GraphQL (in GitHub API version 4) makes things a ton easier than all the REST calls we were doing before (in GitHub API version 3).
package javax0.j9regex.samples; | |
import org.junit.Test; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
import java.util.stream.Collectors; | |
import static org.junit.Assert.assertEquals; |
Disable: echo 0 | sudo tee /proc/sys/kernel/randomize_va_space | |
Enable: echo 2 | sudo tee /proc/sys/kernel/randomize_va_space | |
But the above configuration will be canceled after a reboot. | |
For permanent configuration: | |
Add a file /etc/sysctl.d/01-disable-aslr.conf containing: kernel.randomize_va_space = 0 | |
sudo docker run -it --network none --privileged --device=/dev/uio1:/dev/uio1 -v /var/run:/var/run -v /mnt/huge/:/mnt/huge/ -v /home/kai/openNetVM/:/openNetVM -w=/ --name=test ubuntu:14.04 /bin/bash |
on linux PC:
lsblk
sudo fdisk /dev/sd**X**
clear partitions on the drive (o)