TECH |
Engadget Japanese |
PS Plusの遊び放題プラン発表、初代~PS5まで全機種にPSPもラインナップ |
https://japanese.engadget.com/ps-plus-now-playstation-psp-ps2-ps3-145648749.html
|
playstationplus |
2022-03-29 14:56:48 |
AWS |
AWS DevOps Blog |
Integrating with GitHub Actions – CI/CD pipeline to deploy a Web App to Amazon EC2 |
https://aws.amazon.com/blogs/devops/integrating-with-github-actions-ci-cd-pipeline-to-deploy-a-web-app-to-amazon-ec2/
|
Integrating with GitHub Actions CI CD pipeline to deploy a Web App to Amazon ECMany Organizations adopt DevOps Practices to innovate faster by automating and streamlining the software development and infrastructure management processes Beyond cultural adoption DevOps also suggests following certain best practices and Continuous Integration and Continuous Delivery CI CD is among the important ones to start with CI CD practice reduces the time it takes to release new software … |
2022-03-29 14:48:03 |
AWS |
AWS Startups Blog |
How Citus Health Uses AWS to Provide Secure and Real-Time Virtual Patient Care |
https://aws.amazon.com/blogs/startups/how-citus-health-uses-aws-to-provide-secure-and-real-time-virtual-patient-care/
|
How Citus Health Uses AWS to Provide Secure and Real Time Virtual Patient CareStartups move at a very fast pace and details like security elasticity and availability can end up neglected due to wanting to release a product or service as quickly as possible By utilizing AWS Citus Health was able to leverage built in tools and services to secure their environment and ensure that their services remain available and resilient |
2022-03-29 14:05:22 |
AWS |
AWS Japan Blog |
公益システムの信頼性向上のためのデータに基づいたクラウドベースの電力グリッドシステムモデルの活用 |
https://aws.amazon.com/jp/blogs/news/using-cloud-based-data-informed-power-system-models-to-engineer-utility-reliability/
|
このような大きな電圧拡散は、二次接続されたDER分散電源がない状態でも観測されており、長距離の共有二次ネットワークのトポロジのみが原因となっています。 |
2022-03-29 14:50:30 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
recsys-pythonを進めていく(第2章) |
https://qiita.com/yaminabeworks/items/7afe7d849fa29b8ce92d
|
多分参考文献あたりをすらすらとこなせるようになるといいんじゃないのかなという思い。 |
2022-03-29 23:17:27 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
rails でアプリを立ち上げ時に、データベースを指定する方法 |
https://qiita.com/kuramoto30/items/9abc19b84175061c5af0
|
中身のデータを作成する方法railsgmodelモデル名単数カラム名データ型カラム名データ型は複数指定可能これで例えるなら弁当箱のどこに何を入れるのかなんとなく決めた状態です。 |
2022-03-29 23:18:37 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
ECS Fargateのコンテナ内にECS Execでアクセスする方法 (ローカルpcから) |
https://qiita.com/holdout0521/items/261d06c3fb0c39b014e0
|
IAMロール名ポリシー付与先サービス目的ECSExecFargateroleECSExecFargateECSコンテナにアクセスするためにはexecutecommandを用いて、SSMサービス間の通信が必要なためIAMユーザー名ポリシー目的ECSExecUserECSExecfrompcECSexecを利用しECSにアクセスするためECSExecFargateという名前のIAMポリシーを作成します。 |
2022-03-29 23:52:46 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS公式資料で挑むSCS認定(24)-こんな時どうする(全分野追記) |
https://qiita.com/mingchun_zhao/items/d4e6cf1651d52523fe65
|
AWS公式資料で挑むSCS認定こんな時どうする全分野追記前回AWS公式資料で挑むSCS認定こんな時どうする分野データ保護はじめに前回まで分野別「こんな時どうする」をまとめてみました。 |
2022-03-29 23:38:41 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS SWF とは |
https://qiita.com/miyuki_samitani/items/6ec4992cc706535b0c2f
|
要するに、複数サーバで商品の発注のようなワークフローを処理する際の順番や振り分け先を管理するサービスです。 |
2022-03-29 23:21:05 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS Application Migration Service とは |
https://qiita.com/miyuki_samitani/items/813722c05c23f8bfd06a
|
AWSApplicationMigrationServiceの特徴移行を迅速に行うことができる増分変更分のみ移行することで、ネットワーク帯域を最低限に抑えつつも移行ができます。 |
2022-03-29 23:20:54 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
docker使ってreactアプリの環境構築してみた(最低限だよ) |
https://qiita.com/taiki-nd/items/ff77a0f33a31fcfa82e9
|
docker使ってreactアプリの環境構築してみた最低限だよディレクトリ構成AppNameDockerfiledockercomposecomposeymldocker関連のファイルの記述DockerfileFROMnodealpineWORKDIRusrsrcappdockercomposeymlversionservicesnodebuildvolumesusrsrcappcachedcommandshccdreactsampleampampyarnstartportsコマンドの実行reactsampleは自身に合わせて変更。 |
2022-03-29 23:22:29 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
rails でアプリを立ち上げ時に、データベースを指定する方法 |
https://qiita.com/kuramoto30/items/9abc19b84175061c5af0
|
中身のデータを作成する方法railsgmodelモデル名単数カラム名データ型カラム名データ型は複数指定可能これで例えるなら弁当箱のどこに何を入れるのかなんとなく決めた状態です。 |
2022-03-29 23:18:37 |
技術ブログ |
Developers.IO |
VS CodeでJSON Schemaを使ったらCircleCI Configの編集がすごく楽になった |
https://dev.classmethod.jp/articles/validation-and-annotation-by-json-schema-on-thecircleciconfigyml-in-vs-code/
|
jsonschem |
2022-03-29 14:51:55 |
技術ブログ |
Developers.IO |
Aqua EnterpriseでAmazon EKS環境にContainer Runtime Protectionを適用する |
https://dev.classmethod.jp/articles/container-runtime-protection-on-amazon-eks-with-aqua-enterprise/
|
amazoneks |
2022-03-29 14:46:34 |
技術ブログ |
Developers.IO |
EC2 AMI와 EBS 스냅샷을 이용하여 기존의 EC2 Instance 복구 해보기 |
https://dev.classmethod.jp/articles/ec2-snapshot-use-recovery/
|
EC AMI와EBS 스냅샷을이용하여기존의EC Instance 복구해보기소개안녕하세요 클래스메소드금상원입니다 이번블로그에서는EC인스턴스를SnapShot을이용하여복구하는방법에대해알아보도록하겠습니다 AMI 란 EC의정보를담고있는이미지 |
2022-03-29 14:37:04 |
海外TECH |
Ars Technica |
Data-harvesting code in mobile apps sends user data to “Russia’s Google” |
https://arstechnica.com/?p=1844088
|
russian |
2022-03-29 14:18:09 |
海外TECH |
MakeUseOf |
The Tesla Model 2 Is Coming - Here's What to Expect |
https://www.makeuseof.com/tesla-model-2-what-to-expect/
|
The Tesla Model Is Coming Here x s What to ExpectWith the Tesla Model electric car ownership looks set to become more affordable But what else can be expected from this upcoming electric vehicle |
2022-03-29 14:45:14 |
海外TECH |
MakeUseOf |
How to Strikethrough on Google Docs |
https://www.makeuseof.com/how-to-strikethrough-on-google-docs/
|
google |
2022-03-29 14:30:13 |
海外TECH |
MakeUseOf |
The Best Gadgets for Hikers and Campers |
https://www.makeuseof.com/tag/gift-ideas-under-100-campers-hikers/
|
adventure |
2022-03-29 14:20:34 |
海外TECH |
MakeUseOf |
Is Zoom Using Too Much CPU on Windows? Here Are 7 Ways to Fix It |
https://www.makeuseof.com/windows-zoom-too-much-cpu-fix/
|
Is Zoom Using Too Much CPU on Windows Here Are Ways to Fix ItWhen Zoom eats up your CPU it can cause your call quality to drop as a result Here s how to fix a high CPU usage with Zoom on Windows |
2022-03-29 14:15:15 |
海外TECH |
DEV Community |
Unit testing for Node.js Serverless projects with Jest |
https://dev.to/serverless_inc/unit-testing-for-nodejs-serverless-projects-with-jest-20cj
|
Unit testing for Node js Serverless projects with JestOriginally posted at ServerlessHave you recently found yourself wondering how to write unit tests for your Serverless project Well good news I m here to talk about just that As the size and complexity of your Serverless project grows automated testing becomes the key to creating clean abstractions getting fast feedback and maintaining the sanity of your team In this post we will cover the basics of creating unit tests for Node js projects using the Serverless Framework We will also show you how to run those tests on CI and provide some tips on writing good unit tests for your Serverless project Note The example project is available on GitHub here We ll also cover some resources to check out for next steps at the bottom of the post Ready Let s go Choosing your test frameworkI m a huge Jest fan when it comes to testing frameworks Why there s zero configuration needed to get startedit includes a good test runnerhas built in functionality for mocks stubs and spiesand has built in code coverage reportingTo add Jest to your project run yarn add dev jest and you should be good to go Setting up the projectWe decided to start with a fresh copy of the aws node simple http endpoint example in this section The default endpoint in that example is quite simple which is great for our case We decided that we want it to say hello to the requester in a different language every time so we added two functions that would generate a localized greeting We then changed the main handler slightly to make use of these two functions And then tested the function locally Creating testsTo make sure that our local greeting generation is working as expected we decided to create a Jest unit test for the getLocalGreeting function For your tests to be picked up by Jest automatically they either need to be placed in the tests directory of your project or include the word test or spec in the filename This can be configured easily in Jest options if you prefer a different layout Let s go ahead and create the tests directory and add a handler test js file in it The overall structure looks like this To be able to reference functions from handler js in the test file we need to export the function we re about to test In the handler test file we load the handler js file and add two assertions for the local greeting function One of those assertions is explicitly incorrect so that we check if errors actually display correctly Running testsWe can run tests for the first time by running yarn run jest in the root directory of the project with no parameters supplied We should get the expected failure back After replacing with in the test s assertion all the tests pass Nice Running unit tests on CIGetting the tests running on CI is straightforward ーjust invoke jest the same way you would in development On CI services you also generally need to add extra configuration for things like installing and caching of dependencies and execution controls We tested our function on CircleCI with the following config Test folder layoutAs more test cases get added to the project it is important to keep a consistent file and folder structure within our tests folder I advocate keeping the structure in the test directory as close as possible to the application file layout If we were to extract the getLocalGreeting function into its own greeting js file we would also extract the tests for it into tests greeting test js Had we decided to add folders in our project specific to models views or controllers we would also make sure to place the tests accordingly Unit test recommendations for Serverless projectsTo make sure that the unit tests for your Serverless project are adding value to your development process and not being an annoyance for your team I recommend following the unit testing best practices Keep the unit tests fast and constrainedThe best unit tests are the ones that cover a specific component of the system This ensures that each individual test runs fast enough to be executed on developer machines during the development process and on CI Use mocking where necessaryMocking is a powerful tool which Jest provides good functionality for For parts of your Serverless project that interact with external databases like DynamoDB or third party systems like Stripe I recommend mocking out the external requests to ensure that your test suite does not depend on the third party services being available and to reduce the latency of the test runs Keep in mind that mocking out an external API might hide the changes in that external API Make sure to regularly validate the mocks against the recent third party APIs if you decide to mock out important parts of the project in tests Unit tests are not a full test suite by themselvesUnit tests are best used as guidelines for adequate component design and to validate the correctness of individual components In your Serverless project however you will likely need to check whether different components of your project work correctly together via integration tests I d recommend using Jest for integration testing as well ConclusionUnit tests are only one part of a successful testing strategy In addition to unit tests writing integration tests end to end tests and performing manual validation will help you ensure the quality of your Serverless applications In this post we talked about why pick Jest as the unit testing framework for your Serverless projects how to write tests how to structure the test files and how to execute tests on CI I hope this will help you get started with testing your Serverless projects I d also highly encourage you to check out the resources below in order to learn more about Jest and other JavaScript testing frameworks And while you re at it share your own testing tips with the community Please drop a comment with any feedback ーI d love to hear from you ResourcesServerless HTTP endpoint example with the Jest testJest documentationCircleCI documentation reference |
2022-03-29 14:39:25 |
海外TECH |
DEV Community |
Why Chakra-UI is your secret lover... Stop denying it |
https://dev.to/blindbat/why-chakra-ui-is-your-secret-lover-stop-denying-it-5b3f
|
Why Chakra UI is your secret lover Stop denying itChakra UI is a modern component library for react created by Segun adebayo It comes with accessible reusable and composable React components that you need to build front end applications Chakra UI uses Emotion and Styled System Style systems are great kinds of infrastructure that can be used to build a UI component library They make so many things much easier A great note is that Chakra UI is typescript friendly and ready for any react app CREATE REACT APP EXAMPLEimport React from react import Button from chakra ui react import customTheme from customTheme const App gt return lt Button colorScheme facebook leftIcon lt FaFacebook gt gt Facebook lt Button gt TYPESCRIPT EXAMPLEimport React from react import Box from react type props message string const flexSettings flex minW px textAlign center color white mx mb as const const Message message props gt return lt Box flexSettings gt message lt Box gt STYLED COMPONENT EXAMPLE USING CHAKRA UIimport chakra from chakra ui react const Card chakra div baseStyle h px w px rounded sm shadow lg lt Card gt hello there lt Card gt |
2022-03-29 14:38:21 |
海外TECH |
DEV Community |
var let and CONST |
https://dev.to/blindbat/var-let-and-const-42lf
|
var let and CONSTWhile this assumption might be partially true it s still possible that some of these features remain a mystery to some devs One of the features that came with ES is the addition of let and const which can be used for variable declaration The question is what makes them different from good ol var which we ve been using If you are still not clear about this then this article is for you In this article we ll discuss var let and const with respect to their scope use and hoisting As you read take note of the differences between them that I ll point out VarBefore the advent of ES var declarations ruled There are issues associated with variables declared with var though That is why it was necessary for new ways to declare variables to emerge First let s get to understand var more before we discuss those issues Scope of varScope essentially means where these variables are available for use var declarations are globally scoped or function locally scoped The scope is global when a var variable is declared outside a function This means that any variable that is declared with var outside a function block is available for use in the whole window var is function scoped when it is declared within a function This means that it is available and can be accessed only within that function To understand further look at the example below var greeter hey hi function newFunction var hello hello Here greeter is globally scoped because it exists outside a function while hello is function scoped So we cannot access the variable hello outside of a function So if we do this var tester hey hi function newFunction var hello hello console log hello error hello is not definedWe ll get an error which is as a result of hello not being available outside the function var variables can be re declared and updatedThis means that we can do this within the same scope and won t get an error var greeter hey hi var greeter say Hello instead and this alsovar greeter hey hi greeter say Hello instead Hoisting of varHoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution This means that if we do this console log greeter var greeter say hello it is interpreted as this var greeter console log greeter greeter is undefinedgreeter say hello So var variables are hoisted to the top of their scope and initialized with a value of undefined Problem with varThere s a weakness that comes with var I ll use the example below to explain var greeter hey hi var times if times gt var greeter say Hello instead console log greeter say Hello instead So since times gt returns true greeter is redefined to say Hello instead While this is not a problem if you knowingly want greeter to be redefined it becomes a problem when you do not realize that a variable greeter has already been defined before If you have used greeter in other parts of your code you might be surprised at the output you might get This will likely cause a lot of bugs in your code This is why let and const are necessary Letlet is now preferred for variable declaration It s no surprise as it comes as an improvement to var declarations It also solves the problem with var that we just covered Let s consider why this is so let is block scopedA block is a chunk of code bounded by A block lives in curly braces Anything within curly braces is a block So a variable declared in a block with let is only available for use within that block Let me explain this with an example let greeting say Hi let times if times gt let hello say Hello instead console log hello say Hello instead console log hello hello is not definedWe see that using hello outside its block the curly braces where it was defined returns an error This is because let variables are block scoped let can be updated but not re declared Just like var a variable declared with let can be updated within its scope Unlike var a let variable cannot be re declared within its scope So while this will work let greeting say Hi greeting say Hello instead this will return an error let greeting say Hi let greeting say Hello instead error Identifier greeting has already been declaredHowever if the same variable is defined in different scopes there will be no error let greeting say Hi if true let greeting say Hello instead console log greeting say Hello instead console log greeting say Hi Why is there no error This is because both instances are treated as different variables since they have different scopes This fact makes let a better choice than var When using let you don t have to bother if you have used a name for a variable before as a variable exists only within its scope Also since a variable cannot be declared more than once within a scope then the problem discussed earlier that occurs with var does not happen Hoisting of letJust like var let declarations are hoisted to the top Unlike var which is initialized as undefined the let keyword is not initialized So if you try to use a let variable before declaration you ll get a Reference Error ConstVariables declared with the const maintain constant values const declarations share some similarities with let declarations const declarations are block scopedLike let declarations const declarations can only be accessed within the block they were declared const cannot be updated or re declaredThis means that the value of a variable declared with const remains the same within its scope It cannot be updated or re declared So if we declare a variable with const we can neither do this const greeting say Hi greeting say Hello instead error Assignment to constant variable nor this const greeting say Hi const greeting say Hello instead error Identifier greeting has already been declaredEvery const declaration therefore must be initialized at the time of declaration This behavior is somehow different when it comes to objects declared with const While a const object cannot be updated the properties of this objects can be updated Therefore if we declare a const object as this const greeting message say Hi times while we cannot do this greeting words Hello number five error Assignment to constant variable we can do this greeting message say Hello instead This will update the value of greeting message without returning errors Hoisting of constJust like let const declarations are hoisted to the top but are not initialized So just in case you missed the differences here they are var declarations are globally scoped or function scoped while let and const are block scoped var variables can be updated and re declared within its scope let variables can be updated but not re declared const variables can neither be updated nor re declared They are all hoisted to the top of their scope But while var variables are initialized with undefined let and const variables are not initialized While var and let can be declared without being initialized const must be initialized during declaration |
2022-03-29 14:37:59 |
海外TECH |
DEV Community |
Requesting data from an API with Rails |
https://dev.to/blindbat/requesting-data-from-an-api-with-rails-47b4
|
Requesting data from an API with Rails I ll be using polygon io API in the below examples Gem to InstallGemfile gem faraday gem json gt gt gem dotenv rails groups development test Execute bundle Generate Controller amp View for making API requestsrails g resource stock Now open config routes rb and add this We ll make API requests using this route and display responses on a browser on the same route Open app views stocks search and fill it with Which gives us a form to enter a ticker whose stock data we can pull from Polygon API And in the if statement we have a response variable set to response from API if we made a call in the controller if params stock response Searchstock Search by stock params stock end Create API moduleNow let s actually get into the process of making an API request to Searchstock Although we have Faraday installed it can t be directly called from within the controller Add it inside controller concerns searchstock rb Make sure not to change the name of the folder I ll create searchstock rb inside concerns searchstock rbThe class inside the module and the method inside the class can be named anything From the code above we can make out that by calling Searchstock Search by stock method with a ticker parameter would make an API call to Searchstock but what about ENV API KEY We sure can replace ENV API KEY with Polygon s actual API key but leaving an API key within the code is not right So we are going to place our API key as an Environment variable First let s place the API key as an Environment variable in our local machine To do this we ll be using dotenv gem Install Dotenv railsAdd this line to the top of your application s Gemfile gem dotenv rails groups development test And then execute bundleNow add a file named env to the root of your application Make sure not to change the name of the file Add your API key in the first line like so API KEY your api keyReplace your api key with your actual key provided by OpenWeather If you re going to commit your work add the env file to gitignore so that git does not track it Call API from the controllerNow for the final part add this to the search action of your controller app controllers stock controller rbif params stock response Searchstock Search by stock params stock endMake sure to match the names of the module class and function that you named earlier Check the resultNow open the serverrails serverAnd visit http localhost stocks search from your browser Search for a ticker to see the response |
2022-03-29 14:37:47 |
海外TECH |
DEV Community |
Why CSS Frameworks might be a great choice for your next project |
https://dev.to/blindbat/why-css-frameworks-might-be-a-great-choice-for-your-next-project-4eol
|
Why CSS Frameworks might be a great choice for your next project What is CSS CSS stands for Cascading Style Sheets with emphasis on style At the same time HTML is the structure of a webpage CSS helps create the layout and designs of your project Without CSS websites would have trouble looking different from each other However using pure CSS is tedious and sometimes stressful to write lt p gt this is a paragraph lt p gt How Does CSS Work CSS brings style to the webpage by interacting with HTML elements Individual HTML tags can be considered small components of a more extensive application CSS can take a p tag for example and change the element s color and size p color red Why Use a CSS Framework Personally developing a small to midsize application with pure CSS can get out of hand fairly quickly That s why it s crucial to practice and get accustomed to the code It is a struggle for those who want a beautiful and functional website with limited resources and time Until recently I started my journey exploring several CSS frameworks through trial and error I found what works best for me however choose which one is the best for you Many people will debate on the best CSS framework to use from Bootstrap with jQuery to Ant Design for React Choosing the way you design your next project is important and based on your timeframe it can make or break your deadline ProsIf you are a small team developing an application with a CSS Framework you can significantly spend up the development Pure CSS can take up much time to create midsize to large applications so that CSS Framework would be your best bet CSS Framework compatibilities are usually far superior then writing pure CSS from scratch because of the excellent developers working on it and the amount of time and knowledge to work for all browsers As time goes on CSS frameworks continue to become widely adopted by large and small companies for production use one example is ConsNot all CSS frameworks are created equal Even though talented developers are working on the framework that adoption or community may be affected by the sheer complexity it s not that great Back then one famous CSS framework called Bootstrap was known for its excessive use of unused CSS during production possibly contributing to slowing down performance on your platform How to not use Frameworks in Small Projects FlexSince flexbox is a whole module and not a single property it involves many things including its whole set of properties Some of them are meant to be set on the container parent element known as “flex container whereas the others are meant to be placed on the children said “flex items GridCSS Grid Layout aka “Grid is a two dimensional grid based layout system that aims to do nothing less than completely change the way we design grid based user interfaces ConclusionIn conclusion if you re trying to run away from CSS unfortunately there is nowhere to go Pure CSS is a fantastic thing to learn and having the skills to turn an HTML website into a beautiful website is a must CSS frameworks make CSS a little bit more enjoyable |
2022-03-29 14:36:19 |
海外TECH |
DEV Community |
Tools I use for my online sessions at events |
https://dev.to/kasuken/tools-i-use-for-my-online-sessions-at-events-2ob2
|
Tools I use for my online sessions at eventsI started with my first public session more or less years ago and you know what I am still learning how to deliver a good session In the last two years and half I delivered almost online sessions and it s not like a live session in front of the people In the image above you can see my current setup that I use almost in all my online sessions I ll try to explain the various tools Xbox ControllerI don t have time to play to video games This is sad but true This is why I reinvented my Xbox controller as presenter tool Out of the box is not possible to set the controller as presenter with PowerPoint You need a software called KeySticks It looks like old but it works Download and install the latest version launch it and from the menu on the taskbar click on Load profile and select PowerPoint advanced In the picture below you can see the keys mapping for PowerPoint Try it a lot of time before going live with a real session My monitorI have inch wide screen and I love it To have a better experience during a presentation I use the onboard software to split the screen by two full hd resolution I use my left screen for the producer software chats notes and everything related to the behind the scene and I share my right screen for slides and code How to be always on timeTiming is always an important part during an event When you present on an IRL event very often you have someone in the room that indicate how many minutes you have in the last part of the session When you present to your webcam you are alone This is why I started to use StageTimer during my session It s a simple tool but it s very useful Since a while I am using the beta version of the StageTimer on the link above I use the free version because for my purpose is enough This is my dashboard Everytime I setup the session lenght from the gear button on the Timers list In addition I set the wrap up times They are not fixed values but depend on the lenght of my speech Just for a reference I setup the first alert before the of the entire time of the session and the red alert for the last minutes When I am happy about this settings I use the Share button to create a QR Code of my timer and I use the iPad as display I prefer to use a display below my primary screen because in the other case I have too much information on the main screen In my following tweet you can see a TimeLapse of my latest Keynote at Codemotion Emanuele Bartolesi GitHub Star kasuken Timelapse of my keynote at CodemotionIT Thanks to all attendees It has been a pleasure to share my experiences with you Keep coding speakerlife devlife PM Mar ConclusionI don t know if this setup is perfect or if it works for everyone but I tried a lot of different setup in the last two years and this one is the best for me I hope this post will give you some interesting insights for your upcoming talks or meetings Because obviously you don t have to be a professional speaker at all costs but you can use the same setup for business meetings |
2022-03-29 14:30:50 |
海外TECH |
DEV Community |
Trying to recreate Apple's homepage |
https://dev.to/beejsbj/trying-to-recreate-apples-homepage-fop
|
Trying to recreate Apple x s homepageSo in yesterday s lesson we were tasked with picking a site that s just out of reach of our abilities but after staring at the page for more than mins I asked for help and Derek suggested trying to recreate apple comhoo boy where do I even start When I finally sat down to tackle this I stared at the site for a bit Changed the size of the window trying to feel the site out feel out where the different parts of the sites are How I am to rebuild this smooth monstrosity eventually I realized its way too much to think about and then just opened my code editor and built out a master layout shell that we had learnt while doing Uncle Bill s sitethen I went at it one section at a time Headerthis guy is the one I spent the most time with lotsa typing all the icons for the images finding the right apple icon search icon bag iconfor whatever reason Me from that time chose to use Ul li to build the navigation bar I think I might have seen that in the source code of apple s site but later I just realized using nav would have been much better because I had to turn it inline anyway and switch to block only on a smaller viewport HTML seems to take so little time at the end of the day it s always the CSS that I find needs to be constantly worked on maybe with experience ill be able to fully visualize what the CSS is doing currently I m able to do it at a very limited capacity I think I m FINALLY intuiting the difference between padding and margin so yay for that landingthis was relatively simple I did spend a while here as well but mostly because I was trying to figure out how the whole section is a link but also has links within to other places I managed to figure out that you can in fact put a div inside an a but that didn t really recreate it the way apple had done it some time was spent looking for images for the site making it so that it shrunk when it was smaller Apple s image changes when we shrink its site I think I later realized they might be using media to just switch the image this leads me into the coda sectionapple s image here seems to be dynamic it s the same image that gets wide and then when shrunk also has this bottom part that comes in I wasn t able to recreate it Derek mentioned that it is likely a background image which I too suspected but I wasn t able to get it to work eventually I decided to solve it by using two different images first I thought I could have them be IMG tags and then switch them out with media OH but that only works with CSS hmm I think what I eventually settled on was convoluted I had the wide image as an HTML tag that has its opacity reduced to when the viewport is shrunk and the background of this section where the IMG tag lives is the height focused image as I type this I realized I could have used media to do the same and it would just switch out the background image Gridwhen I got here I realized these are basically like the landing page sections but smaller and share space so I ended up renaming some class names and named them all cards since they all shared the styling and structure within I hosted these divs within another list John s site too had it in this structure and Derek had linked a site about early grid stuff I tried to look through them but wasn t able to really figure out what to do I was also getting really really tired so I decided to settle on inline blocks At least they look fine ish on phone footerI was at the end of my rope sleepy and tired sad about my second road test failure because I didn t look over my shoulder and almost ran into another car even though this never happens when I m alone I suck at tests and now trying to recreate apple s site wanting to do it perfectly and sad that I can t because they are obviously using magic so I just copy pasted the text into s and styled it appropriately did some final touchings and called it a night |
2022-03-29 14:26:31 |
海外TECH |
DEV Community |
artigo teste |
https://dev.to/igorgbr/artigo-teste-2c2k
|
artigo teste Elixir Setup IntroAntes de começarmos éimportante trazer que esse artigo faz parte de uma série de outros artigos nos quais documentarei a minha experiência pessoal com Elixir e meus primeiros passos Vim recentemente do Node js e todo mundo sabe como ésimples configurar o seu setup baixar o NPM Snippets no VSCode etc No Elixir não étão difícil porem tive muita dificuldade de encontrar um passo a passo e acabei pulando etapas o que me deu muita dor de cabeça depois para consertar Dito isto resolvi trazer um passo a passo para vocêconfigurar seu setup do zero bora lá P S Utilizarei o Linux Mint e vocêpode adaptar para o seu SO ok ASDF What A primeira coisa que nos vamos instalar na nossa maquina éesse bichinho chamado ASDF e se vocênunca ouviu falar nele faço questão de te apresentar ASDF e um gerenciador de máquina virtual que nós vamos utilizar para instalar o Elixir e o Erlang Então de um gole no café e vamos começar Instalando ASDF Vm Primeiro acesse o site oficial Clique em Get Started Procure o gerenciador de pacotes para o seu SO no meu caso como estou usando o Mint vou usar o Aptitude o famoso APT apt install curl gitDepois disso vamos clonar o repositório do ASDF na nossa maquina git clone asdf branch v ️Esse passo émuito importante ️Vamos combinar a instalação com o Shell no meu caso como estou usando Oh My ZSH vou nessa opção Se vocêestiver utilizando Oh My ZSH basta seguir o passo a passo do repositório do plugin Que ébasicamente adicionar essa linha de código ao arquivo zshrc fechar o terminal e abri lo novamente plugins git asdf Caso vocêesteja utilizando o terminal puro váàopção Bash amp Git Basta adicionar essas duas linhas de código no arquivo bashrc fechar o terminal e abri lo novamente HOME asdf asdf sh HOME asdf completions asdf bashRode o seguinte comando para testar se deu tudo certo asdf versionVocêdevera ver algo parecido com isso gt asdf versionv eea Instalando Plugin Erlang na ASDF Beleza com a ASDF instalada chegou a hora de instalar os plugins vamos começar pelo Erlang Vamos começar rodando o seguinte comando no terminal asdf plugin add erlangApós isso precisaremos instalar algumas dependências que estão aqui nesse repositório No meu caso como estou rodando no Mint vou buscar para Ubuntu sudo apt get y install build essential autoconf m libncurses dev libwxgtk gtk dev libgl mesa dev libglu mesa dev libpng dev libssh dev unixodbc dev xsltproc fop libxml utils libncurses dev openjdk jdk Instalando ErlangCom as dependências baixadas vamos procurar as versões do Erlang com o seguinte comando asdf list all erlangSeu terminal deve ter uma lista parecida com essa Vamos instalar a última versão estável que atéo momento desse artigo éa asdf install erlang Vocêvera a instalação do Erlang e não se preocupe ela demora e realmente parece que seu computador travou tenha calma Iniciando o ErlangAgora com o Erlang instalado vamos rodar o comando para iniciar globalmente asdf global erlang E vamos testar abrindo o Shell do Erlang erlVocêdevera ver algo parecido com isso basta sair dando CTRL C duas vezes Instalando Plugin Elixir na ASDF Ufa Cansou Estamos acabando dámais um gole no cafée roda esse comando no terminal Vamos rodar o seguinte comando no terminal asdf plugin add elixirVamos ver todas as versões do Elixir assim como fizemos com Erlang asdf list all elixir Instalando ElixirComo instalamos o Erlang temos que instalar o Elixir OTP para versão a versão mais recente atéo momento desse artigo éa otp Vamos rodar o seguinte comando asdf install elixir otp Vamos configurar o Elixir globalmente assim como fizemos com o Erlang asdf global elixir otp Iniciando o ElixirVamos testar se deu tudo certo rodando o IEX iexVocêdeveráver algo parecido com isso Hello World E para começar do jeito certo não se esqueça de não cair na maldição do Hello World rodando o seguinte comando no IEX IO puts Hello World Be Cool with LivebookO Livebook éparecido com o Jupyter Notebook do Python éuma forma de vocêaplicar documentar e testar códigos Elixir e salvar seus arquivos MD Instalando LivebookA primeira coisa que vamos fazer éir atéo repositório do Livebook Como jáestamos com o Elixir instalado globalmente vamos rodar o seguinte comando mix escript install hex livebook mix éum comando global do ElixirA instalação pode demorar um pouco e pedira algumas confirmações no processo no final ele perguntara se vocêquer realmente instalar o livebook vamos responder Y Feito isso como estamos rodando o ASDF precisamos usar o RESHIM para reconhecer os novos comandos asdf reshimPor fim podemos iniciar o Livebook com o seguinte comando livebook serverEle rodara na porta na sua localhost ConclusãoNesse artigo aprendemos a instalar e configurar a ASDF VM para rodar o Erlang e o Elixir e instalar o Livebook local Atéa próxima |
2022-03-29 14:25:38 |
海外TECH |
DEV Community |
Window Replacement Tips: How to Choose the Right Roofing Company |
https://dev.to/mightydogroofingsouthcharlotte/window-replacement-tips-how-to-choose-the-right-roofing-company-kn8
|
Window Replacement Tips How to Choose the Right Roofing CompanyIf you re in the market for window replacement it s important to choose the right roofing company There are a lot of them out there so it can be difficult to know which one is right for you That s why we ve put together this list of tips to help you make the best decision possible Tip Do your researchBefore you hire anyone be sure to do your research Ask around for recommendations and read online reviews This will help you narrow down your options and find the best company for your needs Tip Get quotes from several companiesOnce you ve narrowed down your list of potential roofing companies be sure to get quotes from each of them This will give you a good idea of what different companies charge so you can choose the one that fits within your budget Tip Check out their licensing and insuranceIt s important to check out a company s licensing and insurance before hiring them This will ensure that they are qualified to do the work and that you re covered in the event of an accident Tip Ask about their experienceWhen interviewing potential roofing companies be sure to ask about their experience How long have they been in business What kind of work do they specialize in This will help you get a sense of whether or not they are qualified to do the job Tip Get a written estimateOnce you ve chosen a company be sure to get a written estimate detailing the work that needs to be done and the cost This will protect you in case there are any disagreements later on about the scope of the project or the price tag Choosing the right roofing company is an important decision and with these tips you re sure to make the right choice for your home Charlotte Roofers are the best in the business so if you re looking for quality workmanship and superior customer service give us a call today Thank you for reading We hope this article was helpful For more information about window replacement or roofing please visit our website for Charlotte Roofing Company or give us a call at We look forward to hearing from you soon |
2022-03-29 14:23:46 |
海外TECH |
DEV Community |
Chytrids |
https://dev.to/niketjohn/chytrids-13hg
|
ChytridsMy own self made programming language coming out in months there will be pre releases soon follow me on twitter and GitHub for more updatesWill be SimpleWill be using a compilerWill be Object OrientedWill be fastWill use the idea of Rust |
2022-03-29 14:22:24 |
海外TECH |
DEV Community |
Construindo uma API Rest (Node, Express e MongoDB) Parte 2 - Banco de Dados |
https://dev.to/g101/construindo-uma-api-rest-node-express-e-mongodb-parte-2-banco-de-dados-1oh0
|
Construindo uma API Rest Node Express e MongoDB Parte Banco de DadosÍndiceParte Configuração Inicial Conectando com o banco de dadosCrie um arquivo chamado envE dentro dele digite DATABASE URL mongodb localhost subscribersDATABASE URL éa variável ambiente environment variable que armazena o banco dados éa porta padrão para as instâncias mongod e mongos Após isso volte ao arquivo server js e coloque no topo do arquivo Dessa forma podemos referenciar a variável DATABASE URL em qualquer local do projeto require dotenv config Continuando no server js Na linha armazena o módulo mongoose Na linha chama o método connect que aceita dois parâmetros A variável ambiente que definimos no arquivo env useNewUrlParser true éusado como uma flag que evita mensagens de aviso para versões anteriores Na linha armazena a refêrencia ao banco de dados Na linha quando o banco de dados encontra um erro o console escreve uma saida de erro no log Na linha quando o banco de dados éconectado com sucesso escreve no console a mensagem CONNECTED TO DATABASE Na linha O use executa um ação a cada requisição que o server recebe neste caso diz ao express para aceitar o formato JSON Hora de testar a conexão com o banco de dados Com o MongoDB jáinstalado digite para inicializar o processo no sistema sudo systemctl start mongodEm outra aba do terminal digite npm run devStartSe tudo der certo vai ficar como a imagem Caso aconteça algum erro recomendo olhar a documentação do MongoDBProxima parte éa criação e configuração de rotas Tire uma pausa e atébreve |
2022-03-29 14:12:30 |
海外TECH |
DEV Community |
Using FaceID in C# without Xamarin or Maui |
https://dev.to/lrufenacht/using-faceid-in-c-without-xamarin-or-maui-4lf5
|
Using FaceID in C without Xamarin or MauiBuild and test hybrid applications in real time using Wisej Mobile in C and Visual Studio Video |
2022-03-29 14:08:46 |
Apple |
AppleInsider - Frontpage News |
Nuphy Air60 Keyboard review: mechanical, portable, adorable |
https://appleinsider.com/articles/22/03/29/nuphy-air60-keyboard-review-mechanical-portable-adorable?utm_medium=rss
|
Nuphy Air Keyboard review mechanical portable adorableThe Nuphy Air Keyboard is a tiny mechanical keyboard perfect for pairing with an iPad mini on the go or for use as an alternative to your MacBook keyboard The Nuphy Air mechanical keyboardAs mechanical keyboards become more mainstream manufacturers are trying to be more clever in their presentation and feature set The Nuphy Air may be built for portability but it is a fully featured mechanical keyboard without compromise Read more |
2022-03-29 14:56:51 |
Apple |
AppleInsider - Frontpage News |
Daily deals March 29: $200 off Apple Watch 6 44mm GPS, $110 off Apple AirPods Max, up to $40 off at Nanoleaf, more |
https://appleinsider.com/articles/22/03/29/daily-deals-march-29-200-off-apple-watch-6-44mm-gps-110-off-apple-airpods-max-up-to-40-off-at-nanoleaf-more?utm_medium=rss
|
Daily deals March off Apple Watch mm GPS off Apple AirPods Max up to off at Nanoleaf moreTuesday s top deals include off Apple Watch Series mm GPS styles off Apple AirPods Max up to in savings on products in the Nanoleaf shop and more Apple Watch Series AirPods Max and Nanoleaf products are on sale nowEach day we search the internet thoroughly for the best tech deals we can possibly find including discounts on Apple products tech accessories and a variety of other items to help you save some money If an item is out of stock you may still be able to order it for delivery at a later date Many of the discounts are likely to expire soon though so act fast Read more |
2022-03-29 14:24:31 |
Apple |
AppleInsider - Frontpage News |
Russia's top tech giant is harvesting data from millions of iOS users |
https://appleinsider.com/articles/22/03/29/russias-top-tech-giant-is-harvesting-data-from-millions-of-ios-users?utm_medium=rss
|
Russia x s top tech giant is harvesting data from millions of iOS usersRussian search engine company and advertising firm Yandex may be harvesting data from millions of iOS users and sending it to Russia a new report claims Yandex on a smartphone Credit SEO JournalYandex ーsaid to be the Russian version of Google ーmaintains a search engine advertising tools and other services Its services include the AppMetrica API which many developers use as an easy way to obtain analytics data for their app Read more |
2022-03-29 14:08:10 |
海外TECH |
Engadget |
Fortnite's zero-building mode is here to stay |
https://www.engadget.com/fortnite-zero-build-mode-142940130.html?src=rss
|
Fortnite x s zero building mode is here to stayEpic isn t wasting time in elevating Fortnite s no build mode The developer has launched a quot Zero Build quot format in the Discover page that as the name implies takes the game s signature construction out of the usual last one standing gameplay You ll have to rely on just your weapon and tactical positioning skills to survive If that sounds like other battle royale games you re not wrong ーEpic has even tweaked the game to add familiar elements You now have a recharging shield to protect yourself instead of having to consume pickups There are also some decidedly Apex Legends like quot Ascender quot ziplines to help you reach blimp based deployment points and you can mantle over obstacles Sprints are available if you need a brief burst of speed to avoid gunfire Zero Build is available to play in solo duo trio and squad playlists The addition isn t a shock at least This not only adds some variety to Fortnite but might keep you from switching to rivals if you re either frustrated with building or just want the occasional break |
2022-03-29 14:29:40 |
海外TECH |
Engadget |
'The Legend of Zelda: Breath of the Wild' sequel delayed to spring 2023 |
https://www.engadget.com/legend-of-zelda-breath-of-the-wild-sequel-delay-spring-2023-142601152.html?src=rss
|
x The Legend of Zelda Breath of the Wild x sequel delayed to spring If you were looking forward to playing the sequel to The Legend of Zelda Breath of the Wild this year we have some bad news Nintendo just announced in a short video that the game will be delayed and the company is now targeting a spring release after previously saying the game would come out in As is usually the case with such delays Nintendo didn t offer a ton of details Legend of Zelda series producer Eiji Aonuma said that the company decided to quot extend our development time a bit quot and apologized to those looking forward to playing the new games nbsp NintendoThe video also offered a quick look at gameplay for the upcoming release with a big focus on how this adventure will take place in the skies above Hyrule as well as on the ground It wasn t too different from what we saw in the game s first official trailer that was released at E but it is at least a good refresher for what we have to look forward to One detail that did catch our eye though is a scene where Link holds a pretty beat up looking version of the iconic Master Sword Your guess is as good as ours as for what that means for the game though In the meantime don t despair Switch fans ーthere are still plenty of great games to look forward to in |
2022-03-29 14:26:01 |
海外TECH |
CodeProject Latest Articles |
Deploying Models at Scale on Azure - Part 2: Deploying and Scaling PyTorch Models |
https://www.codeproject.com/Articles/5328264/Deploying-Models-at-Scale-on-Azure-Part-2-Deployin
|
pytorch |
2022-03-29 14:04:00 |
海外科学 |
NYT > Science |
How 2 Industries Stymied Justice for Young Lead Paint Victims |
https://www.nytimes.com/2022/03/29/us/lead-poisoning-insurance-landlords.html
|
How Industries Stymied Justice for Young Lead Paint VictimsThe U S insurance and real estate industries have waged a decades long campaign to avoid liability in lead cases helping to prolong an epidemic The cost for millions of children has been incalculable |
2022-03-29 14:55:18 |
海外科学 |
BBC News - Science & Environment |
Climate change: Heatwave temperature threshold raised in England by Met Office |
https://www.bbc.co.uk/news/uk-60908169?at_medium=RSS&at_campaign=KARANGA
|
climate |
2022-03-29 14:13:04 |
金融 |
RSS FILE - 日本証券業協会 |
パブリックコメントの募集の結果について |
https://www.jsda.or.jp/about/public/kekka/index.html
|
募集 |
2022-03-29 15:04:00 |
金融 |
金融庁ホームページ |
株式会社ゆうちょ銀行における新規業務の認可について公表しました。 |
https://www.fsa.go.jp/news/r3/yuusei/20220329.html
|
株式会社ゆうちょ銀行 |
2022-03-29 16:00:00 |
金融 |
金融庁ホームページ |
OECDによる報告書「グループ会社のコーポレートガバナンスに関するアジア地域の優れた政策・取組み」について掲載しました。 |
https://www.fsa.go.jp/inter/etc/20220329/oecd_report_good_good_policies_and_practices_for_cg.html
|
政策 |
2022-03-29 16:00:00 |
ニュース |
@日本経済新聞 電子版 |
NYダウ続伸で始まる 停戦交渉の進展期待で
https://t.co/2Dhm4oICLg |
https://twitter.com/nikkei/statuses/1508806586579689476
|
進展 |
2022-03-29 14:01:37 |
ニュース |
BBC News - Home |
Queen attends Prince Philip memorial service at Westminster Abbey |
https://www.bbc.co.uk/news/uk-60902088?at_medium=RSS&at_campaign=KARANGA
|
westminster |
2022-03-29 14:14:53 |
ニュース |
BBC News - Home |
UK seizes first superyacht in British waters |
https://www.bbc.co.uk/news/business-60912754?at_medium=RSS&at_campaign=KARANGA
|
businessman |
2022-03-29 14:51:54 |
ニュース |
BBC News - Home |
Waitrose in row with Asda over 'Just Essentials' budget range |
https://www.bbc.co.uk/news/business-60862940?at_medium=RSS&at_campaign=KARANGA
|
essential |
2022-03-29 14:31:49 |
ニュース |
BBC News - Home |
England in West Indies: Joe Root, Ben Stokes & tourists' other players assessed after series defeat |
https://www.bbc.co.uk/sport/cricket/60895904?at_medium=RSS&at_campaign=KARANGA
|
England in West Indies Joe Root Ben Stokes amp tourists x other players assessed after series defeatBBC cricket correspondent Jonathan Agnew and the Mirror s Dean Wilson assess England s players after their series defeat in the West Indies |
2022-03-29 14:08:45 |
ニュース |
BBC News - Home |
'Eddie is not a bad coach, but something isn't quite working' - Care says England need change |
https://www.bbc.co.uk/sport/rugby-union/60918100?at_medium=RSS&at_campaign=KARANGA
|
x Eddie is not a bad coach but something isn x t quite working x Care says England need changeFormer England scrum half Danny Care says change is needed at the top if the team are to close the gap on the world s best Test teams |
2022-03-29 14:12:56 |
北海道 |
北海道新聞 |
日0―4西(29日) 日本ハム打線沈黙、開幕4連敗 |
https://www.hokkaido-np.co.jp/article/662801/
|
日本ハム |
2022-03-29 23:35:40 |
北海道 |
北海道新聞 |
NY株、続伸 |
https://www.hokkaido-np.co.jp/article/662868/
|
続伸 |
2022-03-29 23:34:00 |
北海道 |
北海道新聞 |
規則違反で罰金20件通知へ 英官邸パーティー疑惑 |
https://www.hokkaido-np.co.jp/article/662866/
|
新型コロナウイルス |
2022-03-29 23:33:00 |
北海道 |
北海道新聞 |
停戦交渉、双方が一定譲歩 作戦縮小、主権で交渉姿勢 |
https://www.hokkaido-np.co.jp/article/662859/
|
譲歩 |
2022-03-29 23:16:14 |
北海道 |
北海道新聞 |
コンサドーレGK阿波加俊太、JFL鈴鹿に完全移籍 |
https://www.hokkaido-np.co.jp/article/662497/
|
阿波加俊太 |
2022-03-29 23:28:22 |
北海道 |
北海道新聞 |
倶知安町、リゾート規制強化 施行時期には不透明感も 新年度に独自の景観計画、条例改正 |
https://www.hokkaido-np.co.jp/article/662840/
|
不透明感 |
2022-03-29 23:22:15 |
北海道 |
北海道新聞 |
4月の札響定演、奏者が来日中止 ウクライナ情勢理由に |
https://www.hokkaido-np.co.jp/article/662857/
|
定期演奏会 |
2022-03-29 23:19:42 |
北海道 |
北海道新聞 |
道書道展、大賞に高橋さん 準大賞は7人に |
https://www.hokkaido-np.co.jp/article/662858/
|
北海道新聞社 |
2022-03-29 23:16:07 |
北海道 |
北海道新聞 |
三浦綾子さん、夫が支え 札幌で道政経懇、文学館館長が講演 |
https://www.hokkaido-np.co.jp/article/662855/
|
三浦綾子 |
2022-03-29 23:17:50 |
北海道 |
北海道新聞 |
あおり運転で殺人疑い、男再逮捕 堺の27歳「殺意持たず」と否認 |
https://www.hokkaido-np.co.jp/article/662862/
|
堺市南区 |
2022-03-29 23:16:00 |
北海道 |
北海道新聞 |
ワクチン相、4月から官房長官が兼務 問われる円滑接種 |
https://www.hokkaido-np.co.jp/article/662732/
|
堀内詔子 |
2022-03-29 23:05:36 |
北海道 |
北海道新聞 |
新庄監督、浮遊バイクで登場 日本ハム本拠地開幕戦 |
https://www.hokkaido-np.co.jp/article/662715/
|
北海道日本ハム |
2022-03-29 23:05:30 |
仮想通貨 |
BITPRESS(ビットプレス) |
DMM Bitcoin、4/1-8/1で「新規口座開設完了で全員にもれなく即時2000円プレゼント」実施 |
https://bitpress.jp/count2/3_14_13133
|
dmmbitcoin |
2022-03-29 23:11:53 |
仮想通貨 |
BITPRESS(ビットプレス) |
DMM Bitcoin、4/1-5/31で「マーケットレポート連動企画!スプレッド縮小キャンペーン」実施 |
https://bitpress.jp/count2/3_14_13132
|
dmmbitcoin |
2022-03-29 23:10:16 |
海外TECH |
reddit |
Breath of the Wild sequel delayed to spring 2023 |
https://www.reddit.com/r/NintendoSwitch/comments/tr0fsi/breath_of_the_wild_sequel_delayed_to_spring_2023/
|
Breath of the Wild sequel delayed to spring submitted by u dorkmax executives to r NintendoSwitch link comments |
2022-03-29 14:01:38 |
コメント
コメントを投稿