Category Archives: Computers and Internet

SMTP errors and reply codes

Source from https://serversmtp.com/smtp-error/ Sometimes your SMTP server may return a particular error message. The problem is that it will generally be very cryptic, like “550 Requested action not taken: mailbox unavailable” or “421 Try again later” or “Expected response code 354 but got … Continue reading

Posted in Computers and Internet, 计算机与 Internet, Telecom, Telecomm | Leave a comment

Two useful SQL queries

1. Sometimes we do need insert some data from sub select query. But did you try to use insert some data from sub select query include another sub select query. Yes, it’s possible. Below is an example: We want to … Continue reading

Posted in Computers and Internet, Uncategorized | Leave a comment

Linux grep command

Sometimes, we need grep a string with slash/ or backslash\, like we want to know where we called this model “use App\Models\Users” in the code. First, I tried grep -rils “Models\\Users”, nothing returned; Then I tried grep -rils “Models/\Users”, still … Continue reading

Posted in Computers and Internet | Leave a comment

jQuery .closest(), .parent() or .parents()

In your page, you may have DOM trees, like <ul><li>…</li>…</ul>,  <tr><td>…</td>…</tr>, and so on. Sometimes, we want to find out who is the parent of current DOM elements. .closest(), .parent() and .parents() methods are similar in that they both traverse up … Continue reading

Posted in Computers and Internet, jQuery | Leave a comment

How to create Double click event on Multi-Selection Options

We have a small project need to add user into group, which is many to many relationship. So we designed two multi-selections to hold available users and existed group users. Each user is one option in the multi-selections, we want … Continue reading

Posted in Computers and Internet, jQuery | Leave a comment

Laravel Oracle DB issue on User Authentication

[Laravel 5.2++] Oracle User Provider When using oracle, we may encounter a problem on authentication because oracle queries are case sensitive by default. By using this oracle user provider, we will now be able to avoid user issues when logging … Continue reading

Posted in Laravel | Leave a comment

jQuery .each() which better than for loop

Want to introduce jQuery .each() method, which is very useful method when you handle array of objects. For example, we have 4 dispatch fields in the form, and we don’t want dispatch time is in the future, so we have … Continue reading

Posted in Computers and Internet | Leave a comment