AWS |
AWS Architecture Blog |
Automating Your Home with Grafana and Siemens Controllers |
https://aws.amazon.com/blogs/architecture/automating-your-home-with-grafana-and-siemens-controllers/
|
Automating Your Home with Grafana and Siemens ControllersImagine that you have access to a digital twin of your house that allows you to remotely monitor and control different devices inside your home Forgot to turn off the heater or air conditioning Didn t close water faucets Wondering how long your kids have been watching TV Wouldn t it be nice to have all the … |
2021-08-04 15:51:33 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
[06] subprocessの代替パッケージ「sh」を使ってみる ... Git 操作をする |
https://qiita.com/robozushi10/items/56964235a84c649bc0e5
|
subprocessの代替パッケージ「sh」を使ってみるGit操作をする本シリーズのトップページはじめに一般的にPythonでLinuxコマンドを使う場合はsubprocessを使うこと多いが、標準パッケージでは無いもののsubprocessの代替である「sh」amoffatshも便利である個人的な考えではあるが、「sh」は標準パッケージでは無いので、職場などで使い込むと他者の迷惑になり兼ねない。 |
2021-08-05 00:46:41 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
幅優先探索の使い道 |
https://qiita.com/zuid/items/0c16b68362434de12d9a
|
幅優先探索の使い道幅優先探索は、深さ優先探索と並べて紹介されることが多いですが、アルゴリズムの中で出会う場面は深さ優先探索と比べると少ない印象です。 |
2021-08-05 00:42:45 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
深さ優先探索の使い道 |
https://qiita.com/zuid/items/d96a00366e308d245cb5
|
Knapsackpyナップサック問題を解く動的計画法計算量ONWアルゴリズム定義defknapsackdpfornumberinrangeWforiinrangeNforiinrangeNforwinrangeWifwweightigtdpiwmaxdpiwdpiwweightivalueiprintdpNW入力受取NWmapintinputsplitweightlistmapintinputsplitvaluelistmapintinputsplitアルゴリズム実行knapsack入力出力編集距離への適用つの文字列STがあり、「文字変更」「文字削除」「文字追加」の処理をSがTになるまで繰り返し施すとし、必要な処理回数の最小値を求める。 |
2021-08-05 00:10:51 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
[05] subprocessの代替パッケージ「sh」を使ってみる ... sudo をパスワード自動入力で使う |
https://qiita.com/robozushi10/items/650f8521ffabdfb5f01e
|
subprocessの代替パッケージ「sh」を使ってみるsudoをパスワード自動入力で使う本シリーズのトップページはじめに一般的にPythonでLinuxコマンドを使う場合はsubprocessを使うこと多いが、標準パッケージでは無いもののsubprocessの代替である「sh」amoffatshも便利である個人的な考えではあるが、「sh」は標準パッケージでは無いので、職場などで使い込むと他者の迷惑になり兼ねない。 |
2021-08-05 00:04:14 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
frameset を iframe に置き換える方法 |
https://qiita.com/uk714/items/6d0eec55b6e5ec5adea4
|
framesetをiframeに置き換える方法背景framesetはHTMLで廃止予定のため、iframeに置き換える必要がある。 |
2021-08-05 00:53:31 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
国立国会図書館オンラインのISBN検索結果から著者名とタイトルを取得するブックマークレット GetAuthorTitleNDL |
https://qiita.com/mayo00/items/0f3e57b76c3df5fcd04b
|
国立国会図書館オンラインのISBN検索結果から著者名とタイトルを取得するブックマークレットGetAuthorTitleNDLはじめにGoogleのISBN検索結果から著者名とタイトルを取得するブックマークレットGetAuthorTitleQiitaの国立国会図書館オンライン版を作りました。 |
2021-08-05 00:07:45 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
'float' object is not callableの解決方法について |
https://teratail.com/questions/352787?rss=all
|
|
2021-08-05 00:24:16 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
(HTML, CSS) Font Awesomeを導入するとアイコンと文字が左上に寄ってしまう |
https://teratail.com/questions/352786?rss=all
|
HTMLCSSFontAwesomeを導入するとアイコンと文字が左上に寄ってしまう実現したいことCRUDアプリを作成しており、投稿記事にカテゴリータグをつけております。 |
2021-08-05 00:16:23 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
wordpress でcrossslideを導入したい場合 |
https://teratail.com/questions/352785?rss=all
|
wordpressでcrossslideを導入したい場合ヘディングのテキストnbsp前提・実現したいことwordpressnbspでcrossslideを導入したい場合jsに書いてある写真ホルダーimgの読み込みは、cssの場合と同じくそのまま用いて良いでしょうかsrcaposimgcrosssidedcsjpgapos該当のソースコードsrcaposimgcrosssidedcsjpgaposソースコード試したことここに問題に対して試したことを記載してください。 |
2021-08-05 00:07:08 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
Ubuntuでシリアルデバッグツールのtinyserial、CuteCom、Serial Monitorを比較 |
https://qiita.com/k-koh/items/f5209ab7c31605b1ec80
|
結論SerialMonitorは、別デバッグしたいアプリケーションのシリアルポート通信データを解析可能です。 |
2021-08-05 00:14:43 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
ポートフォリオ「Fishing App」 |
https://qiita.com/iguchan_4649/items/4148f0371d04c6d78815
|
ポートフォリオURLFishingAppとは、釣りスポットを投稿し、釣りスポットにコメントして釣果などを共有するアプリです。 |
2021-08-05 00:28:26 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
ポートフォリオ「Fishing App」 |
https://qiita.com/iguchan_4649/items/4148f0371d04c6d78815
|
ポートフォリオURLFishingAppとは、釣りスポットを投稿し、釣りスポットにコメントして釣果などを共有するアプリです。 |
2021-08-05 00:28:26 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
1周目 railsチュートリアル第3章 |
https://qiita.com/ak-matsu/items/b30a4d16f5ce1ef4c0ab
|
感想無料枠は章までである。 |
2021-08-05 00:18:31 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Rails Strong Parameterとは |
https://qiita.com/Hashimoto-Noriaki/items/736b734b250f059dd34f
|
RailsStrongParameterとはStrongParameterとはRailsには、ストロングパラメーターStrongParameterという、ユーザーから送信されるデータを制限する機能があります。 |
2021-08-05 00:17:43 |
海外TECH |
Ars Technica |
WHO calls for global moratorium on COVID boosters until end of September |
https://arstechnica.com/?p=1785041
|
september |
2021-08-04 15:05:40 |
海外TECH |
DEV Community |
React lists without .map |
https://dev.to/miketalbot/react-lists-without-map-25d5
|
React lists without mapWhen we are rendering data in React we often grab an array and do a map to write out our interface The inclusion of instructional statements in the JSX markup can start to get unwieldy however and I like to replace too many code constructs with components instead I ll show you the component I use and as we examine it we ll learn how to manipulate JSX Elements at the same time The problemTake this broken code it not only has a bug that rears its head when we modify the list it s also complicated function App const render setRender useState items return lt Box gt lt List className App gt WRITE THE LIST TO THE UI render map item index gt const on setOn useState item on return lt ListItem key index item name gt lt ListItemText primary item name gt lt ListItemSecondaryAction gt lt Box display flex gt lt Box gt lt Switch checked on onChange gt setOn on gt on gt lt Box gt lt Box ml gt lt IconButton color secondary onClick gt remove item gt lt MdClear gt lt IconButton gt lt Box gt lt Box gt lt ListItemSecondaryAction gt lt ListItem gt lt List gt lt Button variant contained color primary onClick add gt Add lt Button gt lt Box gt function add setRender items gt name Made up at Date now on false items function remove item setRender items gt items filter i gt i item We ve got a list of items and we want to render them and manipulate each one This will render fine the first time but click on the Add or remove icon and it will crash We aren t using a component in the map and so we can t use hooks Try it I see a lot of ugly code like this which may well work if there aren t hooks involved but I don t like it one bit In any case to make our example work we would first extract out the item to be rendered which will make our code easier to reason with and create a boundary for the React Hooks so that they no longer fail function RenderItem item remove const on setOn useState item on return lt ListItem gt lt ListItemText primary item name gt lt ListItemSecondaryAction gt lt Box display flex gt lt Box gt lt Switch checked on onChange gt setOn on gt on gt lt Box gt lt Box ml gt lt IconButton color secondary onClick gt remove item gt lt MdClear gt lt IconButton gt lt Box gt lt Box gt lt ListItemSecondaryAction gt lt ListItem gt Once we have this we update our app to use it function App const render setRender useState items return lt Box gt lt List className App gt render map item index gt lt RenderItem remove remove key item name index item item gt lt List gt lt Button variant contained color primary onClick add gt Add lt Button gt lt Box gt function add setRender items gt name Made up at Date now on false items function remove item setRender items gt items filter i gt i item This is much better but it s still a bit of a mess our key structure is going to create re renders we don t need when items are added or removed and we still have to take the cognitive load of the and the render map etc It would be nicer to write it like this function App const render setRender useState items return lt Box gt lt List className App gt lt Repeat list render gt lt RenderItem remove remove gt lt Repeat gt lt List gt lt Button variant contained color primary onClick add gt Add lt Button gt lt Box gt function add setRender items gt name Made up at Date now on false items function remove item setRender items gt items filter i gt i item This would need to have the RenderItem repeated for each item in the list A solutionOk so let s write a Repeat component that does what we like The first thing to know is that when we write const something lt RenderItem remove remove gt we get back an object that looks like type RenderItem props remove remove With this information we can render that item with additional props like this const template lt RenderItem remove remove gt return lt template type template props something else gt Let s use that to make a Repeat component function Repeat list children item children type children undefined if item return return list map iterated index gt return lt item type item props item iterated index gt We make use an item prop for the thing to render and default it to the children of the Repeat component Then we run over this list For each item in the list we append an index and an item prop based on the parameters passed by the map This is fine but perhaps it would be nicer to return something if we don t specify children or item We can do that by making a Simple component and use that as the fall back rather than undefined function Simple item return lt div gt typeof item object JSON stringify item item lt div gt This function does have a problem it s not specifying a key So firstly lets create a default key function that uses a WeakMap to create a unique key for list items const keys new WeakMap let repeatId function getKey item const key keys get item repeatId keys set item key return key This function creates a unique numeric key for each item it encounters We can enhance our Repeat function to take a key function to extract a key from the current item or use this generic one as a default function Repeat list children item children type children lt Simple gt keyFn getKey return list map iterated index gt return lt item type key keyFn iterated item props item iterated index gt Maybe the final step is to allow some other prop apart from item to be used for the inner component That s pretty easy function Repeat list children item children type children lt Simple gt pass item Take the name for the prop keyFn getKey return list map iterated index gt return lt item type key keyFn iterated Use the passed in name item props pass iterated index gt The end result is fully functional and a lot easier to reason with than versions that use map at least to my mind Here s all the code from the article |
2021-08-04 15:44:35 |
海外TECH |
DEV Community |
I APPRECIATE all of you. |
https://dev.to/computergeek/i-appreciate-all-of-you-135k
|
countries |
2021-08-04 15:31:16 |
海外TECH |
DEV Community |
Take a look on beercss 🍺 |
https://dev.to/leonardorafael/introducing-beercss-1074
|
Take a look on beercss Hi I m here to introduce a CSS open source project called Beercss So here are some points IMO ZERO documentation this sounds weird at first time It s like an UI Kit Has about css classes to combine It s lightweight has about kb of size It s standalone and has zero dependencies This is nice because you can work with any stack Vue React Svelte and others You can do a lot of combinations and scale your elements Some frameworks has a scale issues and you need to face it with your own way The trigger system is very simple To activate deactivate an element you can add remove class active or add the code ui selector To open a modal ui selector To close a modal ui selector It s the same function and the framework just knows what to do It s themeable with CSS vars It s focused on a CSS tier Thanks for your time guys and I hope you enjoy it |
2021-08-04 15:06:21 |
Apple |
AppleInsider - Frontpage News |
How to use Tab Groups in iOS 15 and iPadOS 15 |
https://appleinsider.com/articles/21/08/04/how-to-use-tab-groups-in-ios-15-and-ipados-15?utm_medium=rss
|
How to use Tab Groups in iOS and iPadOS Tab Groups are a little fiddlier to use on Safari on iPhone with iOS but they re worth the effort ーespecially when you also use them on iPadOS and macOS Monterey Tab Groups are more fiddly to set up on iPhone but so handy when you ve got themEven as Apple reconsiders its design of Safari the new Tab Groups feature look like they re staying That s partly because they are so very good when you use them but perhaps also since you don t have to Read more |
2021-08-04 15:46:26 |
Apple |
AppleInsider - Frontpage News |
Apple's HomePod, HomePod mini 'largely absent' in smart speaker market |
https://appleinsider.com/articles/21/08/04/apples-homepod-homepod-mini-largely-absent-in-smart-speaker-market?utm_medium=rss
|
Apple x s HomePod HomePod mini x largely absent x in smart speaker marketNew research claims that Apple s HomePod and HomePod mini come a distant third to Amazon and Google smart speakers both of which have far more homes with multiple devices HomePod miniThe latest market report from Consumer Intelligence Research Partners CIRP says that over two thirds of smart speakers in the US are Amazon s Google accounts for about a quarter of the market and the very little left is occupied by both Apple and Facebook Read more |
2021-08-04 15:47:47 |
Apple |
AppleInsider - Frontpage News |
Meross Wi-Fi Smart Plug review: A low-cost way into HomeKit automation |
https://appleinsider.com/articles/21/08/04/meross-wi-fi-smart-plug-review-a-low-cost-way-into-homekit-automation?utm_medium=rss
|
Meross Wi Fi Smart Plug review A low cost way into HomeKit automationPeople who want to get started with home automation and HomeKit are spoiled for choice when it comes to devices to buy for their smart home Devices such as video doorbells air purifiers and lights are all available to purchase and install to make a person s life easier Those who don t necessarily want to go all in on HomeKit will most likely gravitate towards the more obvious and seemingly easy to use devices namely lights and smart plugs This makes sense as they can be acquired with very little outlay and can easily be added or removed from a home setup without too much trouble Naturally anyone going down the route of smart plugs may search Amazon and find many outlets to choose from sometimes at a meager cost The Meross Smart Wi Fi Plug is one example of what you can buy at the cheaper end of the range Read more |
2021-08-04 15:13:13 |
海外TECH |
Engadget |
What to expect at Samsung’s Galaxy Unpacked in August |
https://www.engadget.com/samsung-galaxy-unpacked-z-fold-3-z-flip-3-watch-active-4-buds-2-154226625.html?src=rss
|
What to expect at Samsung s Galaxy Unpacked in AugustIf you re a big Samsung fan you ve probably already marked your calendar for August th when the company is holding its next Galaxy Unpacked event Though it has held many events already in at least this time around it s one that we ve been anticipating In recent years Samsung has unveiled new Note phones every August But at this coming Unpacked the company will not be showing off a new Note Thanks to the enterprising rumor mill and Samsung itself…We have a very good idea of what to expect on August th Foldables The third generationThe company published a blog post this week in which its president TM Roh teased what s to come First up Foldables Yes that s plural We ll be seeing the third generation of the Galaxy Z series including the next Z Flip and Z Fold If you ll recall the Z Flip is the smaller Moto Razr style phone that looks like a regular phone that you can close in half Meanwhile the Z Fold is more of a tablet phone hybrid where a inch device opens up to reveal a inch screen What might Samsung bring in new versions of these devices Based on the leaks floatingaround the internet the Z Flip will possibly have a inch outer screen with a inch internal flexible display That external panel is significantly bigger than the inch sliver on the older Z Flip which could make it more useful when the device is shut We ve also seen reports that the inside screen will run at hz and sport dual megapixel rear cameras and a megapixel selfie shooter Chris Velazco EngadgetMeanwhile the Z Fold is rumored to have a similar setup to the existing model with a inch exterior panel and a inch version inside It ll probably have triple megapixel cameras and two selfie cameras on either side Both models are reported to be rated IPX for water resistance though dust resistance clearly still remains a challenge These are all educated guesses based on what s been leaked so I d take the details with a grain of salt What has been confirmed is that the foldables will support Samsung s S Pen The stylus has been a hallmark of the Note series and the company enabled support for it on its flagship S series earlier this year In his blog post Roh said the S Pen was specifically designed for its foldables A stylus made for the pliable screens on foldables has been a widely requested feature and would make the larger opened up displays more useful Of course Samsung shared little else about this S Pen besides the fact that it s coming so there are plenty of unknowns at the moment How will it avoid damaging the softer flexible screen What size is its nib what is its pressure sensitivity and will the foldables have onboard slots to house it Will it have Bluetooth support for remote control actions Clearly these are things we ll have to wait till Unpacked on August th to learn about Wearables New headphones and Wear OS watches nbsp Samsung also already spilled the beans on its upcoming Galaxy Watch running the new Wear OS that it co engineered with Google We ve also seen plenty of leaked renders of the purported Galaxy Watch which is likely to come in an Active and a Classic edition The latter might be available in three sizes instead of just two and appears to feature the popular rotating bezel Samsung s watches are known for Expect to see more details about the hardware and the UI at Unpacked in addition to pricing and availability Cherlynn Low EngadgetThat s not the only wearable that will make an appearance We ve also seen leaks indicating new Galaxy Buds might show up at Unpacked The company s next wireless earbuds appear to have a more refined design and more color options One report based on a beta version of an upcoming plugin on Samsung s update server also indicated the possibility of active noise cancellation touch controls and a simplified battery interface That s pretty much all we know so far though I wouldn t put it past Samsung to have something else hidden up its sleeve for the event Will Blackpink show up I wish But as for actual hardware this is already a pretty long list of things to expect come August th Samsung s launch kicks off at am Eastern that day and you should come watch it with us on Engadget s YouTube channel We ll be starting at AM Eastern with a pre show and hanging around after Samsung wraps to answer your burning questions I hope to see you then |
2021-08-04 15:42:26 |
海外TECH |
Engadget |
Lucille Ball's radio show is now a 'podcast' on SiriusXM |
https://www.engadget.com/lucille-ball-podcast-siriusxm-150452728.html?src=rss
|
Lucille Ball x s radio show is now a x podcast x on SiriusXMLucille Ball sadly passed away long before podcasts became a reality but that isn t stopping her from joining the modern phenomenon The LA Timesreports that SiriusXM is turning Ball s Let s Talk to Lucy radio show into a pop up satellite radio station for three weeks Once that stint is over all episodes of the s era show will be available as podcasts through both SiriusXM s app Stitcher and other common platforms Notably this isn t just mining nostalgia This is the first time Let s Talk to Lucy has been heard since airing on the radio plus years ago ーthere are conversations with legends like Bob Hope and Carol Burnett that haven t surfaced for decades SiriusXM is clearly hoping to boost its satellite and podcast offerings At the same time this also illustrates the usefulness of podcasting as a historical tool In theory the podcasts will both preserve Ball s interviews and make them accessible to a wider audience that might not listen to radio in the first place |
2021-08-04 15:04:52 |
Cisco |
Cisco Blog |
Transform Your Practice by Leveraging the Software-led Business Framework |
https://blogs.cisco.com/partner/transform-your-practice-by-leveraging-the-software-led-business-framework
|
Transform Your Practice by Leveraging the Software led Business FrameworkAdding software sales to a partner s sales motion not only increases overall revenue but also provides more predictable recurring revenue that comes with selling subscription based software licenses In addition developing new services and capabilities based on software enable partners to bfurther differentiate themselves as they build customer loyalty and relevance |
2021-08-04 15:00:36 |
海外TECH |
CodeProject Latest Articles |
Teaching Coding with mscript and Metastrings |
https://www.codeproject.com/Articles/5309624/Teaching-Coding-with-mscript-and-Metastrings
|
nosql |
2021-08-04 15:17:00 |
海外科学 |
BBC News - Science & Environment |
Floods: Research shows millions more at risk of flooding |
https://www.bbc.co.uk/news/science-environment-58087479
|
millions |
2021-08-04 15:05:01 |
金融 |
RSS FILE - 日本証券業協会 |
株主コミュニティの統計情報・取扱状況 |
https://www.jsda.or.jp/shiryoshitsu/toukei/kabucommunity/index.html
|
株主コミュニティ |
2021-08-04 15:30:00 |
金融 |
金融庁ホームページ |
「デジタル社会の形成を図るための関係法律の整備に関する法律」の施行に伴う金融庁関係政府令の改正案に対するパブリックコメントの結果等について公表しました。 |
https://www.fsa.go.jp/news/r3/sonota/20210804/20210804.html
|
関係 |
2021-08-04 17:00:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
第2四半期の実質GDP成長率、前期比0.9% |
https://www.jetro.go.jp/biznews/2021/08/e67fcf2040926f09.html
|
成長率 |
2021-08-04 15:30:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
走行中のトラックへ給電可能な道路の普及目指す |
https://www.jetro.go.jp/biznews/2021/08/961693eaf61d2191.html
|
道路 |
2021-08-04 15:20:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
大寒波到来、天候不順でインフレ懸念増す |
https://www.jetro.go.jp/biznews/2021/08/210b52ee811a1107.html
|
天候不順 |
2021-08-04 15:10:00 |
ニュース |
BBC News - Home |
Covid: Jabs for 16 and 17-year-olds to start within weeks |
https://www.bbc.co.uk/news/uk-58091693
|
affects |
2021-08-04 15:49:30 |
ニュース |
BBC News - Home |
Lee Collins: Yeovil Town captain's death was suicide, records coroner |
https://www.bbc.co.uk/news/uk-england-somerset-58090985
|
collins |
2021-08-04 15:20:48 |
ニュース |
BBC News - Home |
Extinction Rebellion: Judge demands review of protester convictions |
https://www.bbc.co.uk/news/uk-58092234
|
appeal |
2021-08-04 15:15:55 |
ニュース |
BBC News - Home |
England v India: Jonny Bairstow given out lbw on review with last ball before tea |
https://www.bbc.co.uk/sport/av/cricket/58087622
|
England v India Jonny Bairstow given out lbw on review with last ball before teaJonny Bairstow is given out lbw for off Mohammed Shami with the last ball before tea as a second successful India review leaves England in the first Test at Trent Bridge |
2021-08-04 15:05:00 |
ニュース |
BBC News - Home |
Tokyo Olympics: Liverpool millionaire aiding GB's medal haul |
https://www.bbc.co.uk/news/uk-england-merseyside-58088648
|
hodgkinson |
2021-08-04 15:51:17 |
ニュース |
BBC News - Home |
Covid: What do under-30s need to know about the vaccine? |
https://www.bbc.co.uk/news/health-57273875
|
covid |
2021-08-04 15:13:47 |
ニュース |
BBC News - Home |
Covid: Who is now due to get the vaccine? |
https://www.bbc.co.uk/news/health-55045639
|
covid |
2021-08-04 15:13:33 |
ニュース |
BBC News - Home |
Long Covid: What is it and what are the symptoms? |
https://www.bbc.co.uk/news/health-57833394
|
different |
2021-08-04 15:42:37 |
コメント
コメントを投稿