// interface Comparable<T> {
// public int compareTo(T o);/
// }
@Override
public int compareTo(Sticks sticks_object) {
example.Sticks@15db9742
example.Sticks@6d06d69c
example.Sticks@7852e922
interface A {
}
interface B {
}
class X implements A, B {
}
class X extends Y {
}
@SpringBootApplication
@EnableDiscoveryClient
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
C:\Users\Serguei\VirtualBox VMs\Selenium Fluxbox Trusty
1:04 PM 2,520,186,880 box-disk1.vmdk
Directory of E:\Data\Virtual Machines
02/04/2019 04:09 PM 4,120,313,856 Selenium Fluxbox Trusty Katalon.vmdk
~/VirtualBox VMs
VAGRANT_LOG=info vagrant up
ну или vagrant up --debug
jsoupDocument = Jsoup.parse(pageSource);
jsoupElements = jsoupDocument.getElementsByAttributeValue("class",
"people_cell");
assertThat(jsoupElements.size(), greaterThan(0));
jsoupElements.forEach(link -> {
Element imgElement = link.getElementsByTag("img").get(0);
assertThat(imgElement, notNullValue());
// NOTE: url has empty string in html()
attributeValue = imgElement.attr("src");
assertThat(attributeValue, startsWith("https://"));
String url = attributeValue.replaceAll(".jpg?.*$", "");
articleList.add(new Article(url));
});
articleList.forEach(System.err::println);
Article{url='https://sun6-16.userapi.com/c628420/v628420404/e2ca/wKt7vWFzMOA'}
Article{url='https://pp.userapi.com/c841228/v841228591/113bc/UDcryzU7E6I'}
Article{url='https://pp.userapi.com/c9267/u00190/e_d11db660'}
sudo mount -t vboxsf
/home/sergueik/Downloads on /media/sf_Downloads type vboxsf (rw,nodev,relatime)
sudo ls -l /media/sf_Downloads/
[sudo] password for sergueik:
- увидите каталог Windows который добавили в шаге 1 - в моем случае c:/Users/sergueik/Downloads
fx:id
<Image fx:id="dialogImage" url="@image.png"/>
@FXML
private Image dialogImage;
if (dialogImage != null) {
System.err.println(String.format("The image url: %s",
dialogImage.impl_getUrl()));
}
The image url: file:/<путь к моему проекту>/src/main/resources/image.png
<Label fx:id="dialogImageLabel">
<graphic>
<ImageView fx:id="dialogImageView" fitHeight="128" fitWidth="128" pickOnBounds="true" preserveRatio="true">
<image>
<Image fx:id="dialogImage" url="@watchglass.png"/>
</image>
</ImageView>
</graphic>
</Label>
for (int i = 0; i != dialogImageLabel.getChildrenUnmodifiable()
.size(); i++) {
Node itemNode = dialogImageLabel.getChildrenUnmodifiable().get(i);
if (itemNode.getClass().getName().equals("javafx.scene.image.ImageView")) {
ImageView imageView = (ImageView) itemNode;
System.err.println(String.format("The child image url: %s",
imageView.getImage().impl_getUrl()));
}
}
то же самоеThe child image url: file:/<путь к проекту>/src/main/resources/картина.png
label.setOnMouseEntered(new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent e) {
System.err.println(String.format("The label.bounds: %.2f %.2f,
Math.floor(label.getBoundsInLocal().getWidth()),
Math.floor(label.getBoundsInLocal().getHeight())));
The label.bounds: 54.00 18.00
label.setScaleX(0.82);
sudo update-alternatives --list java
Usage: update-alternatives [<option> ...] <command>
Commands:
--install <link> <name> <path> <priority>
[--slave <link> <name> <path>] ...
add a group of alternatives to the system.
<link> is the symlink pointing to /etc/alternatives/<name>.
(e.g. /usr/bin/pager)
<name> is the master name for this link group.
(e.g. pager)
<path> is the location of one of the alternative target files.
(e.g. /usr/bin/less)
<priority> is an integer; options with higher numbers have higher priority in
automatic mode.
sudo update-alternatives --install /usr/local/bin/java /usr/lib/jvm/java-9-openjdk-i386/bin/java java 100
$func = { param ($a, $b) ('{0} {1}' -f $a , $b)}
[Linq.Enumerable]::Zip(@("D:\1", "D:\2","D:\3"), @("C:\1", "C:\2", "C:\3"), [Func[Object, Object, Object[]]]$func)
D:\1 C:\1
D:\2 C:\2
D:\3 C:\3