TECH |
Techable(テッカブル) |
あの大人気ゲームがスマホアプリに。「釣りスピリッツ モバイル」 |
https://techable.jp/archives/194059
|
appsto |
2023-01-28 06:11:38 |
TECH |
Techable(テッカブル) |
Apple標準「探す」対応!目立たない自転車盗難防止デバイスがMakuakeで応援購入可能 |
https://techable.jp/archives/194044
|
apple |
2023-01-28 06:11:38 |
TECH |
Techable(テッカブル) |
リスキリングのパイオニアGeneral Assembly が日本で初めて国際カンファレンスを開催 |
https://techable.jp/archives/194037
|
generalassembly |
2023-01-28 06:11:38 |
TECH |
Techable(テッカブル) |
大人気ボードゲーム「コトバーテル」オンライン版リリース。味方のコトバを推理せよ! |
https://techable.jp/archives/194071
|
株式会社 |
2023-01-28 06:11:37 |
TECH |
Techable(テッカブル) |
千葉市動物公園!入園券販売やベビーカー貸出しをオンラインで提供。アソビュー導入で |
https://techable.jp/archives/194068
|
千葉市動物公園 |
2023-01-28 06:11:37 |
TECH |
Techable(テッカブル) |
三井住友カード、20代~40代の働く女性にポイントに関する意識調査。ポイントの使い道でマイル交換は意外に少数派? |
https://techable.jp/archives/194130
|
likeu |
2023-01-28 06:11:36 |
TECH |
Techable(テッカブル) |
ピンまでの距離をもう間違えない!高精度ゴルフ距離計「ファインキャディ」が販売中 |
https://techable.jp/archives/194101
|
yahoo |
2023-01-28 06:11:36 |
TECH |
Techable(テッカブル) |
バッテリーが長持ちするAndroid 12タブレットがAmazonで1万円台から。 |
https://techable.jp/archives/194090
|
andro |
2023-01-28 06:11:36 |
TECH |
Techable(テッカブル) |
オンライン授業を支援!生徒のPC画面を一覧表示できる教員向けクラウドサービスがリリース |
https://techable.jp/archives/194182
|
alphavclasscloud |
2023-01-28 06:11:35 |
TECH |
Techable(テッカブル) |
30分の口頭試験で話す力を診断する「kaeka score」登場。言語力・構成力も診断 |
https://techable.jp/archives/194155
|
kaekascore |
2023-01-28 06:11:35 |
TECH |
Techable(テッカブル) |
キティちゃんやポムポムプリンが輝く!サンリオのキャラクターが光るマルチ充電ケーブル新登場 |
https://techable.jp/archives/194146
|
株式会社 |
2023-01-28 06:11:35 |
TECH |
Techable(テッカブル) |
ASUS、ゲーミングブランドよりゲームにぴったりな36000dpiマウスと低遅延インイヤーイヤホン発売へ |
https://techable.jp/archives/194135
|
rogcetratruewir |
2023-01-28 06:11:35 |
TECH |
Techable(テッカブル) |
カワサキのバイクについて全国どこでもオンラインで相談できるように! |
https://techable.jp/archives/194191
|
店舗販売 |
2023-01-28 06:11:34 |
TECH |
Techable(テッカブル) |
AirPodsを充電しながら使用!ネックストラップ型で紛失も防げるAirPods充電器発売 |
https://techable.jp/archives/194190
|
airpods |
2023-01-28 06:11:34 |
TECH |
Techable(テッカブル) |
『ペルソナ5 ザ・ロイヤル』推奨PC。第13世代インテル搭載の高性能ゲーミングPCが発売 |
https://techable.jp/archives/194186
|
gajbzbp |
2023-01-28 06:11:34 |
TECH |
Techable(テッカブル) |
挟むだけで簡単取付、全機種対応スマホショルダーストラップ!首掛け、腰掛け自由自在 |
https://techable.jp/archives/194174
|
bellemond |
2023-01-28 06:11:34 |
TECH |
Techable(テッカブル) |
クリエイティブな作業を効率的に!ショートカットを自由に割り当てる左手デバイスが登場 |
https://techable.jp/archives/194214
|
creatorpad |
2023-01-28 06:11:33 |
TECH |
Techable(テッカブル) |
折りたたみスマホのGalaxy Z Flip 4 専用ケースがiFaceから。完全透明でアレンジ自由 |
https://techable.jp/archives/194206
|
galaxyzflip |
2023-01-28 06:11:33 |
TECH |
Techable(テッカブル) |
ラベンダーカラーで大人っぽく!iPhone14の新色パープルと相性抜群のハードケースが登場 |
https://techable.jp/archives/194205
|
iphone |
2023-01-28 06:11:33 |
TECH |
Techable(テッカブル) |
InstagramのDM自動化が実現、「sikiapi」β版の提供開始。クーポン配信もできる |
https://techable.jp/archives/193827
|
instagram |
2023-01-28 06:11:05 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
RNNの基本 |
https://qiita.com/DaigakuinnseiNo/items/d09bf84988c6cce73d84
|
lstmlstm |
2023-01-28 15:57:22 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
M1 MACでのDocker環境構築時に『no matching manifest for linux/arm64/v8 in the manifest list entries』 |
https://qiita.com/yusuke1209kitamura/items/80af260be8bde9d5a1c9
|
armvinthemanifestlistentr |
2023-01-28 15:21:49 |
海外TECH |
DEV Community |
Web 3.0: The Future of the Internet |
https://dev.to/darkxenium/web-30-the-future-of-the-internet-2npb
|
Web The Future of the InternetWeb The Future of the InternetThe World Wide Web has come a long way since its inception in From the static pages of the early days to the dynamic and interactive experiences of today the web has undergone several evolutions And now we are on the cusp of the next evolution Web So what exactly is Web It is often referred to as the Semantic Web or Intelligent Web and is characterized by the use of semantic technologies and the integration of artificial intelligence and machine learning The main idea behind Web is to make the web more intelligent and easier to use by creating a more structured and meaningful environment This is achieved by using technologies such as artificial intelligence natural language processing and linked data to create a more meaningful and contextually aware web experience One of the key features of Web is the ability for machines to understand the meaning of the data on the web rather than just the raw data itself This is made possible by the use of semantic technologies which allow machines to understand the meaning of the data and to make connections between different pieces of information This means that machines will be able to understand the context of the information and to provide more accurate and relevant results Another important feature of Web is the ability for machines to learn from the data on the web and to improve their understanding of it over time This will enable machines to better understand the user s needs and to provide more personalized and relevant results Web also enables machines to communicate with one another and to share data and knowledge in a more meaningful way This will allow for the creation of a more interconnected and intelligent web where machines can work together to solve problems and to provide better services to users Web is also closely associated with the emergence of decentralized web technologies such as blockchain which have the potential to enable more secure transparent and trustworthy online interactions This can be especially important in areas such as finance where transparency and security are critical It s worth noting that Web is still in its early stages of development and is not yet fully realized Nevertheless many companies and organizations are already working on Web technologies and there are several projects and prototypes that demonstrate its potential So why is Web so buzzing Simply put it has the potential to revolutionize the way we use the internet By making the web more intelligent and easier to use it has the potential to make our lives easier and more efficient Additionally the emergence of decentralized technologies has the potential to make the internet a more secure and trustworthy place In conclusion Web is the next evolution of the World Wide Web characterized by the use of semantic technologies and the integration of artificial intelligence and machine learning It has the potential to revolutionize the way we use the internet making it more intelligent and easier to use and more secure and trustworthy The future is definitely looking bright for Web and we can t wait to see all the amazing things it has in store for us |
2023-01-28 06:53:42 |
海外TECH |
DEV Community |
Introducing the New Release of ReductStore Python SDK: v1.3.0: Labels Support and More |
https://dev.to/reductstore/introducing-the-new-release-of-reductstore-python-sdk-v130-labels-support-and-more-4c25
|
Introducing the New Release of ReductStore Python SDK v Labels Support and MoreWe are happy to announce the release of version of the ReductStore SDK for Python This release introduces several new features to help users better organize and filter their data One of the most notable new features is the ability to attach labels to data when writing and querying Labels are key value pairs that can be used to classify and categorize data For example you might use labels to store metadata about a record such as its md sum or class To start using labels you need the version of the ReductStore database higher than Here s an example of how to use labels when writing data from reduct import Clientclient Client api token reduct bucket await client create bucket my data exist ok True await bucket write entry b something labels label label label hey In this example we re attaching the labels label label label hey to the data When reading data you can access the labels that were attached to it Read the data back if no timestamp is specified the latest record is returnedasync with bucket read entry as record assert record labels label label label hey data await record read all assert data b something Another new feature in this release is the ability to query data based on labels The query method now accepts two new parameters include and exclude which allow you to filter the results of a query based on the labels attached to the data For example you can use the include parameter to query for records that have specific labels async for record in bucket query entry include label value label value Do something with the record passThis query returns all records with label equals value and label equals to value and ignores all other labels On the other hand you can use the exclude parameter to query for records that do not have specific labels async for record in bucket query entry exclude label value label value Do something with the record passThis query returns all records that not have label equals value and label equals to value Additionally You can also pass Content Type header for read and write operations this header will be added to all the requests that read and write data await bucket write entry b some json content type application json async with bucket read entry as record assert record content type application json With these new features you can more easily organize and filter your data making it easier to find the information you need We encourage you to upgrade to this latest version of the SDK and start taking advantage of these new capabilities pip install reduct We hope you enjoy the new features and improvements in this release and as always we welcome your feedback and suggestions for future updates Don t hesitate to reach out in Discord or by opening a discussion on GitHub Thanks for using ReductStore |
2023-01-28 06:24:03 |
海外TECH |
DEV Community |
[Nestia] 15,000x faster validators and tRPC (SDK) for NestJS |
https://dev.to/samchon/nestia-15000x-faster-validators-and-trpc-sdk-for-nestjs-248k
|
Nestia x faster validators and tRPC SDK for NestJS SummaryNestia is a set of helper libraries for NestJS supporting below features nestia core x times faster validation decorators nestia sdk evolved SDK and Swagger generatorsSDK Software Development Kit interaction library for client developersalmost same with tRPCnestia just CLI command line interface tool Superfast validatorDo you remember I d posted in here dev to that I ve developed a TypeScript library typia which has superfast validators and type safe JSON stringify functions by utilizing AOT Ahead of Time compliation skill I made x faster TypeScript validator libraryI made x faster JSON stringify functions even type safe Typia x faster validator and its histories nestia core utilizes such typia to enhance request body validation for NestJS As basic request body decorator utilizes class validator library for data validation nestia core is maximum x times faster Also it does not require extra dedication like defining schema ajv io ts zod or DTO class declaration with decorator function calls class validator Just fine with pure TypeScript type like interface Just by using TypedBody decorator validation speed would be dramatically increased Also it is possible to making JSON stringify function faster and type safe by using TypedRoute decorator When you compile nestia and typia will analyze your NestJS backend server code and generate optimzed code like below import Controller from nestjs common import TypedBody TypedRoute from nestia core import type IBbsArticle from bbs api structures IBbsArticle Controller bbs articles section export class BbsArticlesController Update article When updating this BBS system does not overwrite the content but accumulate it Therefore whenever an article being updated length of link IBbsArticle contents would be increased and accumulated param section Target section param id Target articles id param input Content to update returns Newly created content info TypedRoute Post x faster and safer JSON stringify public async store core TypedParam section string section string core TypedParam id uuid id string TypedBody input IBbsArticle IUpdate super fast validator Promise lt IBbsArticle IContent gt do not need DTO class definition just fine with interface use strict var decorate this amp amp this decorate function decorators target key desc var c arguments length r c lt target desc null desc Object getOwnPropertyDescriptor target key desc d if typeof Reflect object amp amp typeof Reflect decorate function r Reflect decorate decorators target key desc else for var i decorators length i gt i if d decorators i r c lt d r c gt d target key r d target key r return c gt amp amp r amp amp Object defineProperty target key r r var metadata this amp amp this metadata function k v if typeof Reflect object amp amp typeof Reflect metadata function return Reflect metadata k v var param this amp amp this param function paramIndex decorator return function target key decorator target key paramIndex var importDefault this amp amp this importDefault function mod return mod amp amp mod esModule mod default mod Object defineProperty exports esModule value true exports BbsArticlesController void const core importDefault require nestia core const common require nestjs common const BbsArticleProvider require providers bbs BbsArticleProvider This is a fake controller Remove it or make it to be real one let BbsArticlesController class BbsArticlesController Update article When updating this BBS system does not overwrite the content but accumulate it Therefore whenever an article being updated length of link IBbsArticle contents would be increased and accumulated param section Target section param id Target articles id param input Content to update returns Newly created content info update section id input return BbsArticleProvider BbsArticleProvider update section id input decorate core default TypedRoute Put id type is is input gt const is input gt const is uuid core default TypedRoute Put is uuid const io input gt string typeof input id amp amp true is uuid input id amp amp string typeof input created at amp amp string typeof input title amp amp string typeof input body amp amp md input format html input format txt input format amp amp Array isArray input files amp amp input files every elem gt object typeof elem amp amp null elem amp amp io elem const io input gt string typeof input name amp amp null input extension string typeof input extension amp amp string typeof input url return object typeof input amp amp null input amp amp io input const stringify input gt const string core default TypedRoute Put string const throws core default TypedRoute Put throws const is uuid core default TypedRoute Put is uuid const io input gt string typeof input id amp amp true is uuid input id amp amp string typeof input created at amp amp string typeof input title amp amp string typeof input body amp amp md input format html input format txt input format amp amp Array isArray input files amp amp input files every elem gt object typeof elem amp amp null elem amp amp io elem const io input gt string typeof input name amp amp null input extension string typeof input extension amp amp string typeof input url const so input gt id input id created at string input created at title string input title body string input body format gt if string typeof input format return string input format if string typeof input format return input format throws expected html md txt value input format files input files map elem gt so elem join const so input gt name string input name extension null input extension string input extension null url string input url return so input return is input stringify input null param core default TypedParam section string param core default TypedParam id uuid param core default TypedBody type assert assert input gt const guard core default TypedBody guard const join core default TypedBody join input path exceptionable gt const ao input path exceptionable gt string typeof input title guard exceptionable path path title expected string value input title amp amp string typeof input body guard exceptionable path path body expected string value input body amp amp md input format html input format txt input format guard exceptionable path path format expected html md txt value input format amp amp Array isArray input files guard exceptionable path path files expected Array lt Resolve lt IAttachmentFile gt gt value input files amp amp input files every elem index gt object typeof elem amp amp null elem guard exceptionable path path files index expected Resolve lt IAttachmentFile gt value elem amp amp ao elem path files index true amp amp exceptionable amp amp string typeof input password guard exceptionable path path password expected string value input password const ao input path exceptionable gt string typeof input name guard exceptionable path path name expected string value input name amp amp null input extension string typeof input extension guard exceptionable path path extension expected null string value input extension amp amp string typeof input url guard exceptionable path path url expected string value input url return object typeof input amp amp null input guard true path path expected Resolve lt IBbsArticle IUpdate gt value input amp amp ao input path true input input true return input metadata design type Function metadata design paramtypes String String Object metadata design returntype Promise BbsArticlesController prototype update null BbsArticlesController decorate common Controller bbs articles section BbsArticlesController exports BbsArticlesController BbsArticlesController sourceMappingURL BbsArticlesController js maptypia is maximum x times faster than class validatorMeasured on Intel i g Surface Pro TRPC in NestJS BASIC COMMANDnpx nestia lt sdk swagger gt lt source directories or patterns gt exclude lt exclude directory or pattern gt out lt output directory or file gt EXAMPLESnpx nestia sdk src controller ts out src api npx nestia swagger src controllers out dist swagger json ONLY WHEN nestia config ts FILE EXISTSnpx nestia sdknpx nestia swaggerWith nestia sdk you can build both swagger and SDK library At first I think everyone knows what swagger is Therefore I will skip the swagger documents generation just by showing a demonstration table ProjectSwagger Documentsnpx nestia startSwagger Editorfake iamport serverSwagger Editorfake toss payments serverSwagger EditorThe other one SDK Software Development Kit means an interaction library with NestJS backend server for client developers written in TypeScript It is similar with tRPC in NestJS side When you run npx nestia sdk command nestia sdk will analyze your NestJS backend server code and generates fetch functions for each API controller methods Below is an example code generated by nestia sdk about above BbsArticlesController update method packageDocumentation module api functional bbs articles nestia Generated by Nestia import Fetcher from nestia fetcher import type IConnection from nestia fetcher import type IBbsArticle from structures bbs IBbsArticle Update article When updating this BBS system does not overwrite the content but accumulate it Therefore whenever an article being updated length of link IBbsArticle contents would be increased and accumulated param connection connection Information of the remote HTTP s server with headers encryption password param section Target section param id Target articles id param input Content to update returns Newly created content info controller BbsArticlesController update path PUT bbs articles section id nestia Generated by Nestia export function update connection IConnection section string id string input IBbsArticle IUpdate Promise lt update Output gt return Fetcher fetch connection update ENCRYPTED update METHOD update path section id input export namespace update export type Input IBbsArticle IUpdate export type Output IBbsArticle IContent export const METHOD PUT as const export const PATH string bbs articles section id export const ENCRYPTED Fetcher IEncrypted request false response false export function path section string id string string return bbs articles encodeURIComponent section encodeURIComponent id ProjectControllerSDK Librarynpx nestia startBbsArticlesControllerFunctionsfake iamport serverFakeIamportCertificationsControllerFunctionsfake toss payments serverFakeTossPaymentsControllerFunctionsWhen client developer maybe TypeScript frontend developer utilizes the SDK library it would be looked like below gif image what you d seen at first Start Nestianpx nestia start lt directory gt Now let s start nestia project Run above command then a boilerplate project would be constructed and you can start the NestJS development with superfast validators and SDK generators directly |
2023-01-28 06:12:29 |
海外TECH |
DEV Community |
useEffect() 🪝 |
https://dev.to/mihir_chhatre/useeffect-19m2
|
useEffect 🪝The useEffect hook helps us perform side effects within our functional components Let s start by understanding what are side effects Side effects are tasks that happen with the outside world they refer to any actions that happen outside the normal component evaluation and render cycle These could include sending receiving HTTP requests responses and setting amp managing timers It is important to note that these side effects are not predictable since we are performing actions outside our React components For example the HTTP response could fail The syntax for useEffect is shown below useEffect gt dependencies useEffect takes two arguments The first argument is a function that should be executed after every component evaluation if the specified dependencies changed The side effect code is placed in this function The second argument is a dependency array The function in the first argument only runs if one of the dependencies in this array changed The dependency list is an optional argument If no dependency array is passed the function specified in useEffect runs during every render cycle If an empty array is used as a dependency the function runs only on the first render Let s get building ️ Consider the code given below to create a single component application import React useState useEffect from react function App const resourceType setResource useState posts useEffect gt fetch resourceType then res gt res json then json gt console log json resourceType return lt React Fragment gt lt div gt lt button onClick gt setResource posts gt Posts lt button gt lt button onClick gt setResource carts gt Carts lt button gt lt button onClick gt setResource users gt Users lt button gt lt div gt lt h gt resourceType lt h gt lt React Fragment gt export default App The application will have buttons to select a resource type Using the resource type selected we hit dummyJSON s posts cards amp users endpoints Since we want to dynamically change the endpoint the fetch URL is appended with resourceType in the code The dependency list for running the side effect contains resourceType Therefore any change to the resourceType will result in querying the appropriate endpoint and logging the result We are essentially running a side effect each time the resourceType changes On initial load Posts is selected since it is passed as the initial state to useState After clicking Carts button After clicking Users button Performing cleanup activities with useEffect We can return a function within useEffect This function is called before every new side effect execution and whenever the component is removed the cleanup function does not run before the first side effect execution Below is an example demonstrating the cleanup functionality We are using the previous code with a few tweaks no longer sending requests and adding a return function import React useState useEffect from react function App const resourceType setResource useState posts useEffect gt console log Resouce Changed return gt console log Return from resource change resourceType return lt React Fragment gt lt div gt lt button onClick gt setResource posts gt Posts lt button gt lt button onClick gt setResource carts gt Carts lt button gt lt button onClick gt setResource users gt Users lt button gt lt div gt lt h gt resourceType lt h gt lt React Fragment gt export default App As you can observe from the screenshot below on initial render Resource changed is logged When we change our resource clicking on the Carts or Users button we observe Return from resource change is logged first and then Resource Changed is logged gt Hence the return code is run first and then the setup code This happens because the return code is essentially a cleanup code useEffect tends to puzzle many developers so don t beat yourself if some concepts take longer to grasp |
2023-01-28 06:03:05 |
海外ニュース |
Japan Times latest articles |
Additional ringleader suspect emerges in spate of robberies in Japan |
https://www.japantimes.co.jp/news/2023/01/28/national/crime-legal/luffy-japan-robberies-suspects/
|
Additional ringleader suspect emerges in spate of robberies in JapanPolice suspect that a man in Japan also employed the Luffy online username to organize the robberies in addition to the alleged ringleader currently detained |
2023-01-28 15:22:29 |
ニュース |
BBC News - Home |
Artur Beterbiev v Anthony Yarde: World champion travels to London with ferocious reputation |
https://www.bbc.co.uk/sport/boxing/64417664?at_medium=RSS&at_campaign=KARANGA
|
Artur Beterbiev v Anthony Yarde World champion travels to London with ferocious reputationArtur Beterbiev defends his light heavyweight world titles against Anthony Yarde with a knockout ratio but who is the Russia born boxer |
2023-01-28 06:41:19 |
ニュース |
Newsweek |
「服と関係ない」「不快」 裸のモデルの胸に手術跡...バーバリー広告に保守派が怒り心頭の訳 |
https://www.newsweekjapan.jp/stories/world/2023/01/post-100724.php
|
ユーザーの「GingerPolitical」は、この広告は「不快どころではない」とし、「子どもの人生を破壊することは罰せられるべきだ」と強く非難した。 |
2023-01-28 15:40:00 |
コメント
コメントを投稿