TECH |
Engadget Japanese |
SD 8 Gen 1に一番乗り。モトローラ「moto edge X30」は約5万3000円とコスパが光る新型スマホ |
https://japanese.engadget.com/moto-edge-x-30-123050084.html
|
motoedgex |
2021-12-13 12:30:50 |
TECH |
Engadget Japanese |
「Teams」アプリがあるとAndroidスマホで緊急通話ができない問題が修正 |
https://japanese.engadget.com/teams-android-120026333.html
|
android |
2021-12-13 12:00:26 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 「ワクチン接種証明アプリ」お披露目 申請から2分で交付完了 |
https://www.itmedia.co.jp/news/articles/2112/13/news167.html
|
itmedia |
2021-12-13 21:15:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] PayPayで特急券を購入 JR九州が実証実験 |
https://www.itmedia.co.jp/business/articles/2112/13/news164.html
|
itmedia |
2021-12-13 21:13:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
機械学習入門 vol.9 判別(分類) |
https://qiita.com/mychaelstyle/items/34ca447a625c752dbfda
|
機械学習入門vol判別分類本コンテンツは機械学習入門講座を各所でやっている内容の一部を、受講者の皆様の予習・復習のために公開しているものです。 |
2021-12-13 21:41:36 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
M1 MacBook ProでPythonとVisualStudioCodeの環境設定 |
https://qiita.com/IKEH/items/a23554fee13085352a32
|
このMacにPythonとVisualStudioCodeの設定したときの忘備録Homebrew概要pyenvとpyenvvirtualenvをHomebrewで管理するので先にこれをインストールするインストール下記に記載されているコマンドを実行binbashccurlfsSL環境設定インストール時にターミナルに表示される指示通りPATHを通すMmacでhomebrewが普通に使えるようになったWarningopthomebrewbinisnotinyourPATHInstructionsonhowtoconfigureyourshellforHomebrewcanbefoundintheNextstepssectionbelowgtInstallationsuccessfulgtHomebrewhasenabledanonymousaggregateformulaeandcaskanalyticsReadtheanalyticsdocumentationandhowtooptouthereNoanalyticsdatahasbeensentyetnorwillanybeduringthisinstallrungtHomebrewisrunentirelybyunpaidvolunteersPleaseconsiderdonatingdonationsgtNextstepsRunthesetwocommandsinyourterminaltoaddHomebrewtoyourPATHechoevalopthomebrewbinbrewshellenvgtgtUsersikehzprofileevalopthomebrewbinbrewshellenvRunbrewhelptogetstartedFurtherdocumentationzprofileに下記のように保存される下記でパスが通っていることの確認brewvHomebrewHomebrewhomebrewcoregitrevisiondcalastcommitPythonpyenvpyenvvirtualenvのインストールインストールPATHの通し方は情報が古いのでパスと使い方の参照pyenvとpyenvvirtualenvの自分流使い方brewupdatebrewinstallpyenvbrewinstallpyenvvirtualenvzprofileに以下を記述Pythonpyenvアップデートでpathの設定が変更IT技術で仕事を減らしたいとりあえず新しそうな情報なので参考にpyenvexportPYENVROOTHOMEpyenvexportPATHPYENVROOTbinPATHevalpyenvinitpathpyenvvertualenvevalpyenvvirtualenvinitzshrcpyenvevalpyenvinit運用時によく使うコマンドpyenvinstalllistpyenvinstallltpythonversiongtpyenvversionspyenvvirtualenvltpythonversiongtltenvnamegtpyenvlocalltpythonversiongtpyenvuninstallprojectAキャッシュファイルを作らない設定【Python】pycacheを作らない環境変数の確認配下を参考にzshを使用しているなら対応するファイルを見るbashprofileとbashrcのまとめexportPYTHONDONTWRITEBYTECODEgitignoreの設定PythonVSCodeの環境の標準的な採用したいgiboでgitignoreを自動生成するbrewinstallgibogiboupdategibodumppythonVisualStudioCodegtgitignoreVisualStudioCodeダウンロード公式からダウンロード。 |
2021-12-13 21:15:53 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ActiveRecord::NotNullViolation in ShopsController#create を解決したい |
https://teratail.com/questions/373647?rss=all
|
ActiveRecordNotNullViolationinShopsControllercreateを解決したい前提・実現したいこと現在Railsnbspでアプリを作成しています。 |
2021-12-13 21:52:03 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
SQL・PostgreSQLの値呼び出しに括弧やカンマをなくすには? |
https://teratail.com/questions/373646?rss=all
|
SQL・PostgreSQLの値呼び出しに括弧やカンマをなくすには実現したいことpsycopgを使い、pythonからデータベースの値を呼び出すのですが、呼び出した後に、printをするとと表示されてしまします。 |
2021-12-13 21:49:26 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
js ページ移動時に生成したhtml要素が消えない方法 |
https://teratail.com/questions/373645?rss=all
|
jsページ移動時に生成したhtml要素が消えない方法nbsp【必須】やりたい・やりたかったことnbspnbsp目標を設定し、html要素に生成されたli要素がトップページボタンでページを移動後もう一度、目標画面のhtmlページに戻ると生成したli要素が消えてしまっている状態ですが、ページを移動しても生成され表示されているli要素がそのままの状態を維持したいです。 |
2021-12-13 21:47:51 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
旧Tensorflowを使用したいがGPUが動作しない |
https://teratail.com/questions/373644?rss=all
|
旧Tensorflowを使用したいがGPUが動作しない前提・実現したいことtensorflowgpuとkerasを用いてプログラムを動かしたいです。 |
2021-12-13 21:45:19 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
PythonのTKでチェックボックスの状態で色付けを行いたい |
https://teratail.com/questions/373643?rss=all
|
PythonのTKでチェックボックスの状態で色付けを行いたい社内の改善でチェックボックスを用いた簡易ソフトを独学で生成しています。 |
2021-12-13 21:43:11 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
tensorflowでの学習済みモデルでの推論実施時のエラー(AttributeError: '_UserObject' object has no attribute) |
https://teratail.com/questions/373642?rss=all
|
|
2021-12-13 21:35:57 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Eclipse GlassFish ToolsのURLが見つかりません |
https://teratail.com/questions/373641?rss=all
|
EclipseGlassFishToolsのURLが見つかりません前提・実現したいことeclipseにてglassfishを使用したサーバー環境構築を実施したい。 |
2021-12-13 21:22:35 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
vscode・ターミナルをスマホで遠隔入力したい |
https://teratail.com/questions/373640?rss=all
|
input |
2021-12-13 21:14:25 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
javascript:filter関数で部分一致を取得する方法 |
https://teratail.com/questions/373639?rss=all
|
javascriptfilter関数で部分一致を取得する方法前提・実現したいことjavascriptのネット演習問題を解いています。 |
2021-12-13 21:09:48 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
C言語の問題について |
https://teratail.com/questions/373638?rss=all
|
nbspabnbspab |
2021-12-13 21:00:53 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Amazon RDS Custom for Oracleタイムゾーン変更手順 |
https://qiita.com/asahide/items/42d4d5a2adaf98d06f26
|
おまけ少し触れましたが、デフォルトではNTP同期がされていない状態、且つChronyもインストールされていない状態ですので、ChronyをインストールしてAWSのサービスと同期してみました。 |
2021-12-13 21:55:30 |
golang |
Goタグが付けられた新着投稿 - Qiita |
ターミナル上でポーカーのヘッズアップがしたい |
https://qiita.com/kouji-at/items/06f8d08365030ae9d588
|
作ったものこんな感じで、gopokerというTUIで起動するポーカーゲームと言えるほどのクオリティではないを作ってみました。 |
2021-12-13 21:45:54 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
Lookerを使用したスポーツ成績のダッシュボードを作る |
https://qiita.com/YoheiNakane/items/91726b35602e0efa2449
|
とくにデータを理解している人が操作するならまだしも、データをあまり理解していない人に利用してもらおうとおもったらこの機能は非常に重要になります。 |
2021-12-13 21:34:35 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
codecommitにて、gitをpushするまでの、道のり。 |
https://qiita.com/berukokoko/items/88f1a2f71fb985cd38bf
|
codecommitにて、gitをpushするまでの、道のり。 |
2021-12-13 21:29:43 |
技術ブログ |
Developers.IO |
[Storage Gateway] ファイルゲートウェイで Active Directory アクセスの設定をしてみた |
https://dev.classmethod.jp/articles/storage-gateway-ad/
|
activedirectory |
2021-12-13 12:51:47 |
技術ブログ |
Developers.IO |
การสร้าง Microsoft Windows Server ใน Amazon EC2 |
https://dev.classmethod.jp/articles/building-microsoft-windows-server-in-amazon-ec2/
|
การสร้างMicrosoft Windows Server ในAmazon ECครั้งนี้ผมจะมาเขียนบทความเกี่ยวกับการสร้างWindows Instance การสร้างKey Pairs ค้นหา︎EC»เลือกEC คลิกKey |
2021-12-13 12:25:25 |
海外TECH |
DEV Community |
⚠️ CRITICAL update for ParseJS/ParseTS! ⚠️ |
https://dev.to/baenencalin/critical-update-for-parsejsparsets-4mpf
|
️CRITICAL update for ParseJS ParseTS ️A new commit to the ParseJS GitHub repository was made It fixes a critical bug related to the output the function returned The intended behavior parse string usually returns an array that contains either a length one string char or symbol A symbol is inserted into the returned array IF a symbol is found I e if you pass the arguments test test test two symbols containing the description test will be inserted Otherwise if a valid token isn t found it will insert the current characterSo all together if you pass in test test test you should and WILL get Symbol test Symbol test The bug The bug is that ghost characters would be inserted into the output array if a token candidate didn t match the potential token in the string A visual demonstration of the bug This is a before and after of the bug fix Thanks for your attention Cheers |
2021-12-13 12:46:12 |
海外TECH |
DEV Community |
GITHUB CHEAT SHEET |
https://dev.to/manolosolalinde/github-cheat-sheet-3ifo
|
GITHUB CHEAT SHEET GITHUB CHEAT SHEET STARTING A PROJECTForked projects or existing projectscd GITHUB manolosolalindegit clone lt url gt git config credential helper storeCreate remote repositorycd GITHUB manolosolalindemkdir lt reponame gt deprecated curl u manolosolalinde gmail com d name PWD token from curl i H Authorization token lt GET FROM d name PWD description This is your first repository homepage private true has issues true has projects true has wiki true echo TODO Readme gt gt README mdStart Local Repository and push first commitgit initgit config credential helper storegit add git commit m first commit git remote add origin PWD gitgit push u origin masterChange local repository git remote show origingit remote set url origin PWD git DELETING ALL HISTORYcd lt localrepofolder gt rm rf gitStart Repository as above git push u force origin master DELETING A FULL REMOTE REPOcd lt REPONAME gt curl X DELETE H Authorization token replacewithtoken PWD Get Delete Auth token create a new authorizationcurl v u manolosolalinde gmail com X POST d scopes delete repo note token with delete repo scope gt gt token json INITIAL GLOBAL SETUPgit config global user name Manuel Solalinde git config global user email manolosolalinde gmail com UNTRACK FILES already added to git repository based on gitignoregit rm r cached git add git commit m gitignore fix rm is the remove command r will allow recursive removal cached will only remove files from the index Your files will still be there The indicates that all files will be untracked You can untrack a specific file with git rm cached foo txt thanks amadeann GENERAL PURPOSEgit config global user name Manuel Solalinde Sets the name you want atached to your commit transactionsgit remote add origin git github com manolosolalinde newrepo git Add origin for existing repositorygit config global user email manolosolalinde gmail com Sets the email you want atached to your commit transactiongit init project name Creates a new local repository with the specified namegit clone url Downloads a project and its entire version historygit status Lists all new or modified files to be commitedgit add file Snapshots the file in preparation for versioninggit reset file Unstages the file but preserve its contentsgit diff Shows file differences not yet stagedgit diff staged Shows file differences between staging and the last file versiongit commit m descriptive message Records file snapshots permanently in version historygit branch Lists all local branches in the current repositorygit branch branch name Creates a new branchgit checkout branch name Switches to the specified branch and updates the working directorygit merge branch Combines the specified branch s history into the current branchgit branch d branch name Deletes the specified branch Tagsmore info on tags git tag a v m my version Creates a taggit tagList all tagsgit tag l v v v rcv rcCheck all tags with that namegit show v Show Tag informationgit log graph decorate onelineShow Branch History information Working with multiple versions of a projectInteresting post ExampleIn my case I have two version of the same software that the basics are the same but each version has some different features So I create two worktree that means create two relevant long running branches beside the master git worktree add b version silver version silver master git worktree add b version gold version gold masterThen I have git branch master base stuff here version silver some normal features version gold some better featuresThere is one repository but I have separate folders beside each other for each branch above And make the common changes in master then merge it with both other versions cd master vim basic cpp git add git commit m my common edit on basic cpp cd version silver vim silver cpp git add git commit m my specific edit on silver cpp git merge master here i get the basic cpp latest changes for silver project cd version gold git merge master here i get the basic cpp latest changes for gold project Copy changes of only last commit from branch A to branch BStackoverflow Commit to multiple branches at the same timegit checkout Agit commit m Fixed the bug x git checkout Bgit cherry pick A Problems Problems with vscode and credentialsYou should be able to set your credentials like this git remote set url origin https lt USERNAME gt lt PASSWORD gt bitbucket org path to repo gitYou can get the remote url like this git config get remote origin urlMy problem was solved with cd C Program Files Git mingw libexec git core git credential manager exe uninstall |
2021-12-13 12:41:20 |
海外TECH |
DEV Community |
How to calculate Square Root in Python? |
https://dev.to/hrishikesh1990/how-to-calculate-square-root-in-python-5d0f
|
How to calculate Square Root in Python In this short tutorial we look at how we can calculate the square root in Python We look at four different methods and break them down for you Table of contentsWhat is a square root Using the pow function to calculate the square root in PythonCalculating the square root in Python using the exponent operatorUsing the sqrt function to calculate square root in PythonCalculating the square root in Python using the cmath moduleClosing thoughts What is a square root The square root of a number is a value when multiplied by itself returns that same number For example x so a square root of is However x is too so is also a square root of In Python or any other Programming Language we have various methods to calculate the square root of a number And in this tutorial we will cover four different methods to calculate the square root of a number Using the pow function to calculate the square rootThe pow function is a quick method of finding the square root in Python Let us first understand how the pow function works in Python The pow function takes parameters the first parameter is the numerical value and the second parameter is the power of the numerical value Syntax pow x y where y is the power of x Input Using the pow function import mathnum float input Enter a number sqRoot math pow num print The square root of a given number format num sqRoot Output Enter a number The square root of a given number Calculating the square root in using the exponent operatorThe exponential operator denoted with performs the square root operation as same as the pow function To make things more interesting let s find the square root of a number by defining a function of our own Input Using the exponent operator to calculate the square root in Pythondef sqRoot n if n lt return else return n print sqRoot Output We have begun by defining a function named sqRoot n We have then added the equation n which is to calculate the square root and store the result in the variable x When we call the function we have defined we input the number we want to find the square root of in the place of the argument or parameter n The function is then called to implement the action and print the result Using the sqrt function to calculate square rootThe sqrt function is a predefined method used to find the square root in Python Firstly we import the math module to use the sqrt function Input Using the sqrt function to calculate the square root in Pythonimport mathnum int input Enter a number sqRoot math sqrt num print f The square root of num is sqRoot Output Enter a number The square root of is In the first line we begin with importing the math module then in the next line we take the input from the user After that we find the square root of the number using the sqrt method and the result will be stored in the variable sqRoot The final line of code makes sure that the result is printed out Calculating the square root in Python using the cmath moduleThe cmath module is used to calculate the square root of a Real or Complex number in Python The various methods we have used so far will work fine for all positive Real numbers But for negative or complex numbers the cmath module proves to be useful Input Using the cmath module to calculate the square root of real or complex numbers in Pythonimport mathnum eval input “Enter a number “ num sqRoot cmath sqrt num print “The square root of is f f j format num num sqRoot real num sqRoot imag Output Enter a number jThe square root of j is jIn this program we used the sqrt function in the cmath module Note that we have used the eval function to convert the inputs to complex numbers as well The cmath sqrt also can be used to return the square root of a negative number For example Input import cmatha print cmath sqrt a Output j Closing thoughtsIn this tutorial we have learnt how to calculate the square root of a number in Python by using the sqrt function the exponent operator the pow function and the cmath module If you need to work with whole numbers instead of floating point numbers math isqrt outputs the square as an integer and rounds down to the nearest whole number The sqrt function can also be used with libraries other than the “math library such as numPy a Python library used for working with arrays |
2021-12-13 12:35:55 |
海外TECH |
DEV Community |
Managing the Obscure Boundaries Between Development, QA, and DevOps |
https://dev.to/qamadness/managing-the-obscure-boundaries-between-development-qa-and-devops-2m6l
|
Managing the Obscure Boundaries Between Development QA and DevOpsAs technology has advanced so have the processes with IT organizations DevOps is fast becoming the pinnacle framework for software development companies with the promise increased business agility accelerated product delivery and higher product quality Moving away from the traditional waterfall approach that included labor intensive tasks such as manual software testing DevOps streamlines automates and shortens the development life cycle This has become a necessity in today s increasing competitiveness in the software app market The transition of software practices encompasses more than just process change or the adoption of different tools People sit at the heart of efficient processes and DevOps is built on the foundation of eliminating barriers between roles Modernized Characters in a Modern ProcessThe success of DevOps starts with a refreshed mindset regarding key roles within the software life cycle This involves having the right people with the right skills who are collectively willing to adapt communicate and collaborate This is vastly different from previous business models where development and QA resources would work in silos unaware of each other s roadblocks and often lacked clarity of the business requirements context Every role was distinct as work passed along the assembly line DevOps has transformed philosophies and responsibilities to achieve enhanced velocity DevelopmentBoth past and present processes start with development getting business requirements However in a DevOps environment these requirements are not in lengthy documents with a deadline that is several months in the future as you would find in a waterfall approach Development is planned in user stories with week sprints in which requirements are defined for delivery These requirements provide direction on how to build the software logic in the most efficient and practical way QAQuality assurance engineers keep their focus on software quality and use a combination of automated and manual testing while ensuring adherence to the initial business requirements Traditionally QA received a build from development at which point a series of testing began and could take up to weeks or more to complete Prior to receiving the build for testing QA had little if any interaction with the development stage Today QA is more aligned with development and it gets involved in the process from the beginning QA also embraces more test automation services that involve pre testing and post testing checks to achieve as much code coverage as possible Automation also requires a new skill set and standardization of testing environments DevOpsDevOps is the merging of development and operations which requires a change in both technology and culture Oftentimes organizations create DevOps as an aside to development and operations which defeats the purpose Companies must be prudent with the adoption of DevOps because new roles labels and titles don t necessarily bring about real change The DevOps methodology integrates the functions of software development and operations within the same cycle The goal is to improve collaboration across teams and deliver better experiences internally and to the end customer To achieve this a high level of collaboration is needed between the major stakeholders in the software development process being dev QA and operations How do Development and Quality Assurance fit in DevOps In DevOps developers and QA both play equally important roles In fact every actor in the process is responsible for the timeliness and quality of deliverables This makes the boundaries of roles porous While titles such as developer and QA are the same their scope in roles has increased From the outset of defining requirements test cases are created at the development and QA level The Developer s Role in DevOpsDevelopment now has a greater emphasis on automating the testing build and deployment tasks and a more intimate knowledge of the continuous integration cycle And it requires a more forward thinking attitude where developers need to consider dependencies and environments that go beyond the individual s pc Gone are the days of using the old excuse of “well it works on my machine After building the code and doing initial tests developers then promote the code package to the next environment which is typically the testing environment For developers it is no longer just creating code from requirements They need to encapsulate testing methods and provide continuous monitoring as well Engagement with testing is more extensive than before which has been a catalyst for incorporating automated testing Having developers think like testers is an added step in ensuring better product quality The QA Role in DevOpsDevOps QA has transitioned to a more strategic role in helping a team build robust software As the developers roles and mindset has changed so has that of DevOps QA engineer They need to be able to test an application using a range of tools while also being capable of fixing code Although not every aspect of testing can be automated it s not practical to stick to manual testing and still be agile Automation is crucial for everyday testing and for automating regression testing And if QA struggles to adopt this change the quality of the product will degrade and bottlenecks will accumulate in the software life cycle A QA strategy using best practices is highly relevant and key to achieving superior product quality What Are the Benefits and Difficulties in DevOps Management When implemented and adopted efficiently considerable benefits can be achieved with DevOps However it is not a silver bullet for every organization and every team It doesn t come without its challenges Here are notable advantages as well as the difficulties that come managing an effective DevOps process BenefitsProduct quality is much higher with test cases defined early on and testing points added in the development process Additionally automation constantly checks new code hasn t impacted core functionality or broken core dependencies Product stability allows teams to spend less time on support and security issues A perpetual cycle of ongoing bugs and fixes is frustrating for dev and QA as well as the customer Stability means that the DevOps team can spend more time on developing new features and skilling up on new technologies Enhanced expertise means the product improves and staff turnover remains low Deployment speed increases so developers are able to deploy updates or new features more regularly as opposed to developing enhancements once a month or twice a year If all the above are realized throughout the process the customer satisfaction rate increases with having a stable feature rich app ChallengesHaving a control and command leadership style doesn t fit in well with a true DevOps environment It relies on more than one mind to solve create and deliver Teams are connected and should encourage innovation and inspiration while creating a space where people feel safe to share thoughts and engage in creating solutions Poor product management strategy can hinder speed reliability and consistency This would be the antithesis of what DevOps is about as it s meant to give companies the competitive edge with great software delivery A solid strategy involves planning out new features knowing the customers needs as well as the competitive landscape It is important to reduce risk while maximizing results Poor design and development can make or break efforts There have been significant changes in software engineering and it s important to stay abreast of these changes Examples include having an updated technology stack moving away from monolithic architectures and exploring and utilizing microservices Managing outdated and cumbersome software doesn t lend itself well to a DevOps environment Tips for Efficient ManagementTo be successful in DevOps you need a good foundation to keep all parts of the process moving while having transparency across the environment Some useful tips can help key players ensure efficiency in managing the DevOps process Focus on communication Having a pool of resources working in a fast and adaptable environment needs proper communication and visibility of all moving parts Never underestimate the importance of testing Testing across different environments and configurations is critical to product stability Size does matter Small cycles small projects and small teams foster agility trust and operational efficiency Stay realistic but relevant While it may be tempting to throw too much at a DevOps process too quickly it can backfire Strive for constant improvement but make sure there is sufficient time without putting unnecessary pressure and expectations on the team ConclusionDevOps is the future of software development companies It brings teams together to support each other Roles overlap but it allows for the creation of multidisciplinary teams while nurturing the talent of high performers When DevOps works well it works great People at all levels of the company benefit when everyone can deliver the best results to the customer DevOps is a journey and the benefits are not realized overnight Knowing that teams can be multiskilled allows for a shared understanding and increased collaboration and innovation DevOps and the roles within highlight it s an environment of continuous improvement for people and product |
2021-12-13 12:34:13 |
海外TECH |
DEV Community |
JavaScript indexedDB: Simple object storage |
https://dev.to/101samovar/javascript-indexeddb-simple-object-storage-2c23
|
JavaScript indexedDB Simple object storageIn this article we are going to arrange a simple persistent object storage with indexedDB IndexedDB is a key value client side database In this database JavaScript objects can be saved So let s pretend that there s some site and there is a list of objects that should be saved on the client We need to migrate this list of objects to persistent object storage And then we need to get the list back First of all we need to open the database Because the process of opening is asynchronous we will use the Promise object To open the database we use the Open method of the indexedDB property of the window object This method has two params the database name and the version of the database This method returns the request object The request object has “onsuccess “onerror and “onupgradeneeded events If the database does not exist the “onupgradeneeded event will be fired And in this event handler we need to create the object storage On success we resolve the promise with a database object On error we reject the promise To save to or to get from the database we need to use the “transaction method of the database object This method has two params “storage name and “mode To save we need to use “readwrite mode To get objects the “readonly mode will do So let s create the “migrate method This method will save all objects from the list to the database To save an object we need to get the object store database transaction objectStore Now we can use the “add method of the store object To get the objects from the database let s create a getList method Database transaction objectStore getAll We will get all the items in the onsuccess handler results Let s check it out Migrate the list to the database and then get the list const list name Mike hp gld name Sam hp gld name Dan hp gld const DB new Promise resolve reject gt const request window indexedDB open data request onupgradeneeded gt request result createObjectStore list autoIncrement true request onsuccess gt resolve request result request onerror e gt reject e const migrate list gt DB then db gt const store db transaction list readwrite objectStore list list forEach item gt store add item const getList gt DB then db gt const request db transaction list objectStore list getAll request onsuccess e gt console log e target result migrate list getList I hope you found this article useful if you need any help please let me know in the comment section See you next time Have a nice day Subscribe to our channel |
2021-12-13 12:29:58 |
海外TECH |
DEV Community |
Understanding the basics of Story Grooming |
https://dev.to/rebecca/understanding-the-basics-of-story-grooming-4c79
|
Understanding the basics of Story Grooming What is Agile Backlog Grooming Backlog grooming is an agile product team event to make sure that the backlog is sufficient In essence the product team ensures that there are enough user stories in the product backlog which are prepared for spring planning Backlog grooming is also known as backlog refinement or backlog management or story grooming or story time These events or sessions are recurring in nature Having backlog grooming sessions regularly helps to make sure that the team prioritizes the right stories This way the team has a good grasp over the complete product backlog In these backlog refinement sessions the product owners or managers explain the purpose of the prioritized stories to the team The team is then in a position to be better aligned about the project purpose The things that the backlog grooming session tries to achieve are as follows Refining the leftover user stories and removing the ones which are no longer relevant Adding new stories based on the needs that are newly discovered Breaking bigger items into smaller easier tasks orsplitting user stories Prioritizing the ones which are to be tackled first Discuss the user stories with the team and answer any questions which arise so that there are no doubtsAdd contextual info and acceptance criteria to the upcoming user storiesOccasionally the scrum master estimates the user stories and assigns story points in these sessions Corrections to the existing estimates based on the new info available All these items together work in shaping up the tasks and objectives for the next session The key team stakeholders attend these backlog grooming sessions To keep the sessions running well too many people aren t a part of the meetings However all the important stakeholders are supposed to be a part of it These include the core team representatives product managers owners and QA among others Origins of Story GroomingNow that you know what Story grooming is let s understand how the practice came into being The earliest known use of the term backlog grooming was on a Yahoo group in In that year Mike Cohn one of the well known contributors of the scrum world spoke of it on Yahoo Specifically this happened in the Yahoo Group Scrum Development Mailing List However at this time the term wasn t well defined and didn t come into use A few years later in Kane Mar a scrum trainer gave one of the first formal descriptions of the term He called it story time and recommended that these should be implemented as regular meetings in Scrum teams Three years after this in Backlog grooming became a part of the Scrum guide Since then it s been recognized as an official element of the agile scrum framework Who is a part of the Story Grooming sessions We ve already mentioned in passing who is a part of these sessions above However let s understand the details here Who leads Backlog Grooming sessions Usually the product owner or product manager facilitates the backlog refinement events It s not limited to them though and the Scrum master a project manager or another member from the team also occasionally leads the events Whoever leads the sessions has to assume the following responsibilities Schedule the meeting and invite the right people also make sure that they attend Ensure that the team doesn t go off topic and is focused on the objectives In case the team is stuck too long on a particular topic then moving the conversation forward Communicating to the team after the session is over about the necessary things Generally these sessions take about minutes to an hour So the lead has to also try to ensure that the meetings don t take too much time They have to try to keep it short and efficient Who attends the Backlog Refinement sessions The story grooming sessions are collaborative discussions For this it is necessary to get inputs from various team members and to look at things from all viewpoints At the same time it s necessary to not overcrowd the meeting and invite only the critical members So on a broad scale these are the roles that attend the backlog grooming sessions The facilitator or the lead as mentioned in the earlier section The product owner and or other representatives of the product team The entire delivery team or key representatives if it s too large QA reps Preparation for efficient Story GroomingThe following is an idea on how to prepare for the agile story grooming sessions and what to include in them Keep the strategic objectives of the project in mindAt any point of the project the ones working on it should keep in mind what the main goals of the project are So even when preparing for the grooming sessions the high level objectives of the project should be kept in mind Everything should then be aligned accordingly Involve the right people in the processWe ve mentioned above who the ideal people in the story grooming process are You need to decide who are the best people to invite if you re the one conducting the meeting Sync up with stakeholdersTalk to internal and external stakeholders at regular intervals to get feedback You do not need to invite them to the grooming sessions but make sure to keep them updated Review work done and metricsSince your team s working style could evolve over time it s good to get an idea of what to keep and what to discard Tracking and reviewing performance metrics helps with this Best practices for Story GroomingThe story grooming sessions aim to have a prioritized set of user stories for the team to work on Agile practitioners usually try to obtain a DEEP product backlog as a result of these sessions This is what DEEP stands for D Detailed Appropriately Items should be stated in very clear terms so that the team and everyone involved have no issues in understanding E Estimated Teams should draw a good estimate of the work needed to deliver backlog items which are at the top E Emergent The agenda isn t concrete and changes over time So it should be easy to accommodate these changes P Prioritized Items are ranked according to their value and then taken up in order Originally published here P S If you liked the above also check out the following Indirect MarketingEquity Customer Equity Top of Mind Awareness TOMA Weighted Scoring ModelMedia Mix Modeling |
2021-12-13 12:26:56 |
海外TECH |
DEV Community |
Release 0.4: Final step |
https://dev.to/nguyenhung15913/release-04-final-step-3o91
|
Release Final step OverviewAs I mentioned in my last blog post I finished the Telescope s issue and my PR got accepted So I spend this week only for the second issue IssueI had a hard time finding the design for the leaderboard There were so many templates and also the design should match the whole website in general especially the background of the site This is the current temporary leaderboard they have After hours I came up with a few designs but this one like the most I send the design to Discord but none of the owners replied to me to I just started working on the leaderboard page Their project was a ReactJs project so setting everything up for me was not hard However there were like thousands lines of code and the way they write their code was confusing to me My solution was just finding the right components for the leaderboard and where it was located so that I did not get distracted by something else Luckily after minutes I found that but I had to write a bunch of console log to know where the component was ProgressI started by creating a new branch First thing I did was keeping the elements inside the JS file intact I only added the className so that I could access it from the css file To know if my class were already applied to the elements I added some background color After that I spend some times to understand the React code and how they displayed the data to front end Another issue that just came to me There were the gaps between the tr elements from the design I thought I just needed to add the margin to it But it was not that easy adding margin did work I was really surprised and started to do some research about table element The solution was separating the elements and adding the spacing for it To match the design I needed to add background for each row The reason I named my class like color color was utilizing the index parameter from the map function Also we cannot add the border radius for tr so I needed to add this feature to td instead tr td first child border top left radius px border bottom left radius px tr td last child border top right radius px border bottom right radius px tr th first child border top left radius px border bottom left radius px tr th last child border top right radius px border bottom right radius px I also had to remove some old CSS styling of the owner And this is the final result You will see I modify the Go to Page so it would be neat and more beautiful Also I added a yellow cup from material ui for the top player This will make my design more interesting Note that only the cell that has value will have the cup icon Pull requestAfter that I submitted a PR It did not go smoothly because there were some request changes from the owner He would like me to modify the colors and there was a bug related to displaying If more than players are displayed the rest will be transparent At the moment I am still working on the changes to my PR and I am pretty sure that everything will be good because I know how to handle this problem Last thoughtThis final release was very useful I have learnt a lot of things from understanding a completely new style of writing React code Also I learnt new feature of table elements in CSS and this will be great for me in my future project that would use table |
2021-12-13 12:20:57 |
海外TECH |
Engadget |
The Morning After: Peloton's unfortunate cameo in the 'Sex and the City' reboot |
https://www.engadget.com/the-morning-after-pelotons-unfortunate-cameo-in-the-sex-and-the-city-reboot-121514275.html?src=rss
|
The Morning After Peloton x s unfortunate cameo in the x Sex and the City x rebootWarning If you re planning to watch the Sex and the City revival And Just Like That avert your eyes for this intro ーspoilers are incoming Peloton probably wished everyone did just that Yes the ubiquitous expensive exercise bike featured in a major plotline in the first episode of the new series which itself isn t particularly shocking The shock came when Carrie s husband Mr Big died of a heart attack after he finished a minute Peloton class on the company s Bike with real instructor Jess King in a fictional role as…a Peloton instructor The plotline hit Peloton s stock price over the weekend ーsomething the company has seen over the last year as many folks head back to their gyms or perhaps like me just nbsp don t want to stay in their homes to exercise anymore Peloton was also caught unawares ーthe company knew HBO would feature a Peloton in the episode and that King would portray an instructor but quot confidentiality reasons quot prevented it from learning it would kill off a character It released a statement saying that Big s death was probably due to his “extravagant lifestyle ーthe guy was smoking a cigar earlier in the episode and had previously suffered a heart attack I doubt the result of Peloton s appearance on the show will be a net negative ーit s arguably the most talked about twist from the premiere of a highly anticipated TV show It s definitely a test of the adage Is any publicity good publicity ーMat SmithNASA s new sleeping bags could prevent eyeball squashing on the ISSIt sucks fluid out of astronaut s heads and toward their feet More than half of NASA astronauts that went to the International Space Station ISS for more than six months have developed vision problems Researchers from UT Southwestern Medical Center have developed a sleeping bag that could prevent or reduce those problems Fluids tend to accumulate in the head when you sleep but on Earth gravity pulls them back down into the body when you get up In the low gravity of space though that fluid collects applying pressure on the eyeball leading to vision impairment The researchers have made a sleeping bag that effectively sucks fluid out of astronauts heads Continue reading Someone briefly compromised the Indian prime minister s Twitter accountIt s the latest attempt to hijack a major politician s social media profile An intruder temporarily seized control of Indian Prime Minister Narendra Modi s Twitter account over the weekend The attacker tweeted a claim that India had adopted Bitcoin as legal tender and pointed users to a broken scam website For followers of Modi s account ーor anyone familiar with his stance on cryptocurrency ーit was obvious something had gone wrong Continue reading Amazon explains outage that took out a large chunk of the internetThe company also promised an easier way to track failures in the future Amazon has explained the Web Services outage that knocked parts of the internet offline last week As CNBC reports Amazon revealed an automated capacity scaling feature led to quot unexpected behavior quot from internal network clients Devices connecting that internal network to AWS were swamped stalling communications The AWS division has temporarily disabled the scaling that led to the problem and won t switch it back on until there are solutions in place A fix for the glitch is coming within two weeks Amazon said Continue reading How a VR startup took users money and ran to the metaverseAnd it s still going on The tech word of is definitely “metaverse crowbarred into the collective conscious when Mark Zuckerberg revealed Facebook s new name Meta Metaworld founder Dedric Reid has been selling his interpretation of the metaverse for the past five years His vision is a decentralized space a “ square mile vast scale simulation owned by community and run by community according to Reid But the story of Metaworld is one of patchy crowdfunding communication silence fake promotional assets and some understandably angry backers To borrow from The Matrix read Senior Editor Jessica Conditt s full report to see how deep the rabbit hole goes Continue reading LG s design focused OLED Evo TV has a motorized coverIt s meant to blend in with high end furniture and works of art nbsp LGI mean I like how it looks but I d prefer the Bang and Olufsen set with wings…Continue reading The biggest news stories you might have missedNew IBM and Samsung transistors could be key to super efficient chips Halo Infinite adds a dedicated Slayer playlist on December thRecommended Reading The real cost of the global chip shortageThe FAA will give Bezos and Branson its last astronaut wingsSony reportedly planned to bring PlayStation Now to phones |
2021-12-13 12:15:14 |
海外ニュース |
Japan Times latest articles |
Japan, U.S. and Australia to build 5G networks in South Pacific |
https://www.japantimes.co.jp/news/2021/12/13/business/5g-japan-us-australia/
|
Japan U S and Australia to build G networks in South PacificThe trilateral cooperation on the G network development will be achieved through the Pacific operations of Digicel Group an international mobile phone network provider |
2021-12-13 21:40:32 |
ニュース |
BBC News - Home |
Covid: First UK death recorded with Omicron variant |
https://www.bbc.co.uk/news/uk-59639007?at_medium=RSS&at_campaign=KARANGA
|
booster |
2021-12-13 12:42:11 |
ニュース |
BBC News - Home |
Covid: Website crashes as thousands try to book boosters |
https://www.bbc.co.uk/news/uk-59635396?at_medium=RSS&at_campaign=KARANGA
|
government |
2021-12-13 12:39:24 |
ニュース |
BBC News - Home |
Boris Johnson: I broke no rules over Christmas parties |
https://www.bbc.co.uk/news/uk-politics-59638491?at_medium=RSS&at_campaign=KARANGA
|
boris |
2021-12-13 12:41:40 |
ニュース |
BBC News - Home |
Baltic Sea: Two feared dead as British and Danish ships collide |
https://www.bbc.co.uk/news/world-europe-59633882?at_medium=RSS&at_campaign=KARANGA
|
vessel |
2021-12-13 12:02:06 |
ニュース |
BBC News - Home |
Working-from-home: 'We get more done in the office' |
https://www.bbc.co.uk/news/business-59634245?at_medium=RSS&at_campaign=KARANGA
|
office |
2021-12-13 12:26:48 |
ニュース |
BBC News - Home |
Cabaret: Critics make song and dance over Eddie Redmayne musical |
https://www.bbc.co.uk/news/entertainment-arts-59635801?at_medium=RSS&at_campaign=KARANGA
|
reviews |
2021-12-13 12:06:26 |
ニュース |
BBC News - Home |
Omicron: How do you detect it? |
https://www.bbc.co.uk/news/health-59460252?at_medium=RSS&at_campaign=KARANGA
|
analysis |
2021-12-13 12:18:50 |
ニュース |
BBC News - Home |
Champions League last 16 to be redrawn after error |
https://www.bbc.co.uk/sport/football/59637671?at_medium=RSS&at_campaign=KARANGA
|
administrative |
2021-12-13 12:50:12 |
ニュース |
BBC News - Home |
Rangers to face Dortmund in Europa League |
https://www.bbc.co.uk/sport/football/59628726?at_medium=RSS&at_campaign=KARANGA
|
knockout |
2021-12-13 12:30:36 |
北海道 |
北海道新聞 |
お遍路の歩行、ロボットで支援 香川・善通寺市で実証実験 |
https://www.hokkaido-np.co.jp/article/622544/
|
善通寺市 |
2021-12-13 21:19:00 |
北海道 |
北海道新聞 |
NHK党斉藤氏 来夏参院選立候補表明 |
https://www.hokkaido-np.co.jp/article/622537/
|
違反 |
2021-12-13 21:17:22 |
北海道 |
北海道新聞 |
カーリング・常呂ジュニア、初の日本代表 世界選手権最終予選へ 吉村は一歩及ばず |
https://www.hokkaido-np.co.jp/article/622542/
|
世界選手権 |
2021-12-13 21:15:00 |
北海道 |
北海道新聞 |
「3密」なき初詣へ知恵絞る小樽の神社 縁起物販売前倒し/獅子舞演舞を中止 |
https://www.hokkaido-np.co.jp/article/622534/
|
小樽市内 |
2021-12-13 21:08:00 |
北海道 |
北海道新聞 |
後志の新規感染者ゼロ 新型コロナ |
https://www.hokkaido-np.co.jp/article/622532/
|
新型コロナウイルス |
2021-12-13 21:06:00 |
北海道 |
北海道新聞 |
忘・新年会「しない」7割 石狩管内企業アンケート 大人数敬遠/予約2~4人中心 |
https://www.hokkaido-np.co.jp/article/622531/
|
石狩管内 |
2021-12-13 21:04:00 |
北海道 |
北海道新聞 |
サケトバ、寒いからうまい せたなで加工最盛期 |
https://www.hokkaido-np.co.jp/article/622530/
|
酒のつまみ |
2021-12-13 21:04:00 |
コメント
コメントを投稿