投稿時間:2021-06-23 01:36:52 RSSフィード2021-06-23 01:00 分まとめ(33件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Compute Blog Deploying machine learning models with serverless templates https://aws.amazon.com/blogs/compute/deploying-machine-learning-models-with-serverless-templates/ Deploying machine learning models with serverless templatesThis post written by Sean Wilkinson Machine Learning Specialist Solutions Architect and Newton Jain Senior Product Manager for Lambda After designing and training machine learning models data scientists deploy the models so applications can use them AWS Lambda nbsp is a compute service that lets you run code without provisioning or managing servers Lambda s pay per request billing automatic … 2021-06-22 15:23:19
AWS AWS Government, Education, and Nonprofits Blog How using AI for predictive maintenance can help you become mission ready https://aws.amazon.com/blogs/publicsector/how-using-ai-predictive-maintenance-can-help-you-become-mission-ready/ How using AI for predictive maintenance can help you become mission readyPredictive maintenance solutions involve using artificial intelligence AI algorithms and data analytics tools to monitor operations detect anomalies and predict possible defects or breakdowns in equipment before they happen To help keep aircraft mission ready the Air Force turned to PavCon LLC PavCon a woman owned small business to create an actionable predictive maintenance solution powered by Amazon Web Services AWS 2021-06-22 15:20:00
AWS AWS Startups Blog How Alloverse is Creating a More Inclusive Internet with AWS https://aws.amazon.com/blogs/startups/alloverse-creates-a-more-inclusive-internet-with-aws/ How Alloverse is Creating a More Inclusive Internet with AWSCo Founded by CEO Julie Despraz Swedish startup Alloverse has developed an open source platform for virtual collaboration that is being used to build the spatial internet The company s platform and tools enable users to create virtual workspaces and D applications to populate them We recently sat down with Despraz to chat VR sustainability and celebrating even the smallest of wins 2021-06-22 15:21:20
python Pythonタグが付けられた新着投稿 - Qiita SimSwap で遊んでみました https://qiita.com/satamame/items/fdee302943b097a063de venvgtpipinstallinsightfaceonnxruntimemoviepypreparationのつづきinsightfaceのモデルをダウンロードして解凍して配置するようにとあるので、そのとおりにします。 2021-06-23 00:41:43
python Pythonタグが付けられた新着投稿 - Qiita pyenv経由でMacにPythonをインストールする https://qiita.com/bnn848/items/82b9900c47e481b382d3 では以下のコードでpyenvで管理しているPythonのバージョン一覧を確認してみましょう。 2021-06-23 00:32:17
python Pythonタグが付けられた新着投稿 - Qiita 立科町の形で学ぶ一番細い場所の測定方法 https://qiita.com/fu_fu/items/349bd472a2be75a3b8ed つ以上に分割するこの状態から任意の二点を取得して、最短距離を求めても望みのものは出ないので二分割しましょう。 2021-06-23 00:12:01
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Chrome.exeの作成の方法 https://teratail.com/questions/345551?rss=all Chromeexeの作成の方法以下にSeleniumのChromeDriverで起動済みのブラウザを操作する方法についてというページがあります。 2021-06-23 00:54:21
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 文字列以外の要素を結合する https://teratail.com/questions/345550?rss=all 文字列以外の要素を結合する例えば下記のようにaposfirstaposの要素の後に、item配列に含まれる要素を順番にafterで並べたいと考えております。 2021-06-23 00:47:32
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) gulp-sass-globで全てのファイルがインポートされない https://teratail.com/questions/345549?rss=all gulpsassglobで全てのファイルがインポートされない前提・実現したいことfoundationフォルダ内に、basescssmixinscssresetscssvariablescssのファイルがあるのですが、mixinscssとvariablescssがインポートできずにstylecssに反映されないので解消したいです。 2021-06-23 00:36:06
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Expected Ptr<cv::UMat> for argument '%s'について教えてください https://teratail.com/questions/345548?rss=all ExpectedPtrltcvUMatgtforargumentxsxについて教えてくださいExpectednbspPtrltcvUMatgtnbspfornbspargumentnbspapossapos対処がわかりませんExpectednbspPtrltcvUMatgtnbspfornbspargumentnbspapossaposopencvの輪郭抽出でこのようなエラーが出てしまいましたな機能を実装中に以下のエラーメッセージが発生しました。 2021-06-23 00:06:40
Ruby Rubyタグが付けられた新着投稿 - Qiita [Ruby] Arrayメソッドで使うfirstとlastとそれ以外について https://qiita.com/Jackson123/items/844009a69d3c3c2eb3b2 RubyArrayメソッドで使うfirstとlastとそれ以外についてRubyには配列メソッドとしてfirstとlastというものが存在します。 2021-06-23 00:09:06
Ruby Railsタグが付けられた新着投稿 - Qiita [Ruby] Arrayメソッドで使うfirstとlastとそれ以外について https://qiita.com/Jackson123/items/844009a69d3c3c2eb3b2 RubyArrayメソッドで使うfirstとlastとそれ以外についてRubyには配列メソッドとしてfirstとlastというものが存在します。 2021-06-23 00:09:06
海外TECH Ars Technica These are the 9 worst states to buy an electric car in https://arstechnica.com/?p=1775256 electric 2021-06-22 15:08:06
海外TECH DEV Community Everything new in Flask 2.0 https://dev.to/arnu515/everything-new-in-flask-2-0-gnl Everything new in Flask Flask is one of the most used Python Frameworks in Web Development It recently came out with a new release In this post we ll go through the major changes If you want the full change log click here ChangesLet s go over the major changes introduced in Flask Dropped support for Python and The most breaking change is the dropped support for Python and Well it s about time we move from those versions anyway since Python is really old Also dropping and support is required for the next change Type hintsPython added support for type annotations This is where you can add type hints to variables to tell others what type it will be This is a God send for people with linters and autocompletors since you no longer have to view docs to find the return type of a certain function Keep in mind however that type hints aren t enforced meaning that this is completely valid code as far as the python interpreter goesa str To check your types use an external linter like mypyFlask is now fully typed so no more awkward moments when you import request from flask and your IDE won t autocomplete its methods You can see the difference between the type hints in Flask and its earlier versions with the help function The above image shows Flask s docstring and the below image shows Flask s docstring Notice the type hints New Config from file methodYou may remember the Config from json or the app config from json method that you use to configure Flask with a JSON File In Flask it has been deprecated in favour of Config from file The syntax of this method is as follows app config from file filename str loads function Now if we wanted to implement the old from json behaviour look at the code below import jsonapp config from file filename str json load This opens us to do the same to parse TOML files as well import tomlapp config from file filename str toml load You need to install the toml package for this New route decoratorsFlask has new decorators for defining routes now Before we used app route path str to define a route in our app and for methods other than GET we add the methods parameter to our decorator Now Flask has followed ExpressJS s routes and added decorators for defining routes specific to HTTP Methods You can now use these instead of app route app get path app post path app put path app delete path app patch path Smaller changesHere s a list of smaller changes that may affect your projects Some send file parameters have been renamed the old names are deprecated attachment filename is renamed to download name cache timeout is renamed to max age add etags is renamed to etag When loading a env or flaskenv file the current working directory is no longer changed to the location of the file helpers total seconds is deprecated Use timedelta total seconds instead And my favorite feature of this list flask shell sets up tab and history completion like the default python shell if readline is installed How to upgradeChange your Flask dependency in requirements txt Pipfile or pyproject toml to this Flask And run pip install r requirements txtYou can no longer use python so beware of that ConclusionThis is of course not the full change log If you want the full change log click here 2021-06-22 15:49:25
海外TECH DEV Community Build Your Developer Portfolio with React https://dev.to/reedbarger/build-your-developer-portfolio-with-react-52ml Build Your Developer Portfolio with ReactToday you re going to create one of the most important apps you can build for yourself your developer portfolio Every React developer or web developer in general needs to be able to show off what they can do to any potential client or employer That s exactly what we re going to be building right now with the help of a number of industry standard tools including React Tailwind CSS and Netlify Let s get started What Will It Look Like This is the final version of the portfolio you will be building It will feature information about ourselves what projects we have made what skills we ve used in making those projects and include a contact form for clients or employers to reach out to us What Tools Will We Be Using To create the app user interface we will use React It will allow us to compose each part of our landing page through reusable components and extend our app if we want to add additional features such as a blog To style our application we will use Tailwind CSS To give our app a professional appearance Tailwind will allow us to easily apply multiple styles through combining classnames on our React elements For pushing our app to the web we will use the free service Netlify It will serve our project on a custom domain to users very quickly with the help of a CDN content delivery network How To Get Started You can download the starting files for our project here When you grab the code all you will have to do is drag your unzipped project folder into your code editor and run the command npm installAnd you re good to go What Tools Do I Need To go through the entire process of creating our app from start to deployment you will need to have the following Node js installed on your computer You can download it at nodejs org Git installed on your computer You can download it at git scm com I would recommend you use VS Code as your code editor You can download it at code visualstudio com A free Netlify account at netlify com A free Github account at github com Building the Portfolio StructureThe benefit of using React is that we could expand our app to as many pages as we like very simply and add a lot of additional content However since we re just working with one page we can within our app component figure out the different components that we need very quickly We will have a Navbar on top with all of the links to jump to different sections of our portfolio After that we will include an about section a section for our projects testimonials and finally our contact form This quick planning allows us to figure out what our components should be named and in what order We can go ahead and all of them to our App js file in src src App jsimport React from react export default function App return lt main gt lt Navbar gt lt About gt lt Projects gt lt Skills gt lt Testimonials gt lt Contact gt lt main gt Creating our ComponentsNow we have all these components listed out we need to go ahead and create them Within our source src folder we re going to create a folder called components with all of the files that we need my portfolio├ーREADME md├ーnode modules├ーpackage json├ー gitignore├ーpublic│├ーfavicon ico│├ーindex html│└ーmanifest json└ーsrc ├ーApp js ├ーdata js ├ーindex css ├ーindex js └ーcomponents ├ーAbout js ├ーContact js ├ーNavbar js ├ーProjects js ├ーSkills js └ーTestimonials jsThen we will create the basic structure of each React component and export it from that file with export default src components About jsexport default function About repeat the same basic structure for all componentsAnd finally make sure to import it back in App js src App jsimport React from react import About from components About import Contact from components Contact import Navbar from components Navbar import Projects from components Projects import Skills from components Skills import Testimonials from components Testimonials export default function App return lt main gt lt Navbar gt lt About gt lt Projects gt lt Skills gt lt Testimonials gt lt Contact gt lt main gt Note that there should be six components in total Intro to Tailwind CSSOnce that s done we can start working with Tailwind CSS in order to start to give our app a basic appearance The benefit of using Tailwind CSS is that we don t have to write any styles manually in a CSS stylesheet All we have to do is combine multiple classes to create the appearance that we want For example in give our portfolio a dark background with gray text applied to all of our child components you can add the following classes to our main element src App jsimport React from react import About from components About import Contact from components Contact import Navbar from components Navbar import Projects from components Projects import Skills from components Skills import Testimonials from components Testimonials export default function App return lt main className text gray bg gray body font gt lt Navbar gt lt About gt lt Projects gt lt Skills gt lt Testimonials gt lt Contact gt lt main gt About ComponentLet s start on our first section the about section This will consist of a basic introduction to ourselves and what skills we specialize in It s also going to include some links to the contact form as well as our past projects Since these links will be to different parts of the same page we can use the hashes projects and contact To make these links work and to be able to jump to each section we will set the id attribute of the projects section to projects and for the contact section to contact src components About jsimport React from react export default function About return lt section id about gt lt div className container mx auto flex px py md flex row flex col items center gt lt div className lg flex grow md w lg pr md pr flex flex col md items start md text left mb md mb items center text center gt lt h className title font sm text xl text xl mb font medium text white gt Hi I m Reed lt br className hidden lg inline block gt I love to build amazing apps lt h gt lt p className mb leading relaxed gt Lorem ipsum dolor sit amet consectetur adipisicing elit Qui laborum quasi incidunt dolore iste nostrum cupiditate voluptas Laborum voluptas natus lt p gt lt div className flex justify center gt lt a href contact className inline flex text white bg green border py px focus outline none hover bg green rounded text lg gt Work With Me lt a gt lt a href projects className ml inline flex text gray bg gray border py px focus outline none hover bg gray hover text white rounded text lg gt See My Past Work lt a gt lt div gt lt div gt lt div className lg max w lg lg w full md w w gt lt img className object cover object center rounded alt hero src coding svg gt lt div gt lt div gt lt section gt For the image on the righthand side of the section I am using an svg file from the public folder coding svg This image serves merely as a temporary placeholder I would highly recommend using an actual image of yourself Projects ComponentOur projects section will consist of a section element with an id of projects This will feature a gallery of all the projects that we ve built which will include images The title of the project along with the technologies we use to make it and a link to it if it is deployed src components Projects jsimport CodeIcon from heroicons react solid import React from react import projects from data export default function Projects return lt section id projects className text gray bg gray body font gt lt div className container px py mx auto text center lg px gt lt div className flex flex col w full mb gt lt CodeIcon className mx auto inline block w mb gt lt h className sm text xl text xl font medium title font mb text white gt Apps I ve Built lt h gt lt p className lg w mx auto leading relaxed text base gt Lorem ipsum dolor sit amet consectetur adipisicing elit Explicabo facilis repellat ab cupiditate alias vero aliquid obcaecati quisquam fuga dolore lt p gt lt div gt lt div className flex flex wrap m gt projects map project gt lt a href project link key project image className sm w w p gt lt div className flex relative gt lt img alt gallery className absolute inset w full h full object cover object center src project image gt lt div className px py relative z w full border border gray bg gray opacity hover opacity gt lt h className tracking widest text sm title font font medium text green mb gt project subtitle lt h gt lt h className title font text lg font medium text white mb gt project title lt h gt lt p className leading relaxed gt project description lt p gt lt div gt lt div gt lt a gt lt div gt lt div gt lt section gt Note that we are also going to use the library heroicons react in order to be able to write some SVG icons as React components We are importing an array of projects from a data js file in the same folder There we are exporting an array of objects which each include an individual project s data src data jsexport const projects title React Reserve subtitle MERN Stack description Lorem ipsum dolor sit amet consectetur adipisicing elit Praesentium dolore rerum laborum iure enim sint nemo omnis voluptate exercitationem eius image project gif link title React Tracks subtitle React and Python description Lorem ipsum dolor sit amet consectetur adipisicing elit Praesentium dolore rerum laborum iure enim sint nemo omnis voluptate exercitationem eius image project gif link title DevChat subtitle React and Firebase description Lorem ipsum dolor sit amet consectetur adipisicing elit Praesentium dolore rerum laborum iure enim sint nemo omnis voluptate exercitationem eius image project gif link title Epic Todo App subtitle React Hooks description Lorem ipsum dolor sit amet consectetur adipisicing elit Praesentium dolore rerum laborum iure enim sint nemo omnis voluptate exercitationem eius image project gif link Skills ComponentLet s fill out the section for all the skills and technologies that we know This will consist of a simple list of all of the major tools that we re familiar with and can use in our employers or clients projects Once again we are going to import an array from our data folder however this array consists of number of strings which represent each of the skills that we know such as JavaScript React and Node src components Skills jsimport BadgeCheckIcon ChipIcon from heroicons react solid import React from react import skills from data export default function Skills return lt section id skills gt lt div className container px py mx auto gt lt div className text center mb gt lt ChipIcon className w inline block mb gt lt h className sm text xl text xl font medium title font text white mb gt Skills amp amp Technologies lt h gt lt p className text base leading relaxed xl w lg w mx auto gt Lorem ipsum dolor sit amet consectetur adipisicing elit Nisi sit ipsa delectus eum quo voluptas aspernatur accusantium distinctio possimus est lt p gt lt div gt lt div className flex flex wrap lg w sm mx auto sm mb mx gt skills map skill gt lt div key skill className p sm w w full gt lt div className bg gray rounded flex p h full items center gt lt BadgeCheckIcon className text green w h flex shrink mr gt lt span className title font font medium text white gt skill lt span gt lt div gt lt div gt lt div gt lt div gt lt section gt Testimonials ComponentIn the Testimonials component we are going to list a couple of testimonials maybe from past clients or people who are familiar with our work These are going to consist of a couple of cards that feature the testimonial itself as well as who it s from and the company that this person is from We are also importing a testimonials array with a number of objects that feature the quote image name and company src components Testimonialsimport React from react import TerminalIcon UsersIcon from heroicons react solid import testimonials from data export default function Testimonials return lt section id testimonials gt lt div className container px py mx auto text center gt lt UsersIcon className w inline block mb gt lt h className sm text xl text xl font medium title font text white mb gt Client Testimonials lt h gt lt div className flex flex wrap m gt testimonials map testimonial gt lt div className p md w w full gt lt div className h full bg gray bg opacity p rounded gt lt TerminalIcon className block w text gray mb gt lt p className leading relaxed mb gt testimonial quote lt p gt lt div className inline flex items center gt lt img alt testimonial src testimonial image className w rounded full flex shrink object cover object center gt lt span className flex grow flex flex col pl gt lt span className title font font medium text white gt testimonial name lt span gt lt span className text gray text sm uppercase gt testimonial company lt span gt lt span gt lt div gt lt div gt lt div gt lt div gt lt div gt lt section gt Contact ComponentAt the end of our landing page we re going to include our contact form to allow potential employers to reach out to us This form will have inputs a name email and message input To receive these forms submissions we will use the tool Netlify Forms to very easily take care of saving those messages src components Contact jsimport React from react export default function Contact return lt section id contact className relative gt lt div className container px py mx auto flex sm flex nowrap flex wrap gt lt div className lg w md w bg gray rounded lg overflow hidden sm mr p flex items end justify start relative gt lt iframe width height title map className absolute inset frameBorder marginHeight marginWidth style filter opacity src warren st new york city amp key AIzaSyBFwQbyqzTFTd tUYdZWTgaQzuUR gt lt div className bg gray relative flex flex wrap py rounded shadow md gt lt div className lg w px gt lt h className title font font semibold text white tracking widest text xs gt ADDRESS lt h gt lt p className mt gt Warren St lt br gt New York NY lt p gt lt div gt lt div className lg w px mt lg mt gt lt h className title font font semibold text white tracking widest text xs gt EMAIL lt h gt lt a className text indigo leading relaxed gt reedbarger email com lt a gt lt h className title font font semibold text white tracking widest text xs mt gt PHONE lt h gt lt p className leading relaxed gt lt p gt lt div gt lt div gt lt div gt lt form netlify name contact className lg w md w flex flex col md ml auto w full md py mt md mt gt lt h className text white sm text xl text xl mb font medium title font gt Hire Me lt h gt lt p className leading relaxed mb gt Lorem ipsum dolor sit amet consectetur adipisicing elit Illum suscipit officia aspernatur veritatis Asperiores aliquid lt p gt lt div className relative mb gt lt label htmlFor name className leading text sm text gray gt Name lt label gt lt input type text id name name name className w full bg gray rounded border border gray focus border indigo focus ring focus ring indigo text base outline none text gray py px leading transition colors duration ease in out gt lt div gt lt div className relative mb gt lt label htmlFor email className leading text sm text gray gt Email lt label gt lt input type email id email name email className w full bg gray rounded border border gray focus border indigo focus ring focus ring indigo text base outline none text gray py px leading transition colors duration ease in out gt lt div gt lt div className relative mb gt lt label htmlFor message className leading text sm text gray gt Message lt label gt lt textarea id message name message className w full bg gray rounded border border gray focus border indigo focus ring focus ring indigo h text base outline none text gray py px resize none leading transition colors duration ease in out gt lt div gt lt button type submit className text white bg indigo border py px focus outline none hover bg indigo rounded text lg gt Submit lt button gt lt form gt lt div gt lt section gt Embed Google MapTo the left of the form we will include a Google Maps embedded Google map of where we are located We can do so with the help of an online tool embed map com All you have to do is just enter your location and hit Generate HTML code In the code we are given don t copy all of the code just the src attribute from the iframe element We will replace that value with the default src value we have for our iframe To send over any submitted form data to Netlify Netlify Forms needs to recognize a form as static HTML Because our React app is controlled by JavaScript is and doesn t consist of plain HTML we need to add a hidden form to our index html file in the public folder lt public index html gt lt DOCTYPE html gt lt html lang en gt lt head gt lt head content skipped gt lt head gt lt body gt lt form name contact netlify netlify honeypot bot field hidden gt lt input type text name name gt lt input type email name email gt lt textarea name message gt lt textarea gt lt form gt lt noscript gt You need to enable JavaScript to run this app lt noscript gt lt div id root gt lt div gt lt body gt lt html gt We need to hide this form because it doesn t need to be seen by the user just Netlify We ll give it the attribute of hidden as well as a name attribute that matches the JSX form in Contact js We also need to give it the netlify attribute so that it is recognized by Netlify Forms Finally we need to include all of the same inputs as our JSX form for name email message Submitting our Contact FormOnce that s done we ll head back to Contact js We re going to use JavaScript in order to submit this form First of all we re going to create some dedicated state for each of the values that are typed in the form for name email and message const name setName React useState const email setEmail React useState const message setMessage React useState We will store what the user types in to each of the inputs in state with the help of the onChange handler To handle submission of the form we will add the onSubmit prop to it The function that will be called handleSubmit will make a post request to the endpoint with all of our form data We will set the headers of the request to indicate that we are sending over form data and for request body we will include the form name as well as all of the form data from name email and message state variables src components Contact jsimport React from react export default function Contact const name setName React useState const email setEmail React useState const message setMessage React useState function encode data return Object keys data map key gt encodeURIComponent key encodeURIComponent data key join amp function handleSubmit e e preventDefault fetch method POST headers Content Type application x www form urlencoded body encode form name contact name email message then gt alert Message sent catch error gt alert error return lt section id contact className relative gt lt div className container px py mx auto flex sm flex nowrap flex wrap gt lt div className lg w md w bg gray rounded lg overflow hidden sm mr p flex items end justify start relative gt lt iframe width height title map className absolute inset frameBorder marginHeight marginWidth style filter opacity src warren st new york city amp key AIzaSyBFwQbyqzTFTd tUYdZWTgaQzuUR gt lt div className bg gray relative flex flex wrap py rounded shadow md gt lt div className lg w px gt lt h className title font font semibold text white tracking widest text xs gt ADDRESS lt h gt lt p className mt gt Warren St lt br gt New York NY lt p gt lt div gt lt div className lg w px mt lg mt gt lt h className title font font semibold text white tracking widest text xs gt EMAIL lt h gt lt a className text indigo leading relaxed gt reedbarger email com lt a gt lt h className title font font semibold text white tracking widest text xs mt gt PHONE lt h gt lt p className leading relaxed gt lt p gt lt div gt lt div gt lt div gt lt form netlify name contact onSubmit handleSubmit className lg w md w flex flex col md ml auto w full md py mt md mt gt lt h className text white sm text xl text xl mb font medium title font gt Hire Me lt h gt lt p className leading relaxed mb gt Lorem ipsum dolor sit amet consectetur adipisicing elit Illum suscipit officia aspernatur veritatis Asperiores aliquid lt p gt lt div className relative mb gt lt label htmlFor name className leading text sm text gray gt Name lt label gt lt input type text id name name name className w full bg gray rounded border border gray focus border indigo focus ring focus ring indigo text base outline none text gray py px leading transition colors duration ease in out onChange e gt setName e target value gt lt div gt lt div className relative mb gt lt label htmlFor email className leading text sm text gray gt Email lt label gt lt input type email id email name email className w full bg gray rounded border border gray focus border indigo focus ring focus ring indigo text base outline none text gray py px leading transition colors duration ease in out onChange e gt setEmail e target value gt lt div gt lt div className relative mb gt lt label htmlFor message className leading text sm text gray gt Message lt label gt lt textarea id message name message className w full bg gray rounded border border gray focus border indigo focus ring focus ring indigo h text base outline none text gray py px resize none leading transition colors duration ease in out onChange e gt setMessage e target value gt lt div gt lt button type submit className text white bg indigo border py px focus outline none hover bg indigo rounded text lg gt Submit lt button gt lt form gt lt div gt lt section gt As you can see above we are encoding the form data with a special encode function that you see here If the message is sent correctly we will display an alert that says Message sent Otherwise if there is an error we are going to alert the user of that error Navbar ComponentThe last step is to build out our Navbar component We want this navbar to stick to the top of our app on large devices and not be sticky on mobile devices Additionally we want to include links to each of our relevant sections for our project skills testimonials and our contact form src components Navbar jsimport ArrowRightIcon from heroicons react solid import React from react export default function Navbar return lt header className bg gray md sticky top z gt lt div className container mx auto flex flex wrap p flex col md flex row items center gt lt a className title font font medium text white mb md mb gt lt a href about className ml text xl gt Reed Barger lt a gt lt a gt lt nav className md mr auto md ml md py md pl md border l md border gray flex flex wrap items center text base justify center gt lt a href projects className mr hover text white gt Past Work lt a gt lt a href skills className mr hover text white gt Skills lt a gt lt a href testimonials className mr hover text white gt Testimonials lt a gt lt nav gt lt a href contact className inline flex items center bg gray border py px focus outline none hover bg gray rounded text base mt md mt gt Hire Me lt ArrowRightIcon className w h ml gt lt a gt lt div gt lt header gt How does this stick to top of the page on a larger device With the help of the class md sticky on our header element This class means that it will have the style rule position sticky applied starting on a medium sized breakpoint px Deploy Your PortfolioNow to make our portfolio live we need to push our application to GitHub If you re not familiar with Git and GitHub I would take a little while just to learn how to push your code to your GitHub account for the first time It s an essential skill for any developer to know Once you re familiar with this process we can first create a new Github repository After that we will run git add git commit m Deploy create our git remote and git push u origin master Once our project is on GitHub we can head over to Netlify and select the option Choose Site from Git Then we will choose GitHub for our continuous deployment pick the GitHub repository to which we just pushed our code After that our project will be automatically deployed to the web What s NextCongratulations You now have a portfolio app live on the web that shows off all of your projects and skills to potential employers The next step to take would be to set up a custom domain preferably with your name i e reedbarger com Since Netlify includes a DNS you can easily set up a custom domain with them Look into maybe adding a blog to your React app to show off even more of your developer knowledge to potential employers Make your personal portfolio an expression of yourself and what you are passionate about as a developer and you ll have success The Proven Way to Learn React in Record TimeThe React Bootcamp takes everything you should know about learning React and bundles it into one comprehensive package including videos cheatsheets plus special bonuses Gain the insider information s of developers have already used to master React find their dream jobs and take control of their future Click here to be notified when it opens 2021-06-22 15:41:22
海外TECH DEV Community HTMLCSS 10 Concept https://dev.to/ivanjeremic/htmlcss-10-concept-4col HTMLCSS ConceptJust an idea One language for Elements Style Logic and no XML WC D type HTMLCSS type head meta meta use main css type body children type rect width px height px bgColor rgb children type button width px height px onClick gt alert clicked bgColor green type button width px height px onClick gt alert cancel bgColor red 2021-06-22 15:38:01
海外TECH DEV Community Creating a Haskell Application Using Reflex. Part 4 https://dev.to/typeable/creating-a-haskell-application-using-reflex-part-4-4jn7 Creating a Haskell Application Using Reflex Part Author Nikita AnisimovPart Part Part Hi there In our new post we ll take a look at how we use JSFFI JSFFILet s make it possible to set a deadline date in our application Suppose that we need to make not just the text input but a dropdown datepicker Of course we can write our own datepicker in Reflex but there are lots of various JS libraries we could use If there exists an off the shelf JS code which is for instance too long to be rewritten using GHCJS it s possible to call it using JSFFI JavaScript Foreign Function Interface In our case we ll use flatpickr Let s create a new JSFFI module and immediately add its import to the Main We insert the following code in the created file LANGUAGE MonoLocalBinds module JSFFI whereimport Control Monad IO Classimport Reflex Domforeign import javascript unsafe function flatpickr enableTime false dateFormat Y m d addDatePicker js RawInputElement GhcjsDomSpace gt IO addDatePicker MonadWidget t m gt InputElement er GhcjsDomSpace t gt m addDatePicker liftIO addDatePicker js inputElement rawLet s not forget to add the required script and styles to the head element too elAttr link rel stylesheet lt gt href blank elAttr script src blankNow we try to compile the same way as before and get the following error src JSFFI hs error •The javascript calling convention is unsupported on this platform •When checking declaration foreign import javascript unsafe function flatpickr enableTime false dateFormat Y m d addDatePicker js RawInputElement GhcjsDomSpace gt IO foreign import javascript unsafe Indeed now we re building our application using GHC that has no idea of what JSFFI is Recall that now the server is being launched that sends the updated DOM when this is needed using web sockets and the JavaScript code is alien to it The conclusion suggests itself that our datepicker just doesn t work when you build using GHC Nevertheless GHC won t be used to build the client s application production version we ll compile to JS using GHCJS and embed the JS code we ve obtained into our page ghcid doesn t support GHCJS which is why it makes no sense to run nix shell we ll use nix immediately for our build nix build A ghcjs todo client o todo client binThe directory todo client bin with the following structure will appear in the root directory of the application todo client bin└ーbin ├ーtodo client bin └ーtodo client bin jsexe ├ーall js ├ーall js externs ├ーindex html ├ーlib js ├ーmanifest webapp ├ーout frefs js ├ーout frefs json ├ーout js ├ーout stats ├ーrts js └ーrunmain jsAfter opening the index html in the browser we ll see our application Though we ve built our project using GHCJS it s more convenient to carry out development using GHC together with ghcid which is why we ll modify the JSFFI module in the following way LANGUAGE CPP LANGUAGE MonoLocalBinds module JSFFI whereimport Reflex Dom ifdef ghcjs HOST OSimport Control Monad IO Classforeign import javascript unsafe function flatpickr enableTime false dateFormat Y m d addDatePicker js RawInputElement GhcjsDomSpace gt IO addDatePicker MonadWidget t m gt InputElement er GhcjsDomSpace t gt m addDatePicker liftIO addDatePicker js inputElement raw elseaddDatePicker MonadWidget t m gt InputElement er GhcjsDomSpace t gt m addDatePicker pure endifWe ve added conditional compilation depending on the platform we ll use either the JS function call or a stub Now we need to change the input form for new tasks by adding the date selection field there newTodoForm EventWriter t Endo Todos m MonadWidget t m gt m newTodoForm rowWrapper el form divClass input group mdo iEl lt inputElement def amp initialAttributes type text lt gt class form control lt gt placeholder Todo amp inputElementConfig setValue lt btnEv dEl lt inputElement def amp initialAttributes type text lt gt class form control lt gt placeholder Deadline lt gt style max width px addDatePicker dEl let addNewTodo todo gt Endo todos gt insert nextKey todos newTodo todo todos newTodoDyn addNewTodo lt gt value iEl btnAttr class btn btn outline secondary lt gt type button btnEl lt divClass input group append elAttr button btnAttr text Add new entry let btnEv domEvent Click btnEl tellEvent tagPromptlyDyn newTodoDyn domEvent Click btnElWe compile our application try to run it and still see nothing If we have a look at the developer console in the browser we ll see the following error uncaught exception in Haskell main thread ReferenceError flatpickr is not definedrts js ReferenceError flatpickr is not defined at out js at h abX out js at h runThreadSlice rts js at h runThreadSliceCatch rts js at h mainLoop rts js at rts js at runIfPresent rts js at onGlobalMessage rts js Here we notice that the function we need is not defined This is because the element script with the link as well as every single element of the page are created dynamically That s why when we call the flatpickr function the script containing the library with this function might be not loaded yet Obviously we need to set the loading order Let s solve this issue using the package reflex dom contrib This package includes many functions useful for development Adding this dependency is non trivial The thing is that Hackage offers an obsolete version of this package which is why we have to take it directly from GitHub Let s update default nix in the following way reflex platform import lt nixpkgs gt fetchFromGitHub owner reflex frp repo reflex platform rev efcdcdbddcaeea sha rmnkxnwiyipfyyvvrgysvzprbryzfdyhlz import reflex platform project pkgs let reflexDomContribSrc builtins fetchGit url rev dbfdbeeaefdede override self pkg with pkgs haskell lib doJailbreak pkg overrideAttrs old buildInputs old buildInputs self doctest self cabal doctest in useWarp true overrides self super with pkgs haskell lib rec reflex dom contrib dontHaddock override self self callCabalnix reflex dom contrib reflexDomContribSrc packages todo common todo common todo server todo server todo client todo client shells ghc todo common todo server todo client ghcjs todo common todo client We add the import of module import Reflex Dom Contrib Widgets ScriptDependent and make changes in the form newTodoForm MonadWidget t m gt m Event t Endo Todos newTodoForm rowWrapper el form divClass input group mdo iEl lt inputElement def amp initialAttributes type text lt gt class form control lt gt placeholder Todo amp inputElementConfig setValue lt btnEv dEl lt inputElement def amp initialAttributes type text lt gt class form control lt gt placeholder Deadline lt gt style max width px pb lt getPostBuild widgetHoldUntilDefined flatpickr pb gt blank addDatePicker dEl let addNewTodo todo gt Endo todos gt insert nextKey todos newTodo todo todos newTodoDyn addNewTodo lt gt value iEl btnAttr class btn btn outline secondary lt gt type button btnEl lt divClass input group append elAttr button btnAttr text Add new entry let btnEv domEvent Click btnEl pure tagPromptlyDyn newTodoDyn domEvent Click btnElWe ve used the new function widgetHoldUntilDefined that will build the element passed to it in the last parameter only when the defined script has already been downloaded Now if we open our page created using GHCJS we ll see the datepicker we use However we ve not used this field in any way Let s change the type Todo making sure that we ve added the import of Data Time data Todo Todo todoText Text todoDeadline Day todoState TodoState deriving Generic Eq Show newTodo Text gt Day gt TodonewTodo todoText todoDeadline Todo todoState TodoActive False Now we change the function with the form for a new task today lt utctDay lt gt liftIO getCurrentTime let dateStrDyn value dEl dateDyn fromMaybe today parseTimeM True defaultTimeLocale Y m d unpack lt gt dateStrDyn addNewTodo todo date gt Endo todos gt insert nextKey todos newTodo todo date todos newTodoDyn addNewTodo lt gt value iEl lt gt dateDyn btnAttr class btn btn outline secondary lt gt type button And add the date to the list item widget todoActive EventWriter t Endo Todos m MonadWidget t m gt Int gt Text gt Day gt m todoActive ix todoText deadline divClass d flex border bottom do elClass p p flex grow my auto do text todoText elClass span badge badge secondary px text pack formatTime defaultTimeLocale F deadline divClass p btn group do As usual the result we ve got can be found in our repository In the next part we ll see how to use routing in a Reflex based application 2021-06-22 15:11:15
Apple AppleInsider - Frontpage News Prime Day deals: $599 M1 Mac mini still in stock at Amazon https://appleinsider.com/articles/21/06/22/prime-day-deals-599-m1-mac-mini-still-in-stock-at-amazon?utm_medium=rss Prime Day deals M Mac mini still in stock at AmazonOne of Amazon s top Prime Day deals on M hardware is still going strong as the hour shopping event winds down Save to on the latest Mac mini with prices as low as Prime Day Mac mini specialThe Mac mini which is off MSRP features Apple s M chip along with GB of RAM and a GB SSD Shoppers looking for additional storage can also save for a limited time on the upgraded retail model with GB of memory and GB of storage Read more 2021-06-22 15:03:52
海外TECH Engadget Tide is making the first laundry detergent for space https://www.engadget.com/tide-laundry-detergent-for-space-151235606.html?src=rss_b2c detergent 2021-06-22 15:12:35
海外TECH WIRED Walmart 'Deals for Days' 2021: The 20 Best Deals (Updated) https://www.wired.com/story/walmart-days-of-deals-2021-prime-day-sale-2 deals 2021-06-22 15:35:00
海外TECH WIRED 29 Prime Day Deals for Your Post-Vax Summer Adventures (Day 2 Update) https://www.wired.com/story/best-prime-day-safe-fun-post-pandemic-deals-2021-1 prime 2021-06-22 15:30:00
海外TECH WIRED 24 Best Gaming Gear Deals for Prime Day 2021: PC, Switch, PlayStation, Xbox https://www.wired.com/story/best-prime-day-gaming-headset-accessory-deals-2021-2 peripherals 2021-06-22 15:20:00
海外科学 BBC News - Science & Environment Signs of geological activity found on Venus https://www.bbc.co.uk/news/science-environment-57567577 ocean 2021-06-22 15:04:39
金融 ◇◇ 保険デイリーニュース ◇◇(損保担当者必携!) 保険デイリーニュース(06/23) http://www.yanaharu.com/ins/?p=4616 teradatavantageonaws 2021-06-22 15:23:23
金融 金融庁ホームページ 審判期日の予定を更新しました。 https://www.fsa.go.jp/policy/kachoukin/06.html 期日 2021-06-22 16:00:00
ニュース BBC News - Home Wembley to be allowed at least 60,000 fans for Euro 2020 semi-finals and final https://www.bbc.co.uk/sport/football/57546042 Wembley to be allowed at least fans for Euro semi finals and finalThe crowd capacity at Wembley will be increased to more than for the semi finals and final of Euro says the UK government 2021-06-22 15:13:02
ニュース BBC News - Home Covid-19: Aim for double-jabbed arrivals to avoid quarantine - Hancock https://www.bbc.co.uk/news/uk-57570088 amber 2021-06-22 15:47:53
ニュース BBC News - Home Having coil fitted should not hurt, say experts https://www.bbc.co.uk/news/health-57557296 relief 2021-06-22 15:13:21
ニュース BBC News - Home Cardboard 'in people's garages causing shortage' https://www.bbc.co.uk/news/business-57568239 councils 2021-06-22 15:43:25
LifeHuck ライフハッカー[日本版] 6mmの薄さを実現した財布「Tenuis3 Leather TL」 https://www.lifehacker.jp/2021/06/237038-machi-ya-tenuis3_leathertl_review4.html tenuisleathertl 2021-06-23 00:05:00
サブカルネタ ラーブロ 21/177 ラーメン天神下 大喜:特製純とりそば(細麺) http://feedproxy.google.com/~r/rablo/~3/uaAVhuAxe6o/single_feed.php 仲御徒町 2021-06-22 16:05:28
サブカルネタ ラーブロ Ramen FeeL@日向和田 「FeeLつけ麺(醤油味)+出汁卵、ほか」 http://feedproxy.google.com/~r/rablo/~3/MehltEeA0hM/single_feed.php ramenfeel 2021-06-22 16:01:58
北海道 北海道新聞 近代五種、島津玲奈が初の五輪へ 日本協会が発表 https://www.hokkaido-np.co.jp/article/558620/ 日本代表 2021-06-23 00:03:00

コメント

このブログの人気の投稿

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

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

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