This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Author: Mirco Attocchi | |
# | |
# Tomcat Startup Script | |
# thanks to http://www.akadia.com/download/soug/tomcat/html/tomcat_startscript.html | |
# thanks to http://askubuntu.com/questions/223944/how-to-automatically-restart-tomcat7-on-system-reboots | |
CATALINA_HOME=/home/cloud/apache-tomcat-7.0.82; export CATALINA_HOME | |
JAVA_HOME=/home/cloud/jdk1.7.0_75; export JAVA_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Code for post this http://mircoattocchi.blogspot.it/2009/01/nokia-pcsuite-and-outlook-other-phone.html | |
Sub CorrectNokiaContacts() | |
' This procedure retrieves all contacts from the Outlook | |
' Contacts folder and for eatch Contact move the | |
' OtherTelephoneNumber content on MobileTelephoneNumber or BusinessTelephoneNumber | |
' based on how OtherTelephoneNumber ("3" or "+393" or "+39 3") | |
' when MobileTelephoneNumber and BusinessTelephoneNumber are empty. | |
' | |
' Configure your Area Code: | |
Dim AreaCode As String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' *** Made By Michael Ciurescu (CVMichael) *** | |
'Modified by Paulo Cunha (pcunha) to work with char128.ttf on word or excel on 16/05/2011 | |
'the font at in http://grandzebu.net/index.php?page=/informatique/codbar-en/code128.htm | |
' References: | |
' http://www.barcodeman.com/info/c128.php3 | |
Private Enum eCode128Type | |
eCode128_CodeSetA = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x = .3 - .2; // trenta centesimi meno venti centesimi | |
var y = .2 - .1; // venti centesimi meno dieci centesimi | |
x == y; // => false | |
x == .1; // => false: .3-.2 non è uguale a .1 | |
y == .1 // => true: .2-.1 è uguale a .1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo cp tomcat.service /etc/systemd/system -i | |
# sudo nano /etc/systemd/system/tomcat.service | |
# sudo systemctl daemon-reload | |
# sudo systemctl enable tomcat | |
# sudo systemctl start tomcat | |
# systemctl status tomcat | |
# sudo systemctl restart tomcat | |
[Unit] | |
Description=tomcat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>JavaScript Find Real Image Width and Height</title> | |
<script> | |
function imgSize() { | |
var myImg = document.querySelector("#sky"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Scenario A | |
# VIDEO IN: IP CAM | |
# AUDIO IN: USB AUDIO CARD |