投稿時間:2022-03-24 20:43:11 RSSフィード2022-03-24 20:00 分まとめ(62件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 「Windows 11 Insider Preview Build 22581」がDev/Betaチャネル向けにリリース https://taisy0.com/2022/03/24/155104.html build 2022-03-24 10:08:42
TECH Engadget Japanese ダンベル、バーベル、ケトルベル、プッシュアップバーの4wayで使える、家トレに最適な「DARBELL Max」 https://japanese.engadget.com/darbell-max-105243786.html 荒井さん何よりもまず驚いたのは、ケトルベルにもなる上にその重量まで調節できるところですね。 2022-03-24 10:52:43
TECH Engadget Japanese Nothing初スマホphone (1)は今夏投入、日本でも発売か。カスタムOS「Nothing OS」を搭載 https://japanese.engadget.com/nothing-phone-1-102740390.html nothing 2022-03-24 10:27:40
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] トヨタグループの国内取引状況を調査 1次仕入先の資本金で8割を超えたのは? https://www.itmedia.co.jp/business/articles/2203/24/news169.html itmedia 2022-03-24 19:35:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] タカラレーベン、グループ創業50周年記念ホテル「HOTEL THE LEBEN OSAKA」をオープン https://www.itmedia.co.jp/business/articles/2203/24/news176.html hotelthelebenosaka 2022-03-24 19:07:00
IT ITmedia 総合記事一覧 [ITmedia News] アイマス仕様「ホットクック」再販 カスタムボイスの発売記念で https://www.itmedia.co.jp/news/articles/2203/24/news173.html itmedia 2022-03-24 19:01:00
python Pythonタグが付けられた新着投稿 - Qiita Python: VSCode: 関数名をスネークケース(小文字と_で構成)に変換するショートカットを設定する https://qiita.com/yagrush/items/d9ae2d260ec2f988973d PythonVSCode関数名をスネークケース小文字とで構成に変換するショートカットを設定するPyhonの関数名とか変数名の付け方って、スネークケース例getuserinfoがデファクトスタンダードっぽくて、オブジェクト指向言語メインだった身には新鮮でした。 2022-03-24 19:49:13
Ruby Rubyタグが付けられた新着投稿 - Qiita Ruby脳のためのRustの文字列メソッド https://qiita.com/akicho8/items/8d4eb552987c1cfd7195 Ruby脳のためのRustの文字列メソッドRubyRustbytesizelenDOC実行getDOC実行charscharsDOC実行sizecharscountDOC実行toiparseltisizegtDOC実行lineschomptruelinesDOC実行striptrimDOC実行lstriptrimstartDOC実行rstriptrimendDOC実行splitsplitwhitespaceDOC実行splitxsplitxDOC実行gsubstrremovematchesstrDOC実行concatstrpushstrstrDOC実行concatchpushchDOC実行selfnrepeatnDOC実行clearclearDOC実行emptyisemptyDOC実行includecontainsDOC実行charseachwithindexcharindicesDOC実行inspectescapedebugDOC実行gsubreplaceDOC実行gsub最初のn回だけreplacenDOC実行insertistrinsertstristrDOC実行insertichinsertichDOC実行newnewDOC実行bytesintobytesDOC実行bytesasbytesDOC実行bytesasmutvecDOC実行slicentruncatenDOC実行slicepopDOC実行sliceiremoveiDOC実行select類似retainDOC実行sliceisplitoffiDOC実行rangevreplacerangerangevDOC実行slicegetmutDOC実行splitxreversersplitxDOC実行splitltxsplitinclusivexDOC実行splitxsplitterminatorxDOC実行splitxreversersplitterminatorxDOC実行splitsepnsplitnnsepDOC実行split末尾からrsplitnnsepDOC実行splitsepsplitoncesepDOC実行splitsep末尾からrsplitoncesepDOC実行scanmatchesDOC実行reversescanrmatchesDOC実行startwithstartswithDOC実行endwithendswithDOC実行asciionlyisasciiDOC実行indexfindDOC実行rindexrfindDOC実行strip類似trimmatchesDOC実行lstrip類似trimstartmatchesDOC実行rstrip類似trimendmatchesDOC実行deleteprefixstripprefixDOC実行deletesuffixstripsuffixDOC実行casecmpothereqignoreasciicaseDOC実行upcasetouppercaseDOC実行downcasetolowercaseDOC実行trazAZtoasciiuppercaseDOC実行trAZaztoasciilowercaseDOC実行trazAZmakeasciiuppercaseDOC実行trAZazmakeasciilowercaseDOC実行matchindicesDOC実行rmatchindicesDOC実行dump一部unicodeescapedefaultDOC実行dump全部unicodeescapeunicodeDOC実行tostostringDOC実行tosasstrDOC実行tos更新用asmutstrDOC実行arypackCfromutfaryDOC実行arypackCscrubfromutflossyaryDOC実行newcapacityxxxwithcapacityxxxDOC実行reservesizeDOC実行shrinktofitDOC実行intorawpartsDOC実行fromrawpartsDOC実行intoboxedstrDOC実行ischarboundaryDOC実行asptrDOC実行asmutptrDOC実行bytesize→lenRubybytesizegtRustlengtRubyの配列は文字単位になっているのに対してRustはバイト単位の配列になっているDOC実行→getRubysABsgtAsgtsgtBRustletsABsgetgtSomeAsgetgtSomesgetgtSomeB範囲でしか指定できない。 2022-03-24 19:43:30
Docker dockerタグが付けられた新着投稿 - Qiita 【Dockerエラー】RUN apt-get update && apt-get install https://qiita.com/kat0/items/531a204842e468cced7e 【Dockerエラー】RUNaptgetupdateampampaptgetinstall環境LaravelvPHPv状況ドキュメントのやり方「macOSではじめる」に沿って環境構築していた際、下記のエラー。 2022-03-24 19:04:30
技術ブログ Developers.IO dbt CloudのRead Onlyユーザーが出来ることをまとめてみた #dbt https://dev.classmethod.jp/articles/dbt-cloud-what-read-only-user-can-do/ dbtcloud 2022-03-24 10:09:59
海外TECH Ars Technica Wolfenstein 3D secrets revealed by John Romero in lengthy post-mortem chat https://arstechnica.com/?p=1843183 williams 2022-03-24 10:15:36
海外TECH MakeUseOf Create an Online Learning Website With LifterLMS in 5 Easy Steps https://www.makeuseof.com/lifterlms-create-online-learning-website/ Create an Online Learning Website With LifterLMS in Easy StepsWordPress is a versatile CMS and it s not just for blogging Find out how to set up your own online learning environment using the LifterLMS plugin 2022-03-24 10:45:13
海外TECH MakeUseOf Microsoft Store Survey, Virtual Beer in the Metaverse, and Fixing a Cracked Phone Screen https://www.makeuseof.com/microsoft-store-survey-virtual-metaverse-beer-fix-cracked-phone-screen/ Microsoft Store Survey Virtual Beer in the Metaverse and Fixing a Cracked Phone ScreenLearn about Microsoft s latest user survey and learn how to fix a cracked smartphone screen with our weekly tech podcast for technophobes 2022-03-24 10:30:13
海外TECH MakeUseOf How Google Photos Is Making It Easier to Organize Your Pictures https://www.makeuseof.com/google-photos-new-features-organize-your-pictures/ google 2022-03-24 10:15:13
海外TECH MakeUseOf Nothing Phone 1: Everything We Know So Far About the Most Hyped New Android Phone https://www.makeuseof.com/what-is-nothing-phone-1/ Nothing Phone Everything We Know So Far About the Most Hyped New Android PhoneWhat is Nothing what s so special about its first smartphone and when will it be available Here s the lowdown on the hot new Android brand 2022-03-24 10:05:13
海外TECH DEV Community Created a svelte tooltip library https://dev.to/k_penguin_sato/created-a-svelte-tooltip-library-8cf Created a svelte tooltip library OverviewI created a light weight tooltip library It was my first time making a svelte library But it was a breeze thanks to svelte kit What I madeAs stated above I created a svelte actions based tooltip library I ll leave links to the repo and demo page here Repo Demo How to make a library with svelte kit※svelte kit package is currently experimental at the time of writing svelte kit makes creating a library super easy The only notable difference between creating a library with svelte kit and creating a web app with svelte kit is the location of the public facing stuff The location of the public facing stuff based on what you want to createsrc routes for creating a web app with svelte kitsrc lib for creating a library with svelte kitAnd with that out of the way all you have to do now is to write code and build amp publish it by running the commands below npm run package build the package from the code under src lib cd package move to the package directory npm publish publish the packageFor more information about creating a library with svelte kit check out the official document below SvelteKit docs 2022-03-24 10:44:58
海外TECH DEV Community Top 10 uncommon DevOps tools you should know https://dev.to/aws-builders/top-10-uncommon-devops-tools-you-should-know-7ed Top uncommon DevOps tools you should knowHello everyone You clicked here to take a laugh at yet another boring list right I ll try to surprise you with a list of unique tools that you probably still don t know I know you already know about Git Terraform Jenkins and so on so let s focus on the tiny pearls you can find out there I ve chosen only open source tools to spread some love if you find anything helpful you can contribute back ChaostoolkitAs a DevOps and software engineer I find chaos engineering one of the most relevant and thrilling topics to study right now Chaostoolkit it s a perfect way to introduce into this world through a straightforward and flexible command line tool and a way to define experiments with declarative files that you can version InsomniaI bet you all know Postman for API design right I prefer Insomnia rest since they ve taken the extra mile to open source the complete application and integrations through their plugin hub I know it s a bit more popular nowadays but I started using this when there were just a few thousand stars and it got better and better over the years I think the trend will keep up LeappLeapp is my go to tool for accessing my cloud accounts I was fed up with manually managing local development and operations credentials so I automated everything most securely I can t count how much time it saved me over the years It integrates with nearly any development tool Terraform CDK etc and some excellent additions like connecting directly to SSM Like Insomnia it s completely open source and the repository and slack channel are very active if you want to come around Also the tool is getting better at each release and there is an excellent roadmap to keep up with what s new GiteaIf you don t live under a rock you already know about mainstream git repository software like GitHub and GitLab But what if a highly lightweight community driven and self hosted alternative exists That s gitea io It s not as full fledged as its counterparts but it s highly promising and painless to install and use and has a very active and welcoming community HubotHubot is kind of old at least in software terms but I m amazed at how few people know about the ChatOps model From thousand feet perspective it s just automation through your go to chat software discord slack rocketchat mattermost etc and Hubot paved the way to other similar tools Maybe it s less relevant today but I find an interesting concept nonetheless I love automation in any form it can take that can solve a few issues especially for less technical people Mkdocs materialI love markdown and MkDocs is my go to tool for writing documentation but it s pretty bare mkdocs material is a template that you can put mkdocs on…except it packs a whole world of additional features versioning your documentation a native cookie consent solution rich search previews and a truckload of other things…seriously give the guy a month to get supporters only features and you ll get the only documentation tool you will ever need for instance the AWS Copilot CLI docs were written with this see for yourself that s amazing PodmanI ve actively used Docker for almost all my container needs but I m always happy to take a look at new and emerging technologies What got me into Podman was the daemonless architectural pattern and nowadays I like where the project is going However it s still rough around the edges especially the docs Still when I tried it out the first time I was able to drop it in the middle of my Dockerfile and everything just worked SshuttleSshuttle is an excellent tool that acts as a “poor man VPN allowing you to create a VPN connection from your machine to any remote server you can connect to via ssh The exciting part is that it is not precisely a VPN and not exactly port forwarding Internally it assembles the TCP stream locally multiplexes it statefully over an ssh session and disassembles it back into packets at the other end to achieve data over TCP which is safe Useful if your VPN breaks down InfracostIf you re a Terraform fan you ll love this one What if I tell you you can couple your infrastructure as code with bill forecasting Sounds fantastic huh That s what infracost io is all about it will scan through your Terraform files when you commit some changes to git and estimate the resulting billing of your changes Pretty handy to have before getting unpleasant surprises CheckovOk here s the final pearl Checkov io is a static code analysis tool for checking infrastructure as code misconfiguration I cannot express how much this one can help find and fix the most basic and advanced security problems in your cloud infrastructure and it comes with support to a whole world of different IaC tools I also love it because you can run it from the command line Final thoughtsI hope this was useful to delve a bit more into the technical tools of the DevOps and cloud world I honestly think that newcomers and experts would benefit as there is always something more to experiment on and learn Do you think something is missing Write a comment or send me a DM and I ll be sure to check them out and include them on the next post see you next time 2022-03-24 10:43:00
海外TECH DEV Community How to Validate Your Mobile App Ideas: Ultimate Guide for 2022 https://dev.to/anquestechnolab/how-to-validate-your-mobile-app-ideas-ultimate-guide-for-2022-omo How to Validate Your Mobile App Ideas Ultimate Guide for The mobile app industry is booming By the global app economy will be worth trillion So it s no surprise that many entrepreneurs are looking to develop their own mobile apps But before you jump into the development process it s important to validate your app idea to make sure there s actually a market for it This article will provide you with the steps you need to take to validate your mobile app idea and ensure it is worth investing your time effort and money into Strategies to Validate Your App Idea Make a Market research Conducting market research is a great way to identify trends in your industry and the problems that customers are facing Look for similar solutions that already exist in the market and observe Android and iOS app ideas that already exist Keep an eye on market technology trends too For example one set of technologies matters for e commerce apps while another for real estate Research your business niche to stay ahead of the curve Know your Audience If you want to create an app that your audience will use on a daily basis you need to be able to read their minds This is possible if you follow a perfect app development procedure What solutions are they seeking to fix the issue Is there an associated problem that should be solved How do your audiences explain their issues What type of solution do they seek By posing more questions you can understand better and more about their requirements and fulfill them excellently Keyword Research This step helps you understand what people are talking about when it comes to your app idea You ll also be able to tell if they re actually interested in your app This research will give you a better idea of where to start when it comes to developing your app First you need to come up with to phrases or words that you think people will use to find your app Once you have your list you can use tools like Moz keyword explorer Ubersuggest and Google AdWords to see how popular the keywords are The search volume will give you an idea of whether people are actually searching for an app like yours Create a Landing Page Design a landing page to promote your app idea including mock up screenshots of your app The main objective of this is to gauge evaluate people s interest in your mobile app idea You can also launch an ad campaign using search engine marketing platforms like Google Ads or Facebook Ads After the completion of the campaign assess the percentage of users that registered Analysis of your potential competitors apps This is one of the most important steps that app developers overlook When looking for apps in the same category as your future product use keywords your potential users would seek and study the recommended section Doing a competitive analysis of other apps in the App Store will help you understand what people prefer require and want Observe competitors marketing strategies by studying the pictures and keywords they employ Promote your application You can either promote your app before or after you develop an MVP If you need some additional confirmation about the market that seeks your app before developing it create hype about it create landing pages use social platforms run a coming soon campaign Do everything you need to excite people about your product Your marketing campaign must be simple and tell clearly about your app s USPs in only one or two lines As an advantage when you launch your app you will get some ready to go prospects already provided you launch on marketing your app Build your brand recognition After you ve developed your MVP app it s time to focus on how to promote your app Your visual identity says a lot about your business Choose a great name for your product and get a domain to match it Design a landing page for your product that will drive traffic to your app Make sure you have a social media presence on every relevant platform It will also help you in your SEO To advertise your product write blogs about it and put them on your website and third party websites Read more from source URL 2022-03-24 10:38:49
海外TECH DEV Community 4 best opensource projects about big data you should try out https://dev.to/qazmkop/4-best-opensource-projects-about-big-data-you-should-try-out-3918 best opensource projects about big data you should try outWith the development of big data the data lake era is arriving making relevant technical personnel scarce More and more data engineers and data lake projects are coming into the public s view There are also open source products but not every open source product is worth trying Let s see some open projects about data lake great and even better than paid projects HudiHudi is an opensour procjects providing tables transactions efficent upserts deletes advanced indexes streaming ingestion services data clustering compaction optimizations and concurrency all while keeping your data in open source file formats Apache Hudi brings core warehouse and database functionality directly to a data lake which is great for streming wokloads making users create efficient incremental batch pipelines Besides Hudi is very compatible for example it can be used on any cloud and it supports Apache Spark Flink Presto Trino Hive and many other query engines IcebergIceberg is an open table format for huge analytic dataset with Schema evolution Hidden partitioning Partition layout evolution Time trave Version rollback etc Iceberg was built for huge tables even those that can t be read with a distributed SQL engine used in production where a single table can contain tens of petabytes of data Iceberg is famous for its fast scan planning advanced filtering works with any cloud store serializable isolation multiple concurrent writers etc LakesoulLakeSoul is a unified streaming and batch table storage solution built on top of the Apache Spark engine and supports scalable metadata management ACID transactions efficient and flexible upsert operation schema evolution and streaming amp batch unification LakeSoul specializes in row and column level incremental upserts high concurrent write and bulk scan for data on cloud storage The cloud native computing and storage separation architecture makes deployment very simple while supporting huge amounts of data at lower cost delta lake Delta Lake is an open source storage framework that enables building a Lakehouse architecture with compute engines including Spark PrestoDB Flink Trino and Hive and APIs for Scala Java Rust Ruby and Python providing ACID transactions scalable metadata handling and unifies streaming and batch data processing on top of existing data lakes such as S ADLS GCS and HDFS Here is the comparison of projects about data lake Hudi focuses more on the fast landing of streaming data and the correction of delayed data Iceberg focuses on providing a unified operation API by shielding the differences of the underlying data storage formats forming a standard open and universal data organization lattice so that different engines can access through API Lakesoul now based on spark focuses more on building a standardized pipeline of data lakehouse Delta Lake an open source project from Databricks tends to address storage formats such as Parquet and ORC on the Spark level As a newcomer to data lake warehouse I will learn more about data lake warehouse in the future and record my learning process here Next I will focus on these four open source products Hudi Iceberg Lakesoul DeltaLake and write some codes and tutorials conducting my learning I hope my record can be helpful to you or get your advice 2022-03-24 10:33:38
海外TECH DEV Community Go from the beginning - working with packages and modules https://dev.to/softchris/go-from-the-beginning-working-with-packages-and-modules-4cl4 Go from the beginning working with packages and modules Go from the beginning Go modulesThere are two interesting use cases with modules Consuming a module you will most likely use a combination oof core modules and external third party modulesCreating a module in some case you will create code that you or someone else will be able to use For this scenario you can create a module and upload it to GitHub Consume internal filesYou might want to split up your app in many different files Let s say you have the following files app main go helper helper go Create the module like so go mod initcreate the helper directory and helper go file and give it the following content helper gopackage helperimport fmt func Help fmt Println This is a helper function Create the main go file and give it the following content package main import log tester helper github com softchris logger func main logger Log hey there helper Help Note this import log tester helper it ensures the helper package is in scope Compile and run go run main go Consume an external moduleTo consume an external module you need to Import it this involves using the import instruction and fully qualifying the address to the module s location Use it in code call the code from the module that you mean to useEnsure it s downloaded so your code can be run Create a projectLet s create a new projectRun go mod init go mod init helloNote how go mod was created with the following content module hellogo Add reference to an external libNext lets create some code that will use the external library Create the file main gopackage mainimport fmt github com softchris math To the same file add main function and use external function from package func main sum math Add fmt Println sum Fetch the libNow we need to resolve the external library Run go mod tidy go mod tidyYour go mod is updated require github com softchris math v There s also go sum file with the following content github com softchris math v h LPLRBGygSLYKGIJhywIZturmdksU pOPa github com softchris math v go mod h vWzhjKC ipuH iIZTaIArniTPgcTgCINCqAo This is Go s way of keeping track of how to build the app by referencing to the go module in question Run go run go run main go Create a moduleWhen you build a module meant for sharing there s some gotchas you need to create a packageyour package won t be called mainthere s concept of public and private parts of your codeyou can t test it locallyupload your package to GitHub for wide distribution Create the code for the moduleTo create a moodule meant for wider use you need to first initialize a module Create a directory logger for your new package mkdir logger cd logger Run go mod init lt address at github gt for example go mod init github com softchris loggerThis will create a go mod file in your directory logger go modThe file looks like so module github com softchris logger go It contains the package name and the version of Go it means to use Create a file to host your package code for example log go and give it the following content package logger import fmt var Version string func Log mess string fmt Println LOG mess Note package logger instead of main The uppercase variables and methods makes the publicly available Anything named with lowercase will be private for the package Test it locallyYou can test your package locally To do so you need a separate package that you can import your package from Move up a directory cd Create a new directory logger test mkdir logger test cd logger testCreate a package it will be used for testing only go mod init logger testCreate a file main go and add the following code package main import github com softchris logger func main logger Log hey there At this point you are consuming the logger package but it s pointing to GitHub and your package don t live there yet However you can repoint to a local address on your machine lets do that next Open go mod and add the following require github com softchris logger v replace github com softchris logger gt loggerTwo things are happening here you are asking for the logger package require github com softchris logger v you are making it point to your local system instead of GitHub replace github com softchris logger gt loggerRun the package with go run go run main goYou should see LOG hey there Publish a packageTo publish your package you can put it on GitHub Create a git repo with git init git initCreate the repo at GitHub Make you do at least one commit git add git commit m first commit Do the following do upload your package to GitHub git remote add origin git branch M main git push u origin mainTag your package with git tag git tag v git push origin v Now your package has the tag Test it outGo to your project logger test cd cd logger testOpen up go mod and remove these lines require github com softchris logger v replace github com softchris logger gt loggerRun go mod tidy this will force Go to go look for the package Your go mod should now contain require github com softchris logger v Also your go sum should contain github com softchris logger v h KqwtCYBtHDLTx KXEqHyxEJxrLianSdi github com softchris logger v go mod h rrzWjMsMtqjetDBDyezImFCjGucF bRSAqptKF M Run the program with go run go run main goYou should see LOG hey there SummaryGreat you ve managed to create a module locally put it on GitHub and have one of your other Go projects use it 2022-03-24 10:29:18
海外TECH DEV Community What is the DRY principle? https://dev.to/davejsaunders/what-is-the-dry-principle-26c9 What is the DRY principle and why it is NOT about duplicating code originally sent to the BaseClass Newsletter Why should I care The DRY Principle or Don t Repeat Yourself is one of the most commonly quoted but most commonly misunderstood pieces of guidance in programming While the premise is simple it can lead to over abstraction and hard to maintain code when misinterpreted Don t Repeat YourselfThe DRY principle was introduced in the book The Pragmatic Programmer in The original definition is Every piece of knowledge must have a single unambiguous authoritative representation within a system So what does that mean Let s start with what it does not mean Misunderstanding the DRY principleDRY is commonly used as an argument against writing the same line of code twice That s understandable If we have to copy paste some code we ve already used we immediately want to move it into a common abstraction it s in our nature as programmers But writing the same line of code twice is not necessarily bad and it is not what DRY is talking about Here s what one of the authors of the book that coined the term Dave Thomas said in a podcast interview DRY has come to mean “Don t cut and paste but the original “Don t repeat yourself was nothing to do with code it was to do with knowledge The perils of over abstractionThere are some valid reasons to write the same block of code twice the code might do the same thing but for different reasons or in different contexts Next time you re tempted to abstract two areas that look similar ask yourself Do these sections of code have different reasons to change in future If so abstraction might not be the right choice Once you ve abstracted that code you can t change one area without affecting the other they are now coupled Maybe that s the right decision and you might choose to abstract them anyway but DRY doesn t insist that you should DRY is about knowledge DRY is about ensuring that any change to the functionality of your code happens in one place only We ve all worked on code where a simple functional change needs far too many code changes If I want to change the way we format a user s name I have to change it on the profile page the confirmation emails the invoice generator the administration dashboard you get the idea This is what DRY is warning against there should be one place to make this change The knowledge of how to format a user s name should be contained in just one area of your code Next time I need to make that change I know exactly where to go Otherwise it s only a matter of time before I forget one of the many areas I need to change and cause a bug Want to know more Check out these links The Pragmatic Programmer book Required reading for developers A short blog post discussing why DRY is misunderstoodA podcast episode with the authors of the original book 2022-03-24 10:25:59
海外TECH DEV Community Crop Images Before Upload With JavaScript https://dev.to/rikschennink/crop-images-before-upload-with-javascript-5ab1 Crop Images Before Upload With JavaScriptIn this minute tutorial we use CropGuide a JavaScript image cropper to crop images before they re uploaded to our server without making any changes to existing file upload code We ll assume that a form with a file upload field has already been set up Our goal is to add image editing to this field without having to modify any existing code Why help your users Crop Images To speed up the image upload A lower image size results in faster uploads improved upload stability and less disk usage To receive better user generated content With some guidance users can crop the important parts of an image To lower image upload friction End users aren t designers If an image isn t in our desired aspect ratio or bigger than the maximum file size they won t always know how to fix that When we optimise images before uploading we not only get better images we also get more images because there s less users that will exit our form out of frustration Using CropGuide to Crop ImagesIn this tutorial we ll use CropGuide as our JavaScript image cropping solution CropGuide helps with Enforcing a crop aspect ratio Requiring a minimum image size Automatically scale images to a maximum size Compressing images or converting image formats Fixing image orientation issues Installation only takes a couple minutes and requires two steps We create a CropGuide accountWe add the CropGuide lt script gt to our webpageDone CropGuide now automatically intercepts each file upload and offers an image editor to the user We can set our image requirements in the CropGuide dashboard Important Images aren t uploaded to CropGuide image editing happens in the browser which is great for privacy and performance This is what our code looks like lt The existing file input somewhere in our form gt lt input type file gt lt The script tag we just added to our page gt lt script defer src gt lt script gt Try out the image editor here CropGuide works with basic file input elements but works just as well with advanced JavaScript file upload libraries Wrapping upWe ve added image cropping to our website by inserting a single script tag on our webpage There was no need to edit any server logic or adjust any JavaScript saving us lots of time Our users can now more easily upload images resulting in higher quality images and more images uploaded We save time correcting image problems on the server and helping users prepare their images 2022-03-24 10:11:43
海外TECH DEV Community Subscribe to live status updates (XUMM PHP SDK) https://dev.to/wietse/subscribe-to-live-status-updates-xumm-php-sdk-5131 Subscribe to live status updates XUMM PHP SDK Subscribe to live status updatesSo far you ve created a payment request clicked the next URL and scanned the QR code with you XUMM app to approveor reject the request Great As an app developer you can subscribe to your payload s live status updates and react to them For instance you canshow the user who created the request a message that says Payment request accepted when the user on the other endhas signed your request or Payment request rejected ️ when it was rejected Let s try and do that Create a callback functionOne of the things that makes subscribing to status updates so powerful is that you can pass it a callback function tohandle the data The status update data will be passed to your callback as an instance of Xrpl XummSdkPhp Subscription CallbackParams Let s define your callback at the bottom of your script callback function CallbackParams event array if isset event gt data signed return null Don t do anything wait for the next message if event gt data signed true echo Payment request accepted n return event gt data Returning a value ends the subscription echo Payment request rejected n return Start a subscriptionNow let s start a subscription and pass our callback to handle any events that are coming in subscription sdk gt subscribe createdPayload callback Now when the user signs or rejects the request which you can do by following the URL as per the last step your function will be called and the subscription ended Obtain a user token and send a push notificationLet s say that next time we send this user a sign request we want them to receive a push notification on their phone We can do that by obtaining a user token for them and passing that into the next payload The user token is issued whenthey sign their first sign request We just have to fetch the signed request using the event data we return in our callback function Please note this part uses Promises which is a fairly new concept in PHP If you ve written async code in JavaScript you ll be familiar with it Let s wait until the subscription has ended and then send ourselves another payment request This time we ll receive a push notification on our phone because we pass the user token we ve obtained subscription gt resolved gt done function array data use sdk payloadId data payload uuidv false if payloadId return null signedRequest sdk gt getPayload data payload uuidv newRequest sdk gt createPayload new Payload TransactionType gt Payment Destination gt rGBiHBoEsWHbgMeyHekWcoUb Use your own address here Amount gt signedRequest gt application gt issuedUserToken echo sprintf The new request was s n newRequest gt pushed pushed not pushed Be aware that to test this on your actual phone you should have push notifications turned on for XUMM It might alsohelp to put in a short sleep statement before you push the new request so you have some time to lock your phone andclearly see the notification coming in Credits thank you Pauline 2022-03-24 10:07:54
海外TECH DEV Community Your first payload (XUMM PHP SDK) https://dev.to/wietse/your-first-payload-xumm-php-sdk-2phg Your first payload XUMM PHP SDK Your first payloadNow that we ve established a connection to the XUMM platform using the SDK it s time to send something we can sign We ll send a transaction template to the XUMM platform called a Payload The lifecycle of a Payload is explained in more detail in the XUMM API documentation First create a payload by instantiating an instance of Xrpl XummSdkPhp Payload Payload It must contain a transaction body array formatted as per XRP ledger specifications It cancontain a user token options and some custom metadata Create a payloadOur first payload will be a Payment transaction type This is a very minimal example of a payload you can send to XUMM payment new Xrpl XummSdkPhp Payload Payload TransactionType gt Payment Destination gt rwietsevLFgXSmGbEZzFeingRBqWDZ Use your own address here If like in the minimal example above no amount is entered the end user will be able to select the currency and amountto send in XUMM after opening the sign request You could also add more details to your payload as per the following example payment new Payload transactionBody TransactionType gt Payment Destination gt rwietsevLFgXSmGbEZzFeingRBqWDZ Use your own address here Amount gt options new Options immutable true customMeta new CustomMeta uniqid Hi Can you pay me please Thanks ️ Send the payloadNow you can pass your Payload object to XummSdk createPayload and show the result createdPayment sdk gt createPayload payment url createdPayment gt next gt always echo Sign request url n Re run your script to see it work You can now follow the URL in the result and scan the QR code to sign the request or reject it The first time you send a user a sign request they ll always have to scan the QR code Once they ve signed it you canobtain a user token for that user and send them push notifications on future sign requests Let s see how that s donein the next chapter Next Subscribe to live status updates Credits thank you Pauline 2022-03-24 10:07:53
海外TECH DEV Community Project setup (XUMM PHP SDK) https://dev.to/wietse/project-setup-xumm-php-sdk-263n Project setup XUMM PHP SDK Project setupPrevious Create XUMM API credentialsThe tutorial project has a little script that will use the SDK as a dependency Right now it returns a Hello World response Let s run it in our terminal php start php Start server listening to port You should now see Hello World Great Any time you make changes to your project during this tutorial you ll run thescript to see the changes Include the SDKUse composer to add the XUMM PHP SDK as a dependency to your project composer require xrpl xumm sdk php Add your credentialsNote this is the only part that won t be included in the code solution of this chapter as everybody s credentials areunique Assign the credentials you created in Step to the XUMM API KEY and XUMM API SECRET environment variables be aware you need to do this on every new terminal session export XUMM API KEY your API key export XUMM API SECRET your API secret Use the XUMM SDKIn start php include composer s autoload file at the top of the script so that your script can find the XummSdk class require once vendor autoload php Now instantiate the XummSdk It will source your credentials from the environment variables you set in step To test the SDK call XummSdk ping and show the application name sdk new Xrpl XummSdkPhp XummSdk pong sdk gt ping echo Application name pong gt application gt nameNow when you run your script your should see Application name your app name It works Next Your first payload Credits thank you Pauline 2022-03-24 10:07:51
海外TECH DEV Community Using the XUMM PHP SDK (tutorial) https://dev.to/wietse/using-the-xumm-php-sdk-tutorial-o70 Using the XUMM PHP SDK tutorial In a nutshell the XUMM API allows developers to deliver sign requeststo their app s users to create new transactions on the XRP ledger XUMM end users can then scan a QR code or receive a push notification to open the sign request When they approve it XUMM signs it and the transaction is placed on the ledger To make it easier to interact with the API XUMM released an SDK in a number of languages most recently in PHP This tutorial explains how to use it Every chapter will have a branch with the code solution in the tutorial s Git repository So if you get stuck just git checkout ch git checkout ch etc PrerequisitesFor this tutorial we assume you have basic knowledge of PHP and the terminalcomposer installed on your machinePHP the SDK s required PHP version installed on your machinethe XUMM app on your phone and an accountXUMM Developer credentials You can register them at the XUMM Developer Console Credits thank you Pauline 2022-03-24 10:07:47
海外TECH DEV Community Using gsutil signed URL https://dev.to/suavebajaj/using-gsutil-signed-url-3pnj Using gsutil signed URLA signed URL is a URL that provides limited permission and time to make a request Signed URLs contain authentication information in their query string allowing users without credentials to perform specific actions on a resource Creating a signed URL What we will need gsutilpyopensslService Account KeyPath of the file ObjectCommandgsutil signurl d d service account key json gs my gcs bucket my object d Specifies the duration that the signed url should be validFor default duration is hour Times may be specified with no suffix default hours or with s seconds m minutes h hours d days This option may be specified multiple times in which casethe duration the link remains valid is the sum of all the duration options The max duration allowed is days when private key fileis used Any service account key can be used to encrypt the url IssuesCommandException The signurl command requires the pyopenssl library try pip install pyopenssl or easy install pyopenssl Install pyopenssl using the pip as per the python versionpip install pyopensslEven after installing pyopenssl if you are getting the same error Check gcloud uses which python and python should point to a python interpreter used by gcloudgcloud info format text basic python location ➜Desktop git master ✗gcloud info format text basic python location python location Users config gcloud virtenv bin python Add the Environment Variables asexport CLOUDSDK PYTHON pythonexport CLOUDSDK PYTHON SITEPACKAGES 2022-03-24 10:03:02
Apple AppleInsider - Frontpage News Apple's macOS Monterey 12.3 breaking some Xbox, Playstation game controllers https://appleinsider.com/articles/22/03/24/apples-macos-monterey-123-breaking-some-xbox-playstation-game-controllers?utm_medium=rss Apple x s macOS Monterey breaking some Xbox Playstation game controllersUsers are reporting problems with game controllers following the macOS Monterey update with some unable to use Xbox Playstation DualSense or controllers from other vendors Apple updated macOS Monterey to version on March and since then a number of users have reported game controller failures The update has not however affected all users There are multiple reports across the Apple Developer Forums and also Reddit with users recounting differing degrees of problems One says that no Apple Arcade games work with the controllers but others that do not rely on Apple s GameController framework have at least limited functionality Read more 2022-03-24 10:42:41
海外TECH CodeProject Latest Articles mscript - Version 2.0 Adds Error Handling, New Functions, and DLL Integration https://www.codeproject.com/Articles/5328249/mscript-Version-2-0-Adds-Error-Handling-New-Functi system 2022-03-24 10:15:00
ニュース @日本経済新聞 電子版 辛みは味ではなく痛み――。トウガラシを食べると体内で何が起こるのか。痛みをおいしいと感じる理由は? 2021年ノーベル賞の受賞テーマになったセンサー「TRPV1(トリップ・ブイワン)」の役割に迫ります。https://t.co/TpwmfXR8NL https://twitter.com/nikkei/statuses/1506949018110287880 2022-03-24 11:00:18
ニュース @日本経済新聞 電子版 ロシア要人の離反拡大 大統領特別代表が辞任、侵攻抗議 https://t.co/2cVJ4MTZ2q https://twitter.com/nikkei/statuses/1506946328135290884 離反 2022-03-24 10:49:36
ニュース @日本経済新聞 電子版 [社説]一線越えた北のミサイル発射 https://t.co/ZXcbqSrFL2 https://twitter.com/nikkei/statuses/1506941809976832000 社説 2022-03-24 10:31:39
ニュース @日本経済新聞 電子版 [社説]東芝は長期株主と信頼築き再建を前に https://t.co/MGccnTnyE5 https://twitter.com/nikkei/statuses/1506939557614612480 長期 2022-03-24 10:22:42
ニュース @日本経済新聞 電子版 朴前大統領、地元ではなお人気 尹政権との距離焦点 https://t.co/okqOMx58F4 https://twitter.com/nikkei/statuses/1506937927539978240 前大統領 2022-03-24 10:16:14
ニュース @日本経済新聞 電子版 「SMBC日興証券を起訴 相場操縦は大手初、副社長も逮捕」の英文記事をNikkei Asia @NikkeiAsia に掲載しています。 ▶️ Tokyo prosecutors indict SMBC Nikko for ma… https://t.co/IgXDwcdeoq https://twitter.com/nikkei/statuses/1506935493736513544 「SMBC日興証券を起訴相場操縦は大手初、副社長も逮捕」の英文記事をNikkeiAsiaNikkeiAsiaに掲載しています。 2022-03-24 10:06:33
ニュース @日本経済新聞 電子版 帝国ホテル、隣接地に高級ホテル新設 日比谷再開発で  https://t.co/lNAhO8oWuJ https://twitter.com/nikkei/statuses/1506935438787096581 帝国ホテル 2022-03-24 10:06:20
海外ニュース Japan Times latest articles ‘To Be Killed by a High School Girl’: Hideo Jojo gives a lesson in ‘ick 101’ https://www.japantimes.co.jp/culture/2022/03/24/films/film-reviews/to-be-killed-by-a-high-school-girl/ To Be Killed by a High School Girl Hideo Jojo gives a lesson in ick Hideo Jojo challenges taboos with black comedy in a twisted film about a teacher plotting his own death at the hands of a student 2022-03-24 19:10:22
ニュース BBC News - Home More than a million to be pushed into poverty, says think tank https://www.bbc.co.uk/news/business-60858113?at_medium=RSS&at_campaign=KARANGA budget 2022-03-24 10:50:40
ニュース BBC News - Home North Korea tests banned intercontinental missile https://www.bbc.co.uk/news/world-asia-60858999?at_medium=RSS&at_campaign=KARANGA intercontinental 2022-03-24 10:12:12
ニュース BBC News - Home Russian warship destroyed in occupied port of Berdyansk, says Ukraine https://www.bbc.co.uk/news/world-europe-60859337?at_medium=RSS&at_campaign=KARANGA berdyansk 2022-03-24 10:38:42
ニュース BBC News - Home West should consider targeting Russian gold reserves, says PM https://www.bbc.co.uk/news/uk-60858511?at_medium=RSS&at_campaign=KARANGA ukraine 2022-03-24 10:51:43
ニュース BBC News - Home Russia's cost of living soars by more than 14% https://www.bbc.co.uk/news/business-60856873?at_medium=RSS&at_campaign=KARANGA ukraine 2022-03-24 10:10:01
ニュース BBC News - Home Croydon tram crash: Prosecutions launched by rail regulator https://www.bbc.co.uk/news/uk-england-london-60859046?at_medium=RSS&at_campaign=KARANGA london 2022-03-24 10:35:30
ニュース BBC News - Home Child Q: Strip-search Met officers put on desk duties https://www.bbc.co.uk/news/uk-england-london-60858196?at_medium=RSS&at_campaign=KARANGA black 2022-03-24 10:22:48
ニュース BBC News - Home Prince Harry: Parts of legal case to be kept secret, court says https://www.bbc.co.uk/news/uk-60860357?at_medium=RSS&at_campaign=KARANGA police 2022-03-24 10:33:48
ニュース BBC News - Home Ukrainian orphans arrive in Scotland after delay https://www.bbc.co.uk/news/uk-scotland-60850379?at_medium=RSS&at_campaign=KARANGA dnipro 2022-03-24 10:43:08
ニュース BBC News - Home Refugees in Wales: 'Thank God I came here after our home was bombed' https://www.bbc.co.uk/news/uk-wales-60820974?at_medium=RSS&at_campaign=KARANGA wales 2022-03-24 10:10:39
ニュース BBC News - Home Former Ballon d'Or winner Hegerberg ends five-year Norway exile https://www.bbc.co.uk/sport/football/60854918?at_medium=RSS&at_campaign=KARANGA Former Ballon d x Or winner Hegerberg ends five year Norway exileFormer Ballon d Or winner Ada Hegerberg is named in the Norway squad for the World Cup qualifiers against Kosovo and Poland in April 2022-03-24 10:16:31
ビジネス ダイヤモンド・オンライン - 新着記事 「洋上風力発電」関連銘柄を紹介! 政府が“再生可能 エネルギーの切り札”として強化する「洋上風力発電」 を手掛ける中堅ゼネコン再編(買収)の動きに期待! - 「お宝銘柄」発掘術! https://diamond.jp/articles/-/300106 2022-03-24 19:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 東芝「2社分割案」が臨時株総で否決、脱出困難な“迷宮入り”再編劇の全内幕 - Diamond Premium News https://diamond.jp/articles/-/300114 diamondpremiumnews 2022-03-24 19:15:00
北海道 北海道新聞 食品スーパー、札幌に相次ぎ中・小型店出店 生き残りへ 地方に余地少なく https://www.hokkaido-np.co.jp/article/660735/ 札幌市内 2022-03-24 19:30:00
北海道 北海道新聞 25日の予告先発 https://www.hokkaido-np.co.jp/article/660736/ 予告先発 2022-03-24 19:30:00
北海道 北海道新聞 若隆景、高安が1敗守り首位 御嶽海と琴ノ若敗れ、2敗不在 https://www.hokkaido-np.co.jp/article/660734/ 大相撲春場所 2022-03-24 19:26:00
北海道 北海道新聞 俳優の菅田将暉さんがコロナ感染 妻の小松菜奈さんも https://www.hokkaido-np.co.jp/article/660733/ 小松菜奈 2022-03-24 19:18:00
北海道 北海道新聞 首相、北を「断固として非難」 追加制裁含め米韓と連携 https://www.hokkaido-np.co.jp/article/660729/ 岸田文雄 2022-03-24 19:12:00
北海道 北海道新聞 緊急政令改憲は賛否二分 政府に権限、自維国は前向き https://www.hokkaido-np.co.jp/article/660727/ 憲法審査会 2022-03-24 19:08:00
北海道 北海道新聞 佐呂間町商工会青年部がユーチューブで町PR 人気テレビ番組参考に多彩な企画 https://www.hokkaido-np.co.jp/article/660722/ 佐呂間町 2022-03-24 19:02:00
北海道 北海道新聞 東大名誉教授の西尾勝氏が死去 地方分権に尽力 https://www.hokkaido-np.co.jp/article/660720/ 名誉教授 2022-03-24 19:01:00
IT 週刊アスキー 『アズールレーン』で期間限定海域イベント「幻像の塔 発見編」が開催中! https://weekly.ascii.jp/elem/000/004/087/4087212/ yostar 2022-03-24 19:35:00
IT 週刊アスキー 注意すべきは「xlsm」と「パスワード付きZIP」 デジタルアーツがEmotet攻撃の動向をレポート https://weekly.ascii.jp/elem/000/004/087/4087189/ emotet 2022-03-24 19:30:00
IT 週刊アスキー 激突レースゲーム『Wreckfest レックフェスト』が日本向けNintendo Switchで発売決定! https://weekly.ascii.jp/elem/000/004/087/4087204/ nintendo 2022-03-24 19:15:00
マーケティング AdverTimes アルペン、デジタル本部を新設 本部長に蒲山氏(22年4月1日付) https://www.advertimes.com/20220324/article379813/ 蒲山 2022-03-24 10:40:31

コメント

このブログの人気の投稿

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