Arduino LCD Dimmer
Verify your battery on Android
http://www.achillepaoloni.comPaoloni/BatteriaAndroid.exe
Change EXE to APK and try it
Simple Win32 C++ Windows Desktop App
Arduino Led String Sample
Sample GPS for Android
http://www.achillepaoloni.com/achillepaolonigpsaddress20200608.exe
Change EXE to APK and try it
How manage WMI-Verify your pc
Arduino Servomotor Sample
Simple CALC on Android
http://www.achillepaoloni.com/appandroid20180923/PaoloniCalcAndroidEstensioneapk.exe
Change EXE to APK and try it
http://www.achillepaoloni.com/APSystemDiag.exe
PERL and MYSQL
#!C:\Perl\bin\perl.exe -w
use Win32::ODBC;
$db = new Win32::ODBC( "BDSMYSQL" ) || die "Error connecting: " . Win32::ODBC::Error();
print "DRIVER ODBC PER MY SQL SERVER" . "\n";
print "***************************************" . "\n";
if( ! $db->Sql( "SELECT * FROM anagrafico" ) )
{
while( $db->FetchRow( \%Data ) )
{
$Row++;
print "$Row)";
$Nominativo = $db->Data('Nominativo');
$DataNascita = $db->Data('DataNascita');
$LuogoNascita = $db->Data('LuogoNascita');
print "NOMINATIVO: " . $Nominativo . "\n";
print "$Row)";
print "DATA NASCITA: " . $DataNascita . "\n";
print "$Row)";
print "LUOGO NASCITA: " . $LuogoNascita . "\n";
print "***************************************" . "\n";
}
}
else
{
print "Unable to execute query: " . $db->Error() . "\n";
}
$db->Close();
RUBY and MONGODB
require 'rubygems'
require 'mongo'
include Mongo
db = Connection.new.db('sample-db')
coll = db.collection('test')
coll.remove
3.times do |i|
coll.insert({'a' => i+1})
end
puts "There are #{coll.count()} records. Here they are:"
coll.find().each { |doc| puts doc.inspect }
PYTHON and ZODB3
# File: DBWithEventRECOK.py
import persistent
from Tkinter import *
from ZODB.FileStorage import FileStorage
from ZODB.DB import DB
import transaction
storage = FileStorage('PaoloniAchilleZODB.fs')
db = DB(storage)
connection = db.open()
connessionemy = connection.root()
class AchillePaoloni(persistent.Persistent):
##def setRecordBorse(self, Denominazione, DataNascita, Comune, Telefono):
def __init__(self):
self.Denominazione = "PAOLONI ACHILLE"
connessionemy['PaoloniAchille'] = AchillePaoloni()
connessionemy['09111963'] = AchillePaoloni()
connessionemy['ROMA'] = AchillePaoloni()
connessionemy['00169'] = AchillePaoloni()
class App(Frame):
def __init__(self, master=None):
frame = Frame(master)
frame.pack()
self.contents = StringVar()
##self.contents.set(connessionemy.keys()[:2] )
self.contents.set(connessionemy.keys())
self.button = Button(frame, text="USCITA", fg="red", command=frame.quit)
self.button.pack(side=LEFT)
self.hi_there = Button(frame, text="Nominativo", command=self.say_hi1)
self.hi_there.pack(side=LEFT)
self.entry = Entry(frame, fg="green")
self.contents.set(connessionemy.keys()[:4] )
self.entry["textvariable"] = self.contents
self.entry.pack(side=LEFT)
self.hi_there2 = Button(frame, text="Data nascita", command=self.say_hi2)
self.hi_there2.pack(side=LEFT)
self.entry2 = Entry(frame, fg="blue")
self.contents.set(connessionemy.keys()[:3] )
self.entry2["textvariable"] = self.content
self.entry2.pack(side=LEFT)
self.hi_there3 = Button(frame, text="Luogo nascita", command=self.say_hi3)
self.hi_there3.pack(side=LEFT)
self.entry3 = Entry(frame, fg="pink")
self.contents.set(connessionemy.keys()[:2] )
self.entry3["textvariable"] = self.contents
self.entry3.pack(side=LEFT)
self.hi_there4 = Button(frame, text="CAP", command=self.say_hi4)
self.hi_there4.pack(side=LEFT)
##root['ACHILLE']=AchillePaoloni()
self.entry4 = Entry(frame,fg="red")
self.contents.set(connessionemy.keys()[:2] )
self.entry4.pack()
self.entry4["textvariable"] = self.contents
self.entry4.pack(side=LEFT)
def say_hi1(self):
connessionemy['PaoloniAchilleRec1'] = AchillePaoloni()
self.contents.set(connessionemy.keys()[1] )
self.entry["textvariable"] = self.contents
self.entry.pack(side=LEFT)
##print "hi there, everyone1!"
def say_hi2(self):
connessionemy['PaoloniAchilleRec2'] = AchillePaoloni()
self.contents.set(connessionemy.keys()[2] )
self.entry2["textvariable"] = self.contents
self.entry2.pack(side=LEFT)
##print "hi there, everyone2!"
def say_hi3(self):
connessionemy['PaoloniAchilleRec3'] = AchillePaoloni()
self.contents.set(connessionemy.keys()[3] )
self.entry["textvariable"] = self.contents
self.entry.pack(side=LEFT)
##print "hi there, everyone3!"
def say_hi4(self):
connessionemy['PaoloniAchilleRec4'] = AchillePaoloni()
self.contents.set(connessionemy.keys()[4] )
self.entry2["textvariable"] = self.contents
self.entry2.pack(side=LEFT)
root = Tk()
app = App(root)
root.mainloop()