投稿時間:2023-05-14 03:16:42 RSSフィード2023-05-14 03:00 分まとめ(20件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita Google Photorealistic 3D Tilesを試してみた! https://qiita.com/asahina820/items/9deaac8521c505e7add9 google 2023-05-14 01:05:44
Linux CentOSタグが付けられた新着投稿 - Qiita やってしまった... ルートディレクトリで権限変更&復活劇 https://qiita.com/flip-flop/items/57aab6e63b64d8c2bd39 sudochmodr 2023-05-14 01:17:30
Ruby Railsタグが付けられた新着投稿 - Qiita 【Rails】namespace, scope, module https://qiita.com/muuuumiin3/items/6528fd06b6f40002399d namespacescopemodule 2023-05-14 01:07:27
海外TECH DEV Community Use Notion as a database for your Next.JS Blog https://dev.to/martinp/use-notion-as-a-database-for-your-nextjs-blog-195p Use Notion as a database for your Next JS BlogNotion is an extremely powerful tool to manage your content by creating a database you can even add properties to pages publication date tags etc In this Post you will learn how to fetch pages from the Notion API and render their content to create a wonderful Next JS Blog entirely managed with Notion Create a Notion DatabaseA Notion Database is a list of pages with defined properties it provides features to easily manage your content with different type of views table calendar etc For the purpose of this guide we will add the following properties Title The title of the postDate The date of the postStatus The status of the post Not started Draft Published Created time The creation date of the postDo not forget to create your posts and write some content in them Feel free to add your own properties and tweak them to your needs You could for example add a publication date to automaticaly publish at a certain date Find the database IDLater in this guide you will need the ID of your database You will find it in the URL beeaacaadfade Get a Notion Token Create an IntegrationIn order to interact with the Notion API you will need an Internal Integration Token aka Notion Token Head over the following link to create a new Notion Integration In our case we will only read data you should only add the Read capacity When your integration is created you will have an Internal Integration Token Save it and keep it safe it will be the Notion token that you will use to authenticate to the API Authorize the integration to your databasesYou must explicitly give the permission to your integration to query your databases Click on the ••• in the top right corner of your database then on Add connection and select your Integration To avoid giving access to each of your databases you can add the integration to a parent page Setup the projectLet s install the required dependencies We are going to use four libraries notionhq client The official Notion Javascript SDK notion render client A library to transform Notion Blocks page content into HTML notion render hljs plugin A plugin to highlight your code blocks notion render hljs plugin A plugin to fetch website metadata to render bookmarks yarn add notionhq client notion render client notion render hljs plugin notion render bookmark plugin Or npm install notionhq client notion render client notion render hljs plugin notion render bookmark pluginThen store your Internal Integration Token and the database Id into your env local file so you can access it later NOTION TOKEN secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx NOTION DATABASE ID xxxxxxxxxxxxxxxxxxxxxxx Create the Post Page Create the Notion ClientCreate a new file lib notion ts we will add inside the functions we need to fetch our posts import server only import Client from notionhq client import React from react import BlockObjectResponse PageObjectResponse from notionhq client build src api endpoints export const notion new Client auth process env NOTION TOKEN export const fetchPages React cache gt return notion databases query database id process env NOTION DATABASE ID filter property Status select equals Published export const fetchPageBySlug React cache slug string gt return notion databases query database id process env NOTION DATABASE ID filter property Slug rich text equals slug then res gt res results as PageObjectResponse undefined export const fetchPageBlocks React cache pageId string gt return notion blocks children list block id pageId then res gt res results as BlockObjectResponse You can notice two things import server only This line make sure that the file never get imported by the client to avoid leaking your Notion Token React cacheNext JS provide an extremely good caching system with the fetch function but we can not benefit from it as we are using the Notion JS SDK Instead we can use React cache a powerful method that will returns the same result if we call our function with the same parameters Create the pageCreate a page with a dynamic segment slug Inside we will fetch our pages so it must be a Server Component app blog slug page tsximport fetchPageBlocks fetchPageBySlug from lib notion import notFound from next navigation export default async function Page params params slug string const post await fetchPageBySlug params slug if post notFound const content await fetchPageBlocks post id return lt gt lt gt Render the page contentimport fetchPageBlocks fetchPageBySlug notion from lib notion import bookmarkPlugin from notion render bookmark plugin import NotionRenderer from notion render client import hljsPlugin from notion render hljs plugin import notFound from next navigation export default async function Page params params slug string const post await fetchPageBySlug params slug if post notFound const blocks await fetchPageBlocks post id const renderer new NotionRenderer client notion renderer use hljsPlugin renderer use bookmarkPlugin const html await renderer render blocks return lt div dangerouslySetInnerHTML html html gt lt div gt Next stepsImport your favorite highlight js themeImport the Notion theme from notion render client sass theme scssCreate a theme with your own brandingUse generateStaticParams to generate pages at build timeUse draftMode to preview your Post not published yet 2023-05-13 16:31:41
海外TECH DEV Community According to BuiltWith Trends, there are 3,825,799 websites that use Ruby on Rails https://dev.to/nezirzahirovic/according-to-builtwith-trends-there-are-3825799-websites-that-use-ruby-on-rails-2gbh According to BuiltWith Trends there are websites that use Ruby on RailsJust played with that Bard AI and he said this “According to BuiltWith Trends there are websites that use Ruby on Rails This number includes both live websites and websites that have been taken down Of these websites are live and have been taken down Some of the most well known websites that use Ruby on Rails include AirbnbGitHubShopifyTwitchZendeskRuby on Rails is a popular web development framework that is known for its speed flexibility and ease of use It is a good choice for developers who want to create high quality websites quickly and easily Interesting data hopefully this is correct number If it is then hmm Ruby declined so much 2023-05-13 16:24:31
海外TECH DEV Community How to use multiple GitHub account on same device? https://dev.to/connectaryal/how-to-use-multiple-github-account-on-same-device-3m4n How to use multiple GitHub account on same device Many people use GitHub for both personal and professional projects However if you have multiple GitHub accounts you may be wondering how to use them on the same device There are a few different ways to do this One way is to use different SSH keys for each account Using SSH keysTo use SSH keys you will need to generate a new key pair for each account You can do this by following these steps Open a terminal window Run the following command to generate a new key pair ssh keygen t ed C my email gmail com When prompted enter a file in which to save the key Enter id personal id work or leave empty if you want to save as default file name When prompted enter a passphrase for your key pair Leave empty if you want The key pair will be generated in the ssh directory Repeat same process for second account Once you have generated a key pair for each account you will need to add the public key to each account You can do this by following these steps Go to the settings page for your account Click on the SSH and GPG keys tab Click on the New SSH key button Copy the key by running below commandMacos pbcopy lt ssh id personal pubWindows clip lt ssh id personal pubIn the Key field paste the public key for the account Click on the Add key button Once you have added the public key to each account you need to create a config file under ssh directory by running the following command touch ssh configNow when the config file is created open with vscode or any code editor and replace below code work accountHost github com work HostName github com User git IdentityFile ssh id work Personal accountHost github com HostName github com User git IdentityFile ssh id personal Save the file and run below commandeval ssh agent s or ssh agent reloadNow use the SSH key to connect to each account You can do this by following these steps Open a terminal window Change to the directory where you want to clone the repository Run the following command to clone the work repository git clone git github com work repository gitRun the following command to clone the personal repository git clone git github com work repository gitConclusionUsing multiple GitHub accounts on the same device can be a bit tricky but it is definitely possible By following the steps in this article you will be able to use multiple GitHub accounts on the same device without any problems 2023-05-13 16:17:23
Apple AppleInsider - Frontpage News Getting started with macOS Disk Utility: The basics https://appleinsider.com/inside/macos/tips/getting-started-with-macos-disk-utility-the-basics?utm_medium=rss Getting started with macOS Disk Utility The basicsDisk Utility ships with macOS and has been part of the operating system since its first release Here s how to use it Disk Utility provides various tasks such as formatting storage devices mounting and unmounting volumes creating disk images and copying drives First we ll define some terminology then dive into what you can do with Disk Utility Understanding devices and volumes Read more 2023-05-13 16:57:21
海外TECH CodeProject Latest Articles Custom USB HID Device using PIC18F4550 https://www.codeproject.com/Articles/5360372/Custom-USB-HID-Device-using-PIC18F4550 input 2023-05-13 16:42:00
ニュース BBC News - Home Ukraine's Zelensky meets Pope Francis in Rome https://www.bbc.co.uk/news/world-europe-65581170?at_medium=RSS&at_campaign=KARANGA francis 2023-05-13 16:11:33
ニュース BBC News - Home Southampton relegated with whimper with Fulham loss https://www.bbc.co.uk/sport/football/65506033?at_medium=RSS&at_campaign=KARANGA fulham 2023-05-13 16:47:06
ニュース BBC News - Home Strikes hit train passengers ahead of Eurovision final https://www.bbc.co.uk/news/business-65574063?at_medium=RSS&at_campaign=KARANGA companies 2023-05-13 16:04:44
ニュース BBC News - Home Priti Patel: Tory leadership errors cost us dearly in local elections https://www.bbc.co.uk/news/uk-politics-65579691?at_medium=RSS&at_campaign=KARANGA election 2023-05-13 16:15:55
海外TECH DEV Community 25 Clean Code Tips That You Should Be Familiar https://dev.to/sardarmudassaralikhan/25-clean-code-tips-that-you-should-be-familiar-53ek Clean Code Tips That You Should Be Familiar Format your code Use meaningful names Avoid returning NULL Keep class size small Don t reinvent the wheel Use appropriate tools IDE Structure your solution well Use proper naming convention Use OOP Principles in your code Write short methods lines Removed unused and duplicate code Avoid catching generic exceptions Don t put everything in single class Use constants instead of magic numbers Avoid deep nested conditions and loops For simple if else use ternary operator Don t use too many parameters in Methods Refactor code and re revaluate conditions Use async await for better user experience Unit test and test code after code reviews Use expression bodied methods where possible Use version control to maintain history of code Now a days libraries a quite common choose wisely Don t use a lot of comments only add where necessary Follow coding and design principles SOLID KISS YAGNI Eliminate extra functions and create functions where possible 2023-05-13 17:26:08
海外TECH DEV Community What’s The Difference Between REM, EM, And PX? https://dev.to/saurabhkumar/whats-the-difference-between-rem-em-and-px-59lb What s The Difference Between REM EM And PX In this article we will talk about REM EM and Px What is and Why do we use rem units What is REM In CSS Rem root em stands for root element s font size The font size text size of the root element can be used to define REM This means that rem means total the font size of the html element which is set to px by default in most browsers As a result even if you don t know what the default font size will be rem units are useful for scaling CSS elements in relation to the size of the root element Why do we use rem units As previously stated rem units denote the size of the root element Because a user can change the default size of this element in their browser settings the webpage can scale to match their preferences However using absolute units such as pixels creating accessibility barriers Pixels override the root font size of the document so the user s preferences are ignored As a result whenever possible use rem units for any scalable elements Font Sizing with Rem Units The main disadvantage of using rem for font sizing is that the values are difficult to be using Let s look at some familiar font sizes expressed in rem units assuming that the base size is px px rempx rempx rempx rem base px rempx rempx rempx remSyntax root font size rem What is EM In css An em is a CSS unit that measures font size text size from the top of the cap height to the bottom of the font s lowest descender The em was named because it was originally equal to the width of the capital letter M Note When EM units are used on the font size property the size is related to a parent s font size When used on other characteristics it is related to the element s font size The first statement uses the parent s reference in this case Why we use EM The primary reason to use em or percentages is to permit the user to adjust the size of the text without causing the layout to break Font Sizing with em Units The font size for scalable text is expressed in em One em is equal to px or pt by default Its value is proportional to the font size of the parent element SyntaxThe syntax of the CSS font size em property is as follows Syntax root font size em What is PX in Css It has no connection with the current font and is rarely related to physical centimeters or inches The px unit is designed to be small but visible allowing a horizontal px wide line with sharp edges to be displayed no anti aliasing Why do we use px in css Because px attributes were the de facto standard the majority of CSS examples on the internet use them In concept pt in and a wide range of other units could be used but they didn t handle small values well forcing you to resort to fragments which took much longer to type and were more difficult to reason about If you would want a thin border you could use px with px but withpt you d have to use pt for consistent results which is inconvenient The syntax of the CSS font size px property is as follows Syntax root font size px UnitType of UnitSize CalculationUse CaseREMRelativeBased on the parent font sizeSizing elements relative to viewport e g width heightEMRelativeSizing elements relative to the parent e g margin paddingSizing elements relative to the viewport e g width heightPXAbsoluteFixed sizeSizing elements with fixed dimensions e g font size border 2023-05-13 17:17:35
海外TECH Engadget Google faces antitrust compliance review in India following Match Group complaint https://www.engadget.com/google-faces-antitrust-compliance-review-in-india-following-match-group-complaint-173227201.html?src=rss Google faces antitrust compliance review in India following Match Group complaintGoogle s ongoing feud with Match Group over in app payments has spilled over to India with potentially significant ramifications for the search giant According to a regulatory order seen by Reuters Match the parent company of Tinder and Hinge joined a group of Indian startups this week to request that the Competition Commission of India investigate Google s User Choice Billing system The CCI is the same regulatory body that last year barred the tech giant from requiring OEMs to bundle first party Google apps and services with Android The order which the company began to reluctantly implement at the start of the year also mandates Google to support third party billing options In a complaint it made with the Alliance of Digital India Foundation Match argues Google s new User Choice Billing system still imposes a high “service fee between and percent on app developers The company claims the cost of using the system means Google has not complied with the CCI s previous order Per Reuters the watchdog said Friday it was “of the opinion that an inquiry needs to be made quot The company now has four weeks to comply with an information request from the CCI Google did not immediately respond to Engadget s comment request When Match sued the company last year over its Play Store billing policies Google accused it of carrying out a “self interested campaign to avoid paying for the significant value they receive from the Android and Play Store ecosystems nbsp This article originally appeared on Engadget at 2023-05-13 17:32:27
ニュース BBC News - Home Eurovision final: 10 things to look out for https://www.bbc.co.uk/news/entertainment-arts-65569009?at_medium=RSS&at_campaign=KARANGA guests 2023-05-13 17:49:45
ニュース BBC News - Home Strikes hit train passengers ahead of Eurovision final https://www.bbc.co.uk/news/business-65574063?at_medium=RSS&at_campaign=KARANGA companies 2023-05-13 17:41:01
ニュース BBC News - Home Priti Patel: Tory leadership errors cost us dearly in local elections https://www.bbc.co.uk/news/uk-politics-65579691?at_medium=RSS&at_campaign=KARANGA election 2023-05-13 17:21:56
ニュース BBC News - Home Saracens 38-15 Northampton: Sarries crush Saints with five tries in Premiership semi-final https://www.bbc.co.uk/sport/rugby-union/65571257?at_medium=RSS&at_campaign=KARANGA Saracens Northampton Sarries crush Saints with five tries in Premiership semi finalSaracens reach their th Premiership final with a five try play off semi final win over Northampton Saints 2023-05-13 17:21:59
海外TECH reddit MAD Lions vs. G2 Esports / MSI 2023 - Lower Bracket Round 1 / Post-Match Discussion https://www.reddit.com/r/leagueoflegends/comments/13gnkzp/mad_lions_vs_g2_esports_msi_2023_lower_bracket/ MAD Lions vs G Esports MSI Lower Bracket Round Post Match DiscussionMSI Official page Leaguepedia Liquipedia Eventvods com New to LoL MAD Lions G Esports G Esports move on the face the loser of JD Gaming vs Bilibili Gaming MAD Lions are eliminated from MSI MAD Leaguepedia Liquipedia Website Twitter Facebook YouTube G Leaguepedia Liquipedia Website Twitter Facebook YouTube Subreddit MATCH MAD vs G Winner G Esports in m Game Breakdown Bans Bans G K T D B MAD draven olaf ksante kennen sion k M G gragas vi rakan braum thresh k H H I B MAD vs G Chasy gnar TOP yasuo BrokenBlade Elyoya maokai JNG khazix Yike Nisqy jayce MID annie Caps Carzzy jinx BOT aphelios Hans Sama Hylissang leona SUP nautilus Mikyx MATCH G vs MAD Winner G Esports in m Game Breakdown Bans Bans G K T D B G gragas vi rakan jayce nidalee k O H H B CT MAD draven olaf maokai thresh kennen k M CT G vs MAD BrokenBlade cassiopeia TOP irelia Chasy Yike belveth JNG elise Elyoya Caps nautilus MID ksante Nisqy Hans Sama jinx BOT aphelios Carzzy Mikyx lulu SUP braum Hylissang MATCH G vs MAD Winner G Esports in m Game Breakdown Bans Bans G K T D B G gragas vi rakan elise nidalee k H H B O MAD draven olaf maokai belveth lulu k H HT G vs MAD BrokenBlade cassiopeia TOP ksante Chasy Yike kindred JNG wukong Elyoya Caps nautilus MID ahri Nisqy Hans Sama jinx BOT aphelios Carzzy Mikyx janna SUP braum Hylissang This thread was created by the Post Match Team submitted by u Soul Sleepwhale to r leagueoflegends link comments 2023-05-13 17:32:17

コメント

このブログの人気の投稿

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