Hosting

Acuni siti internet dove poter pubblicare il vostro software.

https://www.fosshub.com/
http://www.techspot.com/
http://www.softpedia.com/
http://www.majorgeeks.com/
https://kubadownload.com/
https://aws.amazon.com/
http://www.filecluster.com
http://www.filehorse.com/
https://www.filecroco.com/
https://maddownload.com/
http://www.winsoftware.de/
http://winfuture.de/
https://www.ovh.it/ (for games)
https://www.kimsufi.com/ (for games)
https://www.freeware.de/
http://www.heise.de/
https://www.openshift.com/ (red hat)
https://www.digitalocean.com/ (linux)
http://linuxhosting.com (linux)
https://javapipe.com/ (java)

Posted in Web | Comments Off on Hosting

MySQL frequent sql instructions

Repository ufficiale MySQL Developer Zone https://dev.mysql.com

--Versione MySQL
select version();

--Seleziona database da utilizzare
USE nomedb;

--Creazione utente con password
CREATE USER 'nome_utente'@'localhost' 
   IDENTIFIED BY 'inserire-passpwrd';

-- Cancellazione utente
DROP USER 'nome_utente'@'localhost';

--Assegnazione a un singolo utente di tutti i privilegi 
--di gestione di un singolo database.
GRANT ALL PRIVILEGES ON nome_database.* 
   TO 'nome_utente'@'localhost';


--elenco dello spazio disco utilizzo dall'istanza del database 
--http://stackoverflow.com/questions/184560/how-to-monitor-mysql-space
SELECT IFNULL(B.engine,'Total') "Storage Engine",
CONCAT(LPAD(REPLACE(FORMAT(B.DSize/POWER(1024,pw),3),',',''),17,' '),' ',
SUBSTR(' KMGTP',pw+1,1),'B') "Data Size", CONCAT(LPAD(REPLACE(
FORMAT(B.ISize/POWER(1024,pw),3),',',''),17,' '),' ',
SUBSTR(' KMGTP',pw+1,1),'B') "Index Size", CONCAT(LPAD(REPLACE(
FORMAT(B.TSize/POWER(1024,pw),3),',',''),17,' '),' ',
SUBSTR(' KMGTP',pw+1,1),'B') "Table Size" FROM
(SELECT engine,SUM(data_length) DSize,SUM(index_length) ISize,
SUM(data_length+index_length) TSize FROM
information_schema.tables WHERE table_schema NOT IN
('mysql','information_schema','performance_schema') AND
engine IS NOT NULL GROUP BY engine WITH ROLLUP) B,
(SELECT 3 pw) A ORDER BY TSize;

--caricare dei file in formato CSV
--Attenzione: la sequenza dei campi nel file deve rispecchiare con i campi nella tabella.
LOAD DATA INFILE "/etc/mysql/import/file-to-import.csv"
INTO TABLE name_table
FIELDS TERMINATED BY ","
OPTIONALLY ENCLOSED BY """"
LINES TERMINATED BY "\n";

Posted in Database, MySql | Comments Off on MySQL frequent sql instructions

MySQL enable logs to output table

Per monitorare MySQL è possibile impostare nel database 2 tabelle che al suo interno vengono scritti i log.

CREATE TABLE `general_log` (
   `event_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
                          ON UPDATE CURRENT_TIMESTAMP,
   `user_host` mediumtext NOT NULL,
   `thread_id` bigint(21) unsigned NOT NULL,
   `server_id` int(10) unsigned NOT NULL,
   `command_type` varchar(64) NOT NULL,
   `argument` mediumtext NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='General log'
CREATE TABLE `slow_log` (
   `start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP 
                          ON UPDATE CURRENT_TIMESTAMP,
   `user_host` mediumtext NOT NULL,
   `query_time` time NOT NULL,
   `lock_time` time NOT NULL,
   `rows_sent` int(11) NOT NULL,
   `rows_examined` int(11) NOT NULL,
   `db` varchar(512) NOT NULL,
   `last_insert_id` int(11) NOT NULL,
   `insert_id` int(11) NOT NULL,
   `server_id` int(10) unsigned NOT NULL,
   `sql_text` mediumtext NOT NULL,
   `thread_id` bigint(21) unsigned NOT NULL
) ENGINE=CSV DEFAULT CHARSET=utf8 COMMENT='Slow log'

Per abilitare i log

SET global general_log = 1;
SET global log_output = 'table';

Per visualizzare i log

SELECT *
FROM mysql.general_log;

Per disabilitare i log

SET global general_log = 0;
Posted in Database, MySql | Comments Off on MySQL enable logs to output table

Vtiger Show Error

Per attivare la visualizzaizone degli errori in Vtiger:

Scommentare tutta la linea 18, nel file /config.inc.php

es:
ini_set('display_errors','on'); version_compare(PHP_VERS...

Posted in Vtiger | Comments Off on Vtiger Show Error

Video Audio

Alcune considerazioni tra le tecnologie per trasmettere audio e video su cavo.

  • HDMI (High Definition Multimedia Interface) è la comunicazione più moderna AUDIO e VIDEO, in digitale.
  • DVI (Digital Visual Interface) è una comunicazione SOLO VIDEO sia in digitale che in analogico si suddivide nei seguenti connettori e utilizza 29 PIN

    • DVI-A trasporto solo segnali analogici
    • DVI-D trasporto solo segnali digitali
    • DVI-I trasporto sia dei segnali analogici e digitali
  • SCART (Syndicat Constructeurs Appareils Radiorécepteurs Téléviseurs) (Union Manufacturers Devices Radioreceivers Televisions) è una comunicazione AUDIO e VIDEO analogica basata su 21 PIN
  • RCA (Radio Corporation of America) una comunicazione AUDIO e VIDEO analogica a bassissima definizione.
  • VGA (Video Graphics Array) una comunicazione SOLO VIDEO analogica utilizzata inzialmente per i monitor per computer, utilizzando 15 pin.
Posted in Utility | Comments Off on Video Audio

HTML simple table with fixed header

Alcuni esempi per realizzare una tabella HTML con intestazione fissa.

<table width="100%" height="100%" 
       style="border:solid; border-width:1px">
    <tr>
        <td style="border:solid; border-width:1px; height:65px">
           <strong>Header</strong>
        </td>
    </tr>
    <tr>
        <td style="border:solid; border-width:1px">
            Test1
        </td>
    </tr>
</table>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
<style type="text/css">
body{ 
     width: 100%; 
     height:100%; 
 } 
 table{ 
     width:100%; 
     height:100%; 
     top:0; 
     left:0; 
     right:0; 
     bottom:0; 
     position: absolute; 
     border:solid; 
	 border-width:1px;
 } 
 tr{ 
     height:auto; 
     //background-color:blue; 
 } 
 td {
     border:solid; 
	 border-width:1px;
 }
</style>
</head>
<body>
<table>
<tr style="height:65px">
  <td>1a</td><td>1b</td>
</tr>
<tr>
  <td>2a</td><td>2b</td>
</tr>
</table>
<body>
</html>
Posted in Web | Comments Off on HTML simple table with fixed header

Web Application and FCN (File Change Notification)

FCN (File Change Notification) è una funzionalità gestita da IIS: il web server riavvia il sito se qualche file è stato modificato (solitamente file di configurazione)
Potrebbe essere utile disattivare il riavvio automatico del sito web, quando si cancella un folder.

Disattivare questa funzione per ASPNET 2.0 è facoltativa, a voi decidere l’utilità di tale software.

Attenzione: disattivare questa funzionalità per utilizzo con il compilatore Visual Studio, potrebbe non essere efficace, essendo che utilizza il web server ‘IIS Express’.

Procedura:
Aggiungere il valore 1 (DWORD) alla seguente voce

  • Per 64bit
    HKLM\Software\Microsoft\ASP.NET\FCNMode
  • Per 32bit
    HKLM\SOFTWARE\Wow6432Node\Microsoft\ASP.NET\FCNMode

Per maggiori informazioni:
https://support.microsoft.com/it-it/help/911272/fix-asp-net-2-0-connected-applications-on-a-web-site-may-appear-to-sto

Posted in Operating Systems, Web, Windows | Comments Off on Web Application and FCN (File Change Notification)

Vb6 Microsoft Visual Basic 6

Alcune funzioni utili per il linguaggio di programmazione VB6.


Private Function CloseApplication()
    'Chiusura Applicazione
    End
End Function

Private Function CopyFile(strFileSource As String, 
                            strFileDestination As String)
    'Copia file
    FileCopy strFileSource, strFileDestination
End Function

Private Function RenameFile(strFileSource As String, 
                            strFileDestination As String)
    'Rinomimazione file
    Name strFileSource As strFileDestination
End Function

Private Function DeleteFile(strFile As String)
    'Eliminazione file
    Kill strFile
End Function

Dim date1 As Date
date1 = Now()
        
Dim str1 As String
str1 = Format$(date1, "yyyy-mm-dd")

Attezione per utilizzare la classe Dictionary è necessario aggiungere la reference “Microsoft Scripting Runtime” (SCRRUN.DLL)

Dim hashtable1 As New Dictionary
hashtable1.Add "Lion", "Mencken"
hashtable1.Add "Tiger", "Rexroth"

Posted in Programming Languages, VB6 | Comments Off on Vb6 Microsoft Visual Basic 6

Email message saved on disk (.msg .eml winmail.dat)

I file salvati sul harddisk relativi ad un contenuto email posso essede dei seguenti formati:

File Descrizione Software
.msg Email nel formato proprietario Microsoft Outlook
.eml Email in formato testo, con allegati (Microsoft Outlook Express, e altri) Sostituire l’estensione del file in .mht e aprirlo con Internet Explorer
winmail.dat Email nel formato TNEF (Transport Neutral Encapsulation Format) Winmail Opener
Posted in Web | Comments Off on Email message saved on disk (.msg .eml winmail.dat)

M4S to MP4 Video

Il formato .m4s ufficialmente chiamato mpeg-dash (Moving Picture Experts Group – Dynamic Adaptive Streaming over HTTP sono frammenti di video o audio.

E` possibile aggregare tutti i file .m4s in un unico file .mp4

Esempio:

  1. Ipotizziamo di aggrerare i seguenti file relativi al flusso video.

    init.mp4 1kb contiene i dati relativi alla lunghezza del video
    video01.m4s primo segmento video (chunk)
    video02.m4s secondo segmento video (chunk)
    video03.m4s terzo segmento video (chunk)
    video04.m4s quarto segmento video (chunk)


    Lanciare il seguente comando

    copy /b init.mp4 + video*.m4s videooutput.mp4
    
  2. Ripetere l’operazione precedente per il flusso audio

  3. Utilizzando il software ffmpeg.exe si può provvedere ad eseguire un merge dei due flussi, per ottere un file .mkv

    ffmpeg.exe -i videooutput.mp4 -i audiooutput.mp4 -c copy video1.mkv
    
Posted in Web | Comments Off on M4S to MP4 Video