IT |
気になる、記になる… |
LINEモバイル、一部回線で障害が発生中 − マイページでの各種機能が利用出来ない場合も |
https://taisy0.com/2021/04/17/139079.html
|
障害 |
2021-04-17 01:08:37 |
TECH |
Engadget Japanese |
フェラーリ、2025に初の電気自動車を発表予定。CEO代行が発言 |
https://japanese.engadget.com/ferrari-ev-2025-011550310.html
|
allelectricferrari |
2021-04-17 01:15:50 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 2021年夏のボーナス 民間は37万4654円、公務員は? |
https://www.itmedia.co.jp/business/articles/2104/17/news026.html
|
itmedia |
2021-04-17 10:23:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Django #0 環境設定 |
https://qiita.com/jp_keisuke/items/7d5e49c51a8065a15d04
|
フレームワークを用いたりすることによりサーバーを作ったりアカウントを管理したりすることが非常にやりやすくなります。 |
2021-04-17 10:43:31 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【JavaScript基礎】ユーザー操作時に発生するイベントについて |
https://qiita.com/nishimachikid/items/1b825b61d41d3477006e
|
イベント発生時に処理を設定するイベントに合わせて処理を実行させる際は、addEventListnerメソッドを使うとイベントを制御することができます。 |
2021-04-17 10:54:51 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
[EC2]ローカル環境ではGoogleMapsが表示されるが本番環境ではGoogleMapsの表示がされない |
https://teratail.com/questions/333667?rss=all
|
ECローカル環境ではGoogleMapsが表示されるが本番環境ではGoogleMapsの表示がされない解決したいことECでデプロイしたアプリケーションです。 |
2021-04-17 10:58:01 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
PHPにて、cookieの取得ができない |
https://teratail.com/questions/333666?rss=all
|
PHPにて、cookieの取得ができない前提・実現したいことsetcookieにてcookieを保存したが、cookieを使いifで条件分岐をさせた時、エラーが表示されます。 |
2021-04-17 10:50:48 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
JavaScript | filter()を使わずに抽出する方法 |
https://teratail.com/questions/333665?rss=all
|
JavaScriptfilterを使わずに抽出する方法質問内容filterの内部構造を理解するためにfilterを使わず同じように動作する機能を実装しようとしていますが、うまくいきません。 |
2021-04-17 10:47:53 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Githubのウェブページの背景色を白に戻したい |
https://teratail.com/questions/333664?rss=all
|
github |
2021-04-17 10:45:58 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
重複したセレクタを見つけて削除したい |
https://teratail.com/questions/333663?rss=all
|
vscode |
2021-04-17 10:44:36 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
netmikoにおいてjump severを2ホップさせた場合、2ホップ目のLINUXサーバの種類によりNW機器の情報を取得出来ない。 |
https://teratail.com/questions/333662?rss=all
|
netmikoにおいてjumpseverをホップさせた場合、ホップ目のLINUXサーバの種類によりNW機器の情報を取得出来ない。 |
2021-04-17 10:41:03 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
転置しているのに、結果が同じ |
https://teratail.com/questions/333661?rss=all
|
|
2021-04-17 10:17:35 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
PHPでデータベースを更新したいが、更新できない。 |
https://teratail.com/questions/333660?rss=all
|
PHPでデータベースを更新したいが、更新できない。 |
2021-04-17 10:09:41 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
画像に対するカーソル処理? |
https://teratail.com/questions/333659?rss=all
|
python |
2021-04-17 10:03:02 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ActiveRecord::AssociationTypeMismatch in Devise::RegistrationsController#create |
https://teratail.com/questions/333658?rss=all
|
ActiveRecordAssociationTypeMismatchinDeviseRegistrationsControllercreatecloudでwebアプリケーションを作っているのですが、deviseで新規登録した時にActiveRecordAssociationTypeMismatchnbspinnbspDeviseRegistrationsControllercreateのエラーが発生します。 |
2021-04-17 10:01:28 |
海外TECH |
DEV Community |
React Native e2e tests and Automatic Deploys (Detox + Fastlane + CircleCI) |
https://dev.to/kyonru/react-native-e2e-tests-and-automatic-deploys-detox-fastlane-circleci-3gkn
|
React Native ee tests and Automatic Deploys Detox Fastlane CircleCI A little bit of context skippable These past weeks I ve been struggling trying to set up a pipeline where for every PR pointing to our staging branch ee tests run automatically and for every PR that gets merged test flight builds and google internal beta builds are created My experience has been difficult but it doesn t mean yours should too tl dr PAIN What do I need for this Circle CI s performance plan Since we are going to use macs for building our apps If you only need android builds you can easily achieve this with github actions seethis project for an example and this amazing post Apple connect account amp Google play console account This will be needed for automatic deployments nd part PatienceTrust me you ll need it CIs can smell fear Let s get this started Add detox into your react native project Please follow this guide using JEST step by step in order to have it correctly configured in your project Here is anexample of a detoxrc json Once you can run ee tests locally you re ready to go for the next step Set up CircleCI If you don t have CircleCI you can learn how to add it here Don t worry too much about the content on the config yml since we are going to completely modify it At this point you should have a folder named circleci with a config yml file Let s make magic using orbs Add this to your app build gradle since we are going to use the react native circleci orb task downloadDependencies description Download all dependencies to the Gradle cache doLast configurations findAll each config gt if config name contains minReactNative amp amp config canBeResolved print config name print n config files Feeling lucky React native community example of how to use this orb is the following version orbs rn react native community react native Custom jobs which are not part of the Orbjobs checkout code executor rn linux js steps checkout persist to workspace root paths analyse js executor rn linux js steps attach workspace at rn yarn install run name Run ESLint command yarn eslint run name Flow command yarn flow run name Jest command yarn jestworkflows test jobs Checkout the code and persist to the Workspace Note This is a job that is defined above and not part of the Orb checkout code Analyze the Javascript using ESLint Flow and Jest Note This is a job that is defined above and not part of the Orb analyse js requires checkout code Build the Android app in debug mode rn android build name build android debug project path android build type debug requires analyse js Build and test the Android app in release mode Note We split these into separate jobs because we can build the Android app on a Linux machine and preserve the expensive MacOS executor minutes for when it s required rn android build name build android release project path android build type release requires analyse js rn android test detox configuration android emu release requires build android release Build the iOS app in release mode and do not run tests rn ios build name build ios release project path ios Example xcodeproj device iPhone X build configuration Release scheme Example requires analyse js Build and test the iOS app in release mode rn ios build and test project path ios Example xcodeproj device iPhone X build configuration Release scheme Example detox configuration ios sim release requires analyse jsBut there is a catch in my experience it did not work Here are the docs of every helper function on this orb What s next Welp let s go step by step and create something that works Orbversion orbs rn react native community react native Note that we call it rn this name can be whatever you want and it s just used to specify when a job is coming from the orb Ex rn yarn install Jobs checkout codeCheck out the code and persist to the Workspace needed in order to do stuff in the project root checkout code executor name rn linux js node version steps checkout persist to workspace paths root analyse jsRunning jest test on Linux Note how we use an executor from our orb and define the node version version for our project analyse js executor name rn linux js node version steps attach workspace at rn yarn install run command yarn test name Run Tests Android eeIn a perfect world the example on the docs is all you need But this is programming specifically React native that we re talking about the example is the following rn android build build type debug name build android debug project path android requires analyse js rn android build build type release name build android release project path android requires analyse jsThe main issue with this approach is that rn android build builds the app as a normal build and not as a detox build which can lead to weird issues and false negative ee tests So yeah we have to re do this step manually but feel free to try If it works for you shame me on Twitter Please read the comments to understand what is going on here android ee test Using a mac executor name rn macos steps attach workspace at rn setup macos executor homebrew cache true node version rn yarn install basically because of this cache false run For my app and react native in general java is needed The default version on this executor was default to java for some reason so this kinda solve that issue just installing java android sdk and needed tools command gt java version brew tap adoptopenjdk openjdk brew install cask adoptopenjdk openjdk adoptopenjdk java version export JAVA HOME usr libexec java home v mkdir p android amp amp touch android repositories cfg java version yes sdkmanager platform tools tools gt dev null yes sdkmanager platforms android system images android default x gt dev null yes sdkmanager emulator channel gt dev null yes sdkmanager build tools gt dev null yes sdkmanager licenses gt dev null yes sdkmanager list name Install Android Emulator shell bin bash e run command adb start server adb devices adb kill server ls la android name ADB Start Stop run Note we are using a pixel xl as the test device feel free to change it for one better fits your app command export JAVA HOME usr libexec java home v avdmanager create avd force name Pixel API package system images android default x tag default device pixel xl name Create Android Emulator run background true command export JAVA HOME usr libexec java home v ANDROID HOME emulator emulator Pixel API version ANDROID HOME emulator emulator Pixel API cores gpu auto accel on memory no audio no snapshot no boot anim no window logcat W grep i ReactNative com reactnativecommunity name Start Android Emulator background run command gt export JAVA HOME usr libexec java home v export BOOT echo Waiting for AVD to finish booting export PATH dirname dirname command v android platform tools PATH until BOOT do sleep export BOOT adb e shell getprop sys boot completed gt amp done sleep adb shell settings put global window animation scale adb shell settings put global transition animation scale adb shell settings put global animator duration scale echo Android Virtual Device is now ready name Wait for AVD to be ready no output timeout m Creates the detox build using the orb job rn detox build configuration android emu release Tests the app you can use rn detox test but I wanted to take screenshots when test fails so I can have a better idea of why did they fail run command gt detox test c android emu release l warn headless take screenshots failing artifacts location tmp detox artifacts name Detox Test Save the screenshots as artifacts you can see then in the artifact tab for the job in CircleCI store artifacts path tmp detox artifactsNote that all of this can be achieved using the rn linux android executor iOS eeIn a perfect world the example on the docs is all you need And it was for me until it wasn t Try the following if that works for you shame me on Twitter Build and test the iOS app in release mode rn ios build and test project path ios Example xcodeproj device iPhone X build configuration Release scheme Example detox configuration ios sim release requires analyse jsFortunately ios is better than android Yeah I said it At least development wise In order to recreate the ios build and test all we need is Build and test the iOS app in release modeios ee test executor rn macos steps checkout attach workspace at rn setup macos executor homebrew cache true node version rn ios simulator start device iPhone rn yarn install basically because of this cache false rn pod install pod install directory ios Yep it doesn t really matter if you don t run detox build for ios it works like a charm But if you prefer you can replace this step with a custom one rn ios build build configuration Release cache false derived data path ios build device iPhone project path ios example xcworkspace project type workspace scheme example run command gt detox test c ios sim release l warn headless take screenshots failing artifacts location tmp detox artifacts name Detox Test store artifacts path tmp detox artifactsCongratulations You have ee tests running in your app Give yourself a pat in the back and go get a drink because Fastlane is coming The hardest thing is doing the configurations for your project Feel free to ask in the comments but fastlane documentation should be enough to get you ready for the next steps Checkout these if you need a place to start fastlane react nativereact native tutorialmatch Fastlane androidThis is easier than what you already did All we need is to install Fastlane on Linux and run our Fastlane lane fastlane android internal executor rn linux android steps attach workspace at rn yarn install run command gem install bundler name Install bundler run command gem install fastlane name Install Fastlane Note that my lane is name upload to googleplay replaced for yours run can be fancier and use working directory command cd android amp amp fastlane upload to googleplay name Upload to google play via Fastlane Fastlane iosI m pretty sure adding Fastlane to ios was not an easy task So Congratulations Shinji These are basically the same steps but for ios submit app to apple connect testflightfastlane ios testflight executor name rn macos steps attach workspace at rn yarn install cache false run working directory ios command pod install run command gem install bundler name Install bundler run command gem install fastlane name Install Fastlane run working directory ios command fastlane beta name Upload to Testflight via FastlaneSo tips for Fastlane Fastlane Docs fa for apple connect CircleCI Docs Use date for build numbers There are other ways to get incremental build numbers if you want to try them Can t recommend any since I haven t used any for the ci android in the build gradle date getTime ios in fastlane Fastfile build number DateTime now strftime Y m d H M One more thingIn order to make everything work we need to create a workflow where we define the order of the steps So here s a proposal workflows name of the workflow main jobs checkout code Do jest tests analyse js requires checkout code Build and test the android app in release mode android ee test requires analyse js Build and test the iOS app in release mode ios ee test requires analyse js Release apps to stores for testing fastlane android internal We only want to deploy to google play when things get merged into the main branch filters branches only main Note that ee need to pass in order to release requires android ee test fastlane ios testflight We only want to deploy to google play when things get merged into the main branch filters branches only main Note that ee need to pass in order to release requires ios ee testIf react native detox CircleCI and Fastlane decided you can rest today you should see something like this in your pipeline |
2021-04-17 01:18:17 |
海外TECH |
DEV Community |
Dawn of the Final Week (Again) |
https://dev.to/chrispinkney/dawn-of-the-final-week-again-ee6
|
Dawn of the Final Week Again The MaintainerLike most weeks we started with panic but this time with a little extra gusto as it s finals week I started off the week by reviewing one of Dave s PRs I say reviewing as the tests for the PR are currently not yet passing as such I was left to only review the code posted and not test the PR locally As always the code seemed fine I was really excited to see this PR as the users microservice is finally starting to seriously come together I also approved a quick fix PR from Pedro for a clean as it was discovered that our landing page didn t properly display viewport heights My favourite kind of PRs are always the ones that are lt SLOC Also approved a really interesting Docker related PR from Doc Josue I had never thought about how containers and volumes dispose of unused elements until now I guess I just magically assumed they would disappear when the container closes Reviewed some changes to the frontend made by Royce I liked where it was heading just not how the names were duplicated We discussed it during our Friday meeting as well and everyone seemed to share a general consensus about the duplicated names but also agreed that the line was an excellent touch I approved Tony s PWA PR again since we have a bunch of testing now I think it s adequate however Dave has expressed reluctance to add it as we re currently unsure how the PWA will behave when we deploy an update to prod Tony has since reached out to the maintainer of next pwa for answer As a result I have removed my approval and apologized to Tony Hopefully we ll get a reply soon and can get some answers so we can move forward with this Still one of my favourite PRs I added my thoughts to a comment that Tony left on an issue suggesting a share icon feature addition to Telescope Tony expressed hesitation about working on this feature but I think working in open source forces collaboration expression critique and commentary and shared my opinion as such I m curious to see what we can do with this A share button would be cool especially if it copied the link URL to the clipboard then a user can just ctrl v to share it to someone Might be a nice feature for new comers to the project to tackle I also reviewed Royce s new SearchHelp PR which changes how the helpful search instructions are displayed on our search page I pointed out a bug that may or may not be related to his PR Lots of great frontend fixes lately from Royce Finally in other humorous news I left a really dumb review on something that is either not finished failing CI or both Heh I ll have to take another look at it when it s ready GitHub is great but either I m not great or the UI is occasionally un intuitive The MicroserviceI started working on converting the unit tests inside the Users Microservice to proper ee type tests tests two days ago but ran into a few snags For the life of both Josue and I just could not get the microservice to respond properly takes a user object performs GET using the user s emailconst getUser async user gt const response await fetch USERS URL hash user email headers Authorization bearer createServiceToken Content Type application json return response const response await getUser allUsers lt array of user objectsresponse body simply refused to co operate with us and returned a bunch of crap that we didn t want Give us the user curse you Curse you and all the halflings The solution ended up being const user await response json which allowed us to parse the JSON returned and make assertions based on the user returned via the GETs body I m currently sitting at tests rewritten out of the who knows or so that I have to do I m hoping to have the rest of them done by Sunday With only week left I made it a point to issue a call for a potential roadmap for the Users Microservice We still have a lot of work to do but fortunately there s a bunch of us working on this stuff and a few items won t take too long After these ee tests go in to replace the current unit tests I ll be shifting gears to work on how users are declared administrators followed up by some research and concluded with adding some quotes Then finishing up what isn t done by end of week In other more personal news My first final went okay I think hopefully Think I might buy a cherry tree for my backyard garden this year I have no idea how trees work or how to care for them so hopefully I learn a lot A society grows great when aged people plant trees in whose shade they know they shall never sit Continuing with my Rust fascination from the previous blog post I stumbled upon a Rust cargo library which adds support for various microcontrollers I have a Circuit Playground Express sitting in my basement I bought it last year with the hopes of designing an automated garden watering system Maybe I ll try it in Rust sometime I ve always wanted to get involved in something impactful I remember a website that I bookmarked for this just occasion Maybe it will help you dear reader too |
2021-04-17 01:00:48 |
海外TECH |
Engadget |
Acclaimed 'Skyrim' mod 'The Forgotten City' hits consoles and PC this summer |
https://www.engadget.com/skyrim-mod-forgotten-city-console-pc-release-date-011148425.html
|
experience |
2021-04-17 01:11:48 |
海外科学 |
NYT > Science |
A Lawsuit Over Frozen Embryos |
https://www.nytimes.com/2021/04/16/style/freezing-eggs-and-embryos.html
|
barry |
2021-04-17 01:41:59 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「スマホ保険」が「デルタ アメックス・ゴールド・カ ード」に追加! クレジットカードでスマホ料金を支払 っていれば、修理代金が最大3万円まで補償されて得! - クレジットカードおすすめ最新ニュース |
https://diamond.jp/articles/-/268428
|
「スマホ保険」が「デルタアメックス・ゴールド・カード」に追加クレジットカードでスマホ料金を支払っていれば、修理代金が最大万円まで補償されて得クレジットカードおすすめ最新ニュース「デルタスカイマイルアメリカン・エキスプレス・ゴールド・カード」に、年月日からスマートフォンの保険「スマートフォン・プロテクション」が追加クレジットカードに付帯する「スマホ保険」があれば、スマホが故障してしまったときも限度額まで補償してもらえるさらに「デルタスカイマイルアメリカン・エキスプレス・ゴールド・カード」に「航空便遅延費用補償」が付帯するようになるほか、海外旅行保険が“自動付帯から、クレジットカードで旅行代金などを支払ったときだけ適用される“利用付帯に変更される。 |
2021-04-17 11:00:00 |
LifeHuck |
ライフハッカー[日本版] |
支援額1000万超え大ヒット! フラットに寝転べるハンモック型テントを使ってみた |
https://www.lifehacker.jp/2021/04/machi-ya-haventent2-review2.html
|
haventent |
2021-04-17 10:30:00 |
北海道 |
北海道新聞 |
【道スポ】コンサ、苦杯 横浜Mに1―3 アンデルソン・ロペス5戦連発報われず クラブ創立25周年記念試合も空し |
https://www.hokkaido-np.co.jp/article/534301/
|
北海道コンサドーレ札幌 |
2021-04-17 10:03:40 |
コメント
コメントを投稿