Category Archives: Sh*ts

“SMTP Error: Could not authenticate”

I had to install WP-Mail-Bank in one of my WordPress pages/blogs/store, so it can send emails to *people* 🙂

I was getting “SMTP Error: Could not authenticate”  on the test email tab.

I had to went to https://accounts.google.com/b/0/DisplayUnlockCaptcha and continue with this request. This gives us a 10min window to connect to Google in an *unsecure* way. Google detects the connection and allow it for the future.

Reference: http://stackoverflow.com/questions/3949824/smtp-error-could-not-authenticate-in-phpmailer

Discourse – email and Job exception: Net::ReadTimeout

 

Email

For a Discourse instance to function properly Email must be set up. Use the SMTP_URL env var to set your SMTP address, see sample templates for an example. The Docker image does not contain postfix, exim or another MTA, it was omitted because it is very tricky to set up correctly.

Source: https://github.com/discourse/discourse_docker

Yah! Discourse doesn’t came with any MTA (mail transfer agent).
I had to install Postfix so that Discourse could send out emails.

My emails weren’t getting delivered…
I was getting the following error on discourse logs(/var/discourse/shared/standalone/log/rails/production.log)….

Job exception: Net::ReadTimeout

After a few tweaks… I got it working…
This is my /var/discourse/containers/app.yml excerpt….

## TODO: List of comma delimited emails that will be made admin and developer
 ## on initial signup example '[email protected],[email protected]'
 DISCOURSE_DEVELOPER_EMAILS: '[email protected]'

## TODO: The SMTP mail server used to validate new accounts and send notifications
 DISCOURSE_SMTP_ADDRESS: mail.domain.com
 DISCOURSE_SMTP_PORT: 25
 DISCOURSE_SMTP_USER_NAME: [email protected]
 DISCOURSE_SMTP_PASSWORD: XXXXXXX
 DISCOURSE_SMTP_ENABLE_START_TLS: false
Rebuild the APP
cd /var/discourse/
./launcher rebuild app
Readings

 

lightGallery – lightbox for HTML5 video formats – MP4, WebM, Ogg, etc

lightGallery supports all types of HTML5 video formats. Such as MP4, WebM, Ogg, etc.

To display html5 video create your video content using html5 video tag inside a hidden div. Then just add id or class name of the object(hidden div) which contains your html, inside the data-html attribute. data-src should not be provided when you use html5 videos . You can even provide video html directly inside data-html attribute. lightGallery will automatically check your content, and if it is id or class name of your hidden div content will be fetched from the div, and will be displayed as video. Otherwise direct content will be used for displaying the videos.

 It works!
http://sachinchoolur.github.io/lightGallery/

We’ve recently noticed a potential risk to your LinkedIn account coming from outside LinkedIn

So!,

A few minutes ago I got this email from LinkedIn…
Looks like someone is selling 117 million LinkedIn passwords.

LinkedIn was hacked four years ago, and what initially seemed to be a theft of 6.5 million passwords has actually turned out to be a breach of 117 million passwords.

 

Hi Paulo,
To make sure you continue having the best experience possible on LinkedIn, we’re regularly monitoring our site and the Internet to keep your account information safe.
We’ve recently noticed a potential risk to your LinkedIn account coming from outside LinkedIn. Just to be safe, you’ll need to reset your password the next time you log in.
Here’s how:
  1. Go to the LinkedIn website.
  2. Next to the password field, click the “Forgot your password” link, and enter your email address.
  3. You’ll get an email from LinkedIn asking you to click a link that will help you reset your password.
  4. Once you’ve reset your password, a confirmation email will be sent to the confirmed email addresses on your account.
Thanks for helping us keep your account safe,
The LinkedIn Team

 

More readings

 

A More Efficient Method for Embedding YouTube Videos

When you embed any YouTube video on your website using standard IFRAME tags, you’ll be surprised to know how much extra weight that YouTube video will add to your page. The web page has to download ~0.5 MB of extra resources (CSS, JavaScript and images) for rendering the YouTube video player and the files will download even if the visitor on your website has chosen not to watch the embedded YouTube video.

Read all about it here http://www.labnol.org/internet/light-youtube-embeds/27941/