アプリ関連ニュース

新型Surface ProとLaptopが発表

Microsoft社が新型のSurface ProとSurface Laptopを発表しました。

従来機から見た大きな変更点として
これまで主にSurface Xシリーズに搭載していたARMアーキテクチャCPUを
搭載していることがあげられます。
以前から噂のあったQualcomm社のSnapdragon Xという名称のSoCを搭載しています。

新型Surface Pro と Surface Laptop どちらも
Snapdragon X Plus と Snapdragon X Eliteから選択できるようで
Elite とある方が上位モデルのようです。

Microsoftはこれらの機種を「Copilot+ PC」と謳っており、
クラウド上ではなく、デバイス上でAIを利用した機能を実行できるとしています。

AIアシスタントのCopilotが最新のGPT-4oに対応する事や、
新機能であるRecallの発表もありました。

CPUの変更によってバッテリーの持続時間が伸びているであろう事や、
発熱が抑えられているであろう事、
Microsoftが推しているAI機能についても面白そうという期待はありますが、
昨今の為替事情もあり、最も安価な構成でも販売価格が20万円を超えるという点でなかなか手を出しづらいなと思います。

水曜担当:Tanaka



Windows機からiSCSIターゲットに接続する

前回の記事の続きです。

Windows機からiSCSIターゲットに接続する方法の紹介です。
OSはWindwos11です。

続きを読む

Organizing the Files easily with Python

In the digital age, we often find ourselves overwhelmed with files scattered across our computers. Whether it’s photos from last summer’s vacation, important documents for work, or music and videos for entertainment, keeping track of everything can be a challenge. But fear not! With the power of Python, you can automate the process of organizing your files into neat categories based on their types.

In this tutorial, we’ll walk you through a simple Python script that automatically organizes your files into categories like images, documents, videos, and more.

Before we dive in, make sure you have Python installed on your computer.

Step 1: Setting Up the Script

First, let’s create a Python script that will do the heavy lifting for us. Open your favorite text editor and copy the following code:

import os
import shutil

def classify_files(directory):
    # Dictionary of file categories and their extensions
    categories = {
        'Images': ['jpeg', 'jpg', 'png', 'gif', 'bmp'],
        'Documents': ['pdf', 'doc', 'docx', 'txt', 'rtf'],
        'Spreadsheets': ['xls', 'xlsx', 'csv'],
        'Videos': ['mp4', 'avi', 'mov', 'mkv'],
        'Music': ['mp3', 'wav', 'flac', 'aac'],
        'Archives': ['zip', 'rar', '7z', 'tar', 'gz']
    }

    # Create category directories if not exist
    for category in categories.keys():
        os.makedirs(os.path.join(directory, category), exist_ok=True)

    # List files in the directory
    files = os.listdir(directory)

    # Classify files
    for filename in files:
        # Get file extension
        _, ext = os.path.splitext(filename)
        ext = ext[1:].lower()  # Remove leading dot and convert to lowercase

        # Classify the file into appropriate category
        for category, extensions in categories.items():
            if ext in extensions:
                # Move the file to the corresponding category directory
                source_path = os.path.join(directory, filename)
                dest_path = os.path.join(directory, category, filename)
                shutil.move(source_path, dest_path)
                print(f"Moved '{filename}' to '{category}' category.")
                break  # Once classified, move to next file


def main():
    # Input directory path
    directory = input("Enter the directory path to classify files: ")

    # Check if directory exists
    if not os.path.exists(directory):
        print("Directory not found.")
        return

    # Classify files
    classify_files(directory)
    print("File classification completed.")


if __name__ == "__main__":
    main()

Save the file with a meaningful name like `organize_files.py`.

Step 2: Understanding the Code

Now, let’s break down what the code does:

– The script defines a dictionary of file categories and their corresponding extensions. For example, images have extensions like JPEG, PNG, etc.

– It prompts you to enter the directory path where your files are located.

– It creates category directories if they don’t exist already.

– It loops through all the files in the directory, classifies them into appropriate categories based on their extensions, and moves them to the respective category folders.

Step 3: Running the Script

Navigate to the directory where you saved the Python script using the command line or terminal. Then, run the script by typing `python organize_files.py` and press Enter.

Step 4: Sit Back and Relax

Watch as the script works its magic, organizing your files into tidy categories. Once it’s done, you will see your newly organized file system!

Conclusion

You’ve just automated the tedious task of file organization using Python. From now on, keeping your digital files organized will be a breeze. Feel free to customize the script to suit your specific needs and explore other ways Python can simplify your life.

Hope you enjoy that.

By Asahi



Linux機にiSCSIターゲットを作成する

LinuxをインストールしたPCにtargetcliを使用してiSCSIターゲットを作成してみます。

CUIで操作するのでターミナルを起動します。
ターミナル上に apt-get install targetcli を入力して targetcli をインストールします。

続きを読む

[Google AI Studio] Temperatureについて

今回はGoogle AI StudioのTemperatureパラメータ設定について説明します。

続きを読む

アプリ関連ニュース

お問い合わせはこちら

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

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

お問い合わせフォーム