IT |
気になる、記になる… |
Twitter、iOS向けアプリのベータ版で「Appleでサインイン」のテストを開始 |
https://taisy0.com/2021/07/23/143401.html
|
apple |
2021-07-23 10:44:29 |
TECH |
Engadget Japanese |
スマホで見ながら肌をチェック。「GOODtime」家庭用スマート毛穴クリーナー |
https://japanese.engadget.com/goodtime-face-cleaner-102809586.html
|
「GOODtime」家庭用スマート毛穴クリーナー「GOODtime」グッドタイム家庭用スマート毛穴クリーナーの特徴スマホの画面で肌の様子をチェック倍拡大レンズ万画素の高画質WiFiとGG対応、画面の遅延・フリーズなしマグネットホールスイッチ採用、蓋を開ければ電源がオン回のフル充電で約日使用可能防水・防塵レベルIP、ほこりや水しぶきなどによる故障を防止「GOODtime」は、スマホの画面で肌の様子を見ながらお手入れができるスマート毛穴クリーナーです。 |
2021-07-23 10:40:09 |
TECH |
Engadget Japanese |
スーツケースデザインがカッコいい「realme GT Mater」、デザイナー深澤直人氏とのコラボモデル |
https://japanese.engadget.com/realme-gt-mater-102009479.html
|
スーツケースデザインがカッコいい「realmeGTMater」、デザイナー深澤直人氏とのコラボモデル月日、realmeは中国で新製品発表会を開催し、「realmeGTMasterExplorer」真我GT大師探索版と「realmeGTMaster」真我GT大師版のスマートフォン機種を発表しました。 |
2021-07-23 10:30:06 |
TECH |
Engadget Japanese |
Pixel 5の天体撮影モードのタイムラプスが綺麗すぎた |
https://japanese.engadget.com/pixel-5-astrophotography-time-lapse-102020331.html
|
featuredrop |
2021-07-23 10:20:20 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonをMiniconda環境で使おう |
https://qiita.com/kisei/items/5d7c41ba8010ef195ac1
|
ケースバイケースですが、個人的には使いやすいエディタ環境の一つ。 |
2021-07-23 19:00:53 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
JavaScript | HTML要素を追加したい時に使うinnerHTMLとinsertAdjacentHTML |
https://qiita.com/codemountains/items/d20a1e83845600824ce9
|
innerHTMLよりinsertAdjacentHTMLを使う最後にHTMLの大部分を書き換える際はinnerHTMLでも良いのかも知れませんがそのようなケースは稀でしょうから、insertAdjacentHTMLを使うと言う認識で問題ないのかと思います。 |
2021-07-23 19:40:15 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Railsのviewでifのelseが実行されない |
https://teratail.com/questions/350913?rss=all
|
Railsのviewでifのelseが実行されない前提・実現したいことRailsのviewの中でアクションによって表示を分けたいのですが、elseが実行されません。 |
2021-07-23 19:37:19 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
csvのカラム削除(pandas) |
https://teratail.com/questions/350912?rss=all
|
pandas |
2021-07-23 19:36:31 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ユーザ情報の編集をしたいが、paramsが反映されず元のユーザデータが消えてしまう。 |
https://teratail.com/questions/350911?rss=all
|
ユーザ情報の編集をしたいが、paramsが反映されず元のユーザデータが消えてしまう。 |
2021-07-23 19:35:01 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
PHPからローカルのMySQLにアクセスする |
https://teratail.com/questions/350910?rss=all
|
PHPからローカルのMySQLにアクセスする前提・実現したいことウェブ上のPHPから、今使用しているWindowsnbspPCのMySQLにアクセスしたい。 |
2021-07-23 19:33:43 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
windowsバッチ サブルーチンから値を返却する |
https://teratail.com/questions/350909?rss=all
|
windowsバッチサブルーチンから値を返却するwindowsバッチで下記のbeforecsvからaftercsvのように変換をしたいと考えています。 |
2021-07-23 19:28:38 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
pygameのウィンドウが使用できない |
https://teratail.com/questions/350908?rss=all
|
pygameのウィンドウが使用できないゲームを作りながら楽しく学べるPythonプログラミングという本の第章の頭の部分です。 |
2021-07-23 19:21:23 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
[Unity]オブジェクトのリストにアタッチしたPrefub内のデータにアクセスする方法について |
https://teratail.com/questions/350907?rss=all
|
UnityオブジェクトのリストにアタッチしたPrefub内のデータにアクセスする方法について前提・実現したいことUNITYで「オブジェクトにアタッチしたスクリプト」から「そのオブジェクト内のリストにアタッチしたPrefubのコンポーネント内のデータ」にアクセスしたいのですが、どうにもうまくいきません…。 |
2021-07-23 19:17:20 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
JavaScriptから取得した変数をデータベースに保存したい |
https://teratail.com/questions/350906?rss=all
|
JavaScriptから取得した変数をデータベースに保存したいと考えていますが、どのようにアプローチすれば良いのか掴めていない状況です。 |
2021-07-23 19:09:52 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【Rails6】CarrierWaveを使用して、プロフィール画像を設定(導入〜デフォルト画像設定) |
https://qiita.com/miya1221/items/16aa32830d4206b58437
|
imagemagickを導入するため、ターミナルで下記コマンドを実施brewinstallimagemagickbrewlinkforceimagemagick※インストール済みかどうかが分からない場合はターミナルからbrewlistgrepimagemagickを実行。 |
2021-07-23 19:09:24 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【Rails6】CarrierWaveを使用して、プロフィール画像を設定(導入〜デフォルト画像設定) |
https://qiita.com/miya1221/items/16aa32830d4206b58437
|
imagemagickを導入するため、ターミナルで下記コマンドを実施brewinstallimagemagickbrewlinkforceimagemagick※インストール済みかどうかが分からない場合はターミナルからbrewlistgrepimagemagickを実行。 |
2021-07-23 19:09:24 |
技術ブログ |
Developers.IO |
Route 53の失効したドメインを復元してみた |
https://dev.classmethod.jp/articles/restore-expired-jp-domain/
|
route |
2021-07-23 10:50:01 |
海外TECH |
DEV Community |
Advanced ViewComponent patterns in Rails |
https://dev.to/abeidahmed/advanced-viewcomponent-patterns-in-rails-2b4m
|
Advanced ViewComponent patterns in RailsViewComponents are useful if you have tons of reusable partials with a significant amount of embedded Ruby ViewComponent lets you isolate your UI so that you can unit test them and more By isolation I mean that you cannot share your instance variables without explicitly passing them to the component For example in a normal Rails partials you can do this lt posts show html erb gt lt h gt lt post name gt lt h gt lt render some partial gt lt posts some partial html erb gt lt p gt lt post created at gt lt p gt Notice how the instance variables are shared without explicitly passing it In this article I ll be going over some patterns that I ve learned by reading through other people s codebase Getting startedIf you haven t already let s get started by installing the gem itself Gemfilegem view component require view component engine After you ve installed the gem create a new file at app components application component rb app components application component rbclass ApplicationComponent lt ViewComponent BaseendWe ll use this class to add reusable code so that other components can inherit from it and ViewComponent generators will also automatically inherit from this class if you ve declared it Advanced patterns Building GitHub s subhead componentTo warm up we ll be building a simple subhead component that GitHub utilizes heavily in their settings page rails g component subheadFirst we ll start with the not so good approach Then we ll optimize it to fit any purpose Upon closely looking at the subhead component we can notice thatIt has a title mandatory It can have a description optional It may have other states such as danger app components subhead component rbclass SubheadComponent lt ApplicationComponent def initialize title description nil danger false title title description description danger danger end def render title present endend lt app components subhead component html erb gt lt div gt lt h gt lt title gt lt h gt lt p class lt danger subhead danger some other class gt gt lt description gt lt p gt lt div gt And then you can use this component in your erb files by calling lt render SubheadComponent new title something description subhead description At first it may seem feasible But problems quickly arise when you start using this component more What if you need to pass in additional styles to the h or the p What if you need to pass in data attributes Umm you ll probably feel lost in multiple if else statements This problem could have been avoided in the first place if we made our components more susceptible to changes ViewComponents can be called upon That means we can use lambda to make our components decoupled from the state app components application component rbclass ApplicationComponent lt ViewComponent Base def initialize tag nil classes nil options tag tag classes classes options options end def call content tag tag content class classes options if tag end helpers def class names args classes args each do class name case class name when String classes lt lt class name if class name present when Hash class name each do key val classes lt lt key if val end when Array classes lt lt class names class name presence end end classes compact uniq join endendWe re defining the call method so that we can use our lambda It s all Rails so we can probably use content tag and other view helpers as well Now let s change our subhead component app components subhead component rbclass SubheadComponent lt ApplicationComponent renders one heading lambda variant nil options options tag h options classes class names options classes subhead heading subhead heading danger variant danger ApplicationComponent new options renders one description lambda options options tag div options classes class names options classes subhead description ApplicationComponent new options def initialize options options options options tag div options classes class names options classes subhead end def render heading present endend lt app components subhead component html erb gt lt render ApplicationComponent new options do gt lt heading gt lt description gt lt end gt I know it looks intimidating at first but I promise you that you ll be blown away at how reusable the component is Using this component is easy the hard part was making it work lt render SubheadComponent new data controller subhead do c gt lt c heading classes more classes Hey there gt lt c description tag div variant danger do gt My description lt end gt lt end gt Now compare this with what we had earlier I know right This is way better than the previous version Let s build another component Your friend the avatar componentThis time we ll be using the inline variant of the ViewComponent rails g component avatar inlineAfter you run the command notice that it only generates the rb file and not the html erb file For simple components it s fine to just render it from the rb file itself by making use of the ApplicationComponent class AvatarComponent lt ApplicationComponent def initialize src alt size options options options options tag img options src src options alt alt options classes class names options classes avatar rounded full flex items center justify center avatar size end def call render ApplicationComponent new options endendYou can now use this component lt render AvatarComponent new src some url alt your alt attribute size gt As always you can pass in classes data attributes and more In my opinion this is a good way to build components They are segregated from your business logic and allow unit testing which is advantageous as compared to normal Rails partials Building a popoverPopovers are used to bring attention to specific user interface elements typically to suggest an action or to guide users through a new experience Primer CSS We ll be using Stimulus js to show and hide the popover If you haven t already please install Stimulus js app javascript controllers popover controller jsimport Controller from stimulus export default class extends Controller static targets container initialize document addEventListener click event gt if this element contains event target return this hide toggle event event preventDefault this containerTarget toggleAttribute hidden hide this containerTarget setAttribute hidden First let s add this to our app components application component rb so that we can pass in other data attributes without any complexity app components application component rbdef data attributes args args without attributes args except attributes args attributes if args attributes nil args without attributes each key do attr if args attributes keys include attr args attributes attr args attr else args attributes merge Hash attr args attr end end args attributes endWe ll also make adjustments to the initialize method and the call method in our application component rb file def initialize tag classes nil data nil options tag tag classes classes data data options optionsenddef call content tag tag content class classes data data options if tagend Note that we re just accepting an additional data attribute Run rails g component popover and let s get started app components popover component rbclass PopoverComponent lt ApplicationComponent DEFAULT POSITION top left POSITIONS bottom popover message bottom bottom right popover message bottom right bottom left popover message bottom left left popover message left left bottom popover message left bottom left top popover message left top right popover message right right bottom popover message right bottom right top popover message right top top left popover message top left top right popover message top right freeze renders one body lambda caret DEFAULT POSITION options options tag div options classes class names options classes popover message box p shadow lg mt POSITIONS caret to sym ApplicationComponent new options def initialize options options options options tag div options classes class names options classes popover options data data attributes we re utilizing the data attributes helper that we defined earlier attributes options data popover target container from stimulus controller Compiles to data popover target container endend lt app components popover component html erb gt lt render ApplicationComponent new options hidden do gt lt body gt lt end gt Note that we re hiding the popover at first We ll use stimulus controller to remove this attribute later Let s test this component out by using it in our view files lt div data controller popover gt lt button type button data action popover toggle gt Toggle popover lt button gt lt render PopoverComponent new do c gt lt c body caret bottom right do gt lt p gt Anything goes inside lt p gt lt end gt lt end gt lt div gt One thing we can all learn from this component is that we should not make our components too coupled with other UI s For example we could have easily rendered out a button in the component lt app components popover component html erb gt lt render ApplicationComponent new options hidden do gt lt button type button data action popover toggle gt Toggle popover lt button gt lt body gt lt end gt Ask yourself what are we building In this case it s a popover It should not know about the button or the anchor tag or any other component that is responsible for showing and hiding the popover component Try to make your components as generic as possible Obviously there will be some very specific components For example if you are rendering out a list of users You may want that list to fit a particular need and it s OK Making the render method succintEven if you do not agree with all the things that I ve written you ll mostly agree that render PopoverComponent new doesn t look that good Calling a class directly in your views Ummm I don t know So let s try to simplify it app helpers application helper rbdef render component component path collection nil options amp block component klass component path classify Component constantize if collection render component klass with collection collection options amp block else render component klass new options amp block endendNow you can use the components like this render component popover options which in my opinion looks much better and reads much better ConclusionRails is fun I like it If you ve found or are using any other ViewComponent patterns in your codebase please share it in the comments We d like to learn more about your approach Thank you for reading through and I hope you learned something new today ReferencesGitHub view componentCover photo |
2021-07-23 10:03:51 |
Apple |
AppleInsider - Frontpage News |
'AirPods 3' predicted to finally arrive alongside 'iPhone 13' |
https://appleinsider.com/articles/21/07/23/airpods-3-predicted-to-finally-arrive-alongside-iphone-13?utm_medium=rss
|
x AirPods x predicted to finally arrive alongside x iPhone x Supply chain sources further suggest that the production of components destined for new AirPods is ramping up and the long rumored devices should debut at the annual fall Apple event According to the new report shipments of flexible circuit boards and system in package chips intended for the AirPods refresh have started in small volumes An increase in deliveries is reportedly scheduled for the late third calendar quarter and fourth quarter of Sources cited by DigiTimes say that the new AirPods will have a good chance to be debuted at Apple s product launch in the second half of the year The publication expects them to be price friendly and indications from the supply chain suggest that AirPods growth will continue given that Apple doesn t provide a free set of headphones with the iPhone anymore Read more |
2021-07-23 10:47:37 |
Apple |
AppleInsider - Frontpage News |
After bizarre Apple Music Event, Kanye West's 'Donda' is still not streaming |
https://appleinsider.com/articles/21/07/23/after-bizarre-apple-music-event-kanye-wests-donda-is-still-not-streaming?utm_medium=rss
|
After bizarre Apple Music Event Kanye West x s x Donda x is still not streamingApple Music held a live streamed listening party for Kanye West s new Donda album but West came two hours late said nothing ーand the album is still absent Kanye WestApple Music held a rare live event to promote artist Kanye West s tenth album and it was a sell out success in terms of Atlanta s Mercedes Benz Stadium being filled In every other way however it was bizarre even by West s standards Read more |
2021-07-23 10:49:06 |
海外TECH |
Engadget |
Astronomers spot possible moon-forming region for the first time |
https://www.engadget.com/astronomers-spot-moon-forming-region-102240266.html?src=rss
|
Astronomers spot possible moon forming region for the first timeWhile scientists have found plenty of exoplanets over the years they ve yet to spot to moons orbiting those worlds outside our solar system Now a group of astronomers has discovered PDF what s believed to be a region with exomoons in the making for the first time Myriam Benisty and team from the University of Grenoble found the disk of dust ーthe moon forming region ーaround a young exoplanet in a star system dubbed PDS located light years from Earth nbsp The team found the first protoplanet PDS b in the system back in using European Southern Observatory s Very Large Telescope in Chile A year later they found another young gas giant PDS c using the same equipment The astronomers believe based on the data they have that the star system is only million years old and that both gas giants are several times bigger than Jupiter To know more about the system they focused all other possible instruments on it including the Atacama Large Millimeter submillimeter Array ALMA is made up of short wavelength radio dishes and its observations made it possible to spot the dust around PDS c The disk of dust spans a distance slightly wider than that between Earth and the Sun and there s enough mass in there for three moons the same size as ours Benisty says the moons may have already formed but there s no conclusive proof yet because they can t be seen with ALMA According to Science the Extremely Large Telescope which will be the world s largest optical telescope when it s built may have the power to see if the moons have already formed around the protoplanet The telescope is still under construction though and scientific operations won t start until at the earliest nbsp |
2021-07-23 10:22:40 |
海外TECH |
The Apache Software Foundation Blog |
The Apache News Round-up: week ending 23 July 2021 |
https://blogs.apache.org/foundation/entry/the-apache-news-round-up236
|
The Apache News Round up week ending July Happy Friday Let s review at what s happened with the Apache community over the past week ASF Board nbsp management and oversight of the business affairs of the corporation in accordance with the Foundation s bylaws nbsp Next Board Meeting August Board calendar and minutes nbsp ApacheCon nbsp the ASF s official global conference series bringing Tomorrow s Technology Today since ApacheCon Asia August and ApacheCon Home September are being held online and free of charge nbsp The ApacheSoftware Foundation Welcomes its Global Community Online at ApacheCon Asia nbsp nbsp nbsp nbsp Learn more about the ApacheCon Asia from Sheng Wu and Willem Jiang at nbsp Program registration and Sponsorship opportunities available for both events nbsp ASF Infrastructure nbsp our distributed team on three continents keeps the ASF s infrastructure running around the clock nbsp M weekly checks yield uptime at Performance checks across different service components spread over more than machines in data centers around the world nbsp Apache Code Snapshot nbsp Over the past week Apache Committers changed lines of code over commits Top contributors in order are Mark Thomas Hugh Miles Tilman Hausherr Gary Gregory and Andrea Cosentino nbsp nbsp nbsp nbsp Apache Project Announcements nbsp the latest updates by category APIs nbsp Apache APISIX Java Plugin Runner and Go Plugin Runner released https apisix apache org Big Data nbsp Apache NiFi released http nifi apache org Content nbsp Apache Tika released https tika apache org Databases nbsp Apache Impala released https impala apache org nbsp nbsp CVE Impala logs contain secrets Libraries nbsp Apache Commons Numbers released https commons apache org nbsp Apache Commons VFS released http commons apache org proper commons vfs Mail nbsp Apache James MIMEJ released https james apache org Web Conferencing nbsp Apache OpenMeetings released https openmeetings apache org Did You Know Did you know that the ASF s Infrastructure team are hiring a new sysadmin to the team Do you or someone you know have what it takes Learn more and apply at nbsp Did you know that Apache Cassandra powers the Woods Hole Oceanographic Institution s Ocean Observatories Initiative network that provides real time data delivery from instruments to address the world s oceans critical scientific issues nbsp Did you know that the quot Trillions and Trillions Served quot documentary on The Apache Software Foundation comprised hours of filming over terrabytes of footage feature youtu beApache Community Notices The Apache Month in Review June nbsp nbsp and video highlights nbsp The nbsp ApacheSoftware Foundation Celebrates Years of Open Source Leadership world s nbsp largest Open Source foundation advances community led innovation quot The nbsp Apache nbsp Way quot nbsp The nbsp Apache nbsp Software Foundation Operations Summary Q FY November January nbsp nbsp Video highlights nbsp Apache in By The Digits nbsp nbsp Video highlights nbsp ASF Security Report nbsp nbsp Video highlights nbsp ASF FY Annual Report nbsp quot Trillions and Trillions Served quot documentary on the ASF full feature nbsp nbsp quot Apache Everywhere quot nbsp nbsp quot Why Apache quot nbsp nbsp nbsp “Apache Innovation nbsp nbsp nbsp The Apache Way to Sustainable Open Source Success nbsp nbsp Foundation Reports and Statements nbsp nbsp All presentations from ApacheCon Home are available at nbsp nbsp nbsp quot Success at Apache quot focuses on the people and processes behind why the ASF quot just works quot nbsp nbsp Inside Infra the new interview series with members of the ASF infrastructure team meet nbsp nbsp nbsp Chris Thistlethwaite nbsp nbsp nbsp Drew Foulks nbsp nbsp nbsp Greg Stein Part I nbsp nbsp nbsp nbsp Part II nbsp nbsp and Part III nbsp nbsp nbsp Daniel Gruno Part I nbsp nbsp and Part II nbsp nbsp nbsp nbsp Gavin McDonald Part I nbsp nbsp and Part II nbsp nbsp nbsp nbsp Andrew Wetmore Part I nbsp nbsp and Part II nbsp nbsp nbsp Chris Lambertus Part I nbsp nbsp nbsp and Part II nbsp nbsp ASF Targeted Sponsor Manning Publications is offering special deals on the latest books on Apache Airflow Pulsar Spark and Thrift among other titles and eBooks nbsp nbsp Follow the ASF on social media TheASF on Twitter and on LinkedIn at nbsp nbsp Follow the Apache Community on Facebook nbsp nbsp and Twitter nbsp nbsp Are your software solutions Powered by Apache Download amp use our quot Powered By quot logos nbsp poweredby For real time updates sign up for Apache related news by sending mail to announce subscribe apache org and follow TheASF on Twitter For a broader spectrum from the Apache community nbsp nbsp provides an aggregate of Project activities as well as the personal blogs and tweets of select ASF Committers |
2021-07-23 10:37:05 |
ニュース |
BBC News - Home |
Covid: Food workers given exemption from isolation rules |
https://www.bbc.co.uk/news/business-57937342
|
shortages |
2021-07-23 10:54:11 |
ニュース |
BBC News - Home |
Omagh bomb: 'Real prospect attack could have been prevented' |
https://www.bbc.co.uk/news/uk-northern-ireland-57937174
|
attack |
2021-07-23 10:53:50 |
ニュース |
BBC News - Home |
Man rescued in Alaska after week-long bear attack ordeal |
https://www.bbc.co.uk/news/world-us-canada-57939501
|
remote |
2021-07-23 10:08:34 |
ニュース |
BBC News - Home |
Fashion for Crocs continues to break records |
https://www.bbc.co.uk/news/business-57935256
|
chunky |
2021-07-23 10:23:10 |
ニュース |
BBC News - Home |
Covid: Who has to self-isolate, which workers are exempt and what if I'm fully vaccinated? |
https://www.bbc.co.uk/news/explainers-54239922
|
sectors |
2021-07-23 10:04:16 |
北海道 |
北海道新聞 |
松商学園が37度目の出場 高校野球地方大会 |
https://www.hokkaido-np.co.jp/article/570373/
|
全国高校野球選手権大会 |
2021-07-23 19:19:00 |
北海道 |
北海道新聞 |
旭川で田んぼアート見ごろ |
https://www.hokkaido-np.co.jp/article/570335/
|
田んぼアート |
2021-07-23 19:15:24 |
北海道 |
北海道新聞 |
楽天の銀次が新型コロナ陽性 24日に五輪代表と強化試合 |
https://www.hokkaido-np.co.jp/article/570368/
|
強化試合 |
2021-07-23 19:09:00 |
北海道 |
北海道新聞 |
世界の昆虫3000点集合 厚真青少年センターで標本展 |
https://www.hokkaido-np.co.jp/article/570367/
|
昆虫標本 |
2021-07-23 19:08:00 |
北海道 |
北海道新聞 |
胆振で6人感染 新型コロナ |
https://www.hokkaido-np.co.jp/article/570366/
|
新型コロナウイルス |
2021-07-23 19:06:00 |
ビジネス |
東洋経済オンライン |
「沖縄ひとり酒」がときほぐす"心のコリ"の正体 漫画「ワカコ酒」 | ワカコ酒 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/437855?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2021-07-23 19:30:00 |
コメント
コメントを投稿