アプリ関連ニュース

正規表現基礎(4)

今回はさまざまなプログラミング言語やツールで活用できる正規表現の記号を紹介します。
本記事は前回の「正規表現基礎(3)」の続きです。

続きを読む

Checking if a file already exists in the given path with Node js

Today, I would like to share about checking if a file already exists in the given path using Node js. Let’s take a look.

To check if a file already exists or not, we can perform simply by using existsSync() method of ‘fs’ module in node js. The code is as follow.

const fs = require('fs')

let filePath = "C:\\Users\\waith\\Documents\\t1ee.pdf"
if (!fs.existsSync(filePath)) {
  console.log('File does NOT exist!');
}else{
  console.log('File exists.');
}

Yes, that is it. The steps to perfom that is very simple. It is just to declare fs module and use fs.existsSync() method to check the filepath.

This is all for now. Hope you enjoy that.

By Asahi



Apple is working on language-generating AI

These days, almost every conversation in tech seems to center around AI and chatbots. OpenAI, backed by Microsoft, released a new language model called GPT-4. Google said it is integrating AI into its Workspace tools like Gmail and Docs. Microsoft Bing has drawn attention to itself with a chatbot-enabled search.

People have long complained that Siri doesn’t understand queries (including mine). Siri (and other assistants like Alexa and Google Assistant) can’t understand the different accents and phonetics of people in different parts of the world, even if they speak the same language.

ChatGPT’s new fame and text-based search make it easy for people to interact with various AI models. But for now, the only way to chat with Siri, Apple’s artificial intelligence assistant, is to enable the feature in Accessibility Settings.

Image Credit: Wang Gang/Getty Images

In an interview with the NYT, John Burke, a former Apple engineer who worked on Siri, said the Apple Assistant has been slow to evolve because of “clunky code” that makes updating even basic functionality difficult. He also mentioned that Siri has a huge database with many words. So when engineers needed to add features, the database had to be rebuilt. The process reportedly took up to six weeks.

The NYT report did not clarify whether Apple is building its own language model or whether it wants to adopt an existing model. But like Google and Microsoft, Apple doesn’t want to limit itself to offering chatbots powered by Siri.

Apple has generally kept quiet about its AI efforts. But in January, the company launched a program that offers authors an AI-powered narration service that converts books into audiobooks. This shows that iPhone makers are already thinking about generative AI use cases.

Yuuma



Apple is releasing new classical music streaming app

Apple launches new music streaming service focused on classical music. The new Apple Music Classical app offers Apple Music subscribers over 5 million classical music tracks, including new releases in high-quality audio and provides access to hundreds of curated playlists. According to Apple, there are thousands of exclusive albums and other features like songwriter biographies and in-depth reviews of important works.

Image Credit : Apple

Although the app was announced, it is currently only available for pre-order on the App Store. The release date is March 28th at the end of this month. Also, the app will only support iOS devices running iOS 15.4 or later at the time of release.

The company’s decision to target classical music listeners with a standalone app is a differentiator for its Apple Music subscription service, but rival Spotify announced this week that it will be adding more tech features like AI and video.

Image Credit : Apple

Apple Music Classical provides a simple interface for interacting with classical works. Users can search by composer, work, director, or even catalog number to find recordings.

The app also allows users to dive into recordings and read editorial notes and descriptions of key works about the composer. Famous composers will have exclusive high-definition digital portraits commissioned by Apple from the artist.

The service will continue to be updated with new music over time. Apple has been working with classical music artists and music institutions to offer exclusive content and recordings at launch, and says it will continue to do so in the future. Follow news and updates about app and music releases at @appleclassical Twitter account.

Yuuma



3 Useful image manipulation libraries in Node JS

Today, I would like to share about image manipulation libraries in Node JS. Let’s take a look.

1. Canvas

Node Canvas is a very powerful image library which implements Web Canvas API. So it will be flexible for developers.

Check here for more details.

2. Sharp

Sharp is an efficient image processing library for Node JS. It is very useful for resizing, converting and editing images.

Check here for more details.

3. GraphicsMagick

GraphicsMagick is also a powerful image processing library of Node JS for many image functions.

Check here for more details.

This is all for now. Hope you enjoy that.

By Asahi



アプリ関連ニュース

お問い合わせはこちら

お問い合わせ・ご相談はお電話、またはお問い合わせフォームよりお受け付けいたしております。

tel. 06-6454-8833(平日 10:00~17:00)

お問い合わせフォーム