投稿時間:2022-09-11 05:19:52 RSSフィード2022-09-11 05:00 分まとめ(25件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
海外TECH MakeUseOf Using Apple Music Playlists: How to Get Started https://www.makeuseof.com/tag/apple-music-playlists-guide/ music 2022-09-10 19:30:14
海外TECH MakeUseOf How to Change the Encryption Level for File Sharing Connections on Windows https://www.makeuseof.com/windows-change-encryption-level/ encryption 2022-09-10 19:15:14
海外TECH DEV Community 14 Essential Developer Tools to 10X Your Productivity 🚀✨ https://dev.to/naubit/14-essential-developer-tools-to-10x-your-productivity-547j Essential Developer Tools to X Your Productivity Developing a good workflow is essential in such a fast paced environment with strict deadlines Therefore productivity is one of the most important metrics to consider In this post I will share some of the best developer tools to help you work more efficiently Each tool will include a direct link a description and an image preview justgetfluxIt makes the color of your computer s display adapt to the time of day ilovepdf comEvery tool you need to work with PDFs in one place worldtimebuddyA convenient world clock a time zone converter and an online meeting scheduler ihateregexA regex cheat sheet that also explains the commonly used expressions minute mailA temporary e mail address that expires after minutes squoosh appMake images smaller using best in class codecs right in the browser screelyTurn any screenshots into a browser mockup monkey typeA minimalistic typing test featuring many test modes prestigeAn HTTP client in your web browser logo makerCreate a logo with the perfect font icon and color scheme make thumbnailsDrag and drop some images and you get a zip file containing the thumbnails upscalerEnhance image resolution with AI without losing quality kanboardOpen source and self hosted kanboard style project manager waka timeOpen source plugins for metrics about your programming I love writing and it brings me so much joy to be able to help people find inspiration in my content If you have any questions feel free to reach out Connect me on Twitter and check my blog here for more content 2022-09-10 19:32:59
海外TECH DEV Community How To Name Classes in HTML and CSS using BEM https://dev.to/catalysts_reachout/how-to-name-classes-in-html-and-css-using-bem-4aod How To Name Classes in HTML and CSS using BEMHello Buddies In Today s story we are discussing about naming convention in HTML and CSS  We are Discussing about BEM naming convention where B   Body E   Element M   Modifier You may had a glance of naming classes similar as mentioned below Wrong catlystNavbar catlystNavbarLogo catlystNavbarBg Correct catalyst navbar catalyst navbar logo catalyst navbar bg BEM attempts to divide the overall user interface into small reusable components To understand efficiently let us take an example of our a navbarCatalysts NavbarThe above navbar represents as element such as a block of design Which represents the first letter of BEM that is Block and the component styled similarly as shown below catalyst navbar E   ElementE stands for Element in BEMFor instance the catalyst navbar a logo and linksThe logo and links are all elements within the component They may be seen as child components i e children of the overall parent component Using the BEM naming convention element class names are derived by adding two underscores followed by the element name catalyst navbar logo catalyst navbar content M   ModifierM stands for Modifier in BEMWhat if the navbar was modified and we could have a blue or a red backgroundIn the real world this could be a red button or blue button These are modifications of the component in question Using BEM modifier class names are derived by adding two hyphens followed by the element name For Example catalyst navbar bg catalyst navbar red catalyst navbar blue Here is the final code I wrote for this navbarNow the question arrise  Why naming convention is required  Naming things is hard We re trying to make things easier and save ourselves time in the future with more maintainable code Naming things correctly in CSS will make your code easier to read and maintain If you choose to use the BEM naming convention it will become easier to see the relationship between your design components blocks just by looking at the markup 2022-09-10 19:22:19
海外TECH DEV Community Building Full Stack Permanent Applications with Arweave, Smartweave, and Next.js https://dev.to/dabit3/building-full-stack-applications-with-arweave-and-nextjs-28hg Building Full Stack Permanent Applications with Arweave Smartweave and Next jsThe code for this tutorial can be found hereIn this tutorial you ll learn how to build full stack dapps on Arweave with Smarweave Warp and Next js Smartweave TLDRCode smart contracts in JS TS or RustExecute arbitrary amounts of compute without additional feesNever have to worry about gas optimizationsNo state bloatCan directly process rich content large filesWarp offers enhancements speed caching sdks The application we ll be building is a full stack blog meaning that you will have an open public and composable back end that can be transferred and reused anywhere not only in this app Unlike most blockchain applications working with large or arbitrary amounts of data Smartweave enables all of the state for this app to be stored directly on chain I think this is a good example as it s not too basic as to be boring but not too complex as to be confusing It shows how to do most of the basic things you ll need and want to understand in order to build more complex and sophisticated applications going forward About ArweaveArweave is a web protocol that allows developers to permanently store files like images videos and pdfs as well as single page web applications Arweave introduced the idea of the permaweb a permanent global community owned web that anyone can contribute to or get paid to maintain SmartweaveArweave also introduced SmartWeave a smart contract protocol that allows developers to build permanent applications on top of Arweave When you publish a Smartweave contract the program s source code and its initial state is stored in an Arweave transaction When a user writes an update to a SmartWeave program they write their inputs as a new Arweave transaction To calculate the state of the contract a SmartWeave client uses the contract source code to execute the history of inputs sequentially Invalid transactions are ignored In doing so SmartWeave pushes the responsibility of validating transactions onto the users WarpWarp is a protocol built on top of Arweave meant to facilitate a better DX UX for Smartweave application development Warp consists of main layers The Core Protocol layer is the implementation of the original SmartWeave protocol and is responsible for communication with the SmartWeave smart contracts deployed on ArweaveThe Caching layer is build on top of the Core Protocol layer and allows caching results of each of the Core Protocol modules separately This allows you to quickly retrieve data from contracts with a large number of state updates but also offers instant transactions and contracts availability and finality Extensions layer a CLI Debugging tools different logging implementations so called dry runs i e actions that allow to quickly verify the result of given contract interaction without writing anything on Arweave Getting startedNow that we know a little bit about the underlying technology let s start building PrerequisitesTo be successful in this tutorial you should have Node js or greater installed on your machine I recommend using either nvm or fnm to manage Node js versions Creating and configuring the projectTo get started let s first create the Next js application configure it and install the dependencies npx create next app full stack arweaveChange into the new directory and install the following dependencies npm install warp contracts react markdown uuid Configuring the Next js appOpen package json and add the following configuration type module Then update next config js to use ES Modules to export the nextConfig replace module exports nextConfig with this export default nextConfigThis will enable the Next js app to use ES Modules Next add the following to the gitignore file wallet jsontestwallet jsontransactionid jsNever push wallet information to any public place like GitHub In this tutorial we ll only be working with testnet but we ll have the code available for you to push to mainnet Just in case we re adding wallet json to gitignore Warp ContractsNext let s create and test out the smart contracts About Smartweave contractsSmartweave contracts work like this An initial state for the application is defined as a JSON object Some basic initial state might look something like this for a counter application that increments and decrements a number counter The logic of a Smartweave contract is written in a function named handle This function defines different actions that can be called on the contract which manipulate the state Actions are similar to functions in a normal smart contract or program Each action will update the state in some way A basic handler for a counter that uses the above state might look something like this export function handle state action if action input function increment state counter if action input function decrement state counter return state In this handler there are two actions increment or decrement The logic here is pretty straightforward To update the state of the contract we can call writeInteraction from the Warp SDK Here s a basic example of how this might look when calling this function on the server import WarpFactory from warp contracts const transactionId BAEIfkKvlPXLksENloAmpzrMezSPhwaujTNli import wallet from wallet json let warp WarpFactory forLocal const contract warp contract transactionId connect wallet await contract writeInteraction function decrement Then we can read the state at any time const contract warp contract transactionId connect const cachedValue await contract readState Writing the contractNow that we have a basic understanding of how contracts work let s start writing some code In the root of the project create a new folder named warp In this folder create a new file named contract js warp contract js export function handle state action address of the caller is available in action caller if action input function initialize state author action caller if action input function createPost amp amp action caller state author const posts state posts posts action input post id action input post state posts posts if action input function updatePost amp amp action caller state author const posts state posts const postToUpdate action input post posts postToUpdate id postToUpdate state posts posts if action input function deletePost amp amp action caller state author const posts state posts delete posts action input post id state posts posts return state This is the contract for our blogging app We have functions to create update and delete a post CRUD We also have an initialize function which adds a basic authorization rule that only allows the blog owner to call any of these functions by setting the contract deployer as the owner Next create a file in the warp directory named state json and add the following JSON posts author null Here we have an initial state of posts set to an empty object and author set to null We re done with our contract now let s write the code to deploy update and read the state of the contract Deploy update and readNext create a new file named configureWarpServer js in the warp directory import WarpFactory from warp contracts import fs from fs environment can be local testnet mainnet custom const environment process env WARPENV testnet let warpif environment testnet warp WarpFactory forTestnet else if environment mainnet warp WarpFactory forMainnet else throw Error environment not set properly async function configureWallet try if environment testnet for testing generate a temporary wallet try return JSON parse fs readFileSync testwallet json utf catch err const jwk await warp testing generateWallet fs writeFileSync testwallet json JSON stringify jwk return jwk else if environment mainnet for mainnet retrieve a local wallet return JSON parse fs readFileSync wallet json utf else throw Error Wallet not configured properly catch err throw Error Wallet not configured properly err export configureWallet warp In this file we re configuring warp server based on whether we re in a testing or mainnet production environment We then have a function that configures the wallet we ll be using to deploy the contract If we re testing we can just spin up a test wallet automatically using generateWallet If we re in production we have the option of importing a wallet locally Now that we have the ability to configure a wallet and a Warp server let s create the function for deploying the contracts Deploying the contractCreate a new file named deploy js in the warp directory with the following code import fs from fs import configureWallet warp from configureWarpServer js async function deploy const wallet await configureWallet const state fs readFileSync state json utf const contractsource fs readFileSync contract js utf const contractTxId await warp createContract deploy wallet initState state src contractsource fs writeFileSync transactionid js export const transactionId contractTxId const contract warp contract contractTxId connect wallet await contract writeInteraction function initialize const cachedValue await contract readState console log Contract state cachedValue console log contractTxId contractTxId deploy The deploy function will deploy the contract to Arweave and write the transaction id to the local file system Reading the stateNext let s create a file named read js with the following code import warp from configureWarpServer js import transactionId from transactionid js async function read const contract warp contract transactionId connect const cachedValue await contract readState console log Contract state JSON stringify cachedValue read Writing an updateThe last function we ll write is for creating a new post In the warp directory create a new file named createPost js with the following code import warp configureWallet from configureWarpServer js import transactionId from transactionid js import v as uuid from uuid async function createPost let wallet await configureWallet const contract warp contract transactionId connect wallet await contract writeInteraction function createPost post title Hi from first post content This is my first post id uuid createPost Testing it outNow we can test everything out To deploy the contract run the following command from the warp directory node deployThis should deploy the contract to testnet Once the contract has been deployed you can use the Sonar block explorer to view the contract and the current state of it The contract transaction ID will be available in transactionid js Be sure to switch to testnet to view the contract from this deployment Next let s read the current state node readThe returned state of the contract should look something like this state posts author YzqAM VDCqFZEkiZBY bSxHohFSvjOCWnY validity CmMGSlrGNvvCCfldtiUzaZnQ bFWYoEhNCVe true errorMessages Now let s create a post node createPostNow when we read the updated state we should see the new post in the updated state node read Building out the web appNow that we understand how to deploy and test out a Smartweave contract with Warp let s build out a front end application that will interact with it and use it Since the application we re building is a blog we ll need to create two basic views A view to see the posts created by the user A view to allow users to create posts We ll also need a file to hold a function we ll be using to configure warp for the client similar to how we configured warp for the server previously Create a new file named configureWarpClient js in the root of the app and add the following code import WarpFactory from warp contracts import transactionId from transactionid import wallet from testwallet environment can be local testnet mainnet custom const environment process env NEXT PUBLIC WARPENV testnet let warplet contractasync function getContract if environment testnet warp WarpFactory forTestnet contract warp contract transactionId connect wallet else if environment mainnet warp WarpFactory forMainnet contract warp contract transactionId connect else throw new Error Environment configured improperly return contract export getContract Creating a postNext in the pages directory create a new file named create post js and add the following code import useState from react import getContract from configureWarpClient import v as uuid from uuid import useRouter from next router export default function createPostComponent const post updatePost useState title content const router useRouter async function createPost if post title post content return post id uuid const contract await getContract try const result await contract writeInteraction function createPost post console log result result router push catch err console log error err return lt div style formContainerStyle gt lt input value post title placeholder Post title onChange e gt updatePost post title e target value style inputStyle gt lt textarea value post content placeholder Post content onChange e gt updatePost post content e target value style textAreaStyle gt lt button style buttonStyle onClick createPost gt Create Post lt button gt lt div gt const formContainerStyle width px margin auto display flex flexDirection column alignItems flex start const inputStyle width px padding px fontSize px border none outline none marginBottom px const buttonStyle width px padding px px const textAreaStyle width height px marginBottom px padding px Reading and displaying postsNext update pages index js with the following code import useEffect useState from react import getContract from configureWarpClient import ReactMarkdown from react markdown export default function Home const posts setPosts useState useEffect gt readState async function readState const contract await getContract try const data await contract readState console log data data const posts Object values data cachedValue state posts setPosts posts console log posts posts catch err console log error err return lt div style containerStyle gt lt h style headingStyle gt PermaBlog lt h gt posts map post index gt lt div key index style postStyle gt lt p style titleStyle gt post title lt p gt lt ReactMarkdown gt post content lt ReactMarkdown gt lt div gt lt div gt const containerStyle width px margin auto const headingStyle fontSize px const postStyle padding px px px borderBottom px solid rgba const titleStyle fontSize px marginBottom px NavigationNext update pages app jsimport styles globals css import Link from next link function MyApp Component pageProps return lt div gt lt nav style navStyle gt lt Link href gt lt a style linkStyle gt Home lt a gt lt Link gt lt Link href create post gt lt a style linkStyle gt Create Post lt a gt lt Link gt lt nav gt lt Component pageProps gt lt div gt const navStyle padding px px const linkStyle marginRight px export default MyApp Testing it outNow let s run the app and test it out npm run devWhen the app loads the post created on the server should be rendered in the UI Next create a post If the post is successfully created it should show up in the list of posts on the home page Next Steps Deploying to mainnetIf you d like to deploy and connect to Arweave mainnet follow these steps Download ArConnect walletRequest AR tokens from faucet purchase them from an exchange or swap at an exchange like changeNOWDownload new wallet into a file named wallet json Be sure to add this file to your gitignore and never ever make public or push to Git Set local environment variable to mainnet in the terminal session you will be deploying from export WARPENV mainnetCreate env local file in the root of the app and add the following environment variable NEXT PUBLIC WARPENV mainnetDeploy the contract from the warp directory node deployRun the appnpm run dev Learning resourcesIf you d like to dive deeper and learn more about Warp Smartweave and Arweave check out Warp Academy 2022-09-10 19:12:27
Apple AppleInsider - Frontpage News Apple faces Mexican competition probe over App Store fees https://appleinsider.com/articles/22/09/10/apple-faces-mexican-competition-probe-over-app-store-fees?utm_medium=rss Apple faces Mexican competition probe over App Store feesApple along with Google may face yet another competition probe from regulators in Mexico after a former telecommunications chief filed a complaint against tech giants on Friday The complaint brought to Mexico s telecoms regulator IFT on Thursday has Mony de Swaan Addati accusing Apple and Google of completely inhibiting competition by abusing their App Store monopoly to force the use of their own payment services for in app payments The complaint seen by Reuters claims the Google Play Store and Apple s App Store charge between and commission which in turn forces price inflation Read more 2022-09-10 20:00:07
Apple AppleInsider - Frontpage News Compared: iPhone 14 versus 2022 iPhone SE https://appleinsider.com/inside/iphone-14/vs/compared-iphone-14-versus-2022-iphone-se?utm_medium=rss Compared iPhone versus iPhone SEApple s iPhone is aimed at about the same market that the iPhone SE targets Here s how it compares to the third generation iPhone SE iPhone left and the iPhone SE right The iPhone represents Apple s latest midrange offering following in the footsteps of the iPhone and iPhone The most notable change here is that the iPhone is now Apple s smallest model in its standard lineup since the company doped the inch mini in favor of a larger version the iPhone Plus Read more 2022-09-10 19:47:04
海外TECH Engadget First ‘The Mandalorian’ season three trailer reunites everyone’s favorite Star Wars family https://www.engadget.com/the-mandalorian-season-three-trailer-190644043.html?src=rss First The Mandalorian season three trailer reunites everyone s favorite Star Wars familyWith D underway this weekend Disney had a lot to share with Star Wars fans In all the company debuted three trailers at the expo First there was a final look at Star Wars Andor ahead of the show s Disney premiere on September st Then we got to see Tales of the Jedi a new animated anthology series that will begin streaming on October rd But what you can here to see is the first trailer for season three of The Mandalorian The clip is the same one that was shown behind closed doors at Star Wars Celebration Spoilers for season two of The Mandalorian and The Book of Boba Fett follow nbsp After he left to train at Luke s Jedi Temple Gorgu and Din Pedro Pascal are reunited and back to their usual hijinks but Mando s decision to take his helmet off at the end of season two has damaged his relationship with the Armorer and what s left of his clan The fact he also took the Darksaber from Moth Gideon is also a source of conflict between him and Bo Katan Katee Sackhoff Based on the trailer it looks like season three will tell a more focused story with fewer detours for Mando and Gorgu to get into trouble The Mandalorian season three will arrive on Disney in 2022-09-10 19:06:44
ニュース BBC News - Home Ukraine counter-offensive: Russian forces retreat as Ukraine takes key towns https://www.bbc.co.uk/news/world-europe-62860774?at_medium=RSS&at_campaign=KARANGA april 2022-09-10 19:10:58
ニュース BBC News - Home William, Harry, Meghan and Kate on walkabout outside Windsor https://www.bbc.co.uk/news/uk-62864876?at_medium=RSS&at_campaign=KARANGA windsorthousands 2022-09-10 19:20:01
ニュース BBC News - Home England v South Africa: Tributes paid to Queen before Test begins https://www.bbc.co.uk/sport/cricket/62838463?at_medium=RSS&at_campaign=KARANGA africa 2022-09-10 19:29:27
ニュース BBC News - Home Saturday's sport pays tribute to Queen Elizabeth II https://www.bbc.co.uk/sport/62862295?at_medium=RSS&at_campaign=KARANGA elizabeth 2022-09-10 19:12:01
ビジネス ダイヤモンド・オンライン - 新着記事 メディアが報じない、稲盛和夫氏が一番に伝えたかった「驚愕のフィロソフィ」 - 「超一流」の流儀 https://diamond.jp/articles/-/309472 メディアが報じない、稲盛和夫氏が一番に伝えたかった「驚愕のフィロソフィ」「超一流」の流儀稲盛和夫氏の逝去に当たって、数々の論評記事が世に溢れたが、一つ気になっていることがある。 2022-09-11 04:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 妻が薬害で要介護に…年収1000万円の59歳夫が「退職して介護に専念」はアリ? - お金持ちになれる人、貧乏になる人の家計簿 深野康彦 https://diamond.jp/articles/-/309523 妻が薬害で要介護に…年収万円の歳夫が「退職して介護に専念」はアリお金持ちになれる人、貧乏になる人の家計簿深野康彦今回は、歳男性からの相談をピックアップする。 2022-09-11 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 経営の神様・稲盛和夫が「20円の栗を値切り倒して結局買わなかった」理由【見逃し配信】 - 見逃し配信 https://diamond.jp/articles/-/309536 稲盛和夫 2022-09-11 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 ハワイ旅行の最新事情、出入国の流れや手続きを写真入りで徹底レポート! - 地球の歩き方ニュース&レポート https://diamond.jp/articles/-/309380 地球の歩き方 2022-09-11 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 厳しいお叱りの言葉が、ストーンと心に入ってきた先輩の一言とは?部下や後輩に注意する際に気をつけたいこと - from AERAdot. https://diamond.jp/articles/-/309383 今回は、部下や後輩に厳しい言葉をかけたとき、最後に付け加えたい言葉ついてご紹介します。 2022-09-11 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 自宅で下半身を鍛える「自重トレーニング」4選、効果的な姿勢と回数は? - 男のオフビジネス https://diamond.jp/articles/-/309373 自重 2022-09-11 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 新日本酒紀行「国士無双」 - 新日本酒紀行 https://diamond.jp/articles/-/308885 北海道旭川市 2022-09-11 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 納豆アレルギーと「ホタテ」に意外な関係の可能性、北大の研究結果とは - ヘルスデーニュース https://diamond.jp/articles/-/309521 納豆アレルギーと「ホタテ」に意外な関係の可能性、北大の研究結果とはヘルスデーニュース北海道の漁業従事者を対象に行った調査研究から、ホタテガイホタテの養殖で使う網などを素手で取り扱うことが、納豆アレルギーのリスクを高める可能性が浮かび上がった。 2022-09-11 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 モラハラ妻が殴打で救急車、シカト攻撃…夫にカリスマ住職が贈った言葉 - ニュース3面鏡 https://diamond.jp/articles/-/309153 2022-09-11 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 「この人、気がきくな」と好感をもたれるお礼メールの書き方とは? - 気のきいた短いメールが書ける本 https://diamond.jp/articles/-/308880 相手 2022-09-11 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 【ひろゆきが教える】ダマされにくい脳でいるための「たった1つの習慣」 - 99%はバイアス https://diamond.jp/articles/-/309099 習慣 2022-09-11 04:05:00
ビジネス 東洋経済オンライン パワーカップルの7割が使う「ペアローン」のワナ 収入合算との違いは?メリットデメリット | 街・住まい | 東洋経済オンライン https://toyokeizai.net/articles/-/616907?utm_source=rss&utm_medium=http&utm_campaign=link_back 住宅ローン 2022-09-11 05:00:00
ビジネス 東洋経済オンライン 中央線で東京直結、八王子は昔「神奈川県」だった 山梨・横浜を結ぶ街道の要衝、鉄道でさらに発展 | 駅・再開発 | 東洋経済オンライン https://toyokeizai.net/articles/-/617054?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2022-09-11 04:30: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件)