プロジェクト

全般

プロフィール

Temp

Windows環境でnpm-scripts実行に使用するシェルを変更する

改めて知る Microsoft Entra 条件付きアクセス

EntraID管理センター

Microsoft Entra ID Protection の通知

[Azure]高権限ユーザのサインインを検知する

https://dev.mysql.com/downloads/connector/odbc/

https://www.kkaneko.jp/cc/mysql/mysqlodbcvc.html

https://learn.microsoft.com/ja-jp/dotnet/api/microsoft.authentication.webassembly.msal.models.msalcacheoptions.storeauthstateincookie?view=aspnetcore-8.0

https://learn.microsoft.com/ja-jp/entra/identity-platform/scenario-spa-acquire-token?tabs=javascript2

package com.example.demo;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.util.ArrayList;
import java.util.List;

import com.opencsv.CSVParser;
import com.opencsv.CSVParserBuilder;
import com.opencsv.CSVReader;
import com.opencsv.CSVReaderBuilder;
import com.opencsv.CSVWriterBuilder;
import com.opencsv.ICSVWriter;

public class CsvReaderExample {

    public static void main(String[] args) throws Exception {
        String csvFile = "input.csv";
        CSVParser parser = new CSVParserBuilder()
                .withQuoteChar('"')
                .build();
        FileWriter fileWriter = new FileWriter(new File("output.csv"));
        ICSVWriter writer = new CSVWriterBuilder(fileWriter).withQuoteChar('"').build();

        String[] headerLine = null;
        int lineCounter = 0;
        try (CSVReader reader = new CSVReaderBuilder(new FileReader(csvFile))
                .withCSVParser(parser)
                .build()) {

            String[] nextLine;
            List<String> fields = new ArrayList<String>();
            while ((nextLine = reader.readNext()) != null) {
                if (lineCounter++ == 0) {
                    headerLine = nextLine;
                    continue;
                }
                for (String field : nextLine) {
                    String edited = field.replaceAll("\r", "").replaceAll("\n", " ");
                    System.out.print(edited + " ");
                    fields.add(edited);
                }
                writer.writeNext(fields.toArray(new String[0]));
                fields = new ArrayList<String>();
            }
            writer.flush();
        }
        fileWriter.close();
    }
}
        <dependency>
            <groupId>com.opencsv</groupId>
            <artifactId>opencsv</artifactId>
            <version>5.9</version> <!-- 最新版を確認してください -->
        </dependency>
  const waitingPrompts = useRef<string[]>([])

  useEffect(() => {
    console.log(`loading: ${loading}, isEmpty:${isEmpty}`);
    if (!isEmpty && !loading && waitingPrompts.current.length > 0) {
      const msg = waitingPrompts.current.shift();
      postMessage(msg!);
    }
  }, [loading, isEmpty]);

  const postMessageContinuously= async () => {
    let msg = `法人名称「${content}」のCEOは誰ですか?`
    if (category) {
      postMessage(msg, category);
    } else {
      postMessage(msg);
    }
    waitingPrompts.current.push("同法人の従業員数を教えてください");
    waitingPrompts.current.push("同法人のニュースを要約してください");
  };

$ sudo journalctl --since "2024-02-19 15:00:00" --until "2024-02-19 15:00:00"