python |
Pythonタグが付けられた新着投稿 - Qiita |
[memo]やまぐち AI Quest 2022 |
https://qiita.com/saber72237/items/8c842811602e660f91a2
|
aiquest |
2022-12-30 22:37:59 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Raspberry Pi 4 を使ったROS入門 第4回 Gazeboを使ったシミュレーション |
https://qiita.com/H-Ando-robo/items/436755c05fc652478079
|
gazebo |
2022-12-30 22:34:54 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Pythonで書くAWS CDK ~既存VPCを使ったVPCエンドポイント作成~ |
https://qiita.com/The-town/items/9e052502fa8ede4de7d8
|
awscdk |
2022-12-30 22:05:41 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
Epsonのスキャナ(DS-310)をLinux(Ubuntu)で使う |
https://qiita.com/fluo10/items/715da94dcf1ae3c907e9
|
epson |
2022-12-30 22:59:26 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Microsoft Sentinel分析ルールの紐解き(First access credential added to Application or Service Principal where no credential was present) |
https://qiita.com/sanyamarseille/items/5ffa6f10f9da96c0dc1c
|
MicrosoftSentinel分析ルールの紐解きFirstaccesscredentialaddedtoApplicationorServicePrincipalwherenocredentialwaspresentMicrosoftSentinelにおいてもともと準備されている分析ルールについてクエリの中身や注意点等を紐解いていく。 |
2022-12-30 22:09:10 |
海外TECH |
Ars Technica |
Could getting rid of old cells turn back the clock on aging? |
https://arstechnica.com/?p=1906940
|
decrepit |
2022-12-30 13:20:42 |
海外TECH |
Ars Technica |
Mastodon—and the pros and cons of moving beyond Big Tech gatekeepers |
https://arstechnica.com/?p=1906181
|
comeback |
2022-12-30 13:00:38 |
海外TECH |
MakeUseOf |
Apple's 7 Biggest Mistakes in the 21st Century |
https://www.makeuseof.com/apple-biggest-mistakes/
|
apple |
2022-12-30 13:01:14 |
海外TECH |
DEV Community |
Confusing Company Layoffs |
https://dev.to/sloan/confusing-company-layoffs-ffk
|
Confusing Company LayoffsThis is an anonymous post sent in by a member who does not want their name disclosed Please be thoughtful with your responses as these are usually tough posts to write Email sloan dev to if you d like to leave an anonymous comment or if you want to ask your own anonymous question At the start of November the company I worked for starting making layoffs Myself and another guy who were due to go on paternity leave in January were both made redundant neither of us had been at the company long enough to get redundancy pay but they did cover our notice period whilst terminating us without notice on the spot A few days after layoffs I find another guy who started the job the same day as me at the same level for the same role is promoted I d be interested in any thoughts on this p s this is the UK Thanks |
2022-12-30 13:44:22 |
海外TECH |
DEV Community |
📫How To Make A Popup | HTML, CSS & JavaScript |
https://dev.to/robsonmuniz16/how-to-make-a-popup-html-css-javascript-18ml
|
How To Make A Popup HTML CSS amp JavaScriptLearn how to create a professional quality popup or modal window from scratch using HTML CSS and JavaScript In this comprehensive tutorial series you ll master the skills you need to build fully functional interactive popups for your web projects Whether you re a beginner or an experienced developer you ll find valuable insights and techniques in this series Don t miss out on this opportunity to take your web development skills to the next level start learning today Source Code Markup lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt title gt How to Make a Popup lt title gt lt link rel stylesheet href style css gt lt script defer src app js gt lt script gt lt head gt lt body gt lt div class container gt lt button type submit class btn onclick openPopup gt Submit lt button gt lt div class popup id popup gt lt img src img tick png alt gt lt h gt Thank You lt h gt lt p gt Your Details has been Succesfully Submitted Thanks lt p gt lt button type button onclick closePopup gt OK lt button gt lt div gt lt div gt lt body gt lt html gt css import url wght amp display swap margin padding box sizing border box font family Poppins sans serif container width height vh background linear gradient to right c display flex align items center justify content center btn padding px px background fff border outline none cursor pointer font size px font weight border radius px transition transform s btn active transform scale popup width px background fff webkit border radius px moz border radius px border radius px position absolute top left transform translate scale text align center padding px px color visibility hidden transition all s ease in out open popup visibility visible top transform translate scale popup img width px margin top px webkit border radius moz border radius border radius box shadow px px rgba popup h font size px font weight margin px px popup button width margin top px padding px background color e color fff border outline none font size px border radius px box shadow px px rgba JavaScriptlet popup document getElementById popup function openPopup popup classList add open popup function closePopup popup classList remove open popup there are three functions openPopup closePopup and an anonymous function that runs when the page loads The openPopup function is used to open a popup element on the page It does this by adding the class open popup to the popup element which is obtained using the getElementById method The closePopup function is used to close the popup element It does this by removing the class open popup from the popup element The anonymous function that runs when the page loads is used to attach event listeners to elements on the page In this case it is attaching a click event listener to a button with the ID open popup button and a click event listener to a button with the ID close popup button When the open popup button is clicked the openPopup function is executed and when the close popup button is clicked the closePopup function is executed Follow me on YouTube Facebook Instagram New |
2022-12-30 13:04:02 |
海外TECH |
DEV Community |
Manage Forms in React Like Pro |
https://dev.to/sharmakushal/manage-forms-in-react-like-pro-2ei0
|
Manage Forms in React Like ProHi as a developer we always need to handle the forms and when we talk about the forms we also need to deal with the field validations show the error messages Mange the submitting statusIf we start to write all these conditions from the scratch in the code we need to take a lot of state in your component for example let s take an example of login form requirementsThe requirements are as belowWe need to bind the form valuesWe need validation on the form if the email field is empty we have to show the “please enter email error and if the email is incorrect we have to show the “please enter the correct email error and for the password field it must be greater then characters validationWhen the form is submitting we need to show the spinner in the buttonLet us think about the logic for the above requirementYou must be thinking about the below logicTake one submitting state which stores the submitting statusTake two states email and password for storing email and passwordTake two more states for storing errors for email and password bothAnd also to show the correct validation error you will make one function checkValidation which checks the validation and set the errors accordinglyStates const email setEmail useState const password setPassWord useState const emailError setEmailError useState const passwordError setPassWordError useState const isSubmitting setISSubmitting useState false Validation logic const validateForm gt if email const isCorrectEmail false regex logic let take false as example if isCorrectEmail setEmailError plase enter email else setEmailError plase enter email if password if password length lt setPassWordError password must be of min characters else setPassWordError plese enter password if emailError amp amp passwordError submit from logic goes here UI lt div className App gt lt div style display flex flexDirection column gt lt input placeholder email onChange e gt setEmail e target value gt emailError amp amp lt span gt emailError lt span gt lt input placeholder password onChange e gt setPassWord e target value gt passwordError amp amp lt span gt passwordError lt span gt lt button onClick gt validateForm gt isSubmitting Spinner Submit lt button gt lt div gt lt div gt as you can see for just keeping track of two fields values and validation we have to write a lot of the boilerplate code here is the formik that comes to the rescue What is Formik Formik is a form management library that helps us manage the form state without pain formik can help you to bind the input fields keep track of the form submitting status manage from submissions count and manage validation for validation we will integrate Yup with the fromik Enough talk right Let s install the dependencies and write some codeformik “yarn add formik Yup “yarn add yup you can also use any other library rather than yup but it is the most used formik so I am taking the example of thatformik provide the useFormik hooks that provide all the form helpers functions and the form values and error status Lets import dependencies import useFormik from formik import as Yup from yup let setup useFormik Hooks const formik useFormik initialValues email password validationSchema Yup object email Yup string required email is requied field email plese enter correct email password Yup string required password is required min password must be of characters onSubmit values gt onFormSubmit values let s go though all the properties one by one the initalValues store the initial values of the form validationSchema defines the validation for the fields if you don t need validation for any field you can skip that in the validation schema objectin the formik use get a lot of variables and helper functions const values errors submitForm isSubmitting handleChange formik values stores the from values in JSON type errors also stores any errors in the JSON type submitForm submit the forms and when we call this it will call onSubmit function written inside the useFormik hook isSubmitting returns boolean whether the form is submitting or not handleChange is the from helper Keep in mind that if we call the submitForm function and if there are any errors the form will not get submitted when we call this first the form gets validated and if there are any errors formik adds them in the errors JSON let s bind all these to our form lt div className App gt lt div style display flex flexDirection column gt lt input placeholder email name email onChange handleChange value values email gt errors email amp amp lt span gt errors email lt span gt lt input value values password name password placeholder password onChange handleChange gt errors password amp amp lt span gt errors password lt span gt lt button onClick gt submitForm gt isSubmitting Spinner Submit lt button gt lt div gt in the input you can see I have passed handleChange helper to the input field handleChange automatically bind the values with formik state but make sure you are also passing the name props with the field value specified in the initalvaluesyou can get the form values in the values variable and errors in the errors onefinal Output Hope you liked the Blog if you like to read about React Typescript and Node stuff You can follow me |
2022-12-30 13:02:56 |
Apple |
AppleInsider - Frontpage News |
Mac Studio, Studio Display, and 2022 in review on the AppleInsider Podcast |
https://appleinsider.com/articles/22/12/30/mac-studio-studio-display-and-2022-in-review-on-the-appleinsider-podcast?utm_medium=rss
|
Mac Studio Studio Display and in review on the AppleInsider PodcastOn this year ending episode of the AppleInsider Podcast your hosts look back at everything Apple launched in like the Mac Studio and Studio Display software features from WWDC and more with special guest Jason Aten was full of surprises from AppleApple has had a busy year and it is time to recount all the big events of with your hosts Stephen Robles and returning guest Jason Aten discuss Apple s big hardware releases new software and more Read more |
2022-12-30 13:59:42 |
Apple |
AppleInsider - Frontpage News |
Year of the Rabbit AirPods Pro on sale in China, Taiwan, Hong Kong, Macau |
https://appleinsider.com/articles/22/12/30/year-of-the-rabbit-airpods-pro-on-sale-in-china-taiwan-hong-kong-macau?utm_medium=rss
|
Year of the Rabbit AirPods Pro on sale in China Taiwan Hong Kong MacauTo mark the Chinese New Year Apple is releasing a limited edition Year of the Rabbit version of the AirPods Pro in four countries in Asia Year of the Rabbit AirPods ProThe Chinese New Year takes place on January and Apple is capitalizing on the event with customized versions of its hardware The latest launch is for a limited edition release of AirPods Pro personalized for the occasion Read more |
2022-12-30 13:52:18 |
Apple |
AppleInsider - Frontpage News |
Cherry Gentix BT review: Compact multi-device mouse for users on the go |
https://appleinsider.com/articles/22/12/30/cherry-gentix-bt-review-compact-multi-device-mouse-for-users-on-the-go?utm_medium=rss
|
Cherry Gentix BT review Compact multi device mouse for users on the goThe Cherry Gentix BT bluetooth mouse with multi device functionality is small but mighty and perfect for students or digital nomads with more than one Mac PC or iPad Cherry Gentix BT ReviewStudents and remote workers often find themselves using multiple devices to complete their work They may start out doing research on a laptop use their tablet as an additional screen for images while using their phone for calls or messages Read more |
2022-12-30 13:28:40 |
Apple |
AppleInsider - Frontpage News |
Apple Watch can act as reliable & accurate stress indicator |
https://appleinsider.com/articles/22/12/29/apple-watch-can-act-as-reliable-accurate-stress-indicator?utm_medium=rss
|
Apple Watch can act as reliable amp accurate stress indicatorThe ECG feature alongside other measurements in the Apple Watch can act a basic stress detector claims a new study Back in the then forthcoming Apple Watch Series was rumored to include features for monitoring mental health issues most specifically including anxiety Apple has not included such an anxiety or stress app as yet However a limited new study claims that the Apple Watch is already useful for predicting stress because of what else it is intended to detect Read more |
2022-12-30 13:18:09 |
海外TECH |
Engadget |
Engadget Podcast: CES 2023 Preview |
https://www.engadget.com/engadget-podcast-ces-2023-preview-133032994.html?src=rss
|
Engadget Podcast CES PreviewCan you believe CES is just a week away For our final episode of Cherlynn Devindra and Senior Writer Sam Rutherford dive into their expectations for CES We ll definitely hear more from Intel and AMD when it comes to CPUs as well as AMD and NVIDIA s latest mobile video cards But we re always keeping our eyes out for the weird stuff at the show like Lenovo s wild swiss army lamp a combination webcam facelight and USB hub And of course there will likely be tons of news around new TVs PCs and cars Listen below or subscribe on your podcast app of choice If you ve got suggestions or topics you d like covered on the show be sure to email us or drop a note in the comments And be sure to check out our other podcasts the Morning After and Engadget News Subscribe iTunesSpotifyPocket CastsStitcherGoogle PodcastsTopicsPC hardware to look forward to Phones and mobile at CES New TVs and gaming monitors to expect Wearables at CES Other news Working on Pop culture picks LivestreamCreditsHosts Cherlynn Low and Devindra HardawarGuest Sam RutherfordProducer Ben EllmanMusic Dale North and Terrence O BrienLivestream producers Julio BarrientosGraphic artists Luke Brooks and Brian Oh |
2022-12-30 13:30:32 |
海外科学 |
NYT > Science |
SpaceX’s Launch Control Room: 3 Rocket Missions in 31 Hours |
https://www.nytimes.com/2022/12/29/science/spacex-launch-mission-control.html
|
SpaceX s Launch Control Room Rocket Missions in HoursA reporter got an inside look at SpaceX s attempt to launch and land three rockets in less than two days in October part of the company s bid to make spaceflight appear almost routine |
2022-12-30 13:16:22 |
海外科学 |
NYT > Science |
The U.S. Will Need Thousands of Wind Farms. Will Small Towns Go Along? |
https://www.nytimes.com/2022/12/30/climate/wind-farm-renewable-energy-fight.html
|
The U S Will Need Thousands of Wind Farms Will Small Towns Go Along In the fight against climate change national goals are facing local resistance One county scheduled nights of meetings to debate one wind farm |
2022-12-30 13:03:35 |
海外ニュース |
Japan Times latest articles |
Blood found on clothing owned by suspect in murder of Saitama family |
https://www.japantimes.co.jp/news/2022/12/30/national/crime-legal/blood-clothing-saitama-murders/
|
Blood found on clothing owned by suspect in murder of Saitama familyPrefectural police have said they received reports of a man in black clothing carrying what appeared to be a hammer as he left the scene |
2022-12-30 22:07:27 |
ニュース |
BBC News - Home |
Wallasey pub shooting: Elle Edwards's family needs answers, say police |
https://www.bbc.co.uk/news/uk-england-merseyside-64125897?at_medium=RSS&at_campaign=KARANGA
|
bright |
2022-12-30 13:39:55 |
ニュース |
BBC News - Home |
Fashion world 'heartbroken' after Vivienne Westwood dies |
https://www.bbc.co.uk/news/uk-64122181?at_medium=RSS&at_campaign=KARANGA
|
british |
2022-12-30 13:33:38 |
ニュース |
BBC News - Home |
Belarus says it downed Ukraine air defence missile |
https://www.bbc.co.uk/news/world-europe-64122632?at_medium=RSS&at_campaign=KARANGA
|
missile |
2022-12-30 13:48:33 |
ニュース |
BBC News - Home |
Flu rise warning from NHS in England |
https://www.bbc.co.uk/news/health-64126654?at_medium=RSS&at_campaign=KARANGA
|
illness |
2022-12-30 13:47:51 |
ニュース |
BBC News - Home |
Pele: Premier League and EFL players to wear black armbands to honour footballing great |
https://www.bbc.co.uk/sport/football/64125638?at_medium=RSS&at_campaign=KARANGA
|
Pele Premier League and EFL players to wear black armbands to honour footballing greatPremier League and English Football League players are set to wear black armbands and hold a minute s applause to honour Brazil football legend Pele |
2022-12-30 13:08:24 |
ニュース |
BBC News - Home |
Pele: Brazil legend's extraordinary career in pictures |
https://www.bbc.co.uk/sport/football/64125974?at_medium=RSS&at_campaign=KARANGA
|
incredible |
2022-12-30 13:22:04 |
北海道 |
北海道新聞 |
オホーツク管内115人感染 新型コロナ |
https://www.hokkaido-np.co.jp/article/782489/
|
医療機関 |
2022-12-30 22:38:34 |
北海道 |
北海道新聞 |
市長への投書きっかけ、網走で「22歳の集い」 成人式中止の若者対象、1月8日に |
https://www.hokkaido-np.co.jp/article/782485/
|
新型コロナウイルス |
2022-12-30 22:36:53 |
北海道 |
北海道新聞 |
釧路管内89人感染、根室管内15人 新型コロナ |
https://www.hokkaido-np.co.jp/article/782499/
|
根室管内 |
2022-12-30 22:37:00 |
北海道 |
北海道新聞 |
道内7空港「フェス」航空券や特産品、抽選で当てよう |
https://www.hokkaido-np.co.jp/article/782497/
|
釧路空港 |
2022-12-30 22:36:00 |
北海道 |
北海道新聞 |
旭川市議・野村氏、立憲へ離党伝達 旧統一教会巡るSNS投稿で「迷惑掛けた」 |
https://www.hokkaido-np.co.jp/article/782462/
|
市民連合 |
2022-12-30 22:36:12 |
北海道 |
北海道新聞 |
<師走点描2022>緩む財布のひも、年末の街に活気「正月ぐらいぜいたくに」 |
https://www.hokkaido-np.co.jp/article/782459/
|
上川管内 |
2022-12-30 22:33:07 |
北海道 |
北海道新聞 |
レコード大賞、セカオワが初受賞 最優秀新人賞は田中あいみさん |
https://www.hokkaido-np.co.jp/article/782487/
|
日本レコード大賞 |
2022-12-30 22:28:04 |
北海道 |
北海道新聞 |
全国女子サッカー、旭実高初戦敗退「相手が本当に上手だった」 |
https://www.hokkaido-np.co.jp/article/782460/
|
全日本高校女子サッカー選手権 |
2022-12-30 22:30:54 |
北海道 |
北海道新聞 |
年末年始のフェリー安全に 江差海保が警戒活動開始 |
https://www.hokkaido-np.co.jp/article/782471/
|
年末年始 |
2022-12-30 22:28:40 |
北海道 |
北海道新聞 |
初日の出は雲の隙間から? 札幌もいわ山ロープウェイ3年ぶり特別運行 |
https://www.hokkaido-np.co.jp/article/782492/
|
初日の出 |
2022-12-30 22:28:19 |
北海道 |
北海道新聞 |
函館のスケート場、冬休みの子どもでにぎわう |
https://www.hokkaido-np.co.jp/article/782469/
|
函館市民 |
2022-12-30 22:26:20 |
北海道 |
北海道新聞 |
梨泰院事故で警察幹部を起訴 韓国検察、証拠隠滅教唆の罪 |
https://www.hokkaido-np.co.jp/article/782483/
|
証拠隠滅 |
2022-12-30 22:09:31 |
北海道 |
北海道新聞 |
円山動物園内の仏料理店シェフ・フックさん、年明け母国へ帰国 店は妻が継続 |
https://www.hokkaido-np.co.jp/article/782491/
|
円山動物園 |
2022-12-30 22:20:00 |
北海道 |
北海道新聞 |
レバンガ、気になるターンオーバー 大事な場面で失点に(30日) |
https://www.hokkaido-np.co.jp/article/782464/
|
競り |
2022-12-30 22:19:48 |
北海道 |
北海道新聞 |
マグロやカニ・・・正月の食卓に 歳末の札幌、にぎわう市場・百貨店 |
https://www.hokkaido-np.co.jp/article/782490/
|
札幌市内 |
2022-12-30 22:18:00 |
北海道 |
北海道新聞 |
<帯広十勝>新得、清水、鹿追の1年 伊藤圭三 |
https://www.hokkaido-np.co.jp/article/782481/
|
伊藤圭三 |
2022-12-30 22:16:39 |
北海道 |
北海道新聞 |
タイで高まるコンサドーレの存在感 競技の枠超え行政や企業の懸け橋に |
https://www.hokkaido-np.co.jp/article/782386/
|
北海道コンサドーレ札幌 |
2022-12-30 22:13:29 |
北海道 |
北海道新聞 |
北見赤十字病院と北見工大、人材育成や研究で協定 |
https://www.hokkaido-np.co.jp/article/782488/
|
人材育成 |
2022-12-30 22:05:00 |
北海道 |
北海道新聞 |
東部「併合」2州で新憲法採択 ウクライナ、ドンバス地域 |
https://www.hokkaido-np.co.jp/article/782484/
|
東部 |
2022-12-30 22:04:00 |
海外TECH |
reddit |
I cant post anything bcus of low karma |
https://www.reddit.com/r/FreeKarma4You/comments/zz0j5f/i_cant_post_anything_bcus_of_low_karma/
|
I cant post anything bcus of low karmaHook a stranger up please submitted by u mrSoniv to r FreeKarmaYou link comments |
2022-12-30 13:28:16 |
コメント
コメントを投稿