IT |
気になる、記になる… |
Appleの整備済み商品情報 2023/3/10 |
https://taisy0.com/2023/03/10/169500.html
|
apple |
2023-03-10 06:03:10 |
IT |
InfoQ |
Terraform 1.4 Release Adds Native Null Resource and Extends OPA Support |
https://www.infoq.com/news/2023/03/terraform-1-4-null-resource/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global
|
Terraform Release Adds Native Null Resource and Extends OPA SupportHashiCorp has released Terraform with a number of improvements for working within Terraform Cloud environments These improvements include CLI support for structured run outputs and OPA policy results Additional improvements include a native replacement for the Null utility provider By Matt Campbell |
2023-03-10 07:00:00 |
ROBOT |
ロボスタ |
BOLDLYが雪道での⾃動運転バス走行の試運行を実施 降雪地域で安定した自動運転バス実現へ 北海道東川町で |
https://robotstart.info/2023/03/10/boldy-driving-on-snowy-roads.html
|
|
2023-03-10 06:23:19 |
ROBOT |
ロボスタ |
Pepperが世界最高峰のダンスリーグとコラボ!一緒に踊れるロボアプリ「踊ろう踊らせよう」をソフトバンクロボティクスがリリース |
https://robotstart.info/2023/03/10/pepper-d-league.html
|
|
2023-03-10 06:12:48 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 干支が関係? 「イトーヨーカドー」名前の由来とは |
https://www.itmedia.co.jp/business/articles/2303/10/news164.html
|
itmedia |
2023-03-10 15:44:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 進研ゼミがSwitchで遊べる学習教材 会員向けにリリース 誰でもプレイできる無料体験版も公開 |
https://www.itmedia.co.jp/news/articles/2303/10/news169.html
|
fornintendoswitch |
2023-03-10 15:29:00 |
TECH |
Techable(テッカブル) |
iPhone・Apple Watchなど最大4台を同時充電できる!LED照明付き充電スタンド「GeeDepot」 |
https://techable.jp/archives/198997
|
geede |
2023-03-10 06:00:35 |
AWS |
AWS Japan Blog |
AWS Week in Review – 2023 年 3 月 6 日 |
https://aws.amazon.com/jp/blogs/news/aws-week-in-review-march-6-2023/
|
awsweekinreview |
2023-03-10 06:50:18 |
技術ブログ |
Developers.IO |
[ChatGPT]Llama Indexのクエリはどれくらいの時間がかかる? 計測してみた |
https://dev.classmethod.jp/articles/llama-index-query-speed/
|
chatgptllamaindex |
2023-03-10 06:50:19 |
海外TECH |
DEV Community |
Most Exciting Python Features from 3.7 to 3.11 |
https://dev.to/yash_makan/most-exciting-python-features-from-37-to-311-l09
|
Most Exciting Python Features from to IntroductionHey innovators I am Yash Makan and in today s blog post we are going to discuss about some of the cool and helpful features that you won t wanna miss to add in your coding cookbooks I ll be mentioning interesting features based on each latest python version that will make you a python guru So without any more introduction let s dive in Adding Notes When Catching ExceptionThis feature of adding notes to python exceptions is added in the version Now developers can add more detailed information while handling exceptions to make it much more easier in the debugging stage It can be utilized by adding add note method to the Exception class try raise TypeErrorexcept Exception as e e add notes More Information regarding error e add notes Why not add some more info Trackback most recent call last File main py in lt module gt raise TypeErrorTypeErrorMore Information regarding errorWhy not add some more info Grouping Asynchronous TasksDo you know from python we can group asynchronous tasks together using the TaskGroup class This class helps in running multiple coroutines and wait for all those coroutines to finish This can be used in multiple scenarios where multiple coroutines are used Let s see an example to better understand import asyncioasync def coroutine await asyncio sleep print Coroutine async def coroutine await asyncio sleep print Coroutine async def main async with asyncio TaskGroup as task group await task group create task coroutine await task group create task coroutine print Both tasks are done now asyncio run main Coroutine Coroutine Both tasks are done now square²and ∛cube rootNow python has introduced a brand new update where developers can square or cube root any number …I know what you guys are thinking but jokes aside now we have inbuilt functions in the math module which helps us to do the exact same thing gt gt gt import math gt gt gt math exp gt gt gt math cbrt Pattern MatchingHave you ever heard of switch case in other languages and always felt that python is missing out on this feature If so then worry no more Python now developers can use match case which is similar to switch case but is much more better In the case you can compare not only literals but also tuples variables etc Let s see an example to better understand point is an x y tuplematch point case print Origin case y print f x y y case x print f x x y case x y print f x x y y case raise ValueError Not a point Union AlternativeYou must have used Union from typing to tell compiler that the argument can either be int or float Now from python there s a better way to do this Instead of importing the Union class like from typing import Union You can use the same functionality with the symbol from typing import Uniondef square number Union int float gt Union int float return number vsdef square number int float gt int float return number Dictionary Merge OperatorFrom python merging two dictionaries together is much easier because of the dict merge operator Earlier if we want to merge two dictionaries we can do that by dict dict dict but now we can use the symbol to merge two dictionaries gt gt gt dict a b gt gt gt dict b c gt gt gt dict dict a b c gt gt gt dict dict New way a b c Walrus OperatorThe walrus operator allows developers to assign and return value both at the same time This feature was introduced in python Let s see an example to understand the operator Before Python gt gt gt numbers gt gt gt num length len numbers gt gt gt num sum sum numbers gt gt gt description length num length sum num sum mean num sum num length gt gt gt description length sum mean With Walrus Operator gt gt gt numbers gt gt gt description length num length len numbers Here we are initializing and using both at the same time sum num sum sum numbers mean num sum num length gt gt gt description length sum mean f strings support for self documentingIn python other interesting feature added is the f string support for self documenting and debugging Many of the times developers use print f check variable to debug if the variable value is updated or not Now python introduced a much better way to debug this exact same thing variable get data print f variable variable Hello World Positional only ParametersIn Python positional only parameter feature is added Now in a def function we can define which of our parameters can be positional only and keyword only parameters This is done by separating the parameters by a Let s see an example def foo a b kwargs print a b kwargs gt gt gt foo c d e correct as a and b must be a positional argument c d e DataclassesIn Python dataclasses are introduced This feature will save you from writing ton of boilerplate code and makes your classes neat This feature is one of may favorite as well We can simply add the dataclass decorator to our class and it can generate most of the magic methods on it s own such as repr eq and hash Let s see an example from dataclasses import dataclass dataclassclass Point x float y float z float p Point print p Point x y z ConclusionSo in today s article we have covered python s most exciting features from Python to Now Of course there is a huge list of features that has been introduced which I haven t mentioned so let me know in the discussion below which of the features I have missed and that you love the most in python I hope you liked my blog and if this article adds any value then make sure to spread it with your friends and don t forget to bookmark If you have any questions let me know via Twitter or in the discussion below If you d like more content like this I post on YouTube too Till then b bye |
2023-03-10 06:49:19 |
海外TECH |
DEV Community |
How to check if character is uppercase in Rust? |
https://dev.to/foxinfotech/how-to-check-if-character-is-uppercase-in-rust-1i3i
|
How to check if character is uppercase in Rust In Rust the char data type represents a Unicode Scalar Value Unicode defines a unique numeric value for each character used in writing systems across the world Checking if a char is uppercase in Rust is a common operation in text processing and it can be done using a variety of approaches In this tutorial we will explore different ways to check if a char is uppercase in Rust including the use of the built in methods and external crates We will provide examples with explanations for each approach and discuss the advantages and disadvantages of each Checking if a char is uppercase using built in methods Using the is ascii uppercase methodThe is ascii uppercase method is a built in method that checks if a char is an ASCII uppercase character ASCII is a subset of Unicode and it includes the characters used in the English language as well as some special characters The is ascii uppercase method returns a boolean value that indicates whether the char is an ASCII uppercase character or not Example fn main let my char char A let is uppercase my char is ascii uppercase println Is uppercase my char is uppercase Output Is A uppercase trueIn this example we define a char variable named my char with the value A We then call the is ascii uppercase method on the my char variable which returns true because A is an uppercase ASCII character Using the is uppercase methodThe is uppercase method is a built in method that checks if a char is an uppercase Unicode character This method returns a boolean value that indicates whether the char is an uppercase Unicode character or not Example fn main let my char char Ä let is uppercase my char is uppercase println Is uppercase my char is uppercase Output Is Äuppercase trueIn this example we define a char variable named my char with the value Ä We then call the is uppercase method on the my char variable which returns true because Ä is an uppercase Unicode character Checking if a char is uppercase using external crates Using the Unicode Normalization crateThe Unicode Normalization crate provides a set of functions for working with Unicode strings including checking if a char is uppercase The crate includes a function named is uppercase which returns true if a char is an uppercase Unicode character and false otherwise Example use unicode normalization UnicodeNormalization fn main let my char char Ê let is uppercase my char is uppercase println Is uppercase my char is uppercase Output Is Êuppercase trueIn this example we first import the Unicode Normalization crate using the use statement We then define a char variable named my char with the value Ê We call the is uppercase method on the my char variable which returns true because Ê is an uppercase Unicode character Using the Regex crateThe Regex crate provides a set of functions for working with regular expressions including checking if a char is uppercase We can define a regular expression that matches uppercase characters and use it to check if a char is uppercase Example use regex Regex fn main let my char char G let uppercase regex Regex new r p Lu unwrap let is uppercase uppercase regex is match amp my char to string println Is uppercase my char is uppercase Output Is G uppercase trueIn this example we first import the Regex crate using the use statement We define a char variable named my char with the value G We then define a regular expression that matches uppercase Unicode characters using the p Lu pattern which matches any uppercase letter in any language We use the Regex new method to create a new regular expression object passing in the regular expression pattern as a string Finally we call the is match method on the regular expression object passing in the my char variable converted to a string using the to string method The is match method returns true because G is an uppercase character To learn how to check if character is vowel check this article Advantages and Disadvantages of each approachUsing the built in methods to check if a char is uppercase in Rust is the simplest and most efficient approach The is ascii uppercase method is the fastest option but it only works with ASCII characters The is uppercase method works with all Unicode characters but it is slower than the is ascii uppercase method However these methods are limited in their capabilities and they only work with individual chars Using external crates like the Unicode Normalization crate and the Regex crate provides more advanced functionality for working with Unicode characters including checking if a char is uppercase These crates can handle more complex use cases such as checking if an entire string is uppercase or working with non Latin characters However using external crates can add extra dependencies to your project and can make your code more complex ConclusionChecking if a char is uppercase in Rust can be done using various approaches including the built in methods and external crates The built in methods provide a simple and efficient solution for working with individual chars but they are limited in their capabilities Using external crates like the Unicode Normalization crate and the Regex crate provides more advanced functionality for working with Unicode characters but it can add extra dependencies to your project and make your code more complex |
2023-03-10 06:04:38 |
海外TECH |
CodeProject Latest Articles |
Windows / Android (C# / Java) compatible data encryption with compression |
https://www.codeproject.com/Tips/5356513/Windows-Android-Csharp-Java-compatible-data-encryp
|
android |
2023-03-10 06:29:00 |
医療系 |
医療介護 CBnews |
全国のインフルエンザ患者報告数が3週連続で減少-厚労省が第9週の発生状況を公表 |
https://www.cbnews.jp/news/entry/20230310145030
|
厚生労働省 |
2023-03-10 15:20:00 |
金融 |
JPX マーケットニュース |
[東証]新規上場日の呼値の単位:上場インデックスファンドS&P500先物レバレッジ2倍(コード2239) |
https://www.jpx.co.jp/news/1030/20230310-01.html
|
新規上場 |
2023-03-10 16:00:00 |
金融 |
JPX マーケットニュース |
[東証]新規上場の承認(プライム市場):(株)キタムラ・ホールディングス |
https://www.jpx.co.jp/listing/stocks/new/index.html
|
新規上場 |
2023-03-10 15:30:00 |
金融 |
JPX マーケットニュース |
[OSE]特別清算数値(2023年3月限):日経225、TOPIX等 |
https://www.jpx.co.jp/markets/derivatives/special-quotation/index.html
|
topix |
2023-03-10 15:15:00 |
金融 |
日本銀行:RSS |
(金研ニュースレター)金研設立40周年記念対談「中央銀行におけるリサーチ」第2回 |
http://www.boj.or.jp/about/release_2023/rel230310a.htm
|
中央銀行 |
2023-03-10 16:00:00 |
ニュース |
BBC News - Home |
Small boats: Rishi Sunak to push Emmanuel Macron to stop migrant crossings |
https://www.bbc.co.uk/news/uk-politics-64909510?at_medium=RSS&at_campaign=KARANGA
|
summit |
2023-03-10 06:45:12 |
ニュース |
BBC News - Home |
Xi Jinping begins historic third term as China's president |
https://www.bbc.co.uk/news/world-asia-china-64911512?at_medium=RSS&at_campaign=KARANGA
|
dominant |
2023-03-10 06:35:07 |
ニュース |
BBC News - Home |
Met Police given £3m to overhaul treatment of crime victims |
https://www.bbc.co.uk/news/uk-england-london-64909640?at_medium=RSS&at_campaign=KARANGA
|
service |
2023-03-10 06:02:20 |
ニュース |
BBC News - Home |
Indian Wells: Andy Murray beats Tomas Etcheverry to reach second round |
https://www.bbc.co.uk/sport/tennis/64912126?at_medium=RSS&at_campaign=KARANGA
|
indian |
2023-03-10 06:43:58 |
ニュース |
BBC News - Home |
Train Like a Pro: Passing, box kicks and contact with Scotland's Ali Price & Blair Kinghorn |
https://www.bbc.co.uk/sport/av/rugby-union/64895189?at_medium=RSS&at_campaign=KARANGA
|
Train Like a Pro Passing box kicks and contact with Scotland x s Ali Price amp Blair KinghornBBC Sport s Liam Loftus takes on a special Six Nations training session with Scotland scrum half Ali Price and back Blair Kinghorn |
2023-03-10 06:14:11 |
マーケティング |
MarkeZine |
凸版印刷、持株会社体制の移行に向け商号を「TOPPANホールディングス」に決定 事業領域の変革を推進 |
http://markezine.jp/article/detail/41641
|
toppan |
2023-03-10 15:15:00 |
IT |
週刊アスキー |
『バイオハザード RE:4』待望の体験版が配信開始!配信記念キャンペーンも |
https://weekly.ascii.jp/elem/000/004/128/4128170/
|
playstation |
2023-03-10 15:55:00 |
IT |
週刊アスキー |
マイクロソフト「新しいBing」、1日のチャット回数制限を大幅緩和 |
https://weekly.ascii.jp/elem/000/004/128/4128121/
|
利用制限 |
2023-03-10 15:50:00 |
IT |
週刊アスキー |
オホーツク海産の旬の毛蟹を味わう春の会席 個室会席北大路「流氷明け毛蟹と黒毛和牛の会席」4月28日まで販売中 |
https://weekly.ascii.jp/elem/000/004/128/4128137/
|
日本料理店 |
2023-03-10 15:30:00 |
IT |
週刊アスキー |
セールスフォース、CRMのための生成AIテクノロジー「Einstein GPT」発表 |
https://weekly.ascii.jp/elem/000/004/128/4128098/
|
einstein |
2023-03-10 15:10:00 |
マーケティング |
AdverTimes |
「人間性」から購買体験を提案 パナソニックのデザイン組織が新プロジェクト |
https://www.advertimes.com/20230310/article413641/
|
futurelifefactory |
2023-03-10 06:57:23 |
マーケティング |
AdverTimes |
口腔の健康増進に取り組む企業を顕彰 日本歯科医師会 |
https://www.advertimes.com/20230310/article413635/
|
取り組み |
2023-03-10 06:32:13 |
マーケティング |
AdverTimes |
伊藤豊雄・小池一子・廣内武氏ら日本のクリエイティブを牽引してきた先達が登壇するトークイベント |
https://www.advertimes.com/20230310/article413611/
|
tokyocreativesalon |
2023-03-10 06:31:50 |
コメント
コメントを投稿