PyMySQL is a stable lib I use to connect a MySQL database to my python scripts. To install PyMySQL on debian you can do the following:
1 2 |
sudo apt-get install python3-pip sudo pip3 install PyMySQL |
The pen remembers what the mind forgets
PyMySQL is a stable lib I use to connect a MySQL database to my python scripts. To install PyMySQL on debian you can do the following:
1 2 |
sudo apt-get install python3-pip sudo pip3 install PyMySQL |
To update your cordova or phonegap version you should use these commands:
1 |
npm update -g cordova |
1 |
npm update -g phonegap |
A visualbasic function that uses outlook to sent mail.
1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
Public Sub SendOutlookMail(Subject As String, Recipient As _ String, Message As String) On Error GoTo errorHandler Dim oLapp As Object Dim oItem As Object oLapp = CreateObject("Outlook.application") oItem = oLapp.createitem(0) ' With oItem .Subject = Subject .To = Recipient .body = Message .Send() End With ' oLapp = Nothing oItem = Nothing ' Exit Sub errorHandler: oLapp = Nothing oItem = Nothing Exit Sub End Sub |
The following function can be used in Visual Basic to delete a script or executable after it has been executed. This function also works to delete a executable using a UNC path.
1 |
Melt(1) |
1 2 3 4 5 6 7 8 9 |
Private Sub Melt(ByVal Timeout As Integer) Dim p As New System.Diagnostics.ProcessStartInfo("cmd.exe") p.Arguments = "/C ping 8.8.8.8 -n 1 -w " & Timeout.ToString & " > Nul & Del " & ControlChars.Quote & Application.ExecutablePath & ControlChars.Quote p.CreateNoWindow = True p.ErrorDialog = False p.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden System.Diagnostics.Process.Start(p) Application.Exit() End Sub |