技術情報
- 2020年04月24日
- 技術情報
[Laravel] Bladeテンプレートエンジン(2)ディレクティブ編
PHPフレームワーク「Laravel」を使用するにあたり、Viewの作成は、Bladeテンプレートエンジンを使用することが一般的です。
Bladeテンプレートエンジンを使用することでHTMLへのPHPの埋め込みが簡単におこなえるようになります。
今回は、Bladeテンプレートで使用できるディレクティブの紹介をおこないたいと思います。
nishida at 2020年04月24日 10:00:13
- 2020年04月20日
- 技術情報
IoT(Internet of things)
I will talk about IoT and how its works today.
IoT , a technology that is automating everyday life and offering simplicity, comfort, and efficiency by making everyday objects digitally represented.
How it works
Sensors / Devices
First, sensors or devices collect data from their environment. This could be as simple as a temperature reading or as complex as a full video.
Multiple sensors can be grouped together or the sensors can be part of a device that does more than just detect things. For example, your phone is a device that has multiple sensors (camera, accelerometer, GPS, etc.), but your phone is not just a sensor.
Connectivity
That data is then sent to the cloud. But you need a way to get there!
Sensors / devices can be connected to the cloud through a variety of methods including: cellular, satellite, WiFi, Bluetooth, Low Power Wide Area Networks (LPWAN), or connected directly to the Internet via Ethernet.
Choosing which connectivity option is best comes down to the specific IoT application, but they all accomplish the same task: bringing data to the cloud.
Data processing
Once the data reaches the cloud, the software does some processing on it.
This could be very simple, such as verifying that the temperature reading is within an acceptable range. Or it could also be very complex, such as using computer video vision to identify objects (such as intruders in your home).
User interface
The information then becomes useful to the end user in some way. This could be through an alert to the user (email, text, notification, etc.). For example, a text alert when the temperature is too high in the company’s cold storage. Also, a user could have an interface that allows them to proactively register in the system. For example, a user may want to watch the videos at home through a phone app or a web browser.
Security Concerns
Security is one of the most critical concerns in IoT, closely related to ethics, privacy and data responsibility. It must be integrated into every step of the system design. With millions of new devices connected every day, the number of potential attack points grows daily. With so much at stake, security engineering skills, including threat assessment, ethical hacking, encryption to ensure data integrity, protection of network architectures will necessary to be able to run IoT smoothly and securely.
By Yuuma
yuuma at 2020年04月20日 11:00:26
- 2020年04月17日
- 技術情報
[Laravel] Bladeテンプレートエンジン(1)埋め込み構文編
PHPフレームワーク「Laravel」を使用する場合、Viewの作成は、Bladeテンプレートエンジンを使用することが一般的です。
Bladeテンプレートエンジンを使用することでHTMLへのPHPの埋め込みが簡単におこなえるようになります。
今回は、Bladeテンプレートで使用できる埋め込み構文を紹介したいと思います。
nishida at 2020年04月17日 10:00:30
- 2020年04月13日
- 技術情報
CORS(cross origin resource sharing)
Today I will talk about cors , cross origin resource sharing. What its exactly and how we can handle it.
“CORS” stands for Cross-Source Resource Exchange. It allows you to make requests from one website to another website in the browser, which is normally prohibited by another browser policy called Same Source Policy (SOP).
You also have to know about SOP, same origin policy. CORS and SOP are browser policies that have been developed in response to security issues and browser vulnerabilities.
The browser-specific vulnerability that the Same Source Policy is intended to address is called “cross-site request forgery” (CSRF). The easy fix was for browsers to detect when a request is made from one website to another and prevent the response from being readable. This is the Same-Origin Policy.
Web servers that want to support CORS requests must respond to preflight requests with the following HTTP headers:
Access-Control-Allow-Origin: the whitelist origin, or “*”
Access-Control-Allow-Methods – A comma-separated list of HTTP methods that the web server wants to allow for cross-origin requests
Access-Control-Allow-Headers – A comma-separated list of HTTP headers that the web server wants to allow for cross-origin requests
By Yuuma.
yuuma at 2020年04月13日 11:00:47
- 2020年04月10日
- 技術情報
Laravelの開発環境構築方法(その2)
nishida at 2020年04月10日 10:00:54