投稿時間:2022-04-16 20:34:11 RSSフィード2022-04-16 20:00 分まとめ(37件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS lambdaタグが付けられた新着投稿 - Qiita AWS LambdaでPython基礎 https://qiita.com/emiki/items/5daa0e31b8a8fa7c680a amazontra 2022-04-16 19:30:32
python Pythonタグが付けられた新着投稿 - Qiita [kaggle] dataframeの容量を圧縮して、メモリー不足を回避する https://qiita.com/gorira/items/7650965b74faeb4fb2dc columnsofadataframeandmod 2022-04-16 19:44:50
python Pythonタグが付けられた新着投稿 - Qiita [pandas] dataframe内の被ったデータをdropする https://qiita.com/gorira/items/3a1d508cba4f0ee8245e dfdropduplicateskeepfirst 2022-04-16 19:38:44
Ruby Rubyタグが付けられた新着投稿 - Qiita 【Rails】cocoonを用いたデータを表示する方法 https://qiita.com/setsunan76253/items/2a66a3b8becdf446f65c https 2022-04-16 19:05:58
AWS AWSタグが付けられた新着投稿 - Qiita AWS LambdaでPython基礎 https://qiita.com/emiki/items/5daa0e31b8a8fa7c680a amazontra 2022-04-16 19:30:32
Ruby Railsタグが付けられた新着投稿 - Qiita 【Rails】cocoonを用いたデータを表示する方法 https://qiita.com/setsunan76253/items/2a66a3b8becdf446f65c https 2022-04-16 19:05:58
技術ブログ Developers.IO AWS WAFのWebACLを複数リソースで共有している場合、レートリミットはリソース単位で効きますか?ルール単位で効きますか? https://dev.classmethod.jp/articles/behavior-ratelimit-with-shared-webacl/ awswaf 2022-04-16 10:14:14
海外TECH DEV Community FIX: replaceAll() is not a Function In JavaScript https://dev.to/shivampawar/fix-replaceall-is-not-a-function-in-javascript-3klp FIX replaceAll is not a Function In JavaScript Why this error You will get error something like this TypeError replaceAll is not a function while using replaceAll function because whatever version of node js or browser does not support this function replaceAll method was added es or es so if you are using ECMAScript version below then definitely you will see this error as there is not implementation for replaceAll in earlier versions How To Fix thee Issue ​As a workaround for this problem you can use replace method with a regular expression that has the global “g flag set which had a strong support for all ES version and browsers Lets try with an example Below example will replace all whitespaces “ with hyphen “ “ function testReplace sentence return sentence replace g console log testReplace This is Test What if you need to use replaceAll at multiple places Alternatively You can create a function which will resemble the behavior of replaceAll method Like in this example function someFunction blogName return replaceAll blogName g function replaceAll sentence regx replaceBy return sentence replace regx replaceBy console log someFunction This is my blog Now you are good to use replaceAll method anywhere but with different implementation Note that we are passing parameters to our replaceAll method which is different than the actual replaceAll method but both will give desired output ConclusionThere is no implementation of replaceAll present in version of ECMAScript that s why we get this error To fix this we had a workaround which will use replace method to do exact thing which replaceAll does Please do share your feedback and experiences in the comments section belowIf you found this article useful please share it with your friends and colleagues ️Follow me on ️LinkedIn 2022-04-16 10:44:29
海外TECH DEV Community Hire odoo partner Vs odoo freelancer https://dev.to/abycyb/hire-odoo-partner-vs-odoo-freelancer-4gc2 Hire odoo partner Vs odoo freelancerHire odoo partner Vs odoo freelancerWhy hire developers for customizing odoo ERP Hiring odoo developers benefit the user in many different ways Whenever the user has a specific need that he she needs to implement in the odoo software for better user experience a developer has to be hired who can understand the actual need of the customer and has the experience to implement it in the Odoo software by making changes to the code Hiring a odoo freelancer vs the merits of hiring an Odoo partnerOdoo developer freelance services are available throughout the web but is it really the best option for your firm Does the experience of a freelancer really affect the output of the product handed down to the user Even though Odoo partner services are priced on the high side does it give a better result than hiring a freelancer These are all the doubts while choosing a developer to customize your Odoo software to suit your company s needs The truth is there is a huge difference in this segment An odoo freelance developer does not have any kind of organizational support and is not available x for support Freelancing is a paycheck based service where the obligation ends once the fee is paid The quality of the service provided will be questionable Domain experience of the freelancer is limited when compared to that of an odoo partner An important factor to be noted is that the confidentiality of the client information is questionable Even though the price for hiring a odoo partner is on the higher side when compared to an odoo freelancer it provides the client with a wide variety of services like x support reliable and experienced personnel after support available and the experience of the developers in handling a client request ensures the confidentiality of information Therefore hiring an odoo partner is always best when compared to a freelancer and for the best results in odoo software customization 2022-04-16 10:43:59
海外TECH DEV Community Lắp đặt giàn phơi thông minh Duy Lợi, Hoà Phát giá rẻ https://dev.to/gianphoiduyloi/lap-dat-gian-phoi-thong-minh-duy-loi-hoa-phat-gia-re-3cnj Lắp đặt giàn phơi thông minh Duy Lợi HoàPhát giárẻLắp đặt giàn phơi đồthông minh HoàPhát Duy Lợi giárẻ chất lượng bảo hành năm Lắp đặt lưới an toàn bat che nắng mưa cửa lưới chống muỗiĐịa chỉ quận Bình Tân TP Ho Chi MinhPhone Website URL Seo URL Seo URL Seo URL Seo URL Seo URL Seo Social gianphoiduyloi 2022-04-16 10:31:17
海外TECH DEV Community มาเปลี่ยน admin password ให้กับ opensearch docker กันเถอะ https://dev.to/nancom/maaepliiyn-admin-password-aihkab-opensearch-docker-kanetha-5e2c มาเปลี่ยนadmin password ให้กับopensearch docker กันเถอะ    เนื่องด้วยตอนนี้จะทำอะไรแต่ละอย่างก็พยายามใช้Docker เป็นหลักเพื่อความสะดวกในทั้งตอนDevelop →UAT →Produciton จะได้ไปในท่าเดียวกันได้ทั้งหมด    และมีโจทย์ที่จะimplement log server ขึ้นมาอีกตัวเลยนั่งนึกๆดูปกติเราSearch มาlog อะไรมันก็เป็นText Base Search ดังนั้นตัวที่เหมาะๆในการใช้งานน่าะเป็นElastics Search Stack นี่แหละที่เหมาะที่สุดแต่Elastics Search ก็ดันเปลี่ยนlicense ไปซะแล้วไหนๆก็ไหนๆใช้ตัวOpen Search เลยดีกว่า    ซึ่งไปหาดูในWebsite ของOpen Search ก็แสนจะง่าย run the image docker run p p e discovery type single node opensearchproject opensearch Run command ง่ายๆแบบนี้เองหลังจากcontainer up ขึ้นมาแล้วก็ทดสอบง่ายๆว่าสามารถใช้งานได้่ไหมโดยคำสั่ง curl XGET https localhost u admin admin insecure curl XGET https localhost cat nodes v u admin admin insecure curl XGET https localhost cat plugins v u admin admin insecureได้response มาก็จะพบว่าใช้งานได้ละแต่     สังเกตอะไรไหมครับUsername และPassword มันช่างง่ายดายเสียนี่กระไรหากมีใครล่วงรู้ก็สามารถมาทำอะไรๆกับOpen Search ของเราได้ล่ะสิ​ดังนั้นควรจะเปลี่ยนมันซะเพื่อป้องกันการเข้าถึงที่ง่ายเกินไประดับนึง    ดังนั้นจึงต้องไปแสดงหาวิธีการในการแก้ไขpassword ของadmin อย่างง่ายๆเพื่อไม่ให้เปลืองพลังงานชีวิตจนเกินไปก็พบทางสว่างจากlink นี้ที่เค้าทำการเปลี่ยนpassword admin ของElastics Search บนOpen Distro     ดังนั้นมาลองกันเลยครับตรวจสอบเสียก่อนว่าcontainer ที่เรารันชื่ออะไรจะได้เข้าไปจัดการได้ถูกrun คำสั่งนี้ได้เลย docker ps aก็จะเจอCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMEScecbac opensearchproject opensearch opensearch docker… minutes ago Up minutes gt tcp tcp gt tcp tcp zen lamarrเจอแล้วก็เข้าไปข้างในcontainer เพื่อจัดการครับ docker exec it ชื่อcontainer ที่ต้องการ bin bashก็จะเข้ามาในterminal ของdocker ได้แล้ว opensearch cecbac คราวนี้ก็พร้อมให้เราจัดการแล้วครับขั้นแรกจัดการสร้างhash ของpassword ใหม่เสียก่อนด้วยคำสั่งนี้ opensearch cecbac usr share opensearch plugins opensearch security tools hash shระบบก็จะขึ้นPrompt Password เพื่อให้เราป้อนค่าที่ต้องการครับแล้วมันจะHash ให้เราเลยแบบนี้ opensearch cecbac usr share opensearch plugins opensearch security tools hash sh Password y LhqnOTHLUTaMMCwboZ PHhcKsnzixTvUqifUw opensearch cecbac จากนั้นตามหาfile internal users yml เพื่อแก้ไขpassword ของadmin ซึ่งมันจะอยู่ที่ usr share opensearch plugins opensearch security securityconfig internal users ymlยังดีครับimage นี้มีvi ให้เราใช้แก้ไขfile ได้บางimage เอาออกเกลี้ยงจะทำอะไรทีต้องeho ทับมันก็จะรันทดหน่อยๆก็จัดการมันครับ vi usr share opensearch plugins opensearch security securityconfig internal users ymlจะพบsection hash กันต่อหน้าต่อตาเลยทีเดียว Define your internal users here Demo usersadmin hash y yozwRCsWQMzj OswvORgmKpDgpMtxEypUTgcmlRnbpZtay reserved true backend roles admin description Demo admin user copy hash ที่เราได้มาใหม่ทับเลยครับแต่ยังไม่จบเมื่อเปลี่ยนแล้วต้องให้มันรู้จักครับว่าเปลี่ยนRun Command นี้เข้าไป cd usr share opensearch plugins opensearch security tools sh securityadmin sh cd securityconfig icl nhnv cacert usr share opensearch config root ca pem cert usr share opensearch config kirk pem key usr share opensearch config kirk key pemเป็นอันเรียบร้อยครับลองทดสอบดูด้วยuser password เดิมจะพบว่าใช้ไม่ได้แล้ว curl XGET https localhost u admin admin insecure Unauthorizedแต่เมื่อทดสอบด้วยpassword ใหทม่curl XGET https localhost u admin password insecure name cecbac cluster name docker cluster cluster uuid LyLlcSMOVrmPtymsOA version distribution opensearch number build type tar build hash ccbffcaccbfd build date T Z build snapshot false lucene version minimum wire compatibility version minimum index compatibility version beta tagline The OpenSearch Project ก็จะพบว่าใช้ได้แล้วตามปกติเป็นอันว่าจบไปครับกับการเปลี่ยนadmin password ของopensearch อย่างง่าย ตรงไหน เผื่อใครจะเอาไปใช้นะครับ 2022-04-16 10:25:45
海外TECH DEV Community Huggingface Transformers Pytorch Tutorial: Load, Predict and Serve/Deploy https://dev.to/wjiuhe/huggingface-transformers-pytorch-tutorial-load-predict-and-servedeploy-k7i Huggingface Transformers Pytorch Tutorial Load Predict and Serve DeployMany of you must have heard of Bert or transformers And you may also know huggingface In this tutorial let s play with its pytorch transformer model and serve it through REST API How the model works With an input of an incomplete sentence the model will give its prediction Input Paris is the MASK of France Output Paris is the capital of France Coollet s try this out now Prerequisite For mac usersIf you re working on a M Mac like me you need install cmake and rustbrew install cmakecurl proto https tlsv sSf sh Install dependenciesYou can install dependencies using pip pip install tqdm boto requests regex sentencepiece sacremosesor you can use a docker image instead docker run it p v pwd opt workspace huggingface transformers pytorch cpu bash Load the modelThis will load the tokenizer and the model It may take sometime to download import torch load tokenizertokenizer torch hub load huggingface pytorch transformers tokenizer bert base cased load masked modelmasked lm model torch hub load huggingface pytorch transformers modelForMaskedLM bert base cased Define the predict functionThe input text is Paris is the MASK of France input text Paris is the MASK of France First we need to tokenize thetokens tokenizer input text Let s have a look at the masked index mask index i for i token id in enumerate tokens input ids if token id tokenizer mask token id Prepare the tensor segments tensors torch tensor tokens token type ids tokens tensor torch tensor tokens input ids Predict with torch no grad predictions masked lm model tokens tensor token type ids segments tensors Now let s have a look at the result pred tokens torch argmax predictions dim replace the initail input text s mask with predicted textfor i in mask index tokens input ids i pred tokens i tokenizer decode tokens input ids skip special tokens True Output Paris is the capital of France Let s organize the codes in to a predict function def predict input text tokenize the input text tokens tokenizer input text get all the mask index mask index i for i token id in enumerate tokens input ids if token id tokenizer mask token id convert the input ids and type ids to tensor segments tensors torch tensor tokens token type ids tokens tensor torch tensor tokens input ids run predictions with torch no grad predictions masked lm model tokens tensor token type ids segments tensors pick the most likely predictions pred tokens torch argmax predictions dim replace the initail input text s mask with predicted text for i in mask index tokens input ids i pred tokens i return tokenizer decode tokens input ids skip special tokens True Run predict Paris is the MASK of France Output Paris is the capital of France Serve it through REST APIFirst let s install Pinferencia pip install pinferencia uvicorn If you haven t heard of Pinferencia go to its github page or its homepage to check it out it s an amazing library help you deploy your model with ease Let s save our predict function into a file app py and add some lines to register it import torchfrom pinferencia import Server load tokenizertokenizer torch hub load huggingface pytorch transformers tokenizer bert base cased load masked modelmasked lm model torch hub load huggingface pytorch transformers modelForMaskedLM bert base cased def predict input text tokenize the input text tokens tokenizer input text get all the mask index mask index i for i token id in enumerate tokens input ids if token id tokenizer mask token id convert the input ids and type ids to tensor segments tensors torch tensor tokens token type ids tokens tensor torch tensor tokens input ids run predictions with torch no grad predictions masked lm model tokens tensor token type ids segments tensors pick the most likely predictions pred tokens torch argmax predictions dim replace the initail input text s mask with predicted text for i in mask index tokens input ids i pred tokens i return tokenizer decode tokens input ids skip special tokens True service Server service register model name transformer model predict Run the service and wait for it to load the model and start the server uvicorn app service reloadTest the service Using curl curl location request POST v models transformer predict header Content Type application json data raw data Paris is the MASK of France Response model name transformer data Paris is the capital of France Cool Not yet even cooler You can use the swagger ui at the server s address to try the prediction 2022-04-16 10:20:49
海外TECH DEV Community Software developer vs Web Developer https://dev.to/freebeliever/software-developer-vs-web-developer-dk9 Software developer vs Web DeveloperYou might be a person new to programming trying to find a job or you might be deciding if you want to get started with either option Whatever the reason I am here to help you choose whether Software development or Web Dev is right for you So without further ado let s get started Software Development Pros ConsPros Slightly higher payingDon t necessarily need internet accessCons Might need to use harder programming languagesHarder compared to web dev to get started withNote that all comparison above is compared with web development Web Development Pros ConsPros Get To Use JavaScriptMore online resourcesCons Need internet accessNot as well paid Compared to software dev All comparisons are compared with software dev Final StatementsNo matter your choice you ll get to enjoy a good work life style with either options as long as you try your best Thank you for you time and wish you all the best of luck 2022-04-16 10:05:06
海外TECH Engadget Scammy Mac apps force users to pay for subscription https://www.engadget.com/mac-app-store-scammy-apps-100300970.html?src=rss Scammy Mac apps force users to pay for subscriptionBack in The Washington Postreported that around two percent of the highest grossing apps in the Apple App Store were some form of scam Turns out the Mac App Store also isn t immune to shady developers As The Verge reports a developer named Kosta Eleftheriou has shed light on questionable apps listed on the Mac App Store which use pop ups that make it difficult to exit unless you pay their subscription fees Eleftheriou had also previously identified a number of scam apps for iOS that made it through Apple s review process I didn t think this was possible This App Store app immediately asks you for money and then disables the “Quit option so that you can never close it And it s been like that on the App Store for years pic twitter com UCnRqWvnFーKosta Eleftheriou keleftheriou April The developer started looking into the situation after a Twitter user named Edoardo Vacchi posted about an app called My Metronome that disables the Quit option until you pay for a subscription Apple made it easier to report scam apps on iOS but Vacchi said there was no way to report My Metronome on Mac Eleftheriou confirmed Vacchi s claim and pointed The Verge to other applications exhibiting the same behavior Mac and iOS developer Jeff Johnson did some digging of his own and found that the developer behind My Metronome Music Paradise LLC is registered at the same address in Russia as another developer named Groove Vibes nbsp The Verge downloaded apps by both Music Paradise and Groove Vibes and found that while some of them had appropriate ways to quit others disabled the quit option and Mac s force quit keys It s still possible to exit the applications without paying but the links to close their pop ups look like they were deliberately designed to be hard to find nbsp Apple prides itself in having a rigorous review process for the App Store ーTim Cook even said during an Epic trial last year that the store would be a quot toxic mess quot without it Shady and fraudulent apps are still slipping through despite the measures taken by the tech giant though and it may even be earning from them According to that report from The Post the scam apps it found may have defrauded users out of an estimated million including Apple s commission The My Metronome app is no longer available for us when we checked but it s unclear if it was Apple itself that removed it We asked the tech giant for a comment and will update this post if we hear back nbsp 2022-04-16 10:03:00
海外TECH CodeProject Latest Articles Simple Fast Adaptive Grid to Accelerate Collision Detection between AABB of Particles https://www.codeproject.com/Articles/5327631/Simple-Fast-Adaptive-Grid-to-Accelerate-Collision Simple Fast Adaptive Grid to Accelerate Collision Detection between AABB of ParticlesA walkthrough for a grid implementation of particle in cell problem to improve performance of axis aligned bounding box AABB collision checking in various scenarios 2022-04-16 10:52:00
海外TECH CodeProject Latest Articles Using GFX in PlatformIO https://www.codeproject.com/Articles/5327404/Using-GFX-in-PlatformIO platformio 2022-04-16 10:07:00
海外ニュース Japan Times latest articles Russia hits Kyiv and Lviv with strikes after sinking of flagship https://www.japantimes.co.jp/news/2022/04/16/world/russia-ukraine-mariupol-kyiv/ Russia hits Kyiv and Lviv with strikes after sinking of flagshipAn explosion was heard and smoke seen in Kyiv s southeastern Darnytskyi district where Moscow said it had struck a factory that repairs tanks 2022-04-16 19:21:32
海外ニュース Japan Times latest articles As COVID cases rise in regional cities, some Japan officials say wave is imminent https://www.japantimes.co.jp/news/2022/04/16/national/seventh-wave-cases-rise/ As COVID cases rise in regional cities some Japan officials say wave is imminentHighlighting the concern new infections hit a record in the week through Tuesday in Iwate Akita Fukushima and Nagano prefectures among others 2022-04-16 19:06:20
ニュース BBC News - Home Ukraine war: Russia bans Boris Johnson from country over Ukraine war https://www.bbc.co.uk/news/world-europe-61126391?at_medium=RSS&at_campaign=KARANGA ukraine 2022-04-16 10:13:02
ニュース BBC News - Home Patel personally approved Rwanda plan despite concerns https://www.bbc.co.uk/news/uk-61126360?at_medium=RSS&at_campaign=KARANGA rwanda 2022-04-16 10:45:06
ニュース BBC News - Home Extinction Rebellion: Olympian joins activists in oil tanker protest https://www.bbc.co.uk/news/uk-england-london-61120185?at_medium=RSS&at_campaign=KARANGA protests 2022-04-16 10:37:19
北海道 北海道新聞 山梨知事がコロナ感染 ワクチン3回接種済み https://www.hokkaido-np.co.jp/article/670424/ 新型コロナウイルス 2022-04-16 19:35:00
北海道 北海道新聞 ラグビー、埼玉が11連勝 リーグワン1部 https://www.hokkaido-np.co.jp/article/670398/ 連勝 2022-04-16 19:20:02
北海道 北海道新聞 ケンコバさんコロナ感染 鈴木拓さんも https://www.hokkaido-np.co.jp/article/670423/ 新型コロナウイルス 2022-04-16 19:34:00
北海道 北海道新聞 <サタデーどうしん>小型原発、高まる関心と懸念 先端の開発現場、英国の現状探る https://www.hokkaido-np.co.jp/article/670321/ 次世代技術 2022-04-16 19:24:07
北海道 北海道新聞 白老で鳥インフル、殺処分開始 緊迫の現場に作業員続々 感染拡大懸念の声 https://www.hokkaido-np.co.jp/article/670422/ 感染拡大 2022-04-16 19:24:00
北海道 北海道新聞 山菜シーズン「山では複数人で行動を」 厚岸でヒグマに襲われた男性証言 https://www.hokkaido-np.co.jp/article/670144/ 釧本 2022-04-16 19:30:55
北海道 北海道新聞 米軍、日出生台で訓練開始 大分県「情報開示の後退」 https://www.hokkaido-np.co.jp/article/670421/ 情報開示 2022-04-16 19:19:00
北海道 北海道新聞 ウクライナ女性が演奏会、函館 平和への願い込め https://www.hokkaido-np.co.jp/article/670419/ 願い 2022-04-16 19:14:00
北海道 北海道新聞 中国電、太陽光と風力出力制御へ 初、再エネ事業者に停止求める https://www.hokkaido-np.co.jp/article/670420/ 再生可能エネルギー 2022-04-16 19:14:00
北海道 北海道新聞 <発見!コロナ下の元気企業>寿し処 彩華(小樽) 店主の人柄 地元客つかむ https://www.hokkaido-np.co.jp/article/670418/ 彩華 2022-04-16 19:12:00
北海道 北海道新聞 <シリーズ評論・ウクライナ侵攻⑪>自らの手を縛る軍事作戦 北海道侵攻、理由見当たらない 東大先端科学技術研究センター専任講師 小泉悠氏 https://www.hokkaido-np.co.jp/article/670371/ 軍事作戦 2022-04-16 19:11:18
北海道 北海道新聞 ロシア、ミサイルでキーウ再攻撃 旗艦「モスクワ」沈没で報復か https://www.hokkaido-np.co.jp/article/670378/ 首都 2022-04-16 19:11:34
北海道 北海道新聞 長崎で被爆体験の朗読会 コロナ禍休止経て再開 https://www.hokkaido-np.co.jp/article/670417/ 国立長崎原爆死没者追悼平和祈念館 2022-04-16 19:12:00
北海道 北海道新聞 和歌山・那智勝浦町長コロナ感染 24日に町長選、立候補表明 https://www.hokkaido-np.co.jp/article/670416/ 和歌山県那智勝浦町 2022-04-16 19:12:00
北海道 北海道新聞 遺族「死を無駄にするな」 尼崎脱線事故、組織罰導入を訴え https://www.hokkaido-np.co.jp/article/670415/ 脱線事故 2022-04-16 19:12:00
北海道 北海道新聞 空知管内112人感染 初の5日連続3桁 新型コロナ https://www.hokkaido-np.co.jp/article/670414/ 新型コロナウイルス 2022-04-16 19:01:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)