IT |
InfoQ |
Presentation: Languages of Cloud Native |
https://www.infoq.com/presentations/languages-cloud-native/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global
|
Presentation Languages of Cloud NativeJustin Cormack looks back at the early history talking to Solomon Hykes about the development of Docker in Go and looks at more recent trends in Cloud Native projects By Justin Cormack |
2022-08-07 19:23:00 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
現在の仮想デスクトップ番号と仮想デスクトップの総数を、デスクトップ間を移動したときに通知させるスクリプト |
https://qiita.com/kentoak/items/c375976ff6a9b3dfe193
|
scriptforautomationjxa |
2022-08-08 04:15:55 |
golang |
Goタグが付けられた新着投稿 - Qiita |
goplsやgoimportsでimport補完がバージョンを認識しないのを直す |
https://qiita.com/k0kubun/items/de0af17e9c738e4e2bae
|
packagema |
2022-08-08 04:20:57 |
海外TECH |
MakeUseOf |
How to Stop iPhone Selfies From Flipping or Mirroring After You Take the Photo |
https://www.makeuseof.com/how-to-stop-iphone-selfies-mirroring/
|
How to Stop iPhone Selfies From Flipping or Mirroring After You Take the PhotoDo your iPhone selfies look different after you take the photo compared to when you were in the Camera app Here s how to fix it |
2022-08-07 19:15:14 |
海外TECH |
DEV Community |
Reduct Storage Client SDK for C++ 0.7.0 was released |
https://dev.to/reduct-storage/reduct-storage-client-sdk-for-c-070-was-released-i4
|
Reduct Storage Client SDK for C was releasedThis is a little update for people who follow news about Reduct Storage and its ecosystem I ve just released a new version of the SDK which supports HTTP API v The most important new feature is the IBucket Query method It allows to iterate records for a given time interval using reduct IBucket using reduct IClient int main auto client IClient Build Create a bucket auto bucket create err client gt GetOrCreateBucket bucket if create err std cerr lt lt Error lt lt create err return Walk through the data err bucket gt Query entry std nullopt IBucket Time clock now std nullopt auto amp amp record std string blob auto read err record Read amp blob auto chunk blob append chunk return true if read err std cout lt lt Read blob lt lt blob return true You can use the library with CMake s FetchContet macros or install it from the source git clone cd reduct cppmkdir build amp amp cd buildcmake DCMAKE BUILD TYPE Release cmake build sudo cmake build target installIn your CMakeLists txt find package ReductCpp find package ZLIB find package OpenSSL add executable you app you app cc target link libraries you app REDUCT CPP LIBRARIES ZLIB LIBRARIES OpenSSL SSL OpenSSL Crypto For more information read here |
2022-08-07 19:46:19 |
海外TECH |
DEV Community |
React - Fetching promises from the state??? |
https://dev.to/noriller/react-fetching-promises-from-the-state-1g54
|
React Fetching promises from the state As people say “It s only stupid if it doesn t work The basics you might not know First thing initializingIt s convention to initialize a state as const state setState useState But…useState is just a function that returns an array and you can dump it anywhere you want as long as you don t violate the rule of hooks And while we are at it you can initialize it with a function that function will run only once no matter what and that s it Second thing what can be a stateANYTHING as far as I know p What about a promise then Yes you can have promises in a state of course that you can t unpack them inside the JSX part First versionWith that in mind you re probably thinking something along this lines function FirstVersion const state setState useState gt fakeFetch First Version then val gt setState val catch err gt setState err return lt div style marginTop em gt state instanceof Promise Loading First Version Component state lt div gt And that will work useStatePromiseSo I ve played around and made this custom hook import useEffect useState from react export function useStatePromise promise const error setError useState null const value setValue useState gt promise then val gt setValue val catch setError const newValue setNewValue useState null useEffect gt if newValue instanceof Promise newValue then setValue catch setError else setValue newValue newValue setValue return value setNewValue error Adding to what I did in the first version first I extracted that into a custom hook then I added a way to be able to change the state this is done by using another state to keep the promise until finished Example projectSee in CodeSandbox Bonus useRefPromiseSince I was there I also played around the useRefimport useRef from react export function useRefPromise promise const ref useRef promise then val gt ref current val if ref current instanceof Promise return null return ref current If you ve opened the example you will see it works…but be careful It only works because the useEffect keeps forcing renders that will make it pick up the ref latest values So…in a few scenarios it would work Comment out the useEffect with setInterval and see how it would behave then OutroReact functions are just that functions Yes there are a lot of things happening in the background but as far as you re concerned it s functions and so you can do some crazy stuff with it Then again all of these are probably some bad ideas that you shouldn t really use unless you actually have a case that would someway somehow benefit from it Cover Photo by Womanizer Toys on Unsplash |
2022-08-07 19:36:52 |
海外TECH |
DEV Community |
Introduction to XML |
https://dev.to/justtanwa/introduction-to-xml-1h62
|
Introduction to XMLHello hello How the month has flown by I have not had the time to write anything but that does not mean I have not been learning While it is fun to learn the newest and latest technologies you often will have to learn about older technologies as well especially for jobs So I recently learnt about Extensible Markup Language or XML I want to write a short introduction about it so I can use it as a reference for myself later on and of course for anyone who might need to learn about XML What is XML XML is simple language to store describe and transport information data across the network as plain text It is designed so that the language is human readable with self describing tags If you think of JSON as a way of transferring data as plain text in the form of JavaScript Objects then you can say that XML is a way of transferring data as plain text in a form similar to HTML XML is a mark up language like HTML so it bear a resemblance as it is made up of hierarchical tags which store information However unlike HTML it does not have predefined tags so you can create your own tags however you like to store and structure your data as you see fit It is said that XML separate information from presentation so XML and HTML complements each other It can be used by all sorts of programs and software as a method of transferring data just like how JSON can be used in all languages How does it work XML documents often start with XML declaration or a prolog this is optional which contains meta data of the document such as encoding It typically look like this lt xml version encoding UTF gt When creating your own XML tags keep these points syntax rules in mind All elements must have a closing tag or if it is an empty element you can use the short form e g lt emptyTag gt Attributes must be quoted e g lt movie genre comedy gt Avoid using characters like lt gt amp and use character entities instead e g amp lt amp gt and amp amp There must only be one root element or one parent element that contains all other elements Tags are case sensitive White spaces are preserved More of a heads up than a rule Following the above rules will ensure that your XML document is well formed XML documents like HTML follows Document Object Model DOM definition it is a tree structure with one root node which is the parent to all other elements This means that you can access update and manipulate XML documents with programs and scripts ExampleAs usual the best way to learn is to practice so open up your favourite code editor and try to create your own XML file with some of you own tags I will use VSCode Lets say I wanted to send a list of movies of the year information then I could write something like the below code lt xml version encoding UTF gt lt movieList year gt lt movie genre action gt lt title gt The Old Guard lt title gt lt rating gt lt imdb gt lt imdb gt lt rottenTomatoes gt lt rottenTomatoes gt lt rating gt lt movie gt lt movie genre action gt lt title gt Birds of Prey lt title gt lt rating gt lt imdb gt lt imdb gt lt rottenTomatoes gt lt rottenTomatoes gt lt rating gt lt movie gt lt movie genre comedy gt lt title gt My Spy lt title gt lt rating gt lt imdb gt lt imdb gt lt rottenTomatoes gt lt rottenTomatoes gt lt rating gt lt movie gt lt movie genre horror gt lt title gt A Quiet Place Part II lt title gt lt rating gt lt imdb gt lt imdb gt lt rottenTomatoes gt lt rottenTomatoes gt lt rating gt lt movie gt lt movieList gt If you open up the file you have created on a browser it should display the XML document as a tree structure with collapsible arrow for nested elements I ran into a problem with FireFox but works fine on Edge and GC SummaryXML is a flexible and extensible mark up language similar to HTML but differ in the way that it is used as a standard for transferring or exchanging data over the network XML is written with non predetermined tags this means you can create your own tags and structure your information data how you will as long as it conforms to the rules of a well formed XML document This has been a very short overview of XML There are must more about XML that I have to learn and I hope to write more about this topic in the future for now thank you for reading |
2022-08-07 19:00:53 |
Apple |
AppleInsider - Frontpage News |
Updated 2022 iPad Pro models could use four-pin Smart Connectors |
https://appleinsider.com/articles/22/08/07/updated-2022-ipad-pro-models-could-use-four-pin-smart-connectors?utm_medium=rss
|
Updated iPad Pro models could use four pin Smart ConnectorsApple could provide users of the iPad Pro with more connectivity to accessories with a rumor claiming a pair of four pin connectors will be added to the tablet s casing The iPad Pro has a Smart Connector a row of three exposed pins on the lower rear of the tablet which is used to connect with hardware such as the Magic Keyboard If a rumor is to be true the concept could be expanded for the upcoming range of iPad Pro models According to Chinese sources of Macotakara the general design of the housing of the th gen inch iPad Pro and th gen inch iPad Pro will be the same as the current models However rather than just offering the usual three pin Smart Connector Apple instead plans to use two four pin connectors instead Read more |
2022-08-07 19:49:43 |
海外TECH |
Engadget |
Apple reportedly tells suppliers to avoid 'Made in Taiwan' labels on shipments to China |
https://www.engadget.com/apple-nancy-pelosi-visit-taiwan-labels-195542365.html?src=rss
|
Apple reportedly tells suppliers to avoid x Made in Taiwan x labels on shipments to ChinaApple has reportedly warned Taiwanese suppliers to ensure shipments to China comply with a longstanding labeling regulation following House Speaker Nancy Pelosi s recent visit to Taipei According to Nikkei via The Guardian the company recently told manufacturers on the island that parts bound for the mainland must list “Chinese Taipei or “Taiwan China as their source nbsp That s in line with a policy China has had in place for years but only began enforcing after tensions with the US flared up following Pelosi s visit last week Under the policy officials can delay and even reject shipments that say “Made in Taiwan The self governing island has its own set of labeling rules Shipments must list “Taiwan or “Republic of China as the point of origin Apple did not immediately respond to Engadget s request for comment The tech giant and many other American companies have a complicated relationship with China If the report is accurate it wouldn t be the first time Apple has sought to appease the Chinese Communist Party In the company removed the Taiwan flag emoji from iOS in Hong Kong amid the pro democracy protests that occurred in the city that year nbsp In this instance Apple may have felt it had no choice but to comply with China s policy on Taiwanese shipments In April Tim Cook said semiconductor shortages significantly impacted the company s iPad business Ahead of its iPhone launch later this year additional delays due to a customs dispute would likely be disastrous for Apple |
2022-08-07 19:55:42 |
海外TECH |
CodeProject Latest Articles |
Using Redis for storing and working with geospatial data |
https://www.codeproject.com/Articles/5337573/Using-Redis-for-storing-and-working-with-geospatia
|
calculations |
2022-08-07 19:15:00 |
海外科学 |
NYT > Science |
A Large Object Landed on His Sheep Farm. It Came From Space. |
https://www.nytimes.com/2022/08/04/world/australia/spacex-debris-australia.html
|
A Large Object Landed on His Sheep Farm It Came From Space “It s not something you see every day on a sheep farm a farmer said of the pieces of debris that wound up in rural Australia They are thought to be from a SpaceX spacecraft |
2022-08-07 19:43:31 |
海外科学 |
NYT > Science |
Manchin’s Donors Include Pipeline Giants That Win in His Climate Deal |
https://www.nytimes.com/2022/08/07/climate/manchin-schumer-pipeline-political-funding.html
|
Manchin s Donors Include Pipeline Giants That Win in His Climate DealThe controversial Mountain Valley Pipeline is one of several projects the senator has negotiated major concessions for benefiting his financial supporters |
2022-08-07 19:55:56 |
海外科学 |
NYT > Science |
Five Decades in the Making: Why It Took Congress So Long to Act on Climate |
https://www.nytimes.com/2022/08/07/climate/senate-climate-law.html
|
Five Decades in the Making Why It Took Congress So Long to Act on ClimateThe Senate bill avoided the political pitfalls of past legislative attempts by offering only incentives to cut climate pollution not taxes |
2022-08-07 19:25:33 |
医療系 |
医療介護 CBnews |
届出病院から見えてきた急性期充実体制加算とは-先が見えない時代の戦略的病院経営(176) |
https://www.cbnews.jp/news/entry/20220805190008
|
経営管理学 |
2022-08-08 05:00:00 |
海外ニュース |
Japan Times latest articles |
Fighting around Ukrainian nuclear plant heightens safety fears |
https://www.japantimes.co.jp/news/2022/08/08/world/russia-ukraine-nuclear-plant/
|
Fighting around Ukrainian nuclear plant heightens safety fearsThe Russian military has been using the Zaporizhzhia plant Europe s largest as a base to assault the Ukrainian controlled town of Nikopol across the river |
2022-08-08 04:23:48 |
ニュース |
BBC News - Home |
Israel-Gaza: Hopes as militants announce ceasefire in Gaza |
https://www.bbc.co.uk/news/world-middle-east-62457780?at_medium=RSS&at_campaign=KARANGA
|
gazapalestinian |
2022-08-07 19:51:27 |
ニュース |
BBC News - Home |
Commonwealth Games: Laura Muir captures 1500m title |
https://www.bbc.co.uk/sport/commonwealth-games/62459955?at_medium=RSS&at_campaign=KARANGA
|
ruthless |
2022-08-07 19:31:39 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「安倍レガシー」徹底検証!元首相は日本に何を残し、何を壊したかを識者8人が総力分析 - 安倍晋三 レガシーの検証 |
https://diamond.jp/articles/-/307545
|
安倍元首相 |
2022-08-08 04:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
防衛予算10兆円争奪戦!権力とカネがうごめく「軍事ビジネスと自衛隊」の深い闇 - 軍事ビジネス&自衛隊 10兆円争奪戦 |
https://diamond.jp/articles/-/307594
|
防衛予算兆円争奪戦権力とカネがうごめく「軍事ビジネスと自衛隊」の深い闇軍事ビジネス自衛隊兆円争奪戦中国・ロシア・北朝鮮の軍事行動により、日本の安全保障環境はかつてないほどに緊迫している。 |
2022-08-08 04:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
パルコとマルイ、6月は1割増収も根深い「コロナ禍の傷跡」、その実態は? - コロナで明暗!【月次版】業界天気図 |
https://diamond.jp/articles/-/307159
|
パルコとマルイ、月は割増収も根深い「コロナ禍の傷跡」、その実態はコロナで明暗【月次版】業界天気図コロナ禍から企業が復活するのは一体、いつになるのだろうか。 |
2022-08-08 04:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コロナ治療で重宝「呼吸療法士」はなぜ日本に不在?日米“医療職格差”の事情 - 医療をデータで語る |
https://diamond.jp/articles/-/307678
|
重宝 |
2022-08-08 04:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
欧州「冬のガス不足」高まる懸念、ECBが選択を迫られる2つの利上げシナリオ - 政策・マーケットラボ |
https://diamond.jp/articles/-/307667
|
天然ガス |
2022-08-08 04:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
米金利「逆イールド」再び発生、米国株上昇が続くための利上げ“天井”の条件 - 政策・マーケットラボ |
https://diamond.jp/articles/-/307652
|
株価指数 |
2022-08-08 04:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
水がきれいな海水浴場が多い都道府県ランキング2022、4位兵庫、2位新潟、1位は? - ニッポンなんでもランキング! |
https://diamond.jp/articles/-/307716
|
海水浴場 |
2022-08-08 04:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
水がきれいな海水浴場が多い都道府県ランキング2022【完全版】 - ニッポンなんでもランキング! |
https://diamond.jp/articles/-/307621
|
海水浴場 |
2022-08-08 04:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「わが家の壁が突然崩れた」戸建て住宅を蝕む“壁の雨漏り”の深刻実態 - 不動産の新教科書 |
https://diamond.jp/articles/-/307477
|
公益財団法人 |
2022-08-08 04:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
JR西日本が「技術の外販」始めた理由、自前主義を覆す3つの取り組み - News&Analysis |
https://diamond.jp/articles/-/307644
|
newsampampanalysis |
2022-08-08 04:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「中高年の物忘れ」を減らす記憶術とは?年の功が生きるスキルも - News&Analysis |
https://diamond.jp/articles/-/306795
|
newsampampanalysis |
2022-08-08 04:05:00 |
北海道 |
北海道新聞 |
奈良市長「銃撃事件後世に伝承」 現場整備9月に結論、発生1カ月 |
https://www.hokkaido-np.co.jp/article/715328/
|
奈良市長 |
2022-08-08 04:01:28 |
ビジネス |
東洋経済オンライン |
トンネル入口で「祈願」、リニア新幹線の最新状況 多治見で着工、生物多様性問題は「道筋見えた」 | 新幹線 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/609311?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
多治見市 |
2022-08-08 04:30:00 |
コメント
コメントを投稿