アプリ関連ニュース
- 2023年11月27日
- AI
Google Bard expands capabilities to answer queries about YouTube videos
Google has recently announced a significant enhancement to its Bard AI chatbot, enabling it to provide specific answers to questions related to YouTube videos. While the initial YouTube Extension for Bard, launched in September, allowed users to find specific videos, the latest update empowers the chatbot to respond to queries about the content within videos.
This advancement means users can now engage in richer conversations with Bard, asking detailed questions such as the number of eggs required in a recipe featured in a particular video. Google acknowledges the users’ desire for deeper interaction with YouTube content and aims to fulfill this through Bard’s expanded capabilities.

This development follows YouTube’s recent experimentation with new generative AI features, introducing an AI conversational tool that answers questions about the platform’s content. This tool employs large language models to generate responses, utilizing information from both YouTube and the broader web. Users can now pose questions about the video they are watching, and the AI-driven conversation unfolds in real-time alongside the video playback. Additionally, YouTube has introduced a comments summarizer tool, leveraging generative AI to organize and summarize topics discussed in video comments, providing users with an overview of community discussions.
Coinciding with these updates, Google has expanded access to Bard for teenagers in most countries globally. In a blog post, Google highlighted the potential for teens to use Bard as a tool for inspiration, discovering new hobbies, and solving everyday problems. Whether seeking advice on university applications or exploring leisure activities, teens can now tap into Bard’s capabilities for a wide range of inquiries. This move aligns with Google’s commitment to making Bard a valuable resource for teens across various aspects of their lives.
Yuuma
yuuma at 2023年11月27日 10:00:00
- 2023年11月21日
- 技術情報
Getting Started with Unit Testing in Laravel
Unit testing is a crucial aspect of any robust software development process. In Laravel, a popular PHP framework, writing unit tests is not only easy but also highly encouraged. In this tutorial, we will go through the basics of writing unit tests in Laravel, ensuring the reliability and stability of the individual code units.
Prerequisites
Before diving into writing unit tests, make sure the following prerequisites be installed:
1. Composer
2. Laravel Installed
3. PHPUnit
Setting Up a Laravel Project
Use the following commands to set up a new project:
composer create-project --prefer-dist laravel/laravel my-laravel-app
cd my-laravel-app
Creating a Unit Test
Laravel provides a convenient Artisan command to generate a test class. Let’s create a simple unit test for a hypothetical `Calculator` class:
php artisan make:test CalculatorTest --unit
This will generate a test file located at `tests/Unit/CalculatorTest.php`. Open the file and you’ll see a basic test structure.
Writing a Unit Test
Now, let’s write a unit test for a basic addition method in our `Calculator` class. Open `CalculatorTest.php` and modify it as follows:
namespace Tests\Unit;
use PHPUnit\Framework\TestCase;
use App\Calculator;
class CalculatorTest extends TestCase
{
public function testAddition()
{
$calculator = new Calculator();
$result = $calculator->add(2, 3);
$this->assertEquals(5, $result);
}
}
In this example, assume we have a `Calculator` class in the `app` directory with an `add` method like that.
namespace App;
class Calculator
{
public function add($a, $b)
{
return $a + $b;
}
}
Running Unit Tests
To run the unit tests, use the following command:
php artisan test
This will execute all the tests in the `tests` directory.
Assertions
Laravel provides a variety of assertions that can be used in the tests. In this example, we used `assertEquals` to verify that the addition method returns the expected result. Explore other assertions and details in the official documentation https://laravel.com/docs/10.x/testing.
Conclusion
We’ve just written a first unit test in Laravel. As the application grows, writing tests for individual code units will become an integral part of the development process, ensuring that the code remains maintainable and reliable. Hope you enjoy that.
Asahi
waithaw at 2023年11月21日 10:00:00
- 2023年11月14日
- 技術情報
MongoDB Takes Control of Laravel Integration: Official Support Announced
MongoDB is now officially in charge of the Laravel framework’s community-driven MongoDB integration! This signals a commitment to regular updates, enhancing functionality, fixing bugs, and ensuring compatibility with the latest releases of both Laravel and MongoDB.

Formerly recognized as jenssegers/laravel-mongodb, this library expands Eloquent, Laravel’s ORM, providing PHP developers working with MongoDB a seamless experience through Eloquent models, query builders, and transactions.
For those eager to integrate MongoDB with the Laravel framework, explore the most recent release of this library, which introduces support for Laravel 10 – Laravel MongoDB 4.0.0. If you’re embarking on MongoDB PHP projects, a tutorial on constructing a Laravel + MongoDB back-end service and comprehensive library documentation are readily available here.
By Asahi
waithaw at 2023年11月14日 10:00:00
- 2023年11月13日
- AI
Samsung Gauss
Samsung has introduced its generative AI model, Samsung Gauss, at the Samsung AI Forum 2023. Comprising three tools—Samsung Gauss Language, Samsung Gauss Code, and Samsung Gauss Image—the model aims to enhance productivity across various applications. Samsung Gauss Language is a large language model similar to ChatGPT, capable of understanding and responding to human language. This tool can assist with tasks such as email writing, document summarization, and language translation. Samsung plans to integrate this language model into its devices like phones and laptops. The availability of the model for interaction in English and Korean remains undisclosed.
The Samsung Gauss Code, designed to work with the code assistant code.i, focuses specifically on development code. It aims to assist developers in writing code swiftly, supporting code description and test case generation through an interactive interface. Samsung Gauss Image, as the name implies, focuses on image generation and editing. It can potentially convert low-resolution images into high-resolution ones. While currently limited to internal use, Samsung plans to release Gauss to the public “in the near future,” with a potential application in the Galaxy S24, based on the generative AI model, expected as early as 2024.

Additionally, Samsung has established an AI Red Team to monitor security and privacy concerns throughout the AI development process, ensuring adherence to ethical principles. The company had previously imposed a temporary ban on generative AI tools, including ChatGPT and Google’s Bard, on its devices following an internal data leak.
Samsung’s commitment to generative AI research collaboration with industry and academia was highlighted by Daehyun Kim, the executive vice president of the Samsung Research Global AI Center, at the AI Forum. The name “Samsung Gauss” pays homage to the mathematician Carl Friedrich Gauss, whose normal distribution theory is considered fundamental to AI and machine learning. You can check out the detail event article from Samsaung here.
Yuuma
yuuma at 2023年11月13日 10:00:00
- 2023年11月01日
- Android
Bliss OS for PCを使ってみました
tanaka at 2023年11月01日 10:00:00