Development / DIY / Linux / Raspberry PI 3

Magic Mirror – PIR Sensor – Update #3

The idea of installing the motion detector is that it either turns the HDMI signal on or off. IF the motion detector does not detect any movement for 9 seconds (value that can be changed as required), it switches of the HDMI Signal. As soon as movement is registered again, it switches the signal on again. If movement is also registered during 60 seconds, the timer is reset to zero.. The pir sensor connected to raspberry pi with female-female jumper cable. VCC to Pin 2 GND to Pin 6 OUT to Pin 12 And now the motion detector should switch […]

Development / PHP

PHPStorm – Symfony log highlighting

To do, go into Settings -> Editor -> Log Highlighting (Ideolog) Add new Log Format with the following config: special thanks to : https://locastic.com/blog/a-quick-way-to-browse-symfony-logs-with-phpstorm/ Views: 11

Development / Javascript

SmartMrK OS – v0.2.0 released!

New Features Vue Router feature added. Edit/Create Widget Pages and Homepage working with routing. New User Shortcuts Ctrl + y : Admin Login Ctrl + k : Homepage Ctrl + n : Add new Widget (For Editing: Click on Widget) Github Tag/Version/Download Link: https://github.com/kzorluoglu/smartmrk/releases/tag/v0.2.0 Views: 2

Development / Docker

Docker Update Container

Start the Container via Container ID Modify your Image, i will only the rsync software install for auto deployment and i’am done. commit the changes to docker Views: 3

Development / Docker / Server

ERROR: for db Cannot start service db:

Error response from daemon: You cannot remove a running container 03bfa4d8781318d096d8bf91fbe5375c11912ce0f427e2059891cdad7ade25e0. Stop the container before attempting removal or force remove ERROR: for db Cannot start service db: driver failed programming external connectivity on endpoint Fix Method 1; Fix Method 2; Views: 4

Development / PHP

Git Bash inside PhpStorm

Go to: File -> Settings -> Tools -> Terminal If you are using 64 Bit Git Bash(Git for Windows) put this in the Shell Path field. Or for 32 Bit Git Bash put this in the field Views: 9

Development / PHP

Social Poster – A Simple Facebook Page and Twitter poster

Social (Media) Poster Social Poster is a simple Facebook Page and Twitt poster Text Posting Text with Image-\s Posting Tech Social Poster uses a number of open source projects to work properly: facebook/graph-sdk – Facebook SDK for PHP (v5) dg/twitter-php – Twitter for PHP is a very small and easy-to-use library for sending messages to Twitter and receiving status updates. dillinger.io – Markdown editor for this readme.md creating/editing. Fast and easy to extend. Twitter Bootstrap – great UI boilerplate for modern web apps jQuery – duh Integration Facebook Create Facebook Developer Account Create Simple App You not need Facebook Products […]

Development / Javascript

How do Remove Element From an Array – Simple

/** Set – New Array */ const users = []; /** * Add – New Element/Item */ users.push({ id: socket.id, name: ‘Visitor’}); /** * Find – Index of Element */ var foundIndex = users.findIndex(x => x.id == socket.id); /** * Update/Add – New Data an Founded Element */ users[foundIndex].name = data.name; /** * Remove */ users.splice(foundeIndex, 1); Example from My Home Hobby Project: const users = []; nsp.on(‘connection’, (socket) => { console.log(‘Kullanici :’ + socket.id + ‘Baglandi’); users.push({ id: socket.id, name: ‘Visitor’}); socket.on(‘sendUserData’, (data) => { console.log(‘Server => ‘ + data.name + ‘ Connected.’); var foundIndex = users.findIndex(x => x.id […]

Development / PHP

My Experiences with Laravel 5.5

First Project / Look : I have had some experience in module writing my company software solution for an Aid Organization. This project was with Laravel 5.1, what the customer wants as a correction or update… What have I had? First of all, some pre-installed plugins(from the old developer at company) need to be updated, because these plugins work not nicely or stable.. But isn’t possible, because XYZ Plugin needed higher version another ABC, DEF Plugins, this plugin needed higher version of laravel/framework.  If I framework updated, then you get several errors, because main core functions or classes changed or […]

Development / Linux / PHP / Raspberry Pi Zero W / Server

Raspberry Pi Zero W + USB Modem – SMS Gateway

This Article updated on 08.09.2019 Install usb-modeswitch, smstools, wvdial sudo apt-get install usb-modeswitch usb-modeswitch-data smstools wvdial Find right device and baudrate with this command; sudo wvdialconf …my modem information (modem on ttyUSB1 and baudrate 9600)… ttyUSB0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud ttyUSB0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 9600 baud ttyUSB0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up. ttyUSB1<*1>: ATQ0 V1 E1 — OK ttyUSB1<*1>: ATQ0 V1 E1 Z — OK ttyUSB1<*1>: ATQ0 V1 E1 S0=0 — ERROR ttyUSB1<*1>: ATQ0 V1 E1 &C1 — ERROR […]