Member

[email protected]

Total likes received: 64 | Pubby Cash: 792


My Articles: 44

Bootstrap learning

Categories: Tech | Pubby Cash Received:  0

You might see people list Bootstrap as one of their skills on resumes. However, Bootstrap does not sound to be a coding language or a regular computer skill. What is it? Bootstrap is an open source and powerful CSS product that is widely used for website developers to optimize the looking of their websites. You just need to link one piece of source code in the header of your HTML file and then Bootstrap will do all the formatting things for you as long as you refer to the right class names in div blocks. It is critical to know what those class names are. There are many classes for different HTML components such as buttons, input fields, columns, rows, etc. It is difficult for beginners to memorize all those class names. It is advised to print out a Bootstrap cheat sheet and take a 2-h online crash course to get an idea what each of the class is about. Practice makes perfect. You need to practice using these div classes often and feel free to create your own CSS file to override some of the Bootstrap CSS formatting, and then gradually, you will become proficient in CSS and website optimization. Interested in learning more about how you can customize your own website? Then check out this fantastic 5-star ebook that covers all of the fundamentals about Bootstrap on Amazon! ...  Read more

WebMail client

Categories: Tech | Pubby Cash Received:  0

It is weird that nearly all WebMail applications such as RoundCube, Horde, Squirrel Mail, etc. are written in PHP. I've been looking for an application written in Python, and am only able to find one - MailPile. Unfortunately, MailPile is only available on Linux system so far. The packages for MacOS and Windows are still under development. I'm wondering why people in the Python community lack interests of developing a WebMail application? It is not difficult to do so after using SMTPLIB and IMAPLIB modules. It should be appealing to people who are running a flask or Django website written in Python. You can simply write one by yourself to realize the sending emails and checking emails functions!...  Read more

Incorporation of javascript, python, SQL, and HTML in website coding

Categories: Tech | Pubby Cash Received:  0

A client sends a request to the server for information via port 80. The server renders HTML codes that will be parsed and displayed at the client end by a browser. That's how the web browsing works. Instead of rendering static HTML codes, dynamic web server is able to do the calculations based on the requests sent from the clients and returns the HTML codes with those calculation results. Compared to static websites, dynamic websites are more advanced, more informative, and more appealing to users. In order to make a website dynamic, a database has to be used with a querying language SQL. The database that python uses is 'SQLite', and there is a module 'SQLAlchemy' that streamlines the coding process for python programmers. Its syntax is different from the conventional SQL syntax, but is more intuitive and easy to use. After client sends a request, a server receives the request, queries the database, obtains the result, and sends back to the client. For the dynamic part (i.e. variables) of HTML that is sent out from the server, it is the coded inside double curly braces {{ }} within HTML, so that when the client browser sees it, it will automatically be interpreted and the stored value will be retrieved. However, this may not work if you would like to pass a variable into a javascript. Javascript can achieve a lot of fancy effects and are indispensable for modern web pages. To do that, the correct syntax should be {{ variable|tojson }}. ...  Read more

Home Mail Server?

Categories: Tech | Pubby Cash Received:  0

It sounds like a great idea to set up a mail server at home. It is not difficult to do so. All you need is to install an HMailServer and run it on your home computer 24 hours per day. You will get featured emails like [email protected]. Isn't that cool? However, you might end up being able to receive emails only while lacking the ability of sending emails to the outside world. You might think is port 25 (the port of sending emails) open? Yes, it is absolutely open, not blocked by firewall and home router for sure. You have gone through all the settings on your side, and still cannot solve the problem. The reason is: your ISP blocked port 25 for the reason of avoiding email spamming. How to check if your ISP has this port blocked? Here is my method: use "cmd" to open the command window, and then type "telnet mail.hmailserver.com 25". If you get connection errors, that means your email sending (via port 25) ability has been restricted. You probably need to enable telnet first by opening this feature in windows. There are a bunch of articles on the internet guiding you how to do this. To check if your server's specific ports are open, in addition to the above telnet method, you can also go to canyouseeme.org, and enter a port to check. It will return an error if it is not open. And then you can do some troubleshooting accordingly. The final question is: How to solve the problem? How to bypass your ISP's port 25 restriction? You could use an smtp relay service through a third party which allows you to connect to their smtp server at a port other than your blocked port 25, and they will send out the email for you. The downside is the free version of this service usually put a limits on the daily or monthly emails you can send out. However, if you are running a home server as the title says, not for large scale business use, a 100 emails per day limit does not sound too bad. ...  Read more

1 ... 8 9

Daily Deals


MECHANICSBURG WEATHER