投稿時間:2021-09-06 21:41:08 RSSフィード2021-09-06 21:00 分まとめ(43件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 大丸松坂屋カード、Apple Pay・Google Payで1万円以上利用で1,000ポイントをプレゼントするキャンペーンを実施中 https://taisy0.com/2021/09/06/144953.html applepay 2021-09-06 11:48:53
IT 気になる、記になる… KDDI、9月13日に「新サービス発表会」を開催へ https://taisy0.com/2021/09/06/144951.html 新サービス 2021-09-06 11:13:02
IT ITmedia 総合記事一覧 [ITmedia News] 小説投稿サイト「カクヨム」の偽サイトに注意 作品を無断転載 UIも本物そっくりにコピー https://www.itmedia.co.jp/news/articles/2109/06/news151.html itmedia 2021-09-06 20:40:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] カードローン満足度ランキング 3位「プロミス」、2位「アコム」、1位は? https://www.itmedia.co.jp/business/articles/2109/06/news147.html itmedia 2021-09-06 20:39:00
IT ITmedia 総合記事一覧 [ITmedia News] 寄付すると香取慎吾さん作のNFTアートが受け取れる パラスポーツ支援のチャリティー企画 https://www.itmedia.co.jp/news/articles/2109/06/news150.html itmedia 2021-09-06 20:28:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] ダイキン、換気機能を高めたエアコン新製品 https://www.itmedia.co.jp/business/articles/2109/06/news149.html itmedia 2021-09-06 20:14:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] サイゼリヤが「マスク強制?」 ネットで賛否 https://www.itmedia.co.jp/business/articles/2109/06/news148.html itmedia 2021-09-06 20:01:00
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) [typescript] objectのkeyの中にある文字列を抜き取りたい https://teratail.com/questions/358055?rss=all typescriptobjectのkeyの中にある文字列を抜き取りたい前提・実現したいことこういうオブジェクトがありまして、bodyObjectnullprototypeemailhogegmailcompasswordhogeemailとpasswordを取得したいです。 2021-09-06 20:51:25
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) SQL Server 互換性レベルを上げると実行プランが変わった https://teratail.com/questions/358054?rss=all SQLServer互換性レベルを上げると実行プランが変わった互換性レベルをからに変えると、実行プランが変わり、SELECTクエリが数秒→分秒程度に遅くなりました。 2021-09-06 20:50:58
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) viscoseの設定 https://teratail.com/questions/358053?rss=all python 2021-09-06 20:26:19
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) SwiftUIで特定の方向だけRectangleの大きさを変更したい https://teratail.com/questions/358052?rss=all SwiftUIで特定の方向だけRectangleの大きさを変更したい困りごとSwiftUIでタップした時にViewの高さを変えているんですが、以下のようなコードでRectancleのサイズを変更すると上下両方とも均等にサイズが大きくなってしまいます。 2021-09-06 20:24:30
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ビューに表示したいものが表示できません https://teratail.com/questions/358051?rss=all ビューに表示したいものが表示できません前提・実現したいことSimpleCalendarを利用したメモ付きカレンダーを作ろうとしています。 2021-09-06 20:21:29
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Googleスプレッドシートで複数一致する場合の抽出 https://teratail.com/questions/358050?rss=all Googleスプレッドシートで複数一致する場合の抽出スプレッドシートで画像のような表をを作っています。 2021-09-06 20:18:26
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) python3がインストールできません、、 https://teratail.com/questions/358049?rss=all pythonがインストールできません、、macを使っているのですが、pythonがどうしてもインストールできません、、brewを使ってのインストールを試しても、インストールされているという表示が出るだけで、だめです。 2021-09-06 20:12:41
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Chromeで動かなくなりました https://teratail.com/questions/358048?rss=all chrome 2021-09-06 20:09:36
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) aptコマンドを使えるようにしたい https://teratail.com/questions/358047?rss=all aptコマンドを使えるようにしたい前提・実現したいことタイトルの通りここに質問の内容を詳しく書いてください。 2021-09-06 20:00:37
Ruby Rubyタグが付けられた新着投稿 - Qiita [Ruby]Integer#downto https://qiita.com/minhee/items/d069237934f4ad1015c4 RubyIntegerdowntoはじめに最近コメントいただいた中で新しいメソッドを教えて頂いたので忘れないうちに記事にしておきます。 2021-09-06 20:25:39
Docker dockerタグが付けられた新着投稿 - Qiita MacのDocker Desktopを利用せずにLaravel 8.xのsailコマンドを実行できるようにする https://qiita.com/kai_kou/items/13adec2412b1589de53a DockerMachineを利用しているのでVMのIPアドレスをdockermachineipで取得する必要があります。 2021-09-06 20:07:45
Ruby Railsタグが付けられた新着投稿 - Qiita docker-compose + rails + webpack-dev-serverで、webpack-containerが立ち上がらない https://qiita.com/matsu1226/items/ced4c4fb82dd18391870 dependenciesrailswebpackerwebpackwebpackclidevDependencieswebpackdevserveryarnaddしたりremoveしたりして、この構成にしたらうまくいきました。 2021-09-06 20:34:31
海外TECH Ars Technica 21st-century storms are overwhelming 20th-century cities https://arstechnica.com/?p=1791948 climate 2021-09-06 11:00:55
海外TECH DEV Community How to convert Python string to bytes? https://dev.to/hrishikesh1990/how-to-convert-python-string-to-bytes-2d9g How to convert Python string to bytes In this tutorial we look at how to convert Python string to bytes We look at all the various methods along with their limitations and caveats This tutorial is a part of our initiative at Flexiple to write short curated tutorials around often used or interesting concepts Table of Contents Python String to BytePython String to BytesMethod to convert strings to bytesUsing bytes Using encode Limitations and Caveats Python String to Byte Python String to Bytes Converting Python strings to Bytes has become quite popular after the release of Python This is largely because a lot of file handling and Machine learning methods require you to convert them Before we dive into how to convert them let us first understand what they are and how they are different In Python string and bytes were the same typeByte objects however after the introduction of Python Byte objects are considered as a sequence of bytes and strings are considered as a sequence of characters In essence strings are human readable and in order for them to become machine readable they must be converted to byte objects This conversion also enables the data to be directly stored on the disk The process of converting string objects to byte objects is called encoding and the inverse is called decoding We look at methods to achieve this below Method to convert strings to bytes There are many methods that can be used to convert Python string to bytes however we look at the most common and simple methods that can be used Using bytes The bytes method is an inbuilt function that can be used to convert objects to byte objects Syntax of bytes bytes str enc error The bytes take in an object a string in our case the required encoding method and convert it into a byte object The bytes method accepts a third argument on how to handle errors Let us look at the code to convert a Python string to bytes The encoding type we use here is “UTF Using the byte method initializing string str Join our freelance network str encoded bytes str UTF printing the encode string print str encoded printing individual bytesfor bytes in str encoded print bytes end The output is as follows b Join our freelance network As you can see this method has converted the string into a sequence of bytes Note This method converts objects into immutable bytes if you are looking for a mutable method you can use the bytearray method Using encode The encode method is the most commonly used and recommended method to convert Python strings to bytes A major reason is that it is more readable Syntax of encode string encode encoding encoding errors errors Here string refers to the string you are looking to convert Parameters Encoding Optional The encoding method you are looking to use After Python UTF has become the default Error Optional A string containing the error message Code to convert a python string to bytes Using the encode method initializing string str Join our freelance network str encoded str encode encoding UTF printing the encode string print str encoded printing individual bytesfor bytes in str encoded print bytes end The output is the same as above b Join our freelance network Similar to the encode method the decode method can be used to convert bytes to strings Using the encode method initializing string str Join our freelance network str encoded str encode encoding UTF printing the encode string print str encoded decoding the stringstr decoded str encoded decode print str decoded Output b Join our freelance network Join our freelance network Limitations and Caveats Python String to ByteBoth the methods solve the same problem efficiently and choosing a particular method would boil down to one s personal choice However I would recommend the second method for beginners The byte method returns an immutable object Hence consider using the bytearray if you are looking for a mutable object While using the byte methods the object must have a size lt x lt 2021-09-06 11:50:38
海外TECH DEV Community Django REST framework introduction Part 2: Auth, Token and Permissions https://dev.to/ericchapman/django-rest-framework-introduction-part-2-auth-token-and-permissions-4aad Django REST framework introduction Part Auth Token and PermissionsA web developer worthy of the name must be able to create a REST API In part we help you understand everything there is to know to build your first API using the Python language and the Django REST Framework In part we will secure our API After all not every action ex DELETE can be authorized We will add REST Framework authentication token and permissions to our API To not miss anything click Follow and or follow me on Twitter What is the next step The next step is to secure our API Until now anyone who knows our URL can send a read create update and delete request to our API Not good So the goal being to allow create update and the deletion ofa post only for authenticated user and only allow those to update and delete their own postsIn order to determine what the identity of the request user is we will also have to add an authentication login to our API How authentication work in REST Framework There are several ways to manage authentication with REST Framework In this article I will show you one that is often used Token Authentication What is Token Authentication Token authentication allows users to verify their identity and in return receive a unique access token During the life of the token users then access the API that the token has been issued for rather than having to re enter credentials each time they go back to the same API Auth tokens work like a stamped ticket The user retains access as long as the token remains valid Token based authentication is different from traditional password based or server based authentication techniques Tokens offer a second layer of security and administrators have detailed control over each action and transaction In short it means that when you will make a login request ex api login our API will give you back a Token It will then be possible to use this Token to have access to certain action protected by the API ex DELETE api posts How to use the Token To use the Token In the request header you need to add an Authorization key Authorization Token afbedddd Here a JavaScript fetch example to delete post no const token YOUR TOKEN HERE const response await fetch api posts method DELETE headers Authorization Token token Implement a Token base auth in REST FrameworkTo implement this pattern in our API we need things First we need to create a login API endpoint ex api login That login will authenticate users and return the Token Second we need to modify our update and delete API endpoint to allow only an authenticated user to perform those actions on their own posts This will be implemented with the Authorization and Permissions class in REST Framework Create a Login endpointThat part will be pretty easy because REST Framework already have a login view pre created for us In posts application folder open views py and add this codefrom rest framework authtoken views import ObtainAuthToken from rest framework settings import api settingsclass UserLoginApiView ObtainAuthToken renderer classes api settings DEFAULT RENDERER CLASSESNoted for simplicity I only show code related to the Login view This UserLoginAPIView inherit from ObtainAuthToken that contain all the code to create the login view and all the methods to authenticate a user and return a Token Next we need to create a URL that point to this login viewOpen posts application urls py and add this URL path from django urls import path includefrom rest framework routers import DefaultRouterfrom views import PostViewSet UserLoginApiViewrouter DefaultRouter router register posts PostViewSet urlpatterns path include router urls path login UserLoginApiView as view Finally in order to use the REST Framework auth libraries we need to add a reference to rest framework authtoken to our project settings py files INSTALLED APPS django contrib admin django contrib auth django contrib contenttypes django contrib sessions django contrib messages django contrib staticfiles rest framework posts rest framework authtoken And re run the migrate terminal commandpython manage py migrateThat action will create the database table to support authtoken functionalitiesIf everything code right you can start your server and visit api loginpython manage py runserverYou can use your superuser credentials we create in part one to login You can also add users with the admin panel if needed Once logged in the API will return you a Token Add Authorization and Permissions to Update and Delete API endpointHere the objective is to limit access to our API In particular the Update and Delete actions So only users who are authenticated will be able to perform these actions But we also need to check if the authenticated user is the author of the post Only author of their own posts will be able to do Update and Delete request Permissions classREST Framework has a class to manage permissions We can create one and associated the permissions class to our API viewCreate a new file under posts application folder and name it permissions py Inside that file add the following code from rest framework import permissionsclass UpdateOwnProfile permissions BasePermission def has object permission self request view obj if request method in permissions SAFE METHODS return True return obj user id request user idIf the action to be executed is considered safe request method in permissions SAFE METHODS it can be executed return True If on the other hand the action is not safe Create Update and Delete action then it checks that the authenticated user and are the author of the post are the same obj user id request user id Bind permissions to our APINow that our Permission object is created we can bind it to our API In posts application folder open views py and add this code from rest framework import viewsetsfrom rest framework authentication import TokenAuthenticationfrom rest framework permissions import IsAuthenticatedOrReadOnlyfrom models import Postfrom serializers import PostSerializerfrom permissions import UpdateOwnProfileclass PostViewSet viewsets ModelViewSet serializer class PostSerializer authentication classes TokenAuthentication permission classes UpdateOwnProfile IsAuthenticatedOrReadOnly queryset Post objects all We add thing here First we set the authetification classes to TokenAuthetification and then we set our permissions classes to our custom permission class The isAuthenticatedOrReadOnly will allow authenticated users to perform any request Requests for unauthorised users will only be permitted if the request method is one of the safe methods like GET read post Test your APIOur API is now secure it s time to give it a try This time we cannot test our API in the browser because for auth we need a way to send the Token with the request We will use an API testing application Postman is one of the most use app but today I will use a VSCode extension call Thunder Client It s a light version of Postman easy to install and use Install Thunder ClientFrom VSCode go to extension find and then install the Thunder Client application Once install open the app and click on New Request button and type the API URL you want to test ex api posts then click Send and the response would appear in the right portion of the screen Login and Token exampleTo login you need to do a POST request with credentials to api login First click the New Request button choose POST from the request type dropdown type the request URL ex api login click the Body tab and add the credential in JSON format username ericthecoder password yourpassword Click Send and the response section on the right should display the received Token Create a new PostNow that we have our Token we can do action that required permissions So let s create a new Post Click New Request choose POST from dropdown and type the create post URL ex api posts Click the Body tab and enter the create post JSON Content title My First Blog Title body My first Blog body Content user Click send and the API will return a Unauthorized message That s normal since we did not send the Token with the request To do so click on Headers tab and add the Authorization key and TokenClick Send and now the Post should be created with success Test all API endpointsWith your Token now in hand you can now test all our API endpoint POST api login login with credentials GET api posts Read all post POST api posts Create a new post GET api posts Read a specific Post PUT api posts Update a specific Post PATCH api posts Partial Update a specific Post DELETE api posts Delete a specific Post End of part That s all for today You now have a secure API in the next part we will discuss search pagination and image upload To not miss anything click Follow and or also follow me on Twitter 2021-09-06 11:43:29
海外TECH DEV Community Appwrite, Android and Realtime https://dev.to/appwrite/appwrite-android-and-realtime-42jd Appwrite Android and Realtime What is Appwrite Appwrite is a new open source end to end backend server for web and mobile developers that allows you to build apps much faster It abstracts and simplifies common development tasks behind REST APIs and tools helping you build advanced apps faster Appwrite for AndroidAppwrite provides sleek REST APIs for various common features that are required for web and mobile application development such as cloud functions database storage as well as realtime support for each service so that we as developers can focus on our applications rather than on backend implementations This makes Appwrite very suitable for those of us who want to build Android applications In this tutorial we ll build an Android realtime product application using Appwrite and the new realtime API let s get started PrerequisitesIn order to continue with this tutorial you need to have access to an Appwrite console and either an existing project or permission to create one If you have not already installed Appwrite please do so Installing Appwrite is really simple following Appwrite s official installation docs Installation should only take around minutes Once installed login to your console and create a new Project Database SetupIn the Appwrite console let s select the project that we will be using for our Android app If you don t have a project yet you can easily create one by clicking on the Create Project button Once inside select Database from the left sidebar On the database page Click on the Add Collection buttonInside the dialog Set the collection name to ProductsClick the Create buttonThis will then create a collection and you will be redirected to the new collection s page where we can define its rules Define the following rules then click the Update button Namelabel NameKey nameRule Type TextRequired trueArray falseDescriptionlabel DescriptionKey descriptionRule Type TextRequired trueArray falseSKUlabel SKUKey skuRule Type TextRequired trueArray falsePricelabel PriceKey priceRule Type NumericRequired trueArray falseImage URLlabel Image URLKey imageUrlRule Type TextRequired trueArray falseNow that the collection is created we can move on to setting up the Android application ️Setup Android Project and DependenciesUsing Android Studio create a new Android Application project choosing the Empty Activity template Once the project is created add the following dependencies to your app s build gradle kts file Appwrite implementation io appwrite sdk for android Appcompat LiveData ViewModel and Activity extensions implementation androidx appcompat appcompat implementation androidx lifecycle lifecycle livedata ktx implementation androidx lifecycle lifecycle viewmodel ktx implementation androidx activity activity ktx JSON implementation com google code gson gson Image loading implementation com github bumptech glide glide kapt com github bumptech glide compiler ️Add Android PlatformTo initialize the Appwrite SDK and start interacting with Appwrite services you first need to add a new Android platform to your project To add a new platform go to your Appwrite console select your project or create one if you haven t already and click the Add Platform button on the project Dashboard From the options choose to add a new Android platform and add your app credentials Add your app name and package name Your package name is generally the applicationId in your app level build gradle file You may also find your package name in your AndroidManifest xml file By registering a new platform you are allowing your app to communicate with the Appwrite API Create the Product ModelWe now need to create a model to represent a product on the Android side Create a new Kotlin file Product kt and declare a simple data class data class Product val name String val sku String val price Double val imageUrl String ️Building ViewsNow open your app src main res layout activity main xml and update the layout as following lt xml version encoding utf gt lt androidx constraintlayout widget ConstraintLayout xmlns android xmlns app xmlns tools android layout width match parent android layout height match parent tools context MainActivity gt lt androidx recyclerview widget RecyclerView android id id recyclerProducts android layout width match parent android layout height dp app layoutManager androidx recyclerview widget GridLayoutManager app layout constraintBottom toTopOf id btnSubscribe app layout constraintEnd toEndOf parent app layout constraintStart toStartOf parent app layout constraintTop toTopOf parent app spanCount gt lt Button android id id btnSubscribe android layout width match parent android layout height wrap content android layout margin dp android text Subscribe to products app layout constraintBottom toBottomOf parent app layout constraintLeft toLeftOf parent app layout constraintRight toRightOf parent app layout constraintTop toBottomOf id recyclerProducts gt lt androidx constraintlayout widget ConstraintLayout gt You ll notice that the activity is quite simple we only have a Button to subscribe and a RecyclerView The RecyclerView will be used to display the product collection in realtime as we add new products We ll now need to define a separate view that will be used to represent each of the individual products Create a new layout from File gt New gt Layout Resource File name it item product xml and add the following lt xml version encoding utf gt lt androidx constraintlayout widget ConstraintLayout xmlns android xmlns app android layout width match parent android layout height dp android layout margin dp gt lt ImageView android id id imgProduct android layout width match parent android layout height dp app layout constraintBottom toBottomOf parent app layout constraintEnd toEndOf parent app layout constraintStart toStartOf parent app layout constraintTop toTopOf parent gt lt View android layout width match parent android layout height dp android alpha android background color black app layout constraintBottom toBottomOf parent app layout constraintEnd toEndOf parent app layout constraintStart toStartOf parent gt lt TextView android id id txtName android layout width wrap content android layout height wrap content android layout margin dp android textColor color white app layout constraintBottom toBottomOf parent app layout constraintStart toStartOf parent gt lt TextView android id id txtPrice android layout width wrap content android layout height wrap content android layout margin dp android textColor color white app layout constraintBottom toBottomOf parent app layout constraintEnd toEndOf parent gt lt androidx constraintlayout widget ConstraintLayout gt All the pieces of our RecyclerView are in place and we can move on to setting up the ViewModel where most of the heavy lifting happens ‍Create View ModelCreate app src main java com example realtimestarter RealtimeViewModel kt and update it with following code Make sure to replace all the property values near the top of the file with your own values which can be found in your Appwrite console package io appwrite realtimestarterimport android content Contextimport android util Logimport androidx lifecycle import io appwrite Clientimport io appwrite extensions toJsonimport io appwrite models RealtimeResponseEventimport io appwrite models RealtimeSubscriptionimport io appwrite services Accountimport io appwrite services Databaseimport io appwrite services Realtimeimport kotlinx coroutines launchclass RealtimeViewModel ViewModel LifecycleObserver private val endpoint YOUR ENDPOINT Replace with your endpoint private val projectId YOUR PROJECT ID Replace with your project ID private val collectionId YOUR COLLECTION ID Replace with your product collection ID private val realtime by lazy Realtime client private val account by lazy Account client private val db by lazy Database client private val productStream MutableLiveData lt Product gt val productStream LiveData lt Product gt productStream private val productDeleted MutableLiveData lt Product gt val productDeleted LiveData lt Product gt productDeleted private var client Client null var subscription RealtimeSubscription null private set fun subscribeToProducts context Context buildClient context viewModelScope launch Create a session so that we are authorized for realtime createSession Attach an error logger to our realtime instance realtime doOnError Log e this class java name it message toString Subscribe to document events for our collection and attach the handle product callback subscription realtime subscribe collections collectionId documents payloadType Product class java callback handleProductMessage createDummyProducts private fun handleProductMessage message RealtimeResponseEvent lt Product gt when message event in database documents create database documents update gt productStream postValue message payload database documents delete gt productDeleted postValue message payload private suspend fun createDummyProducts For testing insert products while subscribed val url for i in until db createDocument collectionId Product iPhone i sku i i toDouble url toJson listOf listOf private fun buildClient context Context if client null client Client context setEndpoint endpoint setProject projectId private suspend fun createSession try account createAnonymousSession catch ex Exception ex printStackTrace OnLifecycleEvent Lifecycle Event ON STOP fun closeSocket Activity is being destroyed close our socket connection if it s open subscription close The ViewModel contains a function to call the realtime API and subscribe to notifications for create update delete events relating to any documents within the collection with id collectionId that is also visible to our user To allow observing the incoming realtime updates from outside itself the ViewModel also exposes the LiveData property productStream which we ll utilize in our Activity later on to get realtime updates in our RecyclerView ️Recycler ViewThere s more files we need to add to get our RecyclerView working The ProductAdapter which will handle creating and binding a view for each Product as they re added to the database The DiffUtil ItemCallback provided in the constructor will be used to calculate list update diffs on a background thread then post any changes on the UI thread perfect for realtime You can find more information on DiffUtil here package io appwrite realtimestarterimport android view LayoutInflaterimport android view ViewGroupimport androidx recyclerview widget DiffUtilimport androidx recyclerview widget ListAdapterclass ProductAdapter ListAdapter lt Product ProductViewHolder gt object DiffUtil ItemCallback lt Product gt override fun areItemsTheSame oldItem Product newItem Product oldItem sku newItem sku override fun areContentsTheSame oldItem Product newItem Product oldItem newItem override fun onCreateViewHolder parent ViewGroup viewType Int ProductViewHolder val view LayoutInflater from parent context inflate R layout item product parent false return ProductViewHolder view override fun onBindViewHolder holder ProductViewHolder position Int val item currentList position holder setName item name holder setPrice item price toString holder setProductImage item imageUrl fun submitNext product Product val current currentList toMutableList val index currentList indexOfFirst it sku product sku if index current index product else current add product submitList current fun submitDeleted product Product submitList currentList toMutableList apply remove product The ProductViewHolder which describes a single Product view and metadata about it s position in the RecyclerView package io appwrite realtimestarterimport android view Viewimport android widget ImageViewimport android widget TextViewimport androidx recyclerview widget RecyclerViewimport com bumptech glide Glideclass ProductViewHolder itemView View RecyclerView ViewHolder itemView private var nameView TextView itemView findViewById R id txtName private var priceView TextView itemView findViewById R id txtPrice private var imageView ImageView itemView findViewById R id imgProduct fun setName name String nameView text name fun setPrice price String priceView text price fun setProductImage url String Glide with itemView load url centerCrop into imageView ActivityWith everything else in place lets tie it all together in our MainActivity Open app src main java com example realtimestarter MainActivity kt and update like so package io appwrite realtimestarterimport android os Bundleimport android widget Buttonimport androidx activity viewModelsimport androidx appcompat app AppCompatActivityimport androidx recyclerview widget RecyclerViewclass RealtimeActivity AppCompatActivity private val viewModel by viewModels lt RealtimeViewModel gt override fun onCreate savedInstanceState Bundle super onCreate savedInstanceState setContentView R layout activity realtime val button findViewById lt Button gt R id btnSubscribe button setOnClickListener viewModel subscribeToProducts this val adapter ProductAdapter val recycler findViewById lt RecyclerView gt R id recyclerProducts recycler adapter adapter viewModel productStream observe this adapter submitNext it viewModel productDeleted observe this adapter submitDeleted it lifecycle addObserver viewModel override fun onStop super onStop lifecycle removeObserver viewModel ️Let s Get RealtimeThat s it all that s left is to run the application then add some documents When running on your emulator or device click Subscribe to start listening for realtime updates Head back to your Appwrite console and navigate to the Products collection we created earlier From here we can start adding new documents and see them appear in our app As soon you add a product in the console you ll see them appear in the UI of your app That s the real beauty of Appwrite Realtime as shown below ConclusionI hope you enjoyed building this Realtime Application with Appwrite and Android The full source for this application is available in the Demo Realtime Application repository Let us know if you have any feedback or suggestions Looking forward to seeing what the community can create with Appwrite Realtime and Android Learn MoreGetting Started With AndroidAndroid PlaygroundAppwrite Docs 2021-09-06 11:32:07
海外TECH Engadget The Morning After: NASA's air taxi testing https://www.engadget.com/the-morning-after-nas-as-air-taxi-tests-111715918.html?src=rss The Morning After NASA x s air taxi testingGood morning I hope all our US readers are having a great Labor Day weekend but you know how it is Tech news doesn t stop But before we get into NASA and air taxis Over the weekend a group of House Republicans sent letters to the leaders of tech companies threatening legal action if they comply with a request for records related to the January th Capitol attack However the letter they sent to Yahoo Engadget s new parent company is addressed to Marissa Mayer who hasn t been CEO of the company since The ups and downs of Yahoo aside it s a reminder that Congress general lack of tech knowledge creates problems whether it s a letter to a long gone CEO or law change proposals that could produce easily foreseen complications Note that none of the letters went to Telegram Reddit TikTok and other influential tech companies and platforms ーMat SmithNASA starts flight testing with Joby s electric air taxiThe dry runs could help rethink the future of airspace NASA s air taxi tests are moving forward with Joby Aviation s electric VTOL aircraft to help model and simulate a future that might involve flying cars The dry run began quietly on August th and will last through September th The effort includes noise checks using microphones to gauge the quot acoustic profile quot of the air taxi throughout a flight Continue reading An Alan Wake remaster may be coming to PS and Xbox Series X in OctoberThe classic thriller won t be an Xbox console exclusive Remedy EntertainmentThose longstanding murmurs of an Alan Wake revival might just have some merit Well known sleuth Wario has spotted Rakuten listings for an Alan Wake Remastered title that would launch on PS PS Xbox One and Xbox Series X S on October th Continue reading Study says Europe is years behind its emissions reduction goalsThe continent s largest utility wants officials to pick up the pace Europe s largest utility company Enel doesn t think EU officials are moving quickly enough to tackle reducing emissions Its study warns that Europe could be late on reducing greenhouse gas emissions if it continues at its quot current pace quot The European Union wants to reduce those emissions by percent by Enel said but it reportedly won t reach that target until without substantial changes Continue reading Apple is delaying its child safety featuresThe CSAM detection tools were supposed to arrive with iOS Apple says it s delaying the rollout of Child Sexual Abuse Material CSAM detection tools quot to make improvements quot following pushback from critics The features include one that analyzes iCloud Photos for known CSAM which has caused concern among privacy advocates Apple claimed the approach would provide quot privacy benefits over existing techniques since Apple only learns about users photos if they have a collection of known CSAM in their iCloud Photos account quot However privacy advocates have suggested that CSAM photo scanning could lead to law enforcement or governments pushing Apple to look for other types of images to perhaps for instance clamp down on dissidents Continue reading Segway s robot mower uses GPS to stay on your lawnThere s no need to install a perimeter wire with the Navimow SegwaySegway is moving into the robot mower market with the Navimow ーand it doesn t need boundary wire Instead Navimow uses GPS and other sensors to stay within the perimeter of your lawn Its Exact Fusion Locating System can maintain Navimow s position accurately to within two centimeters according to Segway If the GPS signal ever dips the company says the device s array of sensors and data ensure it will still work You can tell Navimow where to mow define the boundaries and instruct it to avoid certain parts of your garden via an app Continue reading Smart s Mini like EV concept shows off its larger vehicle ambitionsIt s designed by Daimler and built on Volvo owned Geely s EV platform SmartMercedes teamed up with Volvo automaker Geely to transform Smart into an EV only brand a few years ago with new vehicles to arrive in We re starting to see the fruits of this collaboration with the unveiling of Smart s Concept Given Smart s past the Concept appears relatively large Designed by Mercedes the four seater has roughly the same dimensions and kind of a similar look to be honest as Mini s largest vehicle the Countryman Smart and its Daimler Geely parents are planning to turn this concept into a production vehicle The aim is to make multiple versions including a long range model while offering the quot highest level of dynamic handling quot for enthusiasts Continue reading The biggest news stories you might have missedPixel owners say their phones are bricking without warningThe next iPhone s rumored satellite calls might only work in certain areas Horizon Forbidden West PS buyers will get a free PS upgrade after allHitting the Books What exactly did Jodi Foster hear in Contact ICYMI How does the Samsung Galaxy Z Fold perform in the real world 2021-09-06 11:17:15
海外ニュース Japan Times latest articles Japan’s opposition parties rattled by Suga’s move toward exit https://www.japantimes.co.jp/news/2021/09/06/national/politics-diplomacy/suga-ldp-election-opposition-parties/ Japan s opposition parties rattled by Suga s move toward exitThe prime minister s decision not to run in the LDP leadership election is a heavy blow to opposition parties upending their strategies for the Lower 2021-09-06 20:17:40
ニュース BBC News - Home Social care reform plans facing Tory tax backlash https://www.bbc.co.uk/news/uk-politics-58458292?at_medium=RSS&at_campaign=KARANGA insurance 2021-09-06 11:37:56
ニュース BBC News - Home Critics largely lavish praise on Dune remake https://www.bbc.co.uk/news/entertainment-arts-58438957?at_medium=RSS&at_campaign=KARANGA blockbuster 2021-09-06 11:34:25
ニュース BBC News - Home Former France player Adams dies after 39 years in coma https://www.bbc.co.uk/sport/football/58463792?at_medium=RSS&at_campaign=KARANGA pierre 2021-09-06 11:37:12
ニュース BBC News - Home England v India: Rory Burns caught behind for 50 as tourists make breakthrough https://www.bbc.co.uk/sport/av/cricket/58463678?at_medium=RSS&at_campaign=KARANGA England v India Rory Burns caught behind for as tourists make breakthroughRory Burns is caught behind off Shardul Thakur for as India make the breakthrough reducing England to as they chase to win the fourth Test at The Oval 2021-09-06 11:02:03
LifeHuck ライフハッカー[日本版] 支援するなら今!便利なキッチンツール5種の機能を集結したまな板「ChopBox」が便利すぎ https://www.lifehacker.jp/2021/09/240721-campfire-chopbox.html campfire 2021-09-06 21:00:00
GCP Google Cloud Platform Japan 公式ブログ 世界中の組織の未来の働き方の推進をサポートする https://cloud.google.com/blog/ja/products/workspace/how-google-workspace-customers-navigate-the-future-of-work/ GoogleWorkspaceの安全な共同作業と生産性向上アプリは、社内プロセスの再設計においても、リモートでのカスタマーサービスの管理においても、チームが新しい働き方に対応するにあたってつながりを維持するために重要な役割を果たしています。 2021-09-06 13:00:00
北海道 北海道新聞 大阪、緊急事態「延長やむなし」 知事が見解、医療逼迫で https://www.hokkaido-np.co.jp/article/586374/ 吉村洋文 2021-09-06 20:19:00
北海道 北海道新聞 パラ海外勢、4000人出国 空港で見送り、名残惜しむ https://www.hokkaido-np.co.jp/article/586364/ 出国ラッシュ 2021-09-06 20:10:00
北海道 北海道新聞 パラ専用の体育館なくなる 頭抱える競技関係者 https://www.hokkaido-np.co.jp/article/586362/ 障害者 2021-09-06 20:05:00
北海道 北海道新聞 道・組合側が請求棄却求める 同性パートナー扶養訴訟 札幌地裁 https://www.hokkaido-np.co.jp/article/586345/ 札幌地裁 2021-09-06 20:06:15
北海道 北海道新聞 寺地の世界戦は22日に開催 WBC、コロナ感染で延期 https://www.hokkaido-np.co.jp/article/586363/ 世界ボクシング評議会 2021-09-06 20:05:00
北海道 北海道新聞 神奈川で971人コロナ感染 1000人下回るのは7月末以来 https://www.hokkaido-np.co.jp/article/586361/ 新型コロナウイルス 2021-09-06 20:02:00
ビジネス 東洋経済オンライン 貨物取扱世界一「中国・舟山港」にコロナショック 作業員1名が陽性で埠頭閉鎖、コンテナ船大渋滞 | 「財新」中国Biz&Tech | 東洋経済オンライン https://toyokeizai.net/articles/-/451912?utm_source=rss&utm_medium=http&utm_campaign=link_back biztech 2021-09-06 20:30:00
ニュース Newsweek タリバン勝利の裏に習近平のシナリオーー分岐点は2016年 https://www.newsweekjapan.jp/stories/world/2021/09/2016-15.php タリバンとも接触し、二股をかけていた習近平年月日に発表された「人民日報」傘下の「環球時報」電子版「環球網」の「中国はなぜタリバンの調停人にならなければならないのか」によれば、中国は旧タリバン政権が誕生した年以降年、特に「東トルキスタン・イスラム運動」が新疆ウイグル自治区のウイグル族と連携を始める年以降の年に、深くタリバン政権との関係を築き、ウイグル族を分離独立の方向に誘い込まないということを条件に経済支援を約束している。 2021-09-06 20:03:48
IT 週刊アスキー 『NBA 2K22』にて日本オリジナル「八村塁と遊ぼう篇」TVCMを公開! https://weekly.ascii.jp/elem/000/004/068/4068377/ nintendo 2021-09-06 20:30:00
IT 週刊アスキー シャオミ、9/15の発表はグローバルフラグシップ機「Xiaomi 11T Pro」か!? 新iPhoneとの比較もあるか? https://weekly.ascii.jp/elem/000/004/068/4068378/ iphone 2021-09-06 20:10:00
海外TECH reddit [Alfa Romeo Racing] Breaking news! @ValtteriBottas will join Alfa Romeo Racing ORLEN for the 2022 season and beyond, with the Finnish driver signing a multi-year deal with the Hinwil-based team. https://www.reddit.com/r/formula1/comments/pixnt2/alfa_romeo_racing_breaking_news_valtteribottas/ Alfa Romeo Racing Breaking news ValtteriBottas will join Alfa Romeo Racing ORLEN for the season and beyond with the Finnish driver signing a multi year deal with the Hinwil based team submitted by u glenn to r formula link comments 2021-09-06 11:31:25
GCP Cloud Blog JA 世界中の組織の未来の働き方の推進をサポートする https://cloud.google.com/blog/ja/products/workspace/how-google-workspace-customers-navigate-the-future-of-work/ GoogleWorkspaceの安全な共同作業と生産性向上アプリは、社内プロセスの再設計においても、リモートでのカスタマーサービスの管理においても、チームが新しい働き方に対応するにあたってつながりを維持するために重要な役割を果たしています。 2021-09-06 13:00:00

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)