アプリ関連ニュース
- 2019年12月27日
- 他の話題
Health Tips For Programmer
As it is coming to the end of the year, I am thinking that we should be aware of our health as we sit too long in front of computer and eat some bad food often.
I would like to share some tips for you so that you can follow them to take care of yourself.
Exercise
getting exercise on a regular basis is something that many developers tend to forget—or ignore. There’s no need to become fitness model or something but doing some form of exercise has several benefits that will keep you healthy, fit, and focused.
If you go to work by bike or by foot, then you’re already ahead of the curve. Exercising regularly has a wide range of benefits that will pay dividends in the long run. It keeps your body fit, improves your health, and it also makes you mentally more resilient.
Sleep
This tip is especially important if you’re still in your teens or twenties. At this age, programmers tend to forget that they are mortal. I’m in my
twenties now so I know what it feels like to think that nothing can stop you in your quest to conquer the world. While pulling an all-nighter is something that won’t kill you, it will screw up your health if you’re not careful. The older you become, the longer it takes to recuperate from sleepless nights. Burning the midnight oil may be necessary on occasions but respect your health by not making it into a habit.
Sleep is something that your body needs to recover from the previous day and stay fit. The body uses this time of inactivity reboot your brains and repair any damage you incurred during the day. Getting enough sleep significantly boosts your focus during the day, improves your immune system, and even enhances your memory.
Posture
Bad posture is a common problem these days. Even if you’re office is equipped with comfortable, ergonomic chairs and desks, it’s important to be conscious of your posture. It may seem unimportant when you’re in your twenties, but the number of young people suffering from chronic injuries caused by bad posture. Sitting at a desk for long periods of time isn’t healthy for a variety of reasons.
Caffeine
A common misconception is that caffeine is fuel for your body. Even though most energy drinks are high in calories, caffeine itself doesn’t contain any calories. Caffeine is nothing more than a molecule that interacts directly with your central nervous system.
Over the years, researchers have discovered a number of interesting findings about caffeine and how they affect people’s performance. For example, people that consume caffeine on a regular basis need it to function properly. This is something most people know, but underestimate. If you have been using caffeine for a few weeks or months, then you need a dose of caffeine simply to stay on par with someone who doesn’t depend on caffeine.
Diet
It goes without saying that a healthy diet is the cornerstone of a healthy lifestyle. That doesn’t mean that you can’t have a snack or that you need to cut out everything from your diet that’s unhealthy. It simply means being conscious of what you eat and when you eat it. That simple act can make a world of difference.
Balance
Finding balance in your life isn’t always easy. If you have a demanding job with a bunch of responsibilities, then it may be difficult to go offline for long periods of time. No matter what you do for a living, it’s important to find a balance between work and life.
I hope everyone be healthy and may work more in coming years.
By Yuuma
yuuma at 2019年12月27日 11:14:25
- 2019年12月26日
- 技術情報
CakePHP コントローラとビューの連携
nishida at 2019年12月26日 10:00:53
- 2019年12月25日
- Linux
Raspberry PiにNOOBSを使ってOSをインストールする
tanaka at 2019年12月25日 10:00:19
- 2019年12月19日
- 技術情報
CakePHP コントローラとURLの関連
nishida at 2019年12月19日 10:00:06
- 2019年12月13日
- 技術情報
Apache VS Nginx
What is Apache?
Apache is a Web server released under the open source Apache 2.0 license. Like all Web servers, it hosts Web content – such as HTML pages, PHP files, and audio and video – and serves the content to users when they visit a website. It can host content for websites on the public Internet, or for internal company websites on an Intranet.
Since its early days, Apache has offered a variety of benefits that have made it a popular Web server solution for many IT and DevOps teams.
Apache also offers a modular plugin system that makes it easy to add functionality to an Apache installation by installing modules that enable Apache to serve different types of Web content, log information, compress data, and so on. Modules in Apache can be easily activated and deactivated, providing a flexible solution for extending and controlling how Apache behaves.
What is NGINX?
NGINX is a Web server that is designed to also work as a reverse proxy server, a load balancer, and an HTTP cache. NGINX is open source and governed by a BSD license. While Apache can be configured to perform these various additional tasks, it was designed first and foremost as simply a Web server.
NGINX offers many of the same benefits as Apache. It’s open source and (in its core open source form, at least) freely available to use.
Unlike Apache, however, NGINX has a somewhat simpler configuration system. Some of the functionality that would have to be added to an Apache installation using modules is included in NGINX by default, which means that there is less setup for admins to perform. For example, NGINX caches Web content by default in order to enable faster performance when multiple users request the same content.
Simplicity
Developing and innovating applications on Apache is easy. The one-connection-per-process model makes it very easy to insert modules at any point in its web serving logic. Developers could add code in such a way that if there were failures only the worker process running the code would be affected. Processing of all other connections would continue undisturbed.
NGINX, on the other hand, has a sophisticated architecture hence developing modules is not easy. NGINX module developers need to be very careful to create efficient and accurate code, without any failures, and to interact appropriately with the complex event-driven kernel to avoid blocking operations.
Performance
Performance is measured by how the server delivers large volumes of content to the client browser and this is an important factor. Content can be Static or Dynamic.
OS support
Apache runs on all operating systems such as UNIX, Linux or BSD and has full support for Microsoft Windows. NGINX also runs on several modern Unix-like systems and has support for Windows, but its performance on Windows is not as stable as that on UNIX platforms.
By Yuuma.
yuuma at 2019年12月13日 10:30:17