投稿時間:2022-12-29 00:41:38 RSSフィード2022-12-29 00:00 分まとめ(44件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita 相関はご近所さん?因果はアクション? https://qiita.com/nihon_kaizou/items/4c8afdf8739218ed9562 因果関係 2022-12-28 23:56:29
Docker dockerタグが付けられた新着投稿 - Qiita 【DevContainers】fatal: detected dubious ownership in repositoryの対処法 https://qiita.com/P-man_Brown/items/5628ef68f51d1acf38e0 devcontainers 2022-12-28 23:20:04
Azure Azureタグが付けられた新着投稿 - Qiita Azure Functions Linux 従量課金プランでの疑似リモートシェル https://qiita.com/georgeOsdDev@github/items/092b6510fc96d53df879 azure 2022-12-28 23:18:05
Azure Azureタグが付けられた新着投稿 - Qiita Microsoft Sentinel分析ルールの紐解き(Account Created and Deleted in Short Timeframe) https://qiita.com/sanyamarseille/items/faa10939e0a990c91bae framemicrosoftsentinel 2022-12-28 23:05:50
Git Gitタグが付けられた新着投稿 - Qiita 【DevContainers】fatal: detected dubious ownership in repositoryの対処法 https://qiita.com/P-man_Brown/items/5628ef68f51d1acf38e0 devcontainers 2022-12-28 23:20:04
技術ブログ Developers.IO 推しのサービスはガンガンフィードバック!Application Composer で楽になる未来のために #reinvent https://dev.classmethod.jp/articles/just-try-application-composer-feedback/ reinven 2022-12-28 14:30:41
技術ブログ Developers.IO [レポート][CON318] Kubernetes のセキュリティ: Kubernetesの攻撃ベクトルに対処する方法 #reinvent https://dev.classmethod.jp/articles/report-con318-reinvent2022/ howtoaddresskubernetes 2022-12-28 14:00:41
海外TECH Ars Technica Twitter rival Mastodon rejects funding to preserve nonprofit status https://arstechnica.com/?p=1906861 twitter 2022-12-28 14:11:35
海外TECH Ars Technica NatureMetrics launches biodiversity platform based on environmental DNA https://arstechnica.com/?p=1905363 businesses 2022-12-28 14:06:39
海外TECH MakeUseOf How to Create a Project Request Board in Google Sheets https://www.makeuseof.com/create-project-request-board-google-sheets/ How to Create a Project Request Board in Google SheetsWant to improve your team s project management and keep track of requests in real time Learn how to create a project request board in Google Sheets 2022-12-28 14:30:15
海外TECH MakeUseOf iQOO 11 Review: The Sleeper Gaming Phone https://www.makeuseof.com/iqoo-11-review/ feeling 2022-12-28 14:05:15
海外TECH MakeUseOf What Is an ATM Jackpotting Attack and How Does It Work? https://www.makeuseof.com/atm-jackpotting-attack/ target 2022-12-28 14:01:14
海外TECH DEV Community Introduction to Jetpack Compose for NativeScript https://dev.to/valorsoftware/introduction-to-jetpack-compose-for-nativescript-54d7 Introduction to Jetpack Compose for NativeScriptBuilding user interfaces declaratively is something the Web community has widely adopted and nowadays large applications are built following these principles For example Google launched Jetpack Compose and Apple announced SwiftUI at WWDC receiving an immensely positive response from developers Here at Valor Software we are always excited about new advancements in development technologies and we are fans of NativeScript We collaborated with nStudio to provide an effective and enjoyable Jetpack Compose integration for Android apps driven by NativeScript Earlier this month we announced SwiftUI for NativeScript which follow the same principles and API design as Jetpack Compose for NativeScript In this article we ll demonstrate how to use Jetpack Compose within NativeScript to explore fun new possibilities in building amazing UIs together Create a NativeScript appWe can create an app using a standard TypeScript template ns create jetpackcompose tscd jetpackcomposeThis will setup what is often called a vanilla flavored NativeScript app You can use whichever flavor you re most comfortable with though Setting the plugin up for Angular and most other flavors is usually a case of registering the view which we ll demonstrate in a section below Install the Jetpack Compose plugin npm install nativescript jetpack composeNote Jetpack Compose requires you to use at least API Lollipop as your minimum SDK version You can do this by adding minSdkVersion to your app gradle If you plan to build your libraries directly from Android Studio you don t need anything else just drop your built aar in App Resources Android libs and skip to the next section But if you re planning on writing Kotlin code directly in kt files in App Resources Android src main java then we need some extra steps First add your compose dependencies in app gradle dependencies def compose version implementation androidx compose ui ui compose version Tooling support Previews etc implementation androidx compose ui ui tooling compose version Add any other dependencies your Jetpack Compose UI needs like material design implementation androidx compose material material compose version Then modify the android section so you enable compose android other settings like targetSdk etc buildFeatures compose true compileOptions sourceCompatibility JavaVersion VERSION targetCompatibility JavaVersion VERSION kotlinOptions jvmTarget composeOptions kotlinCompilerExtensionVersion And finally enable Kotlin by creating the file App Resources Android gradle propertiesuseKotlin truekotlinVersion you can choose your kotlin version here Jetpack Compose usageA Create your Jetpack Compose views and wrapperCreate App Resources Android src main java BasicView kt package com exampleimport android content Contextimport androidx compose material MaterialThemeimport androidx compose material Textimport androidx compose runtime Composableimport androidx compose runtime getValueimport androidx compose runtime mutableStateOfimport androidx compose runtime setValueimport androidx compose ui platform ComposeViewimport androidx lifecycle ViewModelimport androidx lifecycle viewmodel compose viewModelclass BasicView fun generateComposeView view ComposeView ComposeView return view apply setContent MaterialTheme Text Hello from Jetpack Compose fun updateData value Map lt Any Any gt var onEvent String gt Unit null To use the default plugin handling of Compose views it s important that your implementation follows the following interface class Example fun generateComposeView view ComposeView ComposeView render your compose views into the ComposeView fun updateData value Map lt Any Any gt this function receives data from NativeScript value is a js object converted to a map this is the event you will send back to Jetpack Compose when you need to pass data just call onEvent invoke v var onEvent Any gt Unit null B Register your Jetpack Compose via the composeIdThis can be done in the NativeScript app s bootstrap file often app ts or main ts import registerJetpackCompose ComposeDataDriver from nativescript jetpack compose A You can generate types for your own Compose Provider with ns typings android aar path to name aar B Otherwise you can ignore by declaring the package resolution path you know you provideddeclare var com registerJetpackCompose sampleView view gt new ComposeDataDriver new com example BasicView view Additionally if you want to use Angular you can register the compose view itself import registerElement from nativescript angular import JetpackCompose from nativescript jetpack compose registerElement JetpackCompose gt JetpackCompose C Insert into any NativeScript layoutapp main page xml lt Page xmlns xmlns jc nativescript jetpack compose class page gt lt StackLayout gt lt jc JetpackCompose composeId sampleView height gt lt StackLayout gt lt Page gt You can now run the app with ns debug android Use Android Studio to develop and preview Jetpack ComposeAfter running the app once you can open the platforms android folder in Android Studio where you ll be able to find the BasicView kt file From there you can start modifying it and previewing your changes by adding the Preview decorator on the Composable you want to preview Important Saving this file will not change the BasicView kt that lives inside your App Resources so be VERY careful to copy the file contents back once you re done editing it This will become a DX improvement in the future Alternatively you can create a new Android library and develop all your Jetpack Compose views there Sending and receiving data to from NativeScriptFirst let s add some bindings to our BasicView so it now receives data in updateData and displays that as well as output an event once the data is updated package com exampleimport android content Contextimport androidx compose material MaterialThemeimport androidx compose material Textimport androidx compose runtime Composableimport androidx compose runtime getValueimport androidx compose runtime mutableStateOfimport androidx compose runtime setValueimport androidx compose ui platform ComposeViewimport androidx lifecycle ViewModelimport androidx lifecycle viewmodel compose viewModelclass BasicView data class ExampleUiState val text String class ExampleViewModel ViewModel var uiState by mutableStateOf ExampleUiState var mViewModel ExampleViewModel fun generateComposeView view ComposeView ComposeView return view apply setContent MaterialTheme val uiState mViewModel uiState In Compose world Text uiState text fun updateData value Map lt Any Any gt val v value data as String onEvent invoke v mViewModel uiState ExampleUiState v var onEvent String gt Unit null Use your Jetpack Compose in a NativeScript layoutapp main page xml lt Page xmlns navigatingTo navigatingTo class page xmlns jc nativescript jetpack compose gt lt StackLayout gt lt Label text The following view is Jetpack Compose inside NativeScript textWrap true gt lt Label gt lt jc JetpackCompose composeEvent onEvent data text composeId sampleView gt lt sw JetpackCompose gt lt Label text This is NativeScript again gt lt Label gt lt TextView textChange onTextChange text text textWrap true gt lt TextView gt lt StackLayout gt lt Page gt app main page ts import Observable from nativescript core import registerJetpackCompose ComposeDataDriver from nativescript jetpack compose import EventData Page PropertyChangeData from nativescript core A You can generate types for your own Compose Provider with ns typings android aar path to name aar B Otherwise you can ignore by declaring the package resolution path you know you provideddeclare var com registerJetpackCompose sampleView view gt new ComposeDataDriver new com example BasicView view export function navigatingTo args EventData const page lt Page gt args object page bindingContext new DemoModel export class DemoModel extends Observable text onEvent evt JetpackComposeEventData lt string gt console log onEvent evt data onTextChange evt PropertyChangeData console log textChange evt value this set text evt value Now every time you change the text on the NativeScript TextView it ll update the text on the Jetpack Compose view ColorPicker exampleHere s another example where I use a ColorPicker to change a NativeScript view s background color app gradleimplementation com github skydoves colorpicker compose package com exampleimport android content Contextimport androidx compose foundation layout fillMaxSizeimport androidx compose foundation layout fillMaxWidthimport androidx compose foundation layout heightimport androidx compose foundation layout paddingimport androidx compose material MaterialThemeimport androidx compose material Textimport androidx compose runtime Composableimport androidx compose runtime getValueimport androidx compose runtime mutableStateOfimport androidx compose runtime setValueimport androidx compose ui Modifierimport androidx compose ui graphics Colorimport androidx compose ui graphics ImageBitmapimport androidx compose ui platform ComposeViewimport androidx compose ui res imageResourceimport androidx compose ui unit dpimport androidx lifecycle ViewModelimport androidx lifecycle viewmodel compose viewModelimport com github skydoves colorpicker compose ColorEnvelopeimport com github skydoves colorpicker compose HsvColorPickerimport com github skydoves colorpicker compose ImageColorPickerimport com github skydoves colorpicker compose rememberColorPickerControllerclass ColorPickerCompose fun generateComposeView view ComposeView ComposeView return view apply setContent val controller rememberColorPickerController HsvColorPicker modifier Modifier fillMaxWidth height dp padding dp controller controller onColorChanged colorEnvelope ColorEnvelope gt onEvent invoke colorEnvelope hexCode fun updateData value Map lt Any Any gt var onEvent String gt Unit null lt StackLayout backgroundColor backgroundColor gt lt Label text The following view is Jetpack Compose inside NativeScript textWrap true gt lt Label gt lt StackLayout backgroundColor lightblue gt lt jc JetpackCompose composeEvent onEvent data text composeId jetpackCompose gt lt sw JetpackCompose gt lt StackLayout gt lt Label text This is NativeScript again gt lt Label gt lt TextView text backgroundColor textWrap true gt lt TextView gt lt StackLayout gt Final considerationsWorking with Jetpack Compose in NativeScript is very transparent and easy We look forward in seeing what the community will build with yet another powerful tool in NativeScript s belt About Valor Software Official NativeScript professional support partner Valor is actively contributing to the NativeScript ecosystem providing enterprise support consulting and team augmentation Valor Software additionally helps with all aspects of the SDLC web backend and mobile Book a call today or email us at sales valor software com if you need help 2022-12-28 14:21:42
海外TECH DEV Community Code Smell 189 - Not Sanitized Input https://dev.to/mcsee/code-smell-189-not-sanitized-input-853 Code Smell Not Sanitized InputBad actors are there We need to be very careful with their input TL DR Sanitize everything that comes from outside your control ProblemsSecurity SolutionsUse sanitization and input filtering techniques ContextWhenever you get input from an external resource a security principle requests you to validate and check for potentially harmful inputs SQL Injection is a notable example of a threat We can also add assertions and invariants to our inputs Even better we can work with Domain Restricted Objects Sample Code Wronguser input abc This content might not be very safe if we expect just alphanumeric characters Rightimport redef sanitize string Remove any characters that are not letters or numbers sanitized string re sub r a zA Z string return sanitized stringuser input abc print sanitize user input Output abc Detection X Semi Automatic We can statically check all the inputs and also we can also use penetration testing tools TagsSecurity ConclusionWe need to be very cautious with the inputs beyond our control Relations Code Smell String Validations Maxi Contieri・Mar ・ min read Code Smell Subsets Violation Maxi Contieri・Nov ・ min read webdev javascript beginners programming Code Smell Missed Preconditions Maxi Contieri・Nov ・ min read codenewbie oop tutorial More InfoWikipedia DisclaimerCode Smells are just my opinion CreditsPhoto by Jess Zoerb on UnsplashCompanies should make their own enterprise systems as often as network security companies should manufacture their own aspirin Phil Simon Software Engineering Great Quotes Maxi Contieri・Dec ・ min read codenewbie programming quotes software This article is part of the CodeSmell Series How to Find the Stinky parts of your Code Maxi Contieri・May ・ min read codenewbie tutorial codequality beginners 2022-12-28 14:11:02
Apple AppleInsider - Frontpage News Fuel 3 in 1 Foldable Power Station review: Large but effective https://appleinsider.com/articles/22/12/28/fuel-3-in-1-foldable-power-station-review-large-but-effective?utm_medium=rss Fuel in Foldable Power Station review Large but effectiveThe Fuel in Foldable Power Station from Case Mate is for people who want an all in one charging solution wherever they go ーno matter the trouble or cost Fuel in Foldable Power StationThis charging option is like one of those huge person camping tents The space is luxurious while you re out in the wilderness but setting it up taking it down and packing it makes you question whether it s worth it Read more 2022-12-28 14:36:38
Apple AppleInsider - Frontpage News Former patent attorney sues Apple over harassment & discrimination https://appleinsider.com/articles/22/12/27/former-patent-attorney-sues-apple-over-harassment-discrimination?utm_medium=rss Former patent attorney sues Apple over harassment amp discriminationA former patent attorney for Apple has sued the company over discrimination and harassment after she complained about a male colleague Apple under fire for discriminationJayna Richardson Whitt sued the company in California claiming Apple retaliated against her after it learned of her domestic abuse victim status by turning her down for higher level positions She seeks unspecified compensation for economic losses and emotional distress Read more 2022-12-28 14:40:15
海外TECH Engadget Movano takes on Oura with the Evie smart ring designed 'for women' https://www.engadget.com/movanos-evie-is-a-medical-grade-smart-ring-143638956.html?src=rss Movano takes on Oura with the Evie smart ring designed x for women x Health company Movano has teased its first smart ring the Evie designed for health fitness and cycle tracking It looks like a rival to Oura s latest smart ring and other health tracking wearables though the company says it s quot designed uniquely for women quot Movano plans to provide a closer look next week at CES The ring made its debut at CES with no name and a similar design but Movano has since changed course on price and other factors It will sell the ring sometime in at a one time price below there s no exact date or price yet rather than using a subscription model as it said last year nbsp It offers many of the health metrics seen on Oura s ring and wearables from Apple and others It can measure heart rate blood oxygen skin temperature variability steps calories sleep period and ovulation tracking and more Wearers will can get advice from health experts inside the app and it will meet medical device manufacturing standards the company promised quot As a medical device Evie will go beyond the status quo of other wearables on the market quot said Movano CEO John Mastrototaro quot We are bringing together medical grade biometric data and insights in a comfortable and contemporary wearable quot With the ability to measure steps calories burned and specific activities Evie can also be used as a fitness tracker However it s primary purpose is to give a picture of overall health quot turning biometric data into actionable insights quot Movano wrote in the press release The company also promises security and privacy when transferring data to the cloud or health providers It s currently seeking all important FDA clearance which will dictate the release date If that takes too long though it may come to market as a wellness device at first The Evie smart ring will only be released in the US to start with but may come to other markets later ーwe should learn more about it next week at CES nbsp 2022-12-28 14:36:38
海外科学 NYT > Science 7 Women on Egg Freezing: Hope, Regret, Uncertainty https://www.nytimes.com/2022/12/23/well/family/egg-freezing-fertility.html experimental 2022-12-28 14:03:38
海外科学 BBC News - Science & Environment UK weather extremes to become new normal, says National Trust https://www.bbc.co.uk/news/uk-64107967?at_medium=RSS&at_campaign=KARANGA illustration 2022-12-28 14:20:29
金融 RSS FILE - 日本証券業協会 株主コミュニティの統計情報・取扱状況 https://www.jsda.or.jp/shiryoshitsu/toukei/kabucommunity/index.html 株主コミュニティ 2022-12-28 15:30:00
金融 金融庁ホームページ 審判期日の予定を更新しました。 https://www.fsa.go.jp/policy/kachoukin/06.html 期日 2022-12-28 16:00:00
金融 金融庁ホームページ 証券監督者国際機構(IOSCO)によるMMoU(多国間情報交換枠組み)20周年に関するプレスリリースについて掲載しました。 https://www.fsa.go.jp/inter/ios/20221228/20221228.html iosco 2022-12-28 16:00:00
ニュース BBC News - Home UK weather extremes to become new normal, says National Trust https://www.bbc.co.uk/news/uk-64107967?at_medium=RSS&at_campaign=KARANGA illustration 2022-12-28 14:20:29
サブカルネタ ラーブロ 立ち食いそば 加賀(初台)かき揚げそば http://ra-blog.net/modules/rssc/single_feed.php?fid=206147 立ち食い 2022-12-28 14:13:00
北海道 北海道新聞 <師走点描2022>汚れ清め良い年を 北見神社ですす払い https://www.hokkaido-np.co.jp/article/781856/ 北見神社 2022-12-28 23:40:10
北海道 北海道新聞 レバンガ連敗脱出 仙台に69―63 https://www.hokkaido-np.co.jp/article/781917/ 連敗 2022-12-28 23:38:00
北海道 北海道新聞 紋別市長「信頼回復を」 オホーツク管内各地で仕事納め 首長ら年末あいさつ https://www.hokkaido-np.co.jp/article/781854/ 仕事納め 2022-12-28 23:38:17
北海道 北海道新聞 <湧別>岡沢凱斗さん、もうひとつの花園へ 湧別高初 ラグビーU18合同チーム東軍選出 https://www.hokkaido-np.co.jp/article/781853/ 高校ラグビー 2022-12-28 23:36:56
北海道 北海道新聞 鈴木宗男氏「ウクライナ停戦に向け日本は尽力を」 釧路支社訪れ国政報告 https://www.hokkaido-np.co.jp/article/781849/ 北海道新聞 2022-12-28 23:33:11
北海道 北海道新聞 JR釧網線、12月29日午後に再開 川湯温泉―網走間 https://www.hokkaido-np.co.jp/article/781848/ 川湯温泉 2022-12-28 23:32:17
北海道 北海道新聞 正恩氏、「核」増強指示か 北朝鮮国防の「新目標」提示 https://www.hokkaido-np.co.jp/article/781915/ 朝鮮中央通信 2022-12-28 23:28:00
北海道 北海道新聞 DCM営業利益、コスト増で3.3%減 3~11月期 https://www.hokkaido-np.co.jp/article/781914/ 営業利益 2022-12-28 23:27:00
北海道 北海道新聞 一年の労、職員ねぎらう 石狩管内7市町、仕事納めで首長訓辞 https://www.hokkaido-np.co.jp/article/781857/ 仕事納め 2022-12-28 23:25:45
北海道 北海道新聞 NY円、133円台後半 https://www.hokkaido-np.co.jp/article/781912/ 外国為替市場 2022-12-28 23:25:00
北海道 北海道新聞 北方領土周辺のタコ安全操業、根室で初水揚げ 年内1回限りか https://www.hokkaido-np.co.jp/article/781909/ 北方領土 2022-12-28 23:23:00
北海道 北海道新聞 立命館慶祥「やり切った」 全国高校ラグビー、花園初勝利ならず https://www.hokkaido-np.co.jp/article/781824/ 大阪府東大阪市 2022-12-28 23:23:24
北海道 北海道新聞 <師走点描2022>だて巻き作り 函館でピーク https://www.hokkaido-np.co.jp/article/781865/ 老舗 2022-12-28 23:22:19
北海道 北海道新聞 落雪で死亡、男性の身元判明 音威子府 https://www.hokkaido-np.co.jp/article/781907/ 上川管内 2022-12-28 23:21:00
北海道 北海道新聞 函館臨床福祉専門学校が閉校へ 学生減、24年3月で https://www.hokkaido-np.co.jp/article/781864/ 函館臨床福祉専門学校 2022-12-28 23:16:49
北海道 北海道新聞 新球場元年に期待 日本ハム球団など仕事納め https://www.hokkaido-np.co.jp/article/781904/ 仕事納め 2022-12-28 23:11:00
北海道 北海道新聞 春高バレー 1月4日開幕 https://www.hokkaido-np.co.jp/article/781903/ 春高バレー 2022-12-28 23:10:00
北海道 北海道新聞 帯広の公立全8保育所、定員割れが常態化 保育士不足で https://www.hokkaido-np.co.jp/article/781873/ 定員割れ 2022-12-28 23:05:30
北海道 北海道新聞 「最後の福袋」感謝込め 帯広・藤丸で詰め込み作業 https://www.hokkaido-np.co.jp/article/781872/ 詰め込み 2022-12-28 23:03:58
北海道 北海道新聞 道内2校30日初戦 サッカー全日本高校女子 https://www.hokkaido-np.co.jp/article/781900/ 全日本高校女子サッカー選手権 2022-12-28 23:02:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)