TECH |
Engadget Japanese |
2009年6月5日、低価格なのに高性能なCULVノート「Aspire Timelineシリーズ」が発売されました:今日は何の日? |
https://japanese.engadget.com/today-203048474.html
|
aspiretimeline |
2021-06-04 20:30:48 |
AWS |
AWS Machine Learning Blog |
Annotate DICOM images and build an ML model using the MONAI framework on Amazon SageMaker |
https://aws.amazon.com/blogs/machine-learning/annotate-dicom-images-and-build-an-ml-model-using-the-monai-framework-on-amazon-sagemaker/
|
Annotate DICOM images and build an ML model using the MONAI framework on Amazon SageMakerDICOM Digital Imaging and Communications in Medicine is an image format that contains visualizations of X Rays and MRIs as well as any associated metadata DICOM is the standard for medical professionals and healthcare researchers for visualizing and interpreting X Rays and MRIs The purpose of this post is to solve two problems Visualize and label DICOM … |
2021-06-04 20:48:39 |
AWS |
AWS Machine Learning Blog |
Protect PII using Amazon S3 Object Lambda to process and modify data during retrieval |
https://aws.amazon.com/blogs/machine-learning/protect-pii-using-amazon-s3-object-lambda-to-process-and-modify-data-during-retrieval/
|
Protect PII using Amazon S Object Lambda to process and modify data during retrievalRegulatory mandates audit requirements and security policies often call for data visibility and granular data control while using Amazon Simple Storage Service Amazon S for shared datasets Because data on Amazon S is often accessible by multiple applications and teams fine grained access controls should be implemented to restrict privileged information such as personally identifiable information … |
2021-06-04 20:04:08 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
pyenv備忘録 |
https://qiita.com/Yasushi-Shinohara/items/7d53618d70f50e83549e
|
project |
2021-06-05 05:11:05 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【Ruby on Rails Tutorial】HerokuにデプロイしたらApplication error[H10 (App crashed)]が発生したときの対処法 |
https://qiita.com/pensuke628/items/bec1cf5c714e9b14dfc6
|
【RubyonRailsTutorial】HerokuにデプロイしたらApplicationerrorHAppcrashedが発生したときの対処法はじめにRubyonRailsチュートリアルに沿って学習を進めていました。 |
2021-06-05 05:53:54 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Microsoft 認定 Azure Solutions Architect Expert (AZ-303/AZ-304) 受験メモ |
https://qiita.com/chacco38/items/da138e4e000e601d2645
|
評価も高いですし勉強素材の選択肢の一つとして検討してみても良いかも最後に繰り返しになりますが、Microsoft赤間氏がGitHubで公開してくれているFgCFFinancialgradeCloudFundamentalsのコンテンツはAzureを設計する上で重要なエッセンスがギュッと詰まっていて、金融って銘打ってますけど他業界でも十分使える内容となっています。 |
2021-06-05 05:12:58 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Microsoft 認定 Azure Data Scientist Associate (DP-100) 受験メモ |
https://qiita.com/chacco38/items/c3cef13fb3e4c3b3bb79
|
もし仮に勉強する時間が取れていたら、Udemyで評価の高い英語の問題集を購入してやっていたかと思います。 |
2021-06-05 05:12:29 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【Ruby on Rails Tutorial】HerokuにデプロイしたらApplication error[H10 (App crashed)]が発生したときの対処法 |
https://qiita.com/pensuke628/items/bec1cf5c714e9b14dfc6
|
【RubyonRailsTutorial】HerokuにデプロイしたらApplicationerrorHAppcrashedが発生したときの対処法はじめにRubyonRailsチュートリアルに沿って学習を進めていました。 |
2021-06-05 05:53:54 |
海外TECH |
Ars Technica |
This is not a drill: VMware vuln with 9.8 severity rating is under attack |
https://arstechnica.com/?p=1770063
|
install |
2021-06-04 20:17:57 |
海外TECH |
DEV Community |
Network Automation with Python + Discord Webhooks |
https://dev.to/sayf_a_cc723da8bec754a8cd/network-automation-with-python-discord-webhooks-h36
|
Network Automation with Python Discord Webhooks What are we gonna Make In this epic tutorial we are going to be using discord webhooks and the power of python to receive notifications for when a device on our local network at home goes offline Why are we making this its a cool project it uses the power of python and discord A tutorial for those wanting to flex your muscle on python and logic building Let s Roll Phase I The PlanThis project is going to fully depend on logic since we are embarking on coding something that s totally hybrid but hey who cares Below you ll find the flow chart of n how this algorithm will flow Libraries Neededfrom discord webhook import DiscordEmbed DiscordWebhook from datetime import datetime import subprocessimport time import io Phase II Sending the AlertLet s start off by preparing a function that when called upon sends a discord message via webhook we wanna make sure that the message is crafted with the following content Missing device MAC AddressMissing device IP AddressMissing device Namedef send alert webhook url offline device offline ip offline mac embed DiscordEmbed title f ️Lost Contact with offline device color caed webhook object DiscordWebhook url webhook url embed add embed field name Device IP value f offline ip embed add embed field name Device MAC value f offline mac webhook object add embed embed response webhook object execute the function will be called with arguments given which are webhook url for sending discord messages offline device the device missing offline ip device ip that s missing and offline mac Mac address of missing device Reason why we coded this alert function is because we ll be utilising it in our network monitoring function coming up at the end so hang in there Phase III Gathering Devices on our NetworkIf you re following along then congrats on making it to phase of this epic tutorial Now we are going to start making a function which uses a module from python s standard library called subprocess to perform a custom ARP scan def fetch devices network data device name ip address mac address process subprocess Popen arp a stdout subprocess PIPE arp resp line strip for line in io TextIOWrapper process stdout encoding utf for name in arp resp network data device name append name split for ip in arp resp network data ip address append ip split for mac in arp resp network data mac address append mac split return network datathe function first initialises a dictionary which has keys that have lists attached to it as values We will then use subprocess to run the command arp a and then move to read the output of the command executed After that list comprehension comes into play in which we clean the lines of text coming from the parsed command output Finally we use different for loops to append the data found in the command output to the dictionary of lists and finally return the populated dictionary Phase IV The Final Touch We have made the blocks of code which will be relied on to perform actions which will lead our automation to working exactly as planned this is the part where we code up the monitoring function which will utilise the above functions we have finished up def monitor network patch fetch devices while True active patch fetch devices for name ip mac in zip network patch device name network patch ip address network patch mac address if name in active patch device name print f name is online Swinging back for another run time sleep continue else send alert DISCORD WEBHOOK URL name ip mac time sleep continue The main theory First we start off by fetching all the active devices on our network this will store the dictionary that we are expecting to be returned from our fetch devices function After that we begin with a while loop since we want the monitoring to be persistent then we will call upon the fetch devices function on every iteration that the for loop goes through this way we can then check if any name from our network patch call exists or not within our active patch call Wrap up OutputFinally our program is ready your code should look like this import subprocessfrom datetime import datetime from discord webhook import DiscordEmbed DiscordWebhook import time import io def send alert webhook url offline device offline ip offline mac embed DiscordEmbed title f ️Lost Contact with offline device color caed webhook object DiscordWebhook url webhook url embed add embed field name Device IP value f offline ip embed add embed field name Device MAC value f offline mac webhook object add embed embed response webhook object execute def fetch devices network data device name ip address mac address process subprocess Popen arp a stdout subprocess PIPE arp resp line strip for line in io TextIOWrapper process stdout encoding utf for name in arp resp network data device name append name split for ip in arp resp network data ip address append ip split for mac in arp resp network data mac address append mac split return network datadef monitor network patch fetch devices while True active patch fetch devices for name ip mac in zip network patch device name network patch ip address network patch mac address if name in active patch device name print f name is online Swinging back for another run time sleep continue else send alert DISCORD WEBHOOK URL name ip mac time sleep continue if name main monitor TestingTo test the program go ahead and start it up and once it starts running make your phone or any device active on the network disconnect from your wifi you should see something like this come up Hope you enjoyed the tutorial Do leave your comments amp questions below Happy coding |
2021-06-04 20:49:39 |
海外TECH |
DEV Community |
Implementing Push Notifications With Flutter and OneSignal-Part 1 |
https://dev.to/lordlamee/implementing-push-notifications-with-flutter-and-onesignal-part-1-3690
|
Implementing Push Notifications With Flutter and OneSignal Part Cover Photo by Jamie Street on UnsplashYour users are definitely not going to be on your app for hours every day However you might want to remind them to check your app or notify them of new things happening in your app even when it s closed You use Push Notifications to achieve this And contrary to popular belief they re really easy to implement with Flutter and OneSignal Let s get started RequirementsA OneSignal Account Step OneSetup your firebase projectGo to to get started You should have something like this on the console On the next page you could choose to enable or disable analytics Your project should take a few seconds to be created depending on your internet connection Step TwoSetup your flutter project create flutter projectrun flutter create push notifications demo in your command line interface command prompt add your app to the firebase projectFor AndroidClick the android button as shown in the image below Add your app credentials and download the config file Note Your android package name is the applicationId in your app level build gradle file android app build gradle Be sure to add the googleservices json file to your project and set up the Firebase SDK as instructed in the process Once you ve followed the instructions correctly you should see an android app in your project setup Onesignal for your appLog into OneSignal and create a new app You could choose to use the default organization or an organization of your own No worries you can always change it later Add your firebase server key and sender ID You can find these keys here Select the Android platform and Flutter as the SDK You should now be able to see your application ID Add firebase core and one signal flutter plugin to your app dependencies flutter sdk flutter cupertino icons onesignal flutter firebase core In your project level android build gradle build gradle file add the following line of code repositories jcenter maven url add this line dependencies classpath gradle plugin com onesignal onesignal gradle plugin In your app level android app build gradle build gradle file add the following line of code apply plugin com android application this already exits add this lineapply plugin com onesignal androidsdk onesignal gradle plugin Great You re all set up on Android For iOSRequirements An apple developer account with an Admin role A Macbook with XCode StepsGenerate an iOS Push Certificate You can easily generate one using the OneSignal provisioning tool hereEnable iOS push capability and extension service following the instructions on the Official OneSignal documentation hereWe re done setting up Now let s practice sending a push notification In the main dart file of your project we need to initialize the OneSignal plugin import package firebase core firebase core dart import package flutter material dart import package onesignal flutter onesignal flutter dart void main WidgetsFlutterBinding ensureInitialized Firebase initializeApp OneSignal shared init YOUR ONESIGNAL APP ID iOSSettings OSiOSSettings autoPrompt false OSiOSSettings inAppLaunchUrl false runApp MyApp Run your app to initialize the plugin Next on the Dashboard section of your application s OneSignal account do the following Click on the New Push button shown below Enter the title and message of your notification Click send to test device You should be redirected to a page of all users so you can add a test user You should find your device there If you don t run the app again Click on options and add your device as a test user Go back and click on Send To Test Device Select your device and send You ve successfully sent your first notification Tip Add handlers to your notifications to run functions at specific events To handle callbacks once notifications are received OneSignal shared setNotificationReceivedHandler OSNotification notification This will be called whenever a notification is received To handle callbacks when notifications are opened OneSignal shared setNotificationOpenedHandler OSNotificationOpenedResult result This will be called whenever a notification is opened And with this you can send your users push notifications anytime you want OneSignal s documentation is very rich and easy to read You can get more detail on features and methods available on the SDK |
2021-06-04 20:36:52 |
海外TECH |
DEV Community |
Generate PDF of HTML Element in Browser |
https://dev.to/bibekkakati/generate-pdf-of-html-element-in-browser-lg9
|
Generate PDF of HTML Element in BrowserHello everyoneIn this article we are going to see how we can generate a PDF of any HTML element in the browser i e entirely client side We will use the package htmlpdf to generate the PDF htmlpdf is using htmlcanvas to convert the HTML element to canvas and then into an image Then it generates the PDF of the image with the help of jsPDF If you want to know more about htmlcanvas check out this article ImplementationLet us see a small implementation of the package htmlpdf index htmlA basic HTML page where the package s bundle link is included Created a div block of simple content and a export PDF button We will be generating a PDF of the div whose id is view on clicking the export PDF button lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt HTMLPDF lt title gt lt script src defer gt lt script gt lt script src script js defer gt lt script gt lt head gt lt body onload main align center gt lt div id view align center gt lt h gt Export PDF lt h gt lt h gt Using HTMLPDF lt h gt lt div gt lt button id export pdf gt Export PDF lt button gt lt body gt lt html gt script jsJavaScript file containing the main method which will be invoked once the site loads and listening for the onclick event on the export PDF button On clicking the export PDF button the htmlpdf method will be called which takes the reference to the element div as its argument function main var view document getElementById view var exportPDF document getElementById export pdf exportPDF onclick e gt htmlpdf view After clicking the button the PDF will be generated and downloaded directly to your system We can also pass some configuration options in the htmlpdf method to handle image type quality filename etc To know more about it check here Note Image based PDF s are non searchable Github repo PDF GeneratorTry it out LiveOriginally published on blog bibekkakati meThank you for reading If you enjoyed this article or found it helpful give it a thumbs up Feel free to connect Twitter Instagram LinkedInIf you like my work and want to support it you can do it here I will really appreciate it |
2021-06-04 20:20:32 |
海外TECH |
Engadget |
Facebook's 'Bulletin' newsletter platform could launch before the end of June |
https://www.engadget.com/facebook-bulletin-june-201428131.html?src=rss_b2c
|
Facebook x s x Bulletin x newsletter platform could launch before the end of JuneFacebook hopes to release Bulletin its take on a Substack like newsletter subscription product toward the end of June |
2021-06-04 20:14:28 |
海外科学 |
NYT > Science |
Teens Are Rarely Hospitalized With Covid, but Cases Can Be Severe |
https://www.nytimes.com/2021/06/04/health/coronavirus-teenagers-hospitalizations.html
|
researchers |
2021-06-04 20:29:49 |
海外科学 |
NYT > Science |
The Sperm-Count ‘Crisis’ Doesn’t Add Up |
https://www.nytimes.com/2021/06/04/health/sperm-fertility-reproduction-crisis.html
|
contends |
2021-06-04 20:51:35 |
ニュース |
BBC News - Home |
Covid-19: Airlines add capacity ahead of Portugal change |
https://www.bbc.co.uk/news/uk-57353048
|
flights |
2021-06-04 20:00:49 |
ニュース |
BBC News - Home |
Elections watchdog admits errors in reporting Tory donations |
https://www.bbc.co.uk/news/uk-politics-57365728
|
defunct |
2021-06-04 20:25:30 |
ニュース |
BBC News - Home |
Nigeria to suspend Twitter 'indefinitely' |
https://www.bbc.co.uk/news/world-africa-57363779
|
buhari |
2021-06-04 20:11:44 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
楽天市場「ポイント改悪」ラッシュ、三木谷圧政に疲弊する出店者の反撃 - 楽天 底なしの赤字 |
https://diamond.jp/articles/-/272372
|
三木谷浩史 |
2021-06-05 05:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
餃子の王将・丸亀製麺が売上高の大幅減を食い止められたワケ - ダイヤモンド 決算報 |
https://diamond.jp/articles/-/273166
|
上場企業 |
2021-06-05 05:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
伊藤忠・石井社長が激白、首位固めの公算と焦燥「振り返れば抜かれる」 - 商社 非常事態宣言 |
https://diamond.jp/articles/-/272398
|
三菱商事 |
2021-06-05 05:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
中国EC最大手のアリババも「焦り」、猛追する新興企業のすごいビジネスモデル - 事例で学ぶ「ビジネスモデルと戦略」講座 |
https://diamond.jp/articles/-/273100
|
新興企業 |
2021-06-05 05:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
大坂なおみ選手の会見拒否騒動から学ぶ、受け手としての心構え - 井の中の宴 武藤弘樹 |
https://diamond.jp/articles/-/273167
|
会見拒否 |
2021-06-05 05:05:00 |
北海道 |
北海道新聞 |
トランプ氏アカウント凍結2年に FB、期間終了時に延長判断 |
https://www.hokkaido-np.co.jp/article/552059/
|
交流サイト |
2021-06-05 05:12:00 |
ビジネス |
東洋経済オンライン |
スルガ銀行、ノジマとの出会いと別れで得た教訓 ノジマ社長は就任から1年足らずで副会長を辞任 | 金融業界 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/432070?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
winwin |
2021-06-05 05:30:00 |
コメント
コメントを投稿