Posts

How it works: The PFC8574T I2C 8 Bit Adapter with the Vishay 20x4 LCD

Image
Using the I2C 4 line LCD https://www.rhydolabz.com/wiki/?p=16424 There is a section on the I2C LCD Backpack. The PFC8574T I2C to 8 bit IO adapter backpack onto Vishay LCD-020N004L PFD8574  ------------------->    20x4 LCD Header Strip   (4)  D0                          4  Rs   H/L Register Select (5)  D1                          5  R/W  H/L Read/write  (6)  D2                          6  E    H/L Enable      (7)  D3                                    --NC--        (9)  D4                          11 ...

Center image in HTML DIV horizontally

Image
First Part is the CSS Somebody once said "I have an  img  in a div and I want this image to be exactly in the middle of the div but nothing I try works..." Suppose you want to place 2 images side by side and centered in their div elements. you need to edit your style sheets to have an outer div, and 2 inner divs, and an image element inside the inner divs. You need to set your margin sides to auto, and your width to 50% div.column-2-block { position:relative; float: left; display:inline-block; border: 0px red solid; margin-top:25px; } div.column-inside { position:relative; float: left; display:inline-block; border: 0px green solid; width:50%; } div.image-holder { position:relative; display:block; } // THIS CSS WILL MAKE IT CENTERED img.centered { margin:0 auto; width:50%; } Then the HTML code <div class="column-2-block"> <div class="column-inside"> <img class="centered" src="https://c...

Configure Shoretel Voicemail Notifications to your email inbox using a free SMTP relay

Image
Configure Your Shoretel Voicemail Server to Send Voicemails As Wave Files to your inbox How Can SocketLabs Help You Setup a Free SMTP Relay Socketlabs is a free and paid service that can allow you to send 2000 free SMTP message relays every month from your verified domain. But first you need a real domain with it's own email accounts and a professional looking website on top of that, plus you need to look like a legitimate business with contact numbers and email addresses. It is not for spammers, hackers, phreakers, or junk mail junkies. Once you are ready, you create a free account at SocketLabs.com then allow the admins to verify your email and your web presence.  Once that's done, you get your credentials for their free SMTP relay that you can use in your IIS SMTP gateway to send free emails from your voicemail appliances, and your other IOT things that need to send email out, but cannot authenticate.  Many devices cannot authenticate to SMTP servers such as Shoretel...

Rasberry Pi i2c as a /dev/ device in ANSI C

I2C Is Just like SMBus You can always use WiringPI code library from GIT. git clone https://github.com/WiringPi/WiringPi.git Which will make the whole thing easier. #include <fcntl.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <stdint.h> #include <time.h> #include <sys/ioctl.h> #include "linux/i2c-dev.h" int main(int argc, char *argv[]) { int fd; struct timespec _500ms; _500ms.tv_sec = 0; _500ms.tv_nsec = 5000000L; fd = open("/dev/i2c-1", O_RDWR); if(fd < 0) { fprintf(stderr, "Error opening device\n"); exit(EXIT_FAILURE); } if(ioctl(fd, I2C_SLAVE, 0x20) < 0) { fprintf(stderr, "Error setting slave address\n"); close(fd); exit(EXIT_FAILURE); } char buf[10]; buf[0] = 0x07; // IODIR PORT1 buf[1] = 0x00; // all output if(write(fd, buf, 2) != 2) { ...

Raspberry Pi I2C Connectors and Pinout

Image
I2C - Inter Integrated Circuit I2C pins in BCM mode are: 2, 3 I2C pins in WiringPi are: 8, 9 The UART pins are 14 and 15, TXD, RXD. /dev/serial0 The Raspberry Pi's I2C pins are an extremely useful way to talk to many different types of external peripheral; from the MCP23017 digital IO expander, to a connected ATmega. The I2C pins include a fixed 1.8 kohms pull-up resistor to 3.3v. This means they are not suitable for use as general purpose IO where a pull-up is not required. You can verify the address of connected I2C peripherals with a simple one-liner: sudo apt - get install i2c - tools sudo i2cdetect - y 1 You can then access I2C from Python using the smbus library: import smbus DEVICE_BUS = 1 DEVICE_ADDR = 0x15 bus = smbus . SMBus ( DEVICE_BUS ) bus . write_byte_data ( DEVICE_ADDR , 0x00 , 0x01 ) Example with a pimoroni scrollphathd pi@raspberrypi:/usr/lib/python3/dist-packages/scrollphathd $ sudo i2cdetect -y 1 0 1 2 3 4 5 ...

Search the Outlook Inbox using Windows Indexing Service

Start Menu, then search for "Indexing" , then find "Indexing Options" in Advanced Options, choose Rebuild Many Thanks To This Tech Tidbit was brought to you by your friends at Eleven Dimensions Computer Technologies. See our new 11D website at: http://www.elevendimensions.com Our Partner Websites: Bare Wire Networks:      http://www.barewirenetworks.com CTI Solutions:    http://www.cti-solutions.com Many Thanks to Our Partner companies

How to Stop Domain Email Spoofing

How to Stop Domain Email Spoofing see this link: https://organicweb.com.au/marketing/fix-email-spoofing/ Summary: Use SPF, DKIM and DEMARK to monitor and stop spoofing Add SPF records to your DNS for those servers you use for sending email messages. I use  Google G Suite  for everyday messages,  Mailchimp  for email marketing and  Mailgun  for transactional sending. I therefore need to add SPF records for these three services. Add DKIM records for the services where you added SPF records. Sign up for, and activate, the  free DMARC reports  by Postmark. You’ll need to add a TXT record to your domain specifying the DMARC requirements. The TXT record will look something like the below (Postmark will give you the exact syntax to add): v=DMARC1; p=none; pct=100; rua=mailto:12345example@dmarc.postmarkapp.com; sp=none; aspf=r; Stop others sending email messages from your domain The DMARC record that Postmark provides is very good for ide...

Magento: Completely Disabling Frontend Customer Registration

Image
Completely Disable Customer Registration on Magento Front End Russian hackers have found your Magento store, and are registering fake user accounts, and bypassing captcha, and are doing it repeatedly every day. This is annoying the people who are getting spammed by your store.  Despite having CAPTCHA, the Russians have figured out how to automate the registration processing. You can easily disable customer registration, yet still allow the administrator to manually register customers. I have done all of these other tricks in the admin GUI, however still adding  customer/account/create/  to the end of the webstore still persists with a create account page. Any ideas what I can do here? I have a webstore in which we manually create each account, however it appears someone has found the loophole and persists in creating an account. Too many fake Russian and Soviet user accounts keep on being registered on my Magento, and they are using my Magento to SPAM other people. ...
RedOxygen Outlook Add-in Fails to Startup or is Disabled You have Outlook 2013 or Outlook 2016 and you have RedOxygen Outlook Add-in and it fails to startup or starts up in the list of disabled add-ins. Here's how you fix it. You Can force it start everytime. Open your registry editor. To do this, open your Windows Start menu and type "regedit". Go to HKEY_CURRENT_USER > Software > Microsoft > Office> Outlook > Addins >Red Oxygen.OfficeSMS. Note what the LoadBehavior is set to. It will be a number like 0 or 1 or 3. Close Word (or Excel or Outlook). Make sure the "winword.exe" process is not running in the Windows Task Manager. Open the registry editor again. Double-click the registry key to edit it. Change the Load Behavior to "3". Close the registry editor. Re-open the registry editor to ensure "3" is still there. Start up Outlook now. Many Thanks To This Tech Tidbit was brought to you your friends a...

Device Manager showing exclamation marks on all cpu i7 cores

Image
After using Acronis to copy Windows 7 x 64 system disk image from an old Dell Core2Duo desktop to a custom modded Gateway/Acer desktop with Intel DQ57TM motherboard and 1st gen Intel Core i7 870 CPU, you see this message in the device manager: A driver (service) for this device has been disabled.  An alternate driver may be providing this functionality. (Code 32) Sure its an old Lynnfield Core i7, a first generation processor from 2009, but's still better than a Core2Duo, it's a poorman's upgrade. To resolve this problem you need to do: change device installation options to "Never install driver software from windows update" on each core of the CPU, then reboot. in  Control Panel\Hardware and Sound\Devices and Printers click on the computer icon, and then right click, then "device installation options" Before following through the article (for method 2), I disabled automatic driver installation. To do this, I did the following: 1)  Opened Devi...

Install SSL Certificate on Amazon Bitnami Wordpress Website

Image
How to Get A Free SSL Certificate and How to Install It SSL Certificates Should Be Free For Everyone Let's Encrypt and SSL For Free are two of the most famous free SSL services out there, with your new Amazon EC2 Bitnami Wordpress virtual machine, you now need an SSL Certificate. Get your free certificate at SSL4Free.com , install it like a boss the hardway using the SSH command line.  In our knowledge base story regarding 31 Tips for Your First Business Website , our advice is to install an SSL Certificate immediately.  Amazon EC2 Bitnami Wordpress is another great way to get a free website, free of hosting charges. We have a list of free hosting options here . You must run it on the free tier. Breaking News for June 2020 SSL For Free is retired and now obsolete.  It has been bought out by comodo. You can only get 3 free certs now.  My recommendation is to use Certbot to automate your certificate renewals thru lets' encrypt. Here's a great how to guide for Amaz...

Microsoft Visio 2010 Premium Product Keys

Image
Visio KMS client key from Microsoft You can use these with AutoKMS tool such as Office Toolkit 2.4.9 (office 2010/2013) which will re-arm them once every 180 days. So you are always in the grace period.  At the bottom of this page are keys for Visio 2019.  If you are here to figure out how to get a free copy of Visio activated on your computer, without paying Microsoft for it, then God or Allah will judge you later for your sins. Your soul will be sent to the underworld to be tormented by Satan for these sins. Please pay for your software! Visio Standard 2010 767HD-QGMWX-8QTDB-9G3R2-KHFGJ Visio Professional 2010 7MCW8-VRQVK-G677T-PDJCM-Q8TCP Visio Premium 2010 D9DWC-HPYVV-JGF4P-BTWQB-WX8BJ Keys from our Russian friends. you can only install with these keys, you cannot activate. ========================================================================= Visio Premium 2010: ========================================================================= C383V-HPHM...