投稿時間:2022-09-23 22:21:54 RSSフィード2022-09-23 22:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita JavaScript で本格的なノベルゲームを作ってみる #1 https://qiita.com/Neru_K/items/6fb95002d7b1e5176554 javascript 2022-09-23 21:05:41
AWS AWSタグが付けられた新着投稿 - Qiita AnsibleをAWS Systems Managerから実行するCI/CDを構築する。(その1:Systems ManagerからのAnsible実行) https://qiita.com/sakai00kou/items/5604b94dd2c87922538f ansible 2022-09-23 21:31:48
Docker dockerタグが付けられた新着投稿 - Qiita docker runでElixirを楽しむ https://qiita.com/torifukukaiou/items/4f4a250df934f7fa8fe7 docker 2022-09-23 21:17:49
海外TECH MakeUseOf What Is the Fastest Electric Car in the World in 2022? https://www.makeuseof.com/what-is-the-fastest-car-in-the-world/ blink 2022-09-23 12:30:13
海外TECH DEV Community Built a Breakout game https://dev.to/dhanushnehru/built-a-breakout-game-4073 Built a Breakout gameHey guys In this article I will show you how I built a breakout game using HTML canvas CSS and Javascript Using a single ball the player must knock down as many bricks as possible by using the walls and or the paddle below to hit the ball against the bricks and eliminate them In this game you will have lives and you must hit the ball against the bricks and eliminate them If you are not able to eliminate the bricks within lives then your game is over Why did I want to create this game I want to familiarise myself with using HTML Canvas and the flexibility of building a game with it Setup for the projectThis game is best viewed or played on a desktop computer with the help of a mouse pointer Let s start coding The project structure consists of only files style css script js index htmlLet s begin with the program A simple html file with canvas defined lt DOCTYPE html gt html lang en gt lt head gt lt meta charset UTF gt lt title gt Breakout Game lt title gt lt link rel stylesheet href styles css gt lt head gt lt body gt lt canvas id myCanvas width height gt lt canvas gt lt script src script js gt lt script gt lt body gt lt html gt A css file for the background and defining the colors padding margin myCanvas background eee display block margin auto A Javascript file that defines each operation as a function var canvas document getElementById myCanvas var ctx canvas getContext d var x canvas width var y canvas height var dx var dy var ballRadius var paddleHeight var paddleWidth var paddleX canvas width paddleWidth var rightPressed false var leftPressed false var brickRowCount var brickColumnCount var brickWidth var brickHeight var brickPadding var brickOffsetTop var brickOffsetLeft var score var lives var bricks for c c lt brickColumnCount c bricks c for r r lt brickRowCount r bricks c r x y status document addEventListener keydown keyDownHandler document addEventListener keyup keyUpHandler function drawBricks for c c lt brickColumnCount c for r r lt brickRowCount r if bricks c r status var brickX c brickWidth brickPadding brickOffsetLeft var brickY r brickHeight brickPadding brickOffsetTop bricks c r x brickX bricks c r y brickY ctx beginPath ctx rect brickX brickY brickWidth brickHeight ctx fillStyle DD ctx fill ctx closePath function keyDownHandler e if e keyCode rightPressed true else if e keyCode leftPressed true function keyUpHandler e if e keyCode rightPressed false else if e keyCode leftPressed false After defining the objects as functions lets call the draw based methods to perform the individual operations such as drawing a ball identifying the collision between the ball etc function drawBall ctx beginPath ctx arc x y ballRadius Math PI ctx fillStyle FF ctx fill ctx closePath function drawPaddle ctx beginPath ctx rect paddleX canvas height paddleHeight paddleWidth paddleHeight ctx fillStyle pink ctx fill ctx closePath function collisionDetection for c c lt brickColumnCount c for r r lt brickRowCount r var b bricks c r if b status if x gt b x amp amp x lt b x brickWidth amp amp y gt b y amp amp y lt b y brickHeight dy dy b status score if score brickRowCount brickColumnCount alert YOU WIN CONGRADULATIONS document location reload function drawScore ctx font px Arial ctx fillStyle DD ctx fillText Score score function drawLives ctx font px Arial ctx fillStyle DD ctx fillText Lives lives canvas width Now lets create a draw method which combines the above functions togetherfunction draw ctx clearRect canvas width canvas height drawBricks drawBall drawPaddle drawScore drawLives collisionDetection if y dy lt ballRadius dy dy else if y dy gt canvas height ballRadius if x gt paddleX amp amp x lt paddleX paddleWidth dy dy else lives if lives alert GAME OVER document location reload else x canvas width y canvas height dx dy paddleX canvas width paddleWidth if x dx gt canvas width ballRadius x dx lt ballRadius dx dx if rightPressed amp amp paddleX lt canvas width paddleWidth paddleX else if leftPressed amp amp paddleX gt paddleX x dx y dy requestAnimationFrame draw Now lets add the functions to define the movement of the mouse finally document addEventListener mousemove mouseMoveHandler function mouseMoveHandler e var relativeX e clientX canvas offsetLeft if relativeX gt paddleWidth amp amp relativeX lt canvas width paddleWidth paddleX relativeX paddleWidth draw The draw method actually calls a set of functions starting from drawing the bricks to the various elements needed for the breakout game Conclusion I was able to accomplish this by dividing the elements of the game into small parts and designing the entire game by combining parts of the code with functionality to be set You can try playing the game here and get the source code here Feel free to contribute incase you have any improvements to be done ️Thanks for reading ️Feel free to subscribe to my newsletter Follow me via Twitter Instagram or Github 2022-09-23 12:44:02
海外TECH DEV Community Frontend Developers skills you must know ✈✨ https://dev.to/siriusjt99/frontend-developers-skills-you-must-know-20ci Frontend Developers skills you must know HTML CSS and JSFront End development without HTML CSS and JavaScript is impossible They play a vital role in making the UI look dynamic and feel great Let s discuss each of these a bit more clearly HTML to structure web pages CSS to add beauty to websites JavaScript to program and make websites dynamic and responsive Front End FrameworksFrameworks are the tools providing components that are customized to speed up development and may also include a library It is a platform tool to build the front end of your website In simple terms frameworks build the layout structure of a building You should be familiar with the work and ways to use it for faster codingThere are many front end frameworks like React Angular and Vue js but React is the most popular easy trendy and most used framework ResponsivenessWhen it comes to web development frontend developers should be aware of the term “responsiveness which means the websites should be responsive and viewed on any device whether it would be a mobile laptop phone tablet etc The web page should have the ability to adjust itself to the device laptop tablet mobile etc used by the users Based on the platform the website should adapt appropriately and adjust its appearance and layout to match the device screen s resolution The in built features of CSS frameworks like Tailwind and Bootstrap help you to make websites more responsive for all device sizes with a little less work Version Control SystemsVersion Control System is a system that keeps a record of code changes to a file or set of files over time They are generally software tools helping the software team to manage changes to source code while also revealing who made which modifications It is a very helpful skill every front end developer must have Git Global Information Tracker is the most popular open source and distributed version control system where an entire repository can be changed by each user on their system It uses a command line to install in your system and using Git it s easy to undo changes and back and forth with a clear explanation of changes made CSS Pre ProcessorsCSS Preprocessor is an advanced version of CSS It is a program that lets you generate CSS from the preprocessor s unique syntax It maintains the code more easily and the long run makes it easy to edit CSS preprocessors like nesting selector and inheritance selector are some features that don t exist in pure CSS that can be used which makes the code more organized and more readable by shaving off some of the lines Writing repetitive code is time consuming which is more common in working with just CSS This can be avoided by speeding up CSS coding by using CSS preprocessors which are another element that any front end developer must use Command Line The CLI or Command Line Interface is a text based application for managing files on your system It plays an important role in web development also an all purpose GUI Graphical User Interface has limitations for some specific applications You enter some commands in a terminal and it performs some actions which help in getting some results when working with web development You should also know the properties of the Shell to access operating system functions via a text interface It helps you attain faster management To conclude command line tools open up new ways to make your production and delivery of code in HTML CSS and JavaScript languages more efficient Testing and DebuggingAfter the development process of a web application the important aspect comes is testing and debugging to make sure that the results are bug free to provide a good experience to its user The chances of getting no bugs in the software development process are very rare and for that the process of testing and debugging is a mandatory one It s an additional skill for any front end developer to develop the quality of your website Now let s get clear with the difference between testing and debugging Testing is a software practice to ensure the quality and functionality of a web application Several factors like usability and compatibility has to be kept in mind while testing The primary goal of a tester should be that the application should run smoothly without any hindrance There are various types of testing some of them include Unit testing and Component testing Unit Testing tests individual blocks of code where you check that the website should behave in a proper way as designed to be Every action is being performed like clicking a button navigates to another page if it has to Component Testing examines a particular component and checks individual parts of an application Here real data of the written code are tested instead of dummy data by the developers There are various other types of testing as well which enhance the working of a website Other types of testing are Integration Testing Alpha Testing Beta Testing and many more Debugging is a process of fixing errors bugs found during testing in a web application This process involves identifying the bug finding the source of it and rectifying the problem to make the program error free and proper functioning of the website Steps include identifying the error finding the location analyzing it fix and validating it This process can be done manually or with automated tools It s an essential skill needed in a front end developer as it finds and fixes errors in source code Also proper use of breakpoints should be followed to see the flow of code and which easily detects errors line by line which helps in understanding the execution of the code Web Performance OptimizationWeb optimization generally refers to the time taken by any site to load Optimizing web pages improves speed scalability and smoothness which is necessary for any web application A website that takes more than seconds to load is generally considered to be less optimized Multiple factors which cause optimization issues are global convergence local convergence role of the underlying optimization method role of the multigrid recursion properties of the optimization model Steps to improve performance of web Minimizing the use of CSS and JavaScript wherever possible Using optimized images Remove unwanted pluginsIf your website is having trouble getting loaded or any such issues there are steps to improve it A good hosting provider DOM Manipulation DOM Document Object Model is a programming interface for web documents It represents the document as nodes and objects where programming languages can interact with the page Using programs you can change the document structure style and content of a web page DOM manipulation is interacting with the DOM API to change or modify the HTML document such as adding removing editing and moving elements that are rendered on a web browser One of the first things to learn when learning JavaScript for web browsers should be DOM manipulation It represents the structure and the content of any web document which also include styles and HTML part It allows you to create responsive web experiences To manipulate an element inside the DOM the first thing you need to do is to select it and store a reference to it inside a variable Without refreshing a page you can update the data and change the layout of the page and create customizable applications RESTful APIsREST which stands for representational state transfer uses API known as RESTful API which is an application programming interface that allows interaction with RESTful web services It uses HTTP HyperText Transfer Protocol requests to access and manage data Several commands like GET PUT POST and DELETE data types mean reading updating creating and deleting operations Using GET requests to retrieve data POST request to create a data PUT request to update a data DELETE request to delete one in an application All HTTP methods can be used in API calls A well designed REST API is the same as a website running in a web browser with built in HTTP functionality Refer for tutorial That s greatif you have it till end Skills are not built in day or week it take lots of practice and implementation in the real time project responsive websites and hosting them as well Just keep going with your passion 2022-09-23 12:38:56
海外TECH DEV Community How websites are served over the internet https://dev.to/shreyvijayvargiya/how-websites-are-served-over-the-internet-1jjg How websites are served over the internetUnder the HoodEver wondered why I start all the stories from under the hood Well under the hood meaning what s the intention what was the thought process to write this story Where I get the motivation to write the story is covered in the under the hood section My last story got a lot of opinions and love why our websites are slow Importance of bundle sizeI have covered a story on why websites are slow discussing the importance of bundle size I ve put some point or say new approach to address the website performance or optimisation issues This story is the reading inspirations about bundles and how websites load s and how browsers parse and compile them and what not else Bundles are the keyThe more I read the more dots are connected When Sundar Pichai was developing a browser in google even the founders weren t agree with him then he can did something like this magically It seems difficult unless it s done I use to the thought that serving websites from servers to browsers is not too important as we often have to deal only with writing code But the more software development journey I am pursuing the more dots are appearing in focus Now the time has come to connect the dots and understand things a bit better from the basics Bundles are how the websites are served over the internet through the cables you have installed in your homes for internet connectivity Strange bundles seriously Yes bundles are the collection of HTML CSS and Javascript files that are served on the internet These bundles carry the web pages of your website If you have about home and profile page including CSS and images and HTML files then these are bundled minified or let s assume gipped into small chunks and shipped over the wires to your browser Blazingly fastImagine how fast these things work under the hood because it took less than seconds to load the entire medium com website or most of the website I mean even after that seconds we humans are fighting for the website optimisation and performance issues strange People can t even wait for seconds to load the website I can t even think what was the response of the first website user 🥸 Internet and how it worksFirstly the internet is not a browser If you think the same then let me rectify the mistake Email TCP and browser are the services or so called subsets of the internet Internet means connecting computers together or having a conversation between computers So if a server is located in the pacific Ocean and you are browsing in Canada those servers and your computer are talking to each other to give you the result In this case the result is the HTML files or webpages that contain your website Google Chrome makes an entryAnd that s where google chrome or browser comes into the game Once your computer gets the webpages from the servers still your computer needs software or tool to open load or parse or compile the webpages Chrome does that for us without even taking any more from us such a good job Chrome and its internal partyNow chrome receives the webpages and gets ready to organise the party for us Chrome basically parses and compiles the web pages and loads the website Not only this chrome Render the HTML fileExecute the Javascript filePaint the website using CSSI can t even imagine but I wish I could have developed such kind of software in my lifetime What happens when I google the domain name If search www medium com then the medium domain name will give my browser the IP address where the medium servers are located From the medium servers my browser will fetch the medium website or chunks of web pages called bundles These bundles are then parsed compiled and execute on the browser to load the website The domain name only gives the IP address Earlier we use to have only the IP address but it s difficult to remember to the domain name comes after that This is how technology evolves over time amazing Now we have a domain name that gives the server s IP address From the IP address we get the server location or latitude and longitude and through the cables we talk to the server and ask for the website associated with the domain name Servers then return the website in whatever fashion it is earlier it used to be HTML files now it s more often in the form of bundles Lastly once the files are received the browser does its work under the hood without complaints This is the basics done and dusted Future evolutionThis process will mostly remain the same In order to make things fast better servers are located nearby and more servers are installed to serve the website fast Otherwise it would take more time for me to ask for the web pages from the server located in the Pacific Ocean than in the Indian ocean because I am located in India so less distance has to be travelled and more fast things can happen Not even more servers in future we will have a decentralised system where each computer will talk to each other and help serve each other If I have already searched the medium com website and any new person near my computer or in the vicinity tries to google medium com my computer will server the website to his Read about IPFS technology in blockchain and the web world We don t have to rely on single centralised servers to serve our website We can simply push it to the chain and all the computers in the world will act as servers and consumers themselves Pretty strange but quite powerful concept ConclusionStill a lot to understand since we only have chrome to parse the websites it s not open source so we can t optimise or change the under the hood logic We can so far take care of bundles a lot bit of servers and code optimization and good practise but i the future we might have good control the how the website is served Until next time have a good day Keep developingShrey 2022-09-23 12:32:37
海外TECH DEV Community tsParticles 2.3.2 Released https://dev.to/tsparticles/tsparticles-232-released-27ep tsParticles Released tsParticles Changelog Bug FixesFixed export configuration method of container class New FeaturesCreated an official WordPress Gutenberg block plugin available here Social linksDiscordSlackTelegramReddit matteobruni tsparticles tsParticles Easily create highly customizable JavaScript particles effects confetti explosions and fireworks animations and use them as animated backgrounds for your website Ready to use components available for React js Vue js x and x Angular Svelte jQuery Preact Inferno Solid Riot and Web Components tsParticles TypeScript ParticlesA lightweight TypeScript library for creating particles Dependency free browser ready and compatible withReact js Vue js x and x Angular Svelte jQuery Preact Inferno Riot js Solid js and Web ComponentsTable of Contents️️ This readme refers to vversion read here for v documentation ️️Use for your websiteLibrary installationOfficial components for some of the most used frameworksAngularInfernojQueryPreactReactJSRiotJSSolidJSSvelteVueJS xVueJS xWeb ComponentsWordPressElementorPresetsBig CirclesBubblesConfettiFireFireflyFireworksFountainLinksSea AnemoneSnowStarsTrianglesTemplates and ResourcesDemo GeneratorCharacters as particlesMouse hover connectionsPolygon maskAnimated starsNyan cat flying on scrolling starsBackground Mask particlesVideo TutorialsMigrating from Particles jsPlugins CustomizationsDependency GraphsSponsorsDo you want to use it on your website Documentation and Development references here This library is… View on GitHub 2022-09-23 12:14:27
Apple AppleInsider - Frontpage News Daily deals Sept. 23: $180 AirPods Pro, $50 off M1 Mac mini, $20 off AppleCare for Apple Watch Ultra, more https://appleinsider.com/articles/22/09/23/daily-deals-sept-23-180-airpods-pro-50-off-m1-mac-mini-20-off-applecare-for-apple-watch-ultra-more?utm_medium=rss Daily deals Sept AirPods Pro off M Mac mini off AppleCare for Apple Watch Ultra moreFriday s best deals include for an Anker USB C to Lightning cable off HiFiMan Planar Magnetic Headphones off select eBay refurbished items and much more Best deals September Every day AppleInsider searches online retailers to find offers and discounts on items including Apple hardware upgrades smart TVs and accessories We compile the best deals we find into our daily collection which can help our readers save money Read more 2022-09-23 12:57:05
Apple AppleInsider - Frontpage News How to sync multiple Apple Watches to one iPhone https://appleinsider.com/inside/apple-watch/tips/how-to-sync-multiple-apple-watches-to-one-iphone?utm_medium=rss How to sync multiple Apple Watches to one iPhoneIf you just bought a new Apple Watch you don t have to ditch your old one because Apple makes it easy to use two or more with your iPhone Here s how In the beginning you could only sync one Apple Watch with one iPhone Along the way Apple added the ability to sync more than one but it wasn t intuitive And now it could not be easier than Apple s made it ーonce you ve set everything up From then on switching between two or more Apple Watches is solely a case of taking one off and putting the other one on Read more 2022-09-23 12:01:00
Apple AppleInsider - Frontpage News How to use the Action button on Apple Watch Ultra https://appleinsider.com/articles/22/09/23/how-to-use-the-action-button-on-apple-watch-ultra?utm_medium=rss How to use the Action button on Apple Watch UltraThe Action Button is only one extra control on the Apple Watch Ultra but there are great benefits that can be had with it if you know how to set it up and use it After seven years of the Apple Watch with its Digital Crown and its side button Apple has introduced a model with a third control The new Action button is big orange and powerful In theory the new button gives divers extreme sports people and athletes a way to specifically launch one of half a dozen Watch features like starting a workout In practice though one option is to use it to launch a Shortcut ーwhich means a single press can start all of the new functions and just about anything else the Watch can do Read more 2022-09-23 12:42:31
海外TECH Engadget Engadget Podcast: The repairable iPhone 14 and NVIDIA’s RTX 4000 GPUs https://www.engadget.com/engadget-podcast-iphone-14-repair-nvidia-rtx-4080-123100513.html?src=rss Engadget Podcast The repairable iPhone and NVIDIA s RTX GPUsSurprise The iPhone is pretty repairable it turns out This week Cherlynn and Devindra chat with Engadget s Sam Rutherford about this move towards greater repairability and what it means for future iPhones Also they dive into NVIDIA s powerful and expensive new RTX and GPUs Sure they re faster than before but does anyone really need all that power Engadget ·The repairable iPhone NVIDIA s RTX GPUsListen above or subscribe on your podcast app of choice If you ve got suggestions or topics you d like covered on the show be sure to email us or drop a note in the comments And be sure to check out our other podcasts the Morning After and Engadget News Subscribe iTunesSpotifyPocket CastsStitcherGoogle PodcastsRSSTopicsThe iPhone is surprisingly repairable NVIDIA announces RTX and GPUs and a Portal mod with ray tracing Huge hack at Rockstar leaks GTA videos and dev code Uber was also hacked last week by the same crew that hit Rockstar Windows Update Google is offering a p HDR Chrome cast with Google TV Does anyone need the Logitech G cloud gaming handset Twitch is banning gambling streams on October Working on Pop culture picks LivestreamCreditsHosts Cherlynn Low and Devindra HardawarGuest Sam RutherfordProducer Ben EllmanMusic Dale North and Terrence O BrienLivestream producers Julio BarrientosGraphic artists Luke Brooks and Brian Oh 2022-09-23 12:31:00
Linux OMG! Ubuntu! Audacity 3.2 Released with Realtime Effects, VST3 Support https://www.omgubuntu.co.uk/2022/09/audacity-3-2-realtime-effects-at-last Audacity Released with Realtime Effects VST SupportRealtime audio effects and support for VTS plugins are among the new features added to the famed open source audio editor Audacity out now This post Audacity Released with Realtime Effects VST Support is from OMG Ubuntu Do not reproduce elsewhere without permission 2022-09-23 12:11:27
海外ニュース Japan Times latest articles U.S. expresses understanding over Japan’s bid to boost weak yen https://www.japantimes.co.jp/news/2022/09/23/business/financial-markets/us-understands-yen-move/ U S expresses understanding over Japan s bid to boost weak yenJapan conducted a large scale yen buying operation Thursday after the dollar rose above the line in Tokyo trading its highest level since 2022-09-23 21:26:27
海外ニュース Japan Times latest articles Garbine Muguruza’s difficult season continues with loss in Pan Pacific Open quarterfinals https://www.japantimes.co.jp/sports/2022/09/23/tennis/muguruza-quarters-loss/ Garbine Muguruza s difficult season continues with loss in Pan Pacific Open quarterfinalsAnother day another seeded player out of the Pan Pacific Open This time it was Spanish No seed Garbine Muguruza who lost to Liudmila Samsonova 2022-09-23 21:13:04
ニュース BBC News - Home Pound sinks as markets react to mini-budget https://www.bbc.co.uk/news/business-63009173?at_medium=RSS&at_campaign=KARANGA economic 2022-09-23 12:50:10
ニュース BBC News - Home Ukraine war: Russia reveals exemptions as men flee call-up https://www.bbc.co.uk/news/world-europe-63005406?at_medium=RSS&at_campaign=KARANGA world 2022-09-23 12:07:39
ニュース BBC News - Home Iran grapples with most serious challenge in years https://www.bbc.co.uk/news/world-middle-east-63006664?at_medium=RSS&at_campaign=KARANGA nationwide 2022-09-23 12:27:22
北海道 北海道新聞 藤井五冠が羽生九段下す 道内初対局 将棋JT杯 https://www.hokkaido-np.co.jp/article/735345/ 羽生善治 2022-09-23 21:23:17
北海道 北海道新聞 中国報道官、参列で「友好維持」 安倍氏国葬 https://www.hokkaido-np.co.jp/article/735435/ 中国外務省 2022-09-23 21:20:00
北海道 北海道新聞 道内太平洋側で大雨 低地の浸水、土砂災害に注意呼び掛け https://www.hokkaido-np.co.jp/article/735433/ 土砂災害 2022-09-23 21:18:33
海外TECH reddit 劇場版のきれいなトーマス https://www.reddit.com/r/newsokunomoral/comments/xlw7ob/劇場版のきれいなトーマス/ ewsokunomorallinkcomments 2022-09-23 12:28:49

コメント

このブログの人気の投稿

投稿時間: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件)