This uses the XML/HTML library BeautifulSoup . This could also be done using regex but playing with HTML and regex is usually a bad idea.
This uses the XML/HTML library BeautifulSoup . This could also be done using regex but playing with HTML and regex is usually a bad idea.
[bash]#!/bin/sh HOST="silveiraneto.net" if ping -c 1 $HOST > /dev/null then echo your command fi [/bash] replace silveiraneto.net for your desired hostname or ip ping sends…
This is a very simple example of how to open two images and display them added. I got two pictures at project Commons from Wikimedia…
I got a simple motor from a broken domestic printer. It’s a Mitsumi m355P-9T stepping motor. Any other common stepping motor should fits. You can…
I created some illustrative and simple implementations of common Unix commands. For those who are familiar with Unix-like systems them make easier to understand Java.…
import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar today = Calendar.getInstance(); System.out.println(“Today is ” + today.getTime()); } } In this…
You should know that variable values are cyclic in Java. public class Test{ public static void main(String args[]){ System.out.println(Integer.MAX_VALUE); System.out.println(Integer.MIN_VALUE); int x = Integer.MAX_VALUE +…
NumberFormatException: Thrown to indicate that the application has attempted to convert a string to one of the numeric types, but that the string does not…
I need to implements some codes in C++. Just remembering some concepts like pointers to functions. A simple example: #include <stdlib.h> #include <iostream> using namespace…
A very simple Java chronometer code (inspired in the chronometer code in Opale project) you can use for simples measures. In the main method there’s…