Articles Comments

{ Berbagi, Menulis, Dan Mengajar } Ilmu… » Archive

Python Memaksimumkan View Aplikasi

class Ui_mainWindow(object): def setupUi(self, mainWindow): mainWindow.setObjectName("mainWindow") mainWindow.resize(771, 546) mainWindow.showFullScreen() … Read entire article »

Filed under: 7. Operating System

Wiring Pi .. Read Sensor Raspberry

import wiringpi as wpi from time import sleep PIR_SENSOR = 1 LED_MODULE = 21 wpi.wiringPiSetup() wpi.pinMode(PIR_SENSOR, wpi.INPUT) wpi.pinMode(LED_MODULE, wpi.OUTPUT) try: while True: if wpi.digitalRead(PIR_SENSOR) == wpi.HIGH: print(“Moving Object Detected”) sleep(0.5) wpi.digitalWrite(LED_MODULE, wpi.HIGH) else: print(“No Object Detected”) sleep(0.5) wpi.digitalWrite(LED_MODULE, wpi.LOW) except KeyboardInterrupt: wpi.pinMode(LED_MODULE, wpi.OUTPUT) wpi.digitalWrite(LED_MODULE, wpi.LOW) print(“exit”) … Read entire article »

Filed under: Raspberry

Cara Setting Database MariaDB Pengganti MYSQL

1. mysql -u root -p 2. CREATE USER 'farras'@'localhost' IDENTIFIED BY 'RA56i7'; 3. GRANT ALL PRIVILEGES ON db_nya.* TO 'farras'@'localhost';  ------ QUERY UNTUK MEMBUAT USER SETINGKAT ROOT GRANT ALL PRIVILEGES ON *.* TO 'farras'@'localhost' WITH GRANT OPTION; … Read entire article »

Filed under: 7. Operating System

Simple QT+MYSQL GUI

# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'MysqlGUI.ui' # # Created by: PyQt5 UI code generator 5.12.2 # # WARNING! All changes made in this file will be lost! import sys from PyQt5 import QtCore, QtGui, QtWidgets import pymysql class Ui_mainWindow(object): def messagebox(self,title,message): mess=QtWidgets.QMessageBox() mess.setWindowTitle(title) mess.setText(message) mess.setStandardButtons(QtWidgets.QMessageBox.Ok) mess.exec() def signup(self): nama=self.lineEdit.text() alamat=self.lineEdit_2.text() nohp=self.lineEdit_3.text() jkel=self.lineEdit_4.text() … Read entire article »

Filed under: 7. Operating System

Compile UI Python dari QT DESIGN ke Python Script

SEBAIKNYA GUNAKAN No. 1 1.  python -m PyQt5.uic.pyuic -x MysqlGUI15.ui -o MysqlGUI15.py 2. pyuic5.exe  -x untitled.ui -o text.py … Read entire article »

Filed under: 7. Operating System

Folder Setting Sublime text 3

C:\Users\DELL\AppData\Roaming\Sublime Text 3\Packages … Read entire article »

Filed under: 7. Operating System

check wilan

iw wlan0 scan > data.txt; cat data.txt | grep SSID … Read entire article »

Filed under: 7. Operating System

Toko Onderdil Komputer lengkap

http://www.tokojakarta.com … Read entire article »

Filed under: 7. Operating System

REST REFERENSI

https://www.codepolitan.com/rest-api-server-sederhana-dengan-codeigniter-58901f324a29f … Read entire article »

Filed under: 7. Operating System

perbedaan DES, SES, Peramalan

Filed under: 7. Operating System