アプリ関連ニュース
- 2023年2月17日
- 技術情報
Flutter ListViewの高さを定義する方法
ListViewのアイテムの高さを定義するには、itemExtentを引数として使用します。
ListView(
itemExtent: //,
children : []
);
使用法例
return Scaffold(
body: ListView(
itemExtent: 150,
children: [
Card(
color: Colors.blue,
child: ListTile(
title: Text('Item1'),
),
),
Card(
color: Colors.blue,
child: ListTile(
title: Text('Item2'),
),
),
Card(
color: Colors.blue,
child: ListTile(
title: Text('Item3'),
),
),
],
),
);

金曜担当 – Ami
asahi at 2023年02月17日 10:00:00
- 2023年2月15日
- 未分類
BingにAIが搭載されました
tanaka at 2023年02月15日 10:00:00
- 2023年2月14日
- 技術情報
Making a simple request to APIs in python
Today, I would like to share about making a API request using ‘requests’ library in Python. Let’s take a look.
First of all, install the ‘requests’ library by the following command.
pip install requests
or
pip3 install requests
Here is the code to make a GET request to a public API.
import requests
api = 'https://catfact.ninja/fact'
response_data = requests.get(api)
response_data_json = response_data.json()
print(response_data_json)
The result is as follows.
{'fact': 'Lions are the only cats that live in groups, called prides. Every female within the pride is usually related.', 'length': 109}
This is the example request to a public API. You can learn more HERE for advanced usage.
Hope you enjoy that.
By Asahi
waithaw at 2023年02月14日 10:00:00
- 2023年2月13日
- 技術情報
Github will change their working style to fully remote and 10% lays off
Microsoft-owned GitHub announced today that it will lay off 10% of its workforce by the end of the company’s fiscal year. Prior to this announcement, GitHub had approximately 3,000 employees. The company will also close all offices at the end of leases and move to a remote-first culture, partly due to low utilization.

GitHub will also continue the hiring freeze it first announced in January and will also make a number of other internal changes to “protect the short-term health” of its business.
“We announced a number of difficult but necessary decisions and budgetary realignments to both protect the health of our business in the short term and grant us the capacity to invest in our long-term strategy moving forward. You can view our CEO’s full message to employees with additional details on these changes below,” a company spokesperson told to techcrunch.
In a slightly unusual move for a company that prides itself on being independent of its corporate owners, GitHub will also be moving to Teams for its video conferencing needs. And in another sign of cost savings, we’re changing our laptop upgrade cycle from 3 to 4 years.
Yuuma
yuuma at 2023年02月13日 10:00:00
- 2023年2月08日
- 技術情報
Resizing the image to a specific width and height with opencv in Python
Today, I would like to share a program for resizing the images to a specific width and height with opencv library in Python. Let’s take a look.
Opencv has resize method cv2.resize() to resize the images.
We can resize the images simply as follows.
import cv2
# read the input
img = cv2.imread('input.jpeg')
height, width, channel = img.shape
print(f"Height and width of original image: {height}, {width}")
# resize the image
new_size = (450, 340) # (width, height)
print(f"New height and width: {new_size[1]}, {new_size[0]}")
resize_img = cv2.resize(img, new_size)
cv2.imshow('Original img', img)
cv2.imshow('Resized img', resize_img)
cv2.waitKey(0)
The program above will resize the input image and show original and resized images.
Actually, cv2.resize() has other functionalities. Please study more about this. It is interesting.
This is all for now. Hope you enjoy that.
By Asahi
waithaw at 2023年02月08日 10:00:00