AWS |
AWS Government, Education, and Nonprofits Blog |
Transforming radiology workflows with clinical decision support powered by AWS |
https://aws.amazon.com/blogs/publicsector/transforming-radiology-workflows-clinical-decision-support-powered-aws/
|
Transforming radiology workflows with clinical decision support powered by AWSThe healthcare technology HealthTech startup contextflow uses AWS to power its clinical decision support system that can help radiologists diagnose patients faster and with more accuracy The software can search retrieve and compare historical diagnostic data to help guide radiologists in writing reports It is currently being utilized to analyze lung computed tomography CT scans for interstitial lung diseases ILD chronic obstructive pulmonary disease COPD and lung cancer screenings |
2022-06-16 14:13:08 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
ホテリングT2法による異常検知 |
https://qiita.com/nijigen_plot/items/77c1803820df6b4df08a
|
正規分布 |
2022-06-16 23:24:14 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【Django】更新ページの作り方 |
https://qiita.com/div_naoki/items/0ac6292d9523f15e20bf
|
django |
2022-06-16 23:09:12 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【AppleScript】【JavaScript for Automation(JXA)】QuickTime Playerの画面収録を時間指定で実行するスクリプトについて |
https://qiita.com/7rikazhexde/items/811450f6c0979399ce84
|
applescript |
2022-06-16 23:52:01 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【Angularアプリケーション開発 #7】選択したデータの詳細を表示する。 |
https://qiita.com/mojapico/items/7a49aa53308375d2baba
|
angular |
2022-06-16 23:46:02 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
EC2からmysqlでRDSに接続する |
https://qiita.com/FujiKoji/items/4e5e225098aea0732bca
|
mysql |
2022-06-17 00:00:06 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Docker内のPHP7.4からMS SQLServerに接続する |
https://qiita.com/iroris_qiita/items/72b9251808b055ed18a1
|
docker |
2022-06-16 23:40:50 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
Google Cloud アップデート (6/9-6/15/2022) |
https://qiita.com/kenzkenz/items/c0726f1da7af7d0936f5
|
datalosspreventionjunl |
2022-06-16 23:22:14 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
Git コマンド |
https://qiita.com/ryo-he/items/0eaa151ad9613f679393
|
開発 |
2022-06-16 23:35:04 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
リプライ機能を実装するには?Day2 |
https://qiita.com/harukioo/items/dd1c60244b4ad3e3182c
|
twitter |
2022-06-16 23:52:59 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
TECH CAMP11日目 ~中間テーブル~ |
https://qiita.com/yuki8634/items/2e41b12620eb4fc0aa16
|
techcamp |
2022-06-16 23:25:22 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
DBってどんな種類があるの?Day2 |
https://qiita.com/harukioo/items/20955631f106ed68fdeb
|
twitter |
2022-06-16 23:07:30 |
海外TECH |
MakeUseOf |
7 Cryptocurrencies That Will Actually Protect Your Privacy |
https://www.makeuseof.com/cryptocurrencies-that-protect-privacy/
|
ethereum |
2022-06-16 14:45:14 |
海外TECH |
MakeUseOf |
Why Did TikTok Succeed Where Vine Failed? |
https://www.makeuseof.com/why-did-tiktok-succeed-but-vine-failed/
|
tiktok |
2022-06-16 14:31:14 |
海外TECH |
MakeUseOf |
How to Prevent Others From Changing the Color and Appearance Settings on Windows |
https://www.makeuseof.com/windows-lock-color-appearance-settings/
|
How to Prevent Others From Changing the Color and Appearance Settings on WindowsGot Windows looking just like you want it to Here s how to stop other people from tinkering with your finely tuned Windows theme |
2022-06-16 14:15:14 |
海外TECH |
DEV Community |
Implement Stack using Queues |
https://dev.to/theabbie/implement-stack-using-queues-al3
|
Implement Stack using QueuesImplement a last in first out LIFO stack using only two queues The implemented stack should support all the functions of a normal stack push top pop and empty Implement the MyStack class void push int x Pushes element x to the top of the stack int pop Removes the element on the top of the stack and returns it int top Returns the element on the top of the stack boolean empty Returns true if the stack is empty false otherwise Notes You must use only standard operations of a queue which means that only push to back peek pop from front size and is empty operations are valid Depending on your language the queue may not be supported natively You may simulate a queue using a list or deque double ended queue as long as you use only a queue s standard operations Example Input MyStack push push top pop empty Output null null null false ExplanationMyStack myStack new MyStack myStack push myStack push myStack top return myStack pop return myStack empty return FalseConstraints lt x lt At most calls will be made to push pop top and empty All the calls to pop and top are valid Follow up Can you implement the stack using only one queue SOLUTION class MyStack def init self self stack def push self x int gt None self stack append x def pop self gt int if not self empty return self stack pop def top self gt int if not self empty return self stack def empty self gt bool return len self stack Your MyStack object will be instantiated and called as such obj MyStack obj push x param obj pop param obj top param obj empty |
2022-06-16 14:30:37 |
海外TECH |
DEV Community |
How to optimize image upload in Appwrite and Vuejs |
https://dev.to/hackmamba/how-to-optimize-image-upload-in-appwrite-and-vuejs-4og5
|
How to optimize image upload in Appwrite and VuejsImage upload widgets allow users to preview images they upload to an application or database via forms Google Drive etc These widgets enable the user to decide to go through or delete the images chosen for submission What we will be buildingThis post discusses uploading images using the Cloudinary image upload widget and storing the resulting image URL on the Appwrite database to create an e commerce product catalog GitHub URL PrerequisitesTo get the most out of this project the following are required A basic understanding of CSS JavaScript and Vue js Docker Desktop is installed on the computer run the docker v command to verify that we have Docker Desktop installed if not install it from the Get Docker documentation An Appwrite instance running on our computer Check out this article to create a local Appwrite instance we will use Appwrite s robust database and Realtime service to manage our application Setting up our Vue js applicationWe install the Vue CLI by running these terminal commands to create a new Vue project npm install g vue cli OR yarn global add vue cliAfter installing the Vue CLI we navigate to our preferred directory and create a new project vue create lt name of our project gt We change the directory to the project and start a development server with npm run serveTo see the app we go to http localhost Installing dependenciesInstalling Tailwind CSSTailwind CSS is a utility first CSS framework that allows us to rapidly create user interfaces for web applications To install Tailwind CSS in our project we run these terminal commands npm install D tailwindcss latest postcss latest autoprefixer latest npx tailwindcss init pThese commands create two files in the root directory of our project tailwind config js and postcss config js In our tailwind config js we add the paths to all our template files with this code below module exports purge index html src vue js ts jsx tsx content theme extend plugins Next we add the tailwind directives in our src index css file tailwind base tailwind components tailwind utilities Installing AppwriteAppwrite Appwrite is an open source end to end back end server solution that allows developers to build applications faster To use Appwrite in our Vue application we install the Appwrite client side SDK for web applications npm install appwrite Creating a new Appwrite projectDuring the creation of the Appwrite instance we specified what hostname and port we use for our console The default value is localhost We go to localhost and create a new account to see our console On our console there is a Create Project button Click on it to start a new project Our project dashboard appears once we have created the project At the top of the page there is a Settings bar Click it to access the Project ID and API Endpoint We copy the Project ID and API Endpoint which we need to initialize the Appwrite Web SDK We create an init js file in our project s root directory to initialize the Appwrite Web SDK with the following code import Appwrite from appwrite export const sdk new Appwrite sdk setEndpoint http localhost v Replace this with your endpoint setProject projectID Replace this with your ProjectIDCreating an anonymous user sessionAppwrite requires a user to sign in before reading or writing to a database to enable safety in our application However they allow us to create an anonymous session to bypass that policy for simple projects We ll do so in our init js file import Appwrite from appwrite export const sdk new Appwrite sdk setEndpoint http localhost v Replace this with your endpoint setProject projectID Replace this with your ProjectID Create an anonymous user session sdk account createAnonymousSession then response gt console log response error gt console log error Creating the collection and attributesNext we set up our database that will store our order status In the Appwrite web Console we click on Database on the left side of the dashboard We create a collection in our database tab by clicking on the Add Collection button This action redirects us to a Permissions page At the Collection Level we want to assign a Read Access and Write Access with a role all value We can modify the permissions to specify who has access to read or write to our database On the right of the Permissions page we copy the Collection ID which we need to perform operations on the collection s documents Next we go to our Attributes tab to create the properties we want a document to have We create three string attributes productName productPrice and productImage Creating our product creation pageWe create our product creation page in the App vue file This product creation page will contain two sections the first includes a form to collect product information and the second section lists the products in our database Here we ll create a form to submit the product s name price and image to the database We add the following code snippet in the index js file to create the form styled with Tailwind CSS lt template gt lt div class product catalog gt lt div class product container mt md mt md col span gt lt div class shadow sm rounded md sm overflow hidden gt lt div class px py bg white space y sm p gt lt div gt lt label for price class block text sm font medium text gray gt Product Name lt label gt lt div class mt relative rounded md shadow sm gt lt input type text name price v model productName class focus ring indigo focus border indigo block w full pl pr sm text sm border gray rounded md placeholder product name gt lt div gt lt div gt lt div gt lt label for price class block text sm font medium text gray gt Price lt label gt lt div class mt relative rounded md shadow sm gt lt div class absolute inset y left pl flex items center pointer events none gt lt span class text gray sm text sm gt lt span gt lt div gt lt input type text name price v model productPrice class focus ring indigo focus border indigo block w full pl pr sm text sm border gray rounded md placeholder gt lt div gt lt div gt lt button nclass bg blue hover bg blue text white font bold py px rounded gt Upload files lt button gt lt div className px py bg gray text right sm px gt lt button type button className cursor inline flex justify center py px border border transparent shadow sm text sm font medium rounded md text white bg indigo hover bg indigo focus outline none focus ring focus ring offset focus ring indigo gt Save lt button gt lt div gt lt div gt lt div gt lt div gt lt div gt lt template gt In the style section of our App vue file we build on the Tailwind CSS styles with these CSS styles lt style gt product container margin left width lt style gt Here s how our product creation form looks Embedding the Cloudinary Upload widgetIn this project the Upload File button opens up the Cloudinary image upload widget to allow us to upload images to the Appwrite database To understand how to embed the Cloudinary image upload widget in our project check out this article Add interaction with our databaseWhen a user clicks on the save button we want to store the product items on the Appwrite database and list the stored items in our application Storing the product information in the databaseWe store information on the Appwrite database as documents In the script section of our App vue file we create four variables in the data object lt script gt export default name App data return productName productPrice productImage products lt script gt The variables hold the following information The productName variable holds the name of the product to be stored in the databaseThe productPrice variable contains the price of the product to be stored in the databaseThe productImage variable holds the image URL of the product to be stored in the databaseThe products variable is an array of all the products stored in the databaseNext we import the sdk instance from our init js file into our App vue file import sdk from init Then we create a handleProductSubmit function in our App vue file to create documents on our database handleProductSubmit async function try await sdk database createDocument collectionID unique productName this productName productPrice this productPrice productImage this productImage alert your job item has been successfully saved this productName this productPrice this productImage catch error console log error The handleProductSubmit function does the following Creates a new document using Appwrite s createDocument function while passing the collection ID and attribute values as parametersAlerts us when we have successfully saved the document then cleans out the information in the local state variablesLogs any error encountered during document creation to our consoleListing the productsIn the App vue file we create a listProducts function to fetch the product information stored in our database listProducts async function try let response await sdk database listDocuments aeacb this products response documents catch error console log error The listProducts function does the following Lists all the documents in the collectionSaves the documents in the products arrayLogs any error encountered to the consoleWe then call the listProducts function in our handleProductSubmit function and the mounted lifecycle mounted function this listProducts mounted function handleProductSubmit async function try this listProducts catch error console log error Deleting the productsNext we create a handleDelete function in our App vue file to delete any product and its information from our Appwrite database handleDelete async function documentid try await sdk database deleteDocument collectionID documentid alert item have been deleted successfully this listProducts catch error console log error This handleDelete function does the following Deletes a document from our Appwrite database collection with the deleteDocument function This deleteDocument function finds the document using its document ID and collection ID parameter Alerts the user when we have deleted a document successfully Lists the remaining product on our database using the listProducts function Logs any error encountered during document deletion After creating our functions here is how our App vue file looks Next we pass the productName and productPrice variables to our form s input elements lt input type text name price v model productName class focus ring indigo focus border indigo block w full pl pr sm text sm border gray rounded md placeholder product name gt lt input type text name price v model productPrice class focus ring indigo focus border indigo block w full pl pr sm text sm border gray rounded md placeholder gt Finally we pass the handleProductSubmit function to our Save button lt button type button click handleProductSubmit className cursor inline flex justify center py px border border transparent shadow sm text sm font medium rounded md text white bg indigo hover bg indigo focus outline none focus ring focus ring offset focus ring indigo gt Save lt button gt NOTE We use a button with a type button to override the button s default submit behavior After completing the steps thus far here is how our App vue file looks Creating the product listing user interfaceTo create the user interface for displaying the products stored on the Appwrite database we paste this code into our App vue file lt div className bg white gt lt div className max w xl mx auto py px sm py sm px lg max w xl lg px gt lt h className sr only gt Products lt h gt lt div className grid grid cols gap y sm grid cols gap x lg grid cols xl grid cols xl gap x gt lt a href v for product in products key product productName className group gt lt div className w full aspect w aspect h bg gray rounded lg overflow hidden xl aspect w xl aspect h gt lt img src product productImage alt Tall slender porcelain bottle with natural clay textured body and cork stopper className w full h full object center object cover group hover opacity gt lt div gt lt h className mt text sm text gray gt product productName lt h gt lt p className mt text lg font medium text gray gt product productPrice lt p gt lt button type button className cursor inline flex justify center py px border border transparent shadow sm text sm font medium rounded md text white bg indigo hover bg indigo focus outline none focus ring focus ring offset focus ring indigo click handleDelete product id gt Delete lt button gt lt a gt lt div gt lt div gt lt div gt In the code block above we Loop through the products array to render each product Pass in the productName productPrice and productImage variables on the products array Pass the handleDelete function and document ID parameter to a Click event listener on the Delete button Here is how the App vue file looks Fill out the form to see how the product catalog looks ConclusionThis article discussed managing optimized image upload with Cloudinary and storing the images on an Appwrite database Using this information we created a product catalog You can modify the fields to accommodate more product information ResourcesHere are some resources that might be helpful Uploading Vue Files and Rich Media in Two Easy StepsCreate a local Appwrite instance in stepsDatabase API |
2022-06-16 14:25:57 |
海外TECH |
DEV Community |
How not to write clean code in React? 🧹 |
https://dev.to/avneesh0612/how-not-to-write-clean-code-in-react-4b7p
|
How not to write clean code in React IntroductionWassup everyone long time no see Today we will see a few ways to not clean code in React let s jump right into it ways to not write clean code Not use a linterWho needs a linter to keep good code styles and keep the code clean when you can define the rules as you go Add everything in one fileJust put everything in one file so you don t need to create many different files and components and can have s of lines in one file The compilation build time will also be very small if you use just a single file Write duplicate codeWhy reuse variables and components when you can copy paste the same code over and over again and if you need to change one small thing then spend a ton of time adjusting it everywhere So productivity Have unused imports variables everywhereWhy care to delete the unused variables and import them when they can stay where they are and increase your app bundle size Prop drillingJust keep passing props components deep because who wants to use a tool to manage state properly Not destructure objectsWho cares about destructuring objects keep doing object a object b everywhere Not using typescriptWho needs to use typescript when you can pass a number for name somewhere and string for the same variable somewhere ️ Not using enumsWho doesn t love typos Why use enums when you can make a typo and mess up your entire code base and pull your hair for days to find the error after breaking production Use random names for functions variables componentsWhy waste time thinking about a great function variable component name use a random name and save time ConclusionI hope you were able to understand how not to write clean code now it is up to you to choose if you wanna write good code or bad code That s it for this one ️ Useful linksHow to not become a better developerConnect with me |
2022-06-16 14:15:04 |
海外TECH |
DEV Community |
Sum of Digits in Base K |
https://dev.to/theabbie/sum-of-digits-in-base-k-4fc7
|
Sum of Digits in Base KGiven an integer n in base and a base k return the sum of the digits of n after converting n from base to base k After converting each digit should be interpreted as a base number and the sum should be returned in base Example Input n k Output Explanation base expressed in base is Example Input n k Output Explanation n is already in base Constraints lt n lt lt k lt SOLUTION class Solution def sumBase self n int k int gt int total while n gt total n k n n k return total |
2022-06-16 14:00:45 |
Apple |
AppleInsider - Frontpage News |
Amazon Prime Day is July 12 & 13 -- here's how to get the best deals |
https://appleinsider.com/articles/22/06/16/amazon-prime-day-is-july-12-13----heres-how-to-get-the-best-deals?utm_medium=rss
|
Amazon Prime Day is July amp here x s how to get the best dealsAmazon has officially announced that its annual Prime Day shopping event will take place on July and July Here are some tips to get the best deals Amazon Prime DayThe retail giant on Thursday announced the new dates for Prime Day in offering deals in at least countries later in the summer As is typically the event will see a wide range or products discounted from Amazon s own Echo devices to kitchen gadgets or power tools Read more |
2022-06-16 14:58:50 |
海外TECH |
CodeProject Latest Articles |
Advanced Pulumi on Azure |
https://www.codeproject.com/Articles/5335048/Advanced-Pulumi-on-Azure
|
building |
2022-06-16 14:39:00 |
海外科学 |
NYT > Science |
Black Death: A Clue to Where the Plague Originated |
https://www.nytimes.com/2022/06/15/health/black-death-plague.html
|
Black Death A Clue to Where the Plague OriginatedBy fishing shards of bacterial DNA from the teeth of bodies in a cemetery researchers found the starting point for the plague that devastated Eurasia they say |
2022-06-16 14:45:54 |
金融 |
RSS FILE - 日本証券業協会 |
PSJ予測統計値 |
https://www.jsda.or.jp/shiryoshitsu/toukei/psj/psj_toukei.html
|
統計 |
2022-06-16 16:00:00 |
金融 |
RSS FILE - 日本証券業協会 |
株券等貸借取引状況(週間) |
https://www.jsda.or.jp/shiryoshitsu/toukei/kabu-taiw/index.html
|
貸借 |
2022-06-16 15:30:00 |
ニュース |
BBC News - Home |
UK interest rates raised to 1.25% by Bank of England |
https://www.bbc.co.uk/news/business-61801362?at_medium=RSS&at_campaign=KARANGA
|
forecasts |
2022-06-16 14:31:51 |
ニュース |
BBC News - Home |
Boris Johnson put me in odious position, says ex-ethics adviser Lord Geidt |
https://www.bbc.co.uk/news/uk-politics-61827319?at_medium=RSS&at_campaign=KARANGA
|
standards |
2022-06-16 14:58:21 |
ニュース |
BBC News - Home |
Rwanda asylum plan: European court intervention was wrong, says Raab |
https://www.bbc.co.uk/news/uk-61822584?at_medium=RSS&at_campaign=KARANGA
|
human |
2022-06-16 14:34:28 |
北海道 |
北海道新聞 |
ロシア艦、千葉県沖へ南下 中国は津軽海峡通過 |
https://www.hokkaido-np.co.jp/article/694504/
|
千葉県沖 |
2022-06-16 23:21:00 |
北海道 |
北海道新聞 |
NY株、一時3万ドル割れ 1年5カ月ぶり、景気懸念 |
https://www.hokkaido-np.co.jp/article/694501/
|
聡志 |
2022-06-16 23:18:00 |
コメント
コメントを投稿