投稿時間:2021-08-15 01:20:09 RSSフィード2021-08-15 01:00 分まとめ(23件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita AtCoder Beginner Contest 214 参戦記 https://qiita.com/c-yan/items/17d68887952265099a9f 2021-08-15 00:10:53
python Pythonタグが付けられた新着投稿 - Qiita MineMeldをUbuntu 20.04にインストールするバッドノウハウ https://qiita.com/shakemid/items/64b356d0ee7e90f8c300 このままではNginxが起動できないので、bitで以下のように作り直すことにしました。 2021-08-15 00:10:52
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Ruby 同じ配列の中の2つの要素をCSVで2列で出力したい https://teratail.com/questions/354340?rss=all Ruby同じ配列の中のつの要素をCSVで列で出力したい同じ配列の中のつの要素をCSVで列に出力したいです。 2021-08-15 00:59:28
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) MariaDB AUTO_INCREMENTのデータ列を無視した「INSERT INTO ... ON DUPLICATE KEY UPDATE ...」による更新 https://teratail.com/questions/354339?rss=all MariaDBAUTOINCREMENTのデータ列を無視した「INSERTINTOONDUPLICATEKEYUPDATE」による更新前提・実現したいこと以下テーブルにおいて、追加するデータが同じtag、twidであれば更新、そうでなければ新たに追加とするSQLを作成したいと考えています。 2021-08-15 00:32:02
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) プログラムの出力結果がなぜそうなるかが分からない https://teratail.com/questions/354338?rss=all cbintaccharampbprintfdnc 2021-08-15 00:31:55
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) CloudFirestoreのデータをグラフ化したい https://teratail.com/questions/354337?rss=all CloudFirestoreのデータをグラフ化したい前提NextReactでポモドーロタイマーアプリを作っています現状以下のコードでApexChartsを用いたグラフの描画ができております。 2021-08-15 00:17:20
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 構文エラーが探せない https://teratail.com/questions/354336?rss=all 構文エラーが探せない変更内容見出しを「コード」の見出しをから「コードの挿入」の見出しに変更インデントがなかったので訂正しました→「コードの挿入」の見出しまた、その中のコードをltcodegtに基づいてコードを記入質問の経緯正規表現についてのコードを写経して実行した際、「SyntaxErrornbspinvalidnbspsyntax」が出て、参照元の本と比べてもわからず、自力では解決できないと考えたため質問させていただきました。 2021-08-15 00:12:27
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) C言語 Segmentation Faultについて ソートプログラム https://teratail.com/questions/354335?rss=all C言語SegmentationFaultについてソートプログラム前提・実現したいこと配列をスワップソートとバブルソートで整列するプログラムを作成しています。 2021-08-15 00:08:19
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) [MYSQL]エラー:ActiveRecord::ConnectionNotEstablishe Access denied for userを解消したい https://teratail.com/questions/354334?rss=all MYSQLエラーActiveRecordConnectionNotEstablisheAccessdeniedforuserを解消したいRubynbsponnbspRailsでアプリ開発を行なっています。 2021-08-15 00:00:36
Ruby Rubyタグが付けられた新着投稿 - Qiita 【小ネタ】Ruby で new するたびにクラスインスタンス変数をインクリメントして、インスタンス変数にぶち込む https://qiita.com/kts_h/items/f4922a3e724817ecb9c6 2021-08-15 00:44:04
Linux Ubuntuタグが付けられた新着投稿 - Qiita MineMeldをUbuntu 20.04にインストールするバッドノウハウ https://qiita.com/shakemid/items/64b356d0ee7e90f8c300 このままではNginxが起動できないので、bitで以下のように作り直すことにしました。 2021-08-15 00:10:52
Docker dockerタグが付けられた新着投稿 - Qiita Kubernetes-in-docker(kind)でkubernetesクラスタを構築する https://qiita.com/t_katsumura/items/e76d980cee0ed8480bc6 Cgtkindgetclusterskinddockerpsコマンドを実行すると、下記のようにkindcontrolplaneという名前のコンテナが起動していることが確認できます。 2021-08-15 00:41:45
Ruby Railsタグが付けられた新着投稿 - Qiita rubyをバージョンアップしてrailsコマンドが使えなくなった時の対処法 https://qiita.com/nsns245/items/e920a417de02d187bdba geminstallrails 2021-08-15 00:15:31
海外TECH DEV Community Debugging a Rails App in Vim With Vimspector https://dev.to/iggredible/debugging-a-rails-app-in-vim-with-vimspector-pi Debugging a Rails App in Vim With VimspectorFollow learnvim for more Vim tips and tricks I recently published an article on Vimspector Debugging in Vim with Vimspector There I covered different ways to run Vimspector for various Javascript environments If you re a Rails developer like me you may ask I m sold on Vimspector but how can I run it in Rails To be frank there are not a lot of resources online on how to accomplish this After tinkering for a few days I found a few setups that work on a basic Rails application I am not claiming that this is the foolproof way to debug any Rails application There are rooms for improvement and exploration But for starting out this is sufficient This article assumes that you have had some experience with Vimspector At minimum you need to know how to step into step over and step out of breakpoints You also need to know how to launch and restart Vimspector If you don t please read my previous article first Create a Basic Rails AppI am a huge fan of practical learning I believe you ll get far more mileage if you actually do the steps as you are reading this article So for the sake of hands on approach let s create a brand new Rails app Don t worry it should take less than min Create a new Rails app rails new helloCreate a controller rails generate controller Says helloLet s go to the controller and write up some codes Inside app controllers says controller rb modify the hello action class SaysController lt ApplicationController def hello time DateTime now greetings Greetings endendModify the hello html erb file lt h gt Says hello lt h gt lt p gt lt greetings gt lt p gt lt p gt It is now lt time gt lt p gt Excellent Let s quickly test if the Rails app is running properly rails sVisit http localhost says hello You should also see the values of the greetings and time instance variables Adding Important GemsVimspector isn t a debugger It s a middle man that talks to a debugger Vimspector provides a standard protocol to communicate with different debuggers With Vimspector you can communicate the same way with a Node debugger Python debugger Go debugger etc For Vimspector to work with Ruby you need to install a Ruby debugger We will use ruby debug ide In addition you also need to install debase source Add these two in your gemfile in a real project you probably want to put them inside the group development test do block gem ruby debug ide gem debase Vimspector JSONCreate a vimspector json at the Rails project root Inside it configurations rails adapter cust vscode ruby default true configuration name Debug Rails server type Ruby request launch cwd workspaceRoot pathToBundler Users iggy rbenv shims bundle pathToRDebugIDE Users iggy rbenv versions lib ruby gems gems ruby debug ide program workspaceRoot bin rails args server Note that you have to update pathToRDebugIDE and pathToBundler with your own paths I ll explain below Bundler Debugger and AdapterThere are three things that you need to provide Vimspector with The path to bundler The path to the debugger Which adapter to use To get the path for pathToBundler run which bundlerIn my case it returns User iggy rbenv shims bundle Use whatever path your machine uses Assuming you have installed the ruby debug ide gem via your Rails Gemfile to get the pathToRDebugIDE path run bundle show ruby debug ideIn my case it returns Users iggy rbenv versions lib ruby gems gems ruby debug ide Use whatever path you see Finally recall that Vimspector requires a special adapter for each language environment you use in my previous article I installed adapters also known as gadgets for node and chrome Since we re debugging a Ruby framework we need a Ruby adapter Adding a Ruby AdapterIf you look at the Vimspector config file above you ll see adapter cust vscode ruby Unfortunately Ruby is not in one of the supported languages in the Vimspector page darn it Don t worry if you dig the Vimspector repo deep enough you will find instructions on how to install a Ruby gadget there Here s the page with information for languages not officially mentioned in the README If you scroll down you ll find an instruction for Ruby Follow the instruction on the introduction sectionInside the Vimspector directory in my case it is in vim plugged vimspector gadgets custom cust vscode ruby json yours could be in a different directory depending on what plugin manager you use add a custom json file for your language Run install gadget py upgrade Vimspector should install some files from vscode ruby Phew We are done with the preliminary setup If you re still curious what just happened here are a few pages to read Ruby gadget installerVSCode Ruby Debugger Program and ArgsLet s take another look at a section inside the Vimspector config file program workspaceRoot bin rails args server Recall from the previous article program is the program that Vimspector will run when you tell it to launch something and args is the argument that gets passed to program When running a rails app you would usually run bin rails server The config does exactly that Running the VimspectorNow we are ready to run Vimspector Our config is set to launch so do not run rails s from the terminal We will run it from the debugger Go to the says controller rb and add a breakpoint on time class SaysController lt ApplicationController def hello time DateTime now add a breakpoint here greetings Greetings endendExcellent Now here comes the moment of truth let s launch Vimspector Wait a few seconds you should see on the Console window that Vimspector is launching a Rails app Now visit http localhost says hello The app should pause Check your Vimspector You should see it paused at the breakpoint If this is what you see congratulations You ve successfully launched a Rails debugger from Vim From there you can step into step over and step out of different lines of code Attach Vs LaunchThere are two ways you can run Vimspector attach and launch The former attaches the debugger into an already running process The latter launches a process from the debugger The Rails example above is an example of launch as it launches a Rails process directly from the debugger Theoretically you should be able to perform either attach or launch Attaching a Debugger to a Rails ServerYou ve seen how to launch a Rails app from Vimspector Let s see how you can attach Vimspector to a Rails process First modify our vimspector json file configurations rails adapter cust vscode ruby default true configuration name Debug Rails server type Ruby request attach cwd workspaceRoot remoteHost remotePort pathToBundler Users iggy rbenv shims bundle pathToRDebugIDE Users iggy rbenv versions lib ruby gems gems ruby debug ide Here are the changes request is now attach We added remoteHost and remotePort We removed programs and args they are unnecessary for attach The remoteHost and remotePort are the IP address and port number that we will be running the debugger on The host is set to and the port is set to These numbers will make sense in a little bit Once your vimspector json file is configured let s run the app Instead of running the regular bin rails s run rdebug ide host port dispatcher port bin rails sThis will launch the ruby debug ide program installed earlier Note the host and port numbers we are running the debugger on host and port in addition to running the rails server Next add the breakpoints inside the says controller rb file then launch Vimspector Since we are running Vimspector on attach mode it won t launch a Rails server this time Head to the page related to this controller http localhost says hello Watch your Vimspector pauses at the breakpoint s Sweet chocolate pancake Super cool isn t it Well this also concludes this article ConclusionCongratulations You ve successfully debugged a Rails app You are one step closer from becoming a supreme master developer There is still much to explore about Vimspector and Rails applications There are different settings environments and configs that I don t mention in this article Experiment Share this article Let me know how you do things differently In the end I hope that this article has given you a good place to start Happy Vimming 2021-08-14 15:08:11
海外TECH Engadget Reddit iOS app now includes a TikTok-style video feed https://www.engadget.com/reddit-tiktok-video-feed-154754721.html?src=rss Reddit iOS app now includes a TikTok style video feedReddit is about to make video a cornerstone of its mobile app The company told TechCrunch that it s rolling out a TikTok like video feed to iOS app users through a dedicated section Tap the button and you ll see a swipeable video collection from both the subreddits you ve subscribed to as well as related communities As usual you can upvote downvote comment on or gift awards A basic version of this experience was available before but only if you tapped on a video ーand the first videos you d see would come from the same subreddit The new tab is meant to quot bring community through video quot according to a Reddit spokesperson and that means creating a quot unified quot experience that matches what you expect from app based video players Reddit didn t say when all iOS users could expect the feed or when you d see an Android version The vido section first reached a handful of iOS devices sometime in July This isn t a shocking move Reddit started toying with livestreams in and bought TikTok rival Dubsmash in December While that company s code isn t being used for the feed that will come with future products the acquisition signalled Reddit s intent ーit wants to keep its social network relevant in an era when video is all important You might not see video take center stage but it s now considerably more than a nice to have feature 2021-08-14 15:47:54
海外TECH Engadget Twitter tones down new buttons after complaints of eye strain https://www.engadget.com/twitter-tones-down-buttons-eye-strain-154418283.html?src=rss Twitter tones down new buttons after complaints of eye strainA few days ago Twitter rolled out a number of design updates meant to make the website more accessible It introduced a new proprietary typeface and increased contrast to make buttons and other visual elements like images stand out Just because those changes make the website more accessible for some people though doesn t mean they work for everyone As TechCrunch and CNET note complaints started pouring in after the update went out with people reporting eye strain and headaches caused by the changes Now the social network has announced that it s adjusting its buttons contrast levels to make them easier on the eyes nbsp We ve identified issues with the Chirp font for Windows users and are actively working on a fix Thanks for your patience and please let us know if you have additional feedback ーTwitter Accessibility TwitterAy August Twitter said it made the adjustment after people sent in complaints that the quot new look is uncomfortable for people with sensory sensitivities quot The company s accessibility account started asking for feedback a day after the updates went out promising to track it all Sounds like it s stayed true to its word though the Chirp font remains even if it s supposedly giving people headaches Twitter also hasn t changed the new colors for the Follow button which has caused quite the confusion The button is now filled in with black for accounts you ve yet to follow and shows up with a white background for accounts you re already following It used to be the other way around The company may release more fixes to its accessibility update in the future though It told TechCrunch that quot feedback was sought from people with disabilities throughout the process from the beginning quot However it knows that quot people have different preferences and needs and it will continue to track feedback and refine the experience quot Twitter added quot We realize we could get more feedback in the future and we ll work to do that quot 2021-08-14 15:44:18
海外TECH Engadget Hitting the Books: How a radio telescope cost this West Virginia town its modernity https://www.engadget.com/hitting-the-books-the-quiet-zone-stephen-kurczy-harper-collins-153030420.html?src=rss Hitting the Books How a radio telescope cost this West Virginia town its modernityDeep in the heart of Appalachia modern science and America s bucolic past meet at a unique crossroad of scientific discovery and luddite lifestyles The Quiet Zone by journalist Stephen Kurczy is the story of a sleepy small town that hosts the Green Bank radio telescope But the presence of this installation comes at a price due to the telescope s exceeding sensitivity virtually every device and appliance that emits radio waves Wi Fi signals or microwave radiation is banned for square miles around That means that Green Bank West Virginia has about as much tech today as it did in the s maybe even a little less ーand some people very much like it that way But not everybody In the excerpt below Pocahontas County attorney Robert Martin recounts the challenges of attempting to modernize the region without loosing a horde of gentrifiers upon it as well nbsp nbsp nbsp nbsp nbsp nbsp nbsp nbsp Harper CollinsExcerpted from the book THE QUIET ZONE Unraveling the Mystery of a Town Suspended in Silence by Stephen Kurczy Copyright by Stephen Kurczy From Dey Street Books an imprint of HarperCollins Publishers Reprinted by permission For every electrosensitive who wanted radio quiet there were probably one hundred residents who wanted WiFi and cell service and they elected the county s officials In early the Pocahontas County Commission passed a resolution in support of cell service throughout the county a challenge to the very notion of a Quiet Zone The commission assigned its attorney Robert Martin to contact all major telecommunications providers asking them to invest in Pocahontas “I m doing my level best to get another company in here Martin told me in the spring of He d invited me to his house to discuss the new cell service ordinance and we were swigging Bud Lights at his kitchen table “How many cell companies have you written to I asked “All of them he said “I promised the companies that we ll get everybody in the damn county to sign up with them I ll sign up first I wrote a letter to everybody and said We have shit for cellphone service here we want you to come in here we ll partner with you we ll help you however we can Come in here At our feet were two boxers and a basset hound In the adjacent mudroom was a pound Vietnamese potbellied pig named Pig who was snoring Pig knew how to open the front door and pull a blanket over himself “I m the true image of West Virginia aren t I Martin laughed “I got a pig living in the house Despite his home literally being a pigsty Martin was always the best dressed at county meetings usually wearing tight designer jeans leather boots and a crisp dress shirt top buttons undone and a few chest hairs curling out A blustery guy Martin was once jailed in Marlinton for contempt of court for arguing with a circuit judge He had a history of getting into fights at West Virginia University football games For years he d also operated a hotel in Belize paying “tens of thousands of dollars in bribes and putting the payments on his tax returns so the U S government could see the corruption he was dealing with even if he was admitting to violating the Foreign Corrupt Practices Act Martin came across as a dogged lawyer who knew how to get things done And he wanted cell service “You seen that commercial saying Verizon has more coverage than anyone else he asked me “Pause and look at it real closely and you ll see right where Pocahontas County is because almost the entire Eastern Seaboard is all yellow signifying cell coverage and right there in southeastern West Virginia there s this hunk about this bigーit s Poca fucking hontas County I swear to God Right fucking there we are on Verizon s commercials Martin knew well what connectivity was like outside the Quiet Zone He had earned his law degree from West Virginia University in married a girl from Marlinton and started his career in Pocahontas County before becoming a well heeled insurance defense lawyer in Charleston He d gotten his first cellphone in ーit was the size of a beer bottle with a three foot long antenna and it went to bed with him every night That attachment ended in when he moved back to Pocahontas where he only carried an iPhone so he could listen to music in his truck I asked if he was concerned about the impact of cell service on the electrosensitives “Wackos that are afraid of their brains getting fried and all that he responded “Yeah I know about them “They see Green Bank as a haven I said “So So He said he wasn t going to let the electrosensitives keep Pocahontas “behind the curve for cell service “But I m here because you re behind the curve I said “That makes this place unique “You think we want to deal with stone knives and axes for the rest of our existence You re like these fucking people who move in here and don t want it to change that it We have people who have moved here in the last five to ten years and they don t want anything to change They ve discovered Pocahontas County and now nothing can change Well fuck that ain t the way of the world We have limitations because of the observatory because of our topography because of our insignificant population But we need to do what we can as government entities to make things available to people “Of course Martin added the cell service would have to comply with the Quiet Zone “We believe in the observatory we don t want to fuck with them he said “Right now as you and I are sitting here bullshitting they re up there looking for fucking E T And I want to give them every opportunity to do that But I ve got emergency services I ve got to render in this county In addition to trying to bring in cell service Martin was assisting the county s emergency services director Michael O Brien to improve communications The center in Marlinton had difficulty broadcasting any emergency radio communications toward the northern end of the county where Green Bank was located O Brien found a partial solution by installing an internet controlled radio system just north of Green Bank in the town of Durbin but it had minimal range and failed altogether when internet or electricity went down Pocahontas was also one of the only counties in the state unable to adopt a “smart radio system that integrated radios with smartphones On the off chance that someone made an emergency call from one of the county s few pockets of limited cell service authorities had an especially hard time pinpointing the person s location “We had a dispatcher spend two and a half hours on the phone one night with a lady that was trapped in her car in a creek O Brien told me “She didn t know where she was or how she got there We were just keeping her calm while we sent the department to look in all the areas that had cell service ACCORDING TO DELOIT TE a percent increase in mobile penetration increases total factor productivityーa key component of economic growth modelingーby percentage points over the long run In Pocahontas businesspeople like Kenneth “Buster Varner felt they needed all the help they could get to keep the county s economy puttering along which meant bringing in cell service I first met Varner in early while eating breakfast at the counter at Station A heavy jowly man he had leaned over and asked “Do you think the gravy is too salty As we shoveled down heaping plates of biscuits and sausage gravy he told me about his various businesses Aside from owning Station he operated a half dozen enterprises involved in logging excavation towing septic pumping and auto repair He was also a fire chief I told him that I imagined a lot of headaches trying to manage all those things within the restrictions of the Quiet Zone “You have to realize that we never had cellphone service when everybody else had it so it wasn t anything to us Varner said “It d be more convenient of course if it was so you could use your cellphones all the time But it s a unique place to live where you don t have them and we take a little pride in that He noted how the observatory provided jobs and shared its resources such as lending one of its diesel generators to a funeral home during a recent power outage “That to me means a lot Varner said “And having the largest telescope in the world out your back door that s a pretty neat conversation piece “People can get ahold of me the old fashioned way he added “Call me on the landline or come look for me Spending more time with Varner however I realized that he was hardly a Luddite When we met again months later in his cluttered office I found it hard to keep his attention He kept glancing down at his iPhone to check texts and alerts he was receiving over WiFi When he took a call I was left to stare at a poster of a busty woman in a red bikini and firefighter helmet When he finally put down the iPhone I told him I was confused Hadn t he said he took pride in not using a cellphone “I thought it was rude to have a smartphone Varner said of his “old perspective apparently from just a few months earlier “I do a lot of business on that phone more than I ever thought in my wildest dreams that I would do I asked if he could ever go back to living without one “Wouldn t want to It s so handy Varner had an AT amp T data plan He used Siri He wished all his employees and volunteer firefighters could always be connected through smartphones Instead because of the Quiet Zone he d invested more than in a specially approved radio repeater system to allow his workers to communicate via low band radio “I don t want the observatory to close and for people to lose their jobs he said “but it d be more convenient for everybody 2021-08-14 15:30:30
ニュース BBC News - Home Plymouth shooting: Starmer asks why gunman had licence https://www.bbc.co.uk/news/uk-england-devon-58209726 shotgun 2021-08-14 15:38:45
ニュース BBC News - Home James Markham killing: Chingford father was partner's 'world' https://www.bbc.co.uk/news/uk-england-london-58215540 james 2021-08-14 15:28:25
ニュース BBC News - Home Haiti: Many deaths feared after major 7.2-magnitude earthquake https://www.bbc.co.uk/news/world-latin-america-58215631 caribbean 2021-08-14 15:11:44
ニュース BBC News - Home Japan floods: Residents rescued as torrential rain threatens homes https://www.bbc.co.uk/news/world-asia-58216613 heavy 2021-08-14 15:14:47
ニュース BBC News - Home Covid-19 in the UK: How many coronavirus cases are there in my area? https://www.bbc.co.uk/news/uk-51768274 cases 2021-08-14 15:25:12
北海道 北海道新聞 ハイチでM7・2 深刻な被害か https://www.hokkaido-np.co.jp/article/578323/ 地質調査所 2021-08-15 00:17: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件)