python |
Pythonタグが付けられた新着投稿 - Qiita |
Markdownをいい感じにDeepLで翻訳するツール作った |
https://qiita.com/koshian2/items/0c695274ef82e170adc5
|
Markdownをいい感じにDeepLで翻訳するツール作った単なるMarkdown翻訳機としても使えますが、スライド生成ライブラリと組み合わせると極めて強力です。 |
2022-04-03 00:40:15 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
vscode rails環境構築時のエラー brew doctor |
https://qiita.com/masatom86650860/items/5ba337c396d541824cdd
|
vscoderails環境構築時のエラーbrewdoctorvscodeにrailsの環境構築の中で出たエラーhomebrewをインストールした後brewdoctorを行った時HomebrewhomebrewcoregitrevisionebeaeflastcommithyoudoumasatomombpbrewdoctorPleasenotethatthesewarningsarejustusedtohelptheHomebrewmaintainerswithdebuggingifyoufileanissueIfeverythingyouuseHomebrewforisworkingfinepleasedontworryorfileanissuejustignorethisThanksWarningYourCommandLineToolsaretoooutdatedUpdatethemfromSoftwareUpdateinSystemPreferencesorrunsoftwareupdateallinstallforceIfthatdoesntshowyouanyupdatesrunsudormrfLibraryDeveloperCommandLineToolssudoxcodeselectinstallAlternativelymanuallydownloadthemfromYoushoulddownloadtheCommandLineToolsforXcodeWarningAnewerCommandLineToolsreleaseisavailableUpdatethemfromSoftwareUpdateinSystemPreferencesorrunsoftwareupdateallinstallforceIfthatdoesntshowyouanyupdatesrunsudormrfLibraryDeveloperCommandLineToolssudoxcodeselectinstallAlternativelymanuallydownloadthemfromYoushoulddownloadtheCommandLineToolsforXcodesoftwareupdateallinstallforceをしたが同じく表示されたのでsudormrfLibraryDeveloperCommandLineToolsを行った。 |
2022-04-03 00:57:09 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【11冠達成】AWS認定資格 難易度や勉強方法、感想まとめ |
https://qiita.com/speckled/items/66a7ec02bfc104359def
|
これがよかったと思います問題集と実際のテストは微妙に違うことが多々あります微妙な問題の違いにより答えが変わることもあるので、納得するまで調べるのは非常に大事だと思います。 |
2022-04-03 00:16:48 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
vscode rails環境構築時のエラー brew doctor |
https://qiita.com/masatom86650860/items/5ba337c396d541824cdd
|
vscoderails環境構築時のエラーbrewdoctorvscodeにrailsの環境構築の中で出たエラーhomebrewをインストールした後brewdoctorを行った時HomebrewhomebrewcoregitrevisionebeaeflastcommithyoudoumasatomombpbrewdoctorPleasenotethatthesewarningsarejustusedtohelptheHomebrewmaintainerswithdebuggingifyoufileanissueIfeverythingyouuseHomebrewforisworkingfinepleasedontworryorfileanissuejustignorethisThanksWarningYourCommandLineToolsaretoooutdatedUpdatethemfromSoftwareUpdateinSystemPreferencesorrunsoftwareupdateallinstallforceIfthatdoesntshowyouanyupdatesrunsudormrfLibraryDeveloperCommandLineToolssudoxcodeselectinstallAlternativelymanuallydownloadthemfromYoushoulddownloadtheCommandLineToolsforXcodeWarningAnewerCommandLineToolsreleaseisavailableUpdatethemfromSoftwareUpdateinSystemPreferencesorrunsoftwareupdateallinstallforceIfthatdoesntshowyouanyupdatesrunsudormrfLibraryDeveloperCommandLineToolssudoxcodeselectinstallAlternativelymanuallydownloadthemfromYoushoulddownloadtheCommandLineToolsforXcodesoftwareupdateallinstallforceをしたが同じく表示されたのでsudormrfLibraryDeveloperCommandLineToolsを行った。 |
2022-04-03 00:57:09 |
海外TECH |
Ars Technica |
Russia asked NASA to end sanctions to save the ISS, but the West didn’t blink |
https://arstechnica.com/?p=1845403
|
blink |
2022-04-02 15:15:49 |
海外TECH |
MakeUseOf |
The 10 Best Google Play Store Tips and Tricks for Android Users |
https://www.makeuseof.com/tag/google-play-store-tips/
|
store |
2022-04-02 15:45:13 |
海外TECH |
MakeUseOf |
How to Fix World of Warcraft Not Launching in Windows 11 or 10 |
https://www.makeuseof.com/windows-11-10-world-of-warcraft-not-launching/
|
How to Fix World of Warcraft Not Launching in Windows or Itching to get back into Azeroth but the client won t let you Here s how to fix World of Warcraft not launching on Windows and |
2022-04-02 15:15:13 |
海外TECH |
DEV Community |
Using Dataclasses for Configuration in Python |
https://dev.to/eblocha/using-dataclasses-for-configuration-in-python-4o53
|
Using Dataclasses for Configuration in Python IntroductionDefining configuration schemes for python apps can be tricky In this article I will showcase a simple and effective way to make handling configuration easy with only the standard library FormatFor this method any file format will work as long as you can parse it into a python dict A Simple ExampleWe ll make a simple example with this made up config from wikipedia receipt Oz Ware Purchase Invoicedate customer first name Dorothy family name Galeitems part no A descrip Water Bucket Filled price quantity part no E descrip High Heeled Ruby Slippers size price quantity bill to amp id street Tornado Alley Suite city East Centerville state KSship to idspecialDelivery gt Follow the Yellow Brick Road to the Emerald City Pay no attention to the man behind the curtain We can parse this into python to get a dict config reciept Oz Ware Purchase Invoice date customer first name Dorothy family name Gale items part no A descrip Water Bucket Filled price quantity part no E descrip High Heeled Ruby Slippers size price quantity bill to street Tornado Alley nSuite city East Centerville state KS ship to street Tornado Alley nSuite city East Centerville state KS specialDelivery Follow the Yellow Brick Road to the Emerald City Pay no attention to the man behind the curtain However using this in the code is cumbersome config customer first name is prone to error and difficult to refactor DataclassesDataclasses will make our life much easier We define the config properties sub properties and types in a config py file import typing as tfrom dataclasses import dataclassfrom datetime import date dataclassclass Item part no str description str price float quantity int size int None def post init self Do some validation if self quantity lt raise ValueError quantity must be greater than zero classmethod def from dict cls t Type Item obj dict return cls part no obj part no description obj descrip price obj price quantity obj quantity size obj get size dataclassclass Customer first name str family name str classmethod def from dict cls t Type Customer obj dict return cls first name obj first name last name obj family name dataclassclass Address street str city str state str classmethod def from dict cls t Type Address obj dict return cls street obj street city obj city state obj state dataclassclass Order reciept str date date customer Customer items t Sequence Item bill to Address ship to Address special delivery str None classmethod def from dict cls t Type Order obj dict return cls receipt obj reciept date date obj date customer Customer from dict obj customer items Item from dict item for item in obj items bill to Address from dict obj bill to ship to Address from dict obj ship to special delivery obj get specialDelivery Now when we want to use the config in our application we can simply do raw config config Order from dict raw config config customer first nameThis method has a ton of benefits We get code completion and type hints in the editorIt s easier to maintain since you only have to change a config property name in one placeCan implement version reconciliation in the from dict methodRefactoring is a breeze since editors can auto refactor class property namesAllows you to define configurations with python code since you can instantiate the dataclasses directly in a settings py file for exampleIt s testable import unittestfrom config import Orderclass TestOrderConfig unittest TestCase def test example config self raw config expected Order customer Customer self assertEqual Order from dict raw config expected Hopefully you found this useful and can use this method to clean up some of your projects |
2022-04-02 15:17:49 |
海外TECH |
DEV Community |
100 Days of Swift - Day 3 |
https://dev.to/davjvo/100-days-of-swift-day-3-9b
|
Days of Swift Day Continuation of Hacking With Swift Days of SwiftDay Operators and conditionsThis day was about operators most of them arithmetic comparison etc works about the same the only difference being that parenthesis are not required inside if statements For switch statements break is not required used so if you want to execute the next condition in another case you need to use the reserved keyword fallthrough Now range operators are a bliss for numerical comparisons and array checking the half open range lt or gt implies that the range is not inclusive ex lt is Where the full range operation is inclusive so is On the same fashioned way one can print specifics inside an array with this operator ex let rangedArray Int print rangedArray prints |
2022-04-02 15:11:40 |
海外TECH |
DEV Community |
Test post |
https://dev.to/jeusto/test-post-16g4
|
test |
2022-04-02 15:06:10 |
海外TECH |
DEV Community |
What are carbon pools? Eli5 |
https://dev.to/chicken_biryani/what-are-carbon-pools-eli5-26ef
|
What are carbon pools EliIn a conversation with Andrew O Reilly Nugent Namya and Shola Ogunkelu Andrew asked us to describe complex topics with the help of analogies and lead by an example He said I find a practical way to describe complex topics is by using analogies One I really like about carbon pools is to think of a bucket being filled by a tap with a hole in the bottom The water level of the bucket is determined by the rate of water flowing in from the tap minus the amount of water flowing out from the bottom If we increase the inflow without also increasing the outflow the water contained within this bucket will rise Alternatively if we increase the outflow without increasing the inflow water levels will drop FLINT models carbon pools in terms of stocks and flows does this analogy help you visualise what a pool represents This was one of the best analogies I came across for carbon pools and I think it would have been selfish to not put it out there |
2022-04-02 15:02:26 |
Apple |
AppleInsider - Frontpage News |
Under-display Face ID could arrive with 'iPhone 16' in 2024 |
https://appleinsider.com/articles/22/04/02/under-display-face-id-could-arrive-with-iphone-16-in-2024?utm_medium=rss
|
Under display Face ID could arrive with x iPhone x in A future iPhone upgrade introducing an under display camera for Face ID to the iPhone may not arrive until an analyst claims with a potentially clear and complete display forecast for the iPhone Current rumors for the iPhone Pro models has Apple considering a shift away from the infamous notch However in a tweet TF Securities Ming Chi Kuo believes that the notch and its replacement could be retired by an under display version in a future model In response to a tweet from DSCC analyst Ross Young posted on March predicting an under display version of Face ID for the iPhone Kuo offered on Saturday morning that his prediction is the same Under display Face ID coming in iPhone Kuo writes Read more |
2022-04-02 15:53:39 |
海外TECH |
Engadget |
Russia won’t cooperate on the International Space Station until sanctions are lifted |
https://www.engadget.com/russia-suspends-iss-cooperation-153506829.html?src=rss
|
Russia won t cooperate on the International Space Station until sanctions are liftedRussia s Roscosmos will stop working with NASA and other western space agencies on the International Space Station On early Saturday morning Roscosmos director Dmitry Rogozin slammed international sanctions against Russia and said normal cooperation between the space agency and its western counterparts would only be possible after they were lifted ГлаваНАСАсенаторНельсон руководительЕвропейскогокосмическогоагентстваЙозефАшбахериглаваКанадскогокосмическогоагентстваЛизаКэмпбеллответилинамоёкнимобращениестребованиемотменысанкцийпротиврядапредприятийроссийскойракетно космическойотрасли pic twitter com rnMYiKwalーРОГОЗИН Rogozin April “The purpose of the sanctions is to kill the Russian economy plunge our people into despair and hunger and bring our country to its knees It s clear they won t succeed but the intentions are clear Rogozin said in a tweet spotted by Reuters “That s why I believe that the restoration of normal relations between the partners at the International Space Station and other projects is possible only with full and unconditional removal of illegal sanctions Rogozin said Roscosmos would submit proposals on ending its work with NASA and other international space agencies to Russian authorities It s unclear how the decision would affect the space station The ISS is not owned by any single country The US European Union Russia Canada and Japan operate the station through a cooperative agreement between the countries Roscosmos however is critical to the ISS The Russian Orbital Segment handles guidance control for the entire station The US and many other countries imposed harsh sanctions on Russia following its invasion of Ukraine on February th Among other effects those sanctions have seen average Russians lose access to many western made services including Apple Pay and Google Pay They have also made it difficult for Russian businesses to cash out their earnings from online marketplaces platforms like Steam The ISS isn t the first joint space program to see its future thrown into uncertainty due to rising tensions between the West and Russia In March Roscosmos said it would not ferry OneWeb s internet satellites to space until the UK government sold its stake in the company That same month the European Space Agency announced it was suspending its joint ExoMars mission with Roscosmos |
2022-04-02 15:35:06 |
海外科学 |
NYT > Science |
Is Russia Quitting the International Space Station? Not Quite. |
https://www.nytimes.com/2022/04/02/world/europe/russia-space-station.html
|
partnership |
2022-04-02 15:25:06 |
ニュース |
BBC News - Home |
Dover queues due to shortage of cross-Channel ferries |
https://www.bbc.co.uk/news/uk-england-kent-60965245?at_medium=RSS&at_campaign=KARANGA
|
dover |
2022-04-02 15:47:19 |
ニュース |
BBC News - Home |
Hargeisa fire: Inferno devastates market in Somaliland's capital |
https://www.bbc.co.uk/news/world-africa-60967458?at_medium=RSS&at_campaign=KARANGA
|
hargeisa |
2022-04-02 15:37:38 |
ニュース |
BBC News - Home |
Liverpool 2-0 Watford: Diogo Jota & Fabinho secure 10th straight Premier League win |
https://www.bbc.co.uk/sport/football/60883947?at_medium=RSS&at_campaign=KARANGA
|
Liverpool Watford Diogo Jota amp Fabinho secure th straight Premier League winLiverpool beat struggling Watford to complete a remarkable return to the top of the Premier League for a few hours at least |
2022-04-02 15:53:21 |
ニュース |
BBC News - Home |
IPL: Jos Buttler hits century as Rajasthan Royals beat Mumbai Indians |
https://www.bbc.co.uk/sport/cricket/60968684?at_medium=RSS&at_campaign=KARANGA
|
IPL Jos Buttler hits century as Rajasthan Royals beat Mumbai IndiansEngland s Jos Buttler hits the first century of this season s Indian Premier League as Rajasthan Royals beat Mumbai Indians by runs |
2022-04-02 15:34:27 |
ニュース |
BBC News - Home |
Scottish Grand National: Win My Wings wins ahead of Kitty's Light |
https://www.bbc.co.uk/sport/horse-racing/60968452?at_medium=RSS&at_campaign=KARANGA
|
kitty |
2022-04-02 15:38:16 |
サブカルネタ |
ラーブロ |
22/092 柏担々麺:汁なし担々麺(辛め)、味玉、ライス(ランチタイムサービス、少な目) |
http://ra-blog.net/modules/rssc/single_feed.php?fid=197786
|
汁なし担々麺 |
2022-04-02 16:05:07 |
サブカルネタ |
ラーブロ |
町田汁場 しおらーめん 進化@町田 「背脂生姜のしおつけめん、ほか」 |
http://ra-blog.net/modules/rssc/single_feed.php?fid=197797
|
続きを読む |
2022-04-02 16:01:28 |
北海道 |
北海道新聞 |
宗谷管内2人、留萌管内1人 新型コロナ |
https://www.hokkaido-np.co.jp/article/664792/
|
宗谷管内 |
2022-04-03 00:24:00 |
北海道 |
北海道新聞 |
コンサドーレ6戦連続ドロー 浦和と1―1 |
https://www.hokkaido-np.co.jp/article/664757/
|
連続 |
2022-04-03 00:09:48 |
コメント
コメントを投稿