python |
Pythonタグが付けられた新着投稿 - Qiita |
LINEのBotからプッシュ通知する方法 |
https://qiita.com/smiler5617/items/701bf3adaa03da34d957
|
LINEのBotからプッシュ通知する方法はじめに以前にお試しでLINEのボットを作成したことがあるが、その時にプッシュ通知の方法についても調べたのでメモを残しておく。 |
2021-11-27 00:27:27 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
WPで、記事に紐付いた「別の投稿オブジェクト」で絞り込んだ一覧ページを作成したい |
https://teratail.com/questions/371157?rss=all
|
WPで、記事に紐付いた「別の投稿オブジェクト」で絞り込んだ一覧ページを作成したいWordPressで、あるチェーン店の記事サイトを作っています必要なページは以下です。 |
2021-11-27 00:59:00 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
WPFで、Widthプロパティのアニメーション幅を自動計算したい |
https://teratail.com/questions/371156?rss=all
|
WPFで、Widthプロパティのアニメーション幅を自動計算したい実現出来ていることXAMLのみを用いて、画像のようなアニメーションをするサイドメニューを作りました。 |
2021-11-27 00:56:09 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
スクレイピングでstyleの属性の指定方法がわからない |
https://teratail.com/questions/371155?rss=all
|
スクレイピングでstyleの属性の指定方法がわからないJupyterLabにて閉じてある項目を開きたいのですが、赤丸で囲んであるstylequotdisplaynoneをtrueにariahiddenquottruequotをquotfalsequotにすればおそらく閉じてある項目を開くことができると思うのですが、そのstyleとariahiddenの属性の指定方法がわかりません。 |
2021-11-27 00:25:54 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
スクレイピングでAttributeErrorが発生する |
https://teratail.com/questions/371154?rss=all
|
スクレイピングでAttributeErrorが発生するJupyterLabにて右上のPrintを開きたいのですがprintの部分を開くため、elemprintbtnnbspnbspbrowserfindelementsbyidaposprintpagebuttonaposelemprintbtnでidを取得したのですが、elemprintbtnclickとしても以下のエラーが発生します。 |
2021-11-27 00:01:28 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
IAMについて |
https://qiita.com/cyst-star/items/cb6a51d3b23bc9bccb25
|
IAMグループにはIAMユーザーを追加することができて、グループ内のユーザーはグループに付与されたポリシーの内容が適用される。 |
2021-11-27 00:09:32 |
海外TECH |
MakeUseOf |
How to Improve Your Virtual Employee Onboarding Process: 5 Steps |
https://www.makeuseof.com/improve-virtual-employee-onboarding-process/
|
productive |
2021-11-26 15:46:11 |
海外TECH |
MakeUseOf |
How to Use Twitter's Tips Feature to Pay People for Tweets |
https://www.makeuseof.com/how-to-use-twitter-tip-jar-to-pay-people/
|
twitter |
2021-11-26 15:46:12 |
海外TECH |
MakeUseOf |
Best Buy's LG Home Audio Black Friday Blowout |
https://www.makeuseof.com/best-buy-lg-home-audio-black-friday-deals/
|
audio |
2021-11-26 15:31:51 |
海外TECH |
MakeUseOf |
8 Tips to Reduce Latency and Speed Up Your Cloud Gaming Experience |
https://www.makeuseof.com/tips-reduce-latency-speed-up-cloud-gaming/
|
Tips to Reduce Latency and Speed Up Your Cloud Gaming ExperienceCloud gaming is awesome That is so long as you have an awesome internet connection Check out these tips if you need some extra speed |
2021-11-26 15:30:12 |
海外TECH |
MakeUseOf |
Should You Be Worried About "Killware"? |
https://www.makeuseof.com/should-you-be-worried-about-killware/
|
dangerous |
2021-11-26 15:15:22 |
海外TECH |
DEV Community |
Top Code Learning Websites |
https://dev.to/mohammadtaseenkhan/top-code-learning-websites-355h
|
Top Code Learning WebsitesTop Code Learning Websiteswww codecademy com www lynda com www udemy com www udacity com www coursera org www wschools com www thenewboston org www programmr com www codeavengers com www codeschool com www learnstreet com www teamtreehouse com www sqlzoo net www codehs com www teamtreehouse com www htmlrocks com www codepen io www sitepoint com www tutorialspoint com www javatpoint com www cplusplus com www learncpp com www tutorialspoint com www cprogramming com www stackoverflow com www learncodethehardway org www bloc io www howtocode io www edx org www instructables com www developer apple com www developer android com www developers google com www developer mozilla org www msdn microsoft com www dev opera com www developphp com www quackit com www htmlite com www siteduzero com www dreamincode net www phpbuddy com www php net www microsoftvirtualacademy com www professormesser com www freecodecamp orgStay safe and secured |
2021-11-26 15:35:30 |
海外TECH |
DEV Community |
Symfony Station Communique - 26 November 2021. A Look at Symfony and PHP News. |
https://dev.to/reubenwalker64/symfony-station-communique-26-november-2021-a-look-at-symfony-and-php-news-188e
|
Symfony Station Communique November A Look at Symfony and PHP News This post originally appeared on Symfony Station Welcome to this week s Symfony Station Communique It s your weekly review of the most valuable and essential news in the Symfony and PHP development communities This week it s extensive again so take your time and enjoy its most valuable items Thanks to Javier Eguiluz and Symfony for sharing our last communique in their Week of Symfony Please note all links will open in a new browser window My opinions if I present any will be in bold Symfony This weekAs always we will start with the official news from Symfony Highlight gt “This week Symfony BETA and BETA versions were published so you can test them on your applications before their final release at the end of the month In addition the Symfony Core Team added four new members to help grow the Symfony project in the next few years A Week of Symfony November Javier continues a series of posts on what s new in Symfony New in Symfony Dependency Injection Improvements New in Symfony Messenger Improvements New in Symfony Profiler improvements Great deals are still available if you are looking for official certification November th is the last day though Black Friday Offers from the Symfony EcosystemSymfony added to the official docs with information on Flex Private Recipe Repositories How To Configure and Use Flex Private Recipe RepositoriesAnd this one is self explanatory Symfony RC released Featured ItemWe continue to highlight a post of the week Please let us know what you think about this one It s not the most important article of the week considering the news about PHP and The PHP Foundation However it is the first original content created by Symfony Station so it gets the nod for our Featured Item Twig The Ultimate Guide to the Premier PHP Templating LanguageSpeaking of Twig Prince Sinha shows us how to Ways to Reuse Twig Templates in SymfonyVia SymfonyCasts “We ve got some logged in users but we don t want them going anywhere they please around our app The most precise way to protect your site is by denying access from each Symfony controller and we ll cover about good ways to do that This week on SymfonyCastsHere s an interesting case study involving updating both PHP and Symfony Why did Alice s Garden need to set up a Business Intelligence tool Smaine Millani writes “In this article I ll show how you can add validation on a Request content It s more about a way to learn more about Request and event listener than a best practice What if we define validations rules in the routing configurationAhmed Khaled Mohamed shows us how to Deploy Sylius to HerokuAlexandre Daubois tells you to “Brace yourself autocompletion on options and arguments is finally here Symfony brings its CLI to the next levelOur friends at Jolicode show us how to Rate limit your Symfony APIs Maks Rafalko demonstrates how to Improve Symfony Tests PerformanceIt seems like there is one of these every week But I find something useful in each one so we re sharing Laravel vs Symfony a comparison of the two most popular PHP frameworksIf you discovered this communique and are new to Symfony this article is a good introduction What is PHP Framework Symfony Explained for executivesIn French UrbanLinker writes “In order to help developers and CTOs in their migration to Symfony SensioLabs has made available a comprehensive migration guide on this subject From the PHP environment to the advantages of Symfony via the legacy code everything is explained to migrate smoothly Migrating your legacy project to Symfony SensioLabs explains everything Hurray An article on YAML was published and it s a comparison with JSON and XML YAML Tutorial Everything You Need to Know in Mins TimelessI ran across Akashic Seer s blog earlier this month which is loaded with Symfony related posts Here are a few more from his archive Symfony how to create a MakerHow to quickly create a complete Symfony app with login and password reset PHP This weekThe PhpStorm blog made a big announcement you may have seen elsewhere I made a contribution for GivingTuesday and encourage you to do likewise The New Life of PHP The PHP FoundationJoe Watkins provides some very interesting details of how the foundation came about and what it requires Musings ninja onesIn other big PHP news PHP is releasedAnd here s the official announcement Finally if you want to check it out via video here s one from JetBrainsTV What s New in PHP Enums First Class Callables Fibers Readonly Properties and MoreMark Baker notes “One of the many new features of PHP is the ability to declare class constants as final so that they can no longer be overridden in child classes The same applies when constants are defined as final in an abstract classes or interface they can t be overridden by classes extending that abstract or implementing that interface So class and interface constants can now truly become constant Constant Constants Finally On the inconstancy of constants DerEuroMark wonders “if you use open source software you might wonder why all those changes and why you should migrate up to the next major versions Keeping up with framework upgradesWouter de Jong writes “Every now and then there seems to be a lot of fuss in the PHP community about deprecations In these discussions deprecations are often discussed as if they are fatal errors I think that is very wrong Let s reduce our expectations of deprecations It ll make everyone s lives much less stressful Deprecations are not like E ERROR E WARNING and E NOTICEI ran across an impressive looking new book on PHP If you have seen it before this edition is updated for version Front Line PHP Building modern applications with PHP Front Line PHP also has a PHP Cheat Sheet Modern PHP Cheat Sheet A to the point summary of all awesome PHP featuresWe shared several posts from Samuel Fontebasso in the last communique His series on PHP Nginx and Docker continues with this one PHP Nginx with Docker in production Part Docker Compose for your local environmentBulletproof PHP writes “Rather than yet another generic overview of the language or a point by point refutation of the things people say is wrong with it what I want this post to be more than anything else is kind of a comprehensive list of good things about PHP “Yes PHP is Worth Learning Using in CURRENT YEARAlong those lines this article from Raft Labs has some great resources for learning PHP PHP in A Big Yes Behzad Fazelasl says Writing tests is inseparable from programming If you want to be sure about deploying your code without unexpected failure writing tests is going to be of assistance The more tests you write the more test coverage you get on your code which leads to more confidence But there is a big problem There should be a sort of measurement to make sure enough tests have been written PHPUnit Test Coverage ReportMatthew Setter asks why deploy with Docker especially when there are so many other deployment options Deploy PHP Apps with Docker The EssentialsPeter Packet didn t pick any peppers but he did author this interesting post Effectively using Facades and Hexagonal Architecture to separate bounded contextsHere is an article about another PHP Templating language EasyTpl ーSimple and fastly template engine for PHP inhereat easytpl simple and fastly template engine for php dfbfcf Last WeekThe Voices of the Elephant podcast spoke with Ben Ramsey the Release Manager for PHP Interview with Ben Ramsey OtherThe Guardian asks a simple but extremely important question Can big tech ever be reined in Toptal also has a question One I ve asked myself Agile Scrum and Kanban What the Heck Do These Words Really Mean We have shared several posts from Mateusz Cholewka He continues his series on Docker here Read this before you start using the multistage builds for your docker images kontaktmtkd read this before you start using the multistage builds for your docker images abeHere s a useful tool for anyone who s making code tutorials How to create long screen recordings using OBS Studio ftag RSSdeTorque Mag has a post on helpful tools as well Mobile Atom Code and Symfony Station use a variety of these and the list is legit Best Tools for Freelancers Keep Your Business on TrackI ran across this on freeCodeCamp and although it s from February it s a good resource for working with APIs API Cheat Sheet What is an API How it Works and How to Choose the Right API Testing ToolsWe have been sharing Wouter Carabain s series on using Symfony and React together Here s the latest article Setting up React Native Part ReadWrite wants to predict What the Future of Programming Languages Looks LikeDeliciousBrains tells us how to Create Your Own SSL Certificate Authority for Local HTTPS DevelopmentAnd CSS Tricks shows us how to Create the perfect commit in gitHave you published or seen something related to Symfony or PHP that we missed If so please contact us That s it for this week Thanks for making it to the end of another extended edition I look forward to sharing next week s Symfony and PHP news with you on Friday Please share this post Be sure to join our newsletter list so you get each week s communique directly in your inbox a day early And follow us on Twitter at symfonfystation Happy coding Symfonistas Reuben WalkerFounder Symfony Station Reuben is also Ringmaster of Mobile Atom Media and its division Mobile Atom Code |
2021-11-26 15:32:40 |
海外TECH |
DEV Community |
DevTips Daily Update 26/11/21 |
https://dev.to/codebubb/devtips-daily-update-261121-24ab
|
DevTips Daily Update So in this week s videos on DevTips Daily we were carrying on with our full end to end project and we got setup with our server on Digital ocean starting creating some endpoints in the Express app for generating short urls and also got setup with a MongoDB database inside a Docker container Here s a link to each individual tutorial Setup hosting serverConnecting to server via SSHCreating short URLsSetup MongoDB with Docker Testing MongoDB connection Connecting to MongoDB in the APIAdding URLs to databaseNext week we re going to be carrying on with the project again we ll be setting up our redirect endpoint and starting to build our delivery pipeline with GitHub Actions Thanks for watching |
2021-11-26 15:28:08 |
海外TECH |
DEV Community |
Using a Private GitHub Repository as a Helm Chart Repository |
https://dev.to/frosnerd/using-a-private-github-repository-as-a-helm-chart-repository-5fa8
|
Using a Private GitHub Repository as a Helm Chart Repository IntroductionApplications deployed on Kubernetes typically consist of multiple Kubernetes resources such as deployments services config maps and so on Application developers can package those resources together to make it easier to install and upgrade them holistically Helm is a very popular package manager for Kubernetes When using Helm applications are packaged in the form of Helm charts which can be installed either from the local file system or from a remote chart repository If you want to distribute your Helm charts through a chart repository there are many options available such as GCS or S buckets GitHub pages or JFrog Artifactory A chart repository is really just an HTTP server that hosts an index yaml file together with a bunch of packaged charts in form of tgz files If you need your chart repository to be private i e password protected and you do not have an S bucket or JFrog Artifactory handy you can convert any private GitHub repository into a private chart repository While GitHub pages is typically recommended as a free alternative I have not found a way to implement a private chart repository using GitHub pages In this post I am going to walk you through the steps needed to set up a private GitHub repository to use it as a private Helm chart repository The post is structured as follows First we will introduce the Helm chart repository structure Afterwards we are going to explain how to use a private GitHub repository as a Helm chart repository The next section illustrates how to push to the repository via a GitHub Actions workflow We are following up by explaining how to install charts from the newly created repository The post is closed by discussing advantages and disadvantages of the presented approach Chart Repository StructureAs mentioned already in the introduction the main component of any chart repository is the index file The index file is a YAML file called index yaml and it contains metadata about all the packages including the information of the respective Chart yaml files Each entry in the index file also points to the location of the chart package which is a tgz file Note that it is not mandatory for the tgz files and the index yaml to be co located but it is often the case The following listing shows an example repository layout index yaml mychart tgz mychart tgz yourchart tgzIn this case the index file would contain information about the two charts mychart and yourchart in the respective versions Next let s see how we can configure a private GitHub repository so that we can use it as a chart repository Private GitHub Chart Repository SetupFirst you ll have to create a private GitHub repository that will function as the chart repository Inside you configure a new GitHub Actions workflow by creating a file called github workflows update index yml with the following content yourorg helm chart repository github workflows update index ymlname Update Indexon push branches main paths tgz jobs build runs on ubuntu steps name Git Checkout uses actions checkout v name Helm Installation uses azure setup helm v with version v name Update Index run helm repo index git config global user email yourbot yourorg com git config global user name YourOrg Bot git add index yaml git commit m Update chart index git pushThis file defines a workflow that updates the helm repository index file every time a chart package tgz is updated It then commits and pushes the changes To publish a new chart version simply commit a packaged version of your chart tgz You can package your chart using helm package helm package CHART NAME version CHART VERSION After you pushed your changes the GitHub Actions workflow will run and update the repository index file The index file is going to look similar to the following one yourorg helm chart repository index yamlapiVersion ventries my chart apiVersion v appVersion created T Z description My chart is amazing digest dfddeebbeabfabdfbeeee name my chart type application urls my chart faea tgz version faea apiVersion v appVersion created T Z description My chart is amazing digest cebedfdfdbdfdfbfacebfeea name my chart type application urls my chart acb tgz version acbgenerated T Z Now that we have the Helm chart repository configured and know how to push new charts to it manually let s see how to automate this in another GitHub Actions workflow Pushing to the Private Repository from Another WorkflowImagine we are storing the source code of a Helm chart in another GitHub repository and you want to package and push any changes automatically to the chart repository we created We can accomplish this by creating another GitHub Actions workflow file with the following content yourorg my chart github workflows helm ymlname Helmjobs publish runs on ubuntu steps name Chart Checkout uses actions checkout v name Helm Installation uses azure setup helm v with version v name Helm Repository Checkout uses actions checkout v with repository yourorg helm chart repository token secrets YOUR BOT GH TOKEN fetch depth persist credentials true ref main path helm chart repository name Helm Package run helm package my chart version git rev parse short GITHUB SHA d helm chart repository name Helm Push env GITHUB TOKEN secrets YOUR BOT GH TOKEN run git config global user email yourbot yourorg com git config global user name YourOrg Bot CHART PACKAGE NAME my chart git rev parse short GITHUB SHA tgz cd helm chart repository git add CHART PACKAGE NAME git commit m CHART PACKAGE NAME git push origin mainThis workflow is going to run in the source code repository and will package up your chart commit and push it to the chart repository Note that you will need to grant permissions to the workflow to push changes to the chart repository This can be achieved by providing a GitHub API token in a secondary checkout v action that has the required permissions e g full access to org repos Installing from the Private RepositoryNow that we ve seen how to set up our private chart repository and how to push to it let s use it to install a chart First you have to add the repository to your local Helm repository list To authenticate you must provide a GitHub API token that can read from the chart repository It has to be provided using HTTP Basic Auth but it does not seem to matter whether you provide it as username password or both helm repo add yourorg username GITHUB TOKEN password GITHUB TOKEN Once the repository is added you can search it or install charts from it Note that you ll have to update the local repository index when looking for new versions helm repo updatehelm search repo my chart develAnd that s it This is how you can transform any private GitHub repository into a private Helm chart repository DiscussionBefore we end the post I want to note that this solution is far from ideal It is one possible option in your tool belt and might be great if you need to setup something but have no access to other alternatives There are some caveats however First although this solution gives you a private repository access management is not very flexible You need to use API keys that can be difficult to manage and might have too wide permissions Also a chart developer can easily use their permission to overwrite other charts publish new versions of other charts injecting malicious code Secondly it requires setup both on the repository side but also every project that wants to push to the repository This can be quite tedious compared to a managed solution such as Artifactory Thirdly you are limited by GitHub repository limits They shouldn t hit you too soon but are still something to be aware of In my opinion it would be sufficient for many use cases if it was possible to install charts directly from git You simply specify a git repository and a version hash to use when running helm install and it pulls the chart from git directly I see the benefit of the simple repository API webserver index yaml but still installing from git would be an amazing feature Cover image by Loik Marras on Unsplash |
2021-11-26 15:24:09 |
海外TECH |
DEV Community |
Hacking the hinge |
https://dev.to/tkuenneth/hacking-the-hinge-4a5m
|
Hacking the hingeIn a previous post I showed you how to optimize a two column layout for devices with a hinge The idea is to get the configuration of the hinge using Jetpack WindowManagerplace a third column with the dimensions of the hinge between the left and right oneset the sizes of the two content columns based on the screen size and the configuration of the hingeThis way no content is obstructed by the hinge Almost no content that is Unfortunately some UI elements may not be completely visible This blog post is based on a sample app called HingeDemo You can find it on GitHub Here s how the app looks on the Surface Duo Emulator using one screen HingeDemo consists of an app bar three tabs and a bottom navigation The app bar usually contains a title which is ridiculously long by intention To see why this may be a problem let s look at the app using two screens The hinge makes parts of three UI elements unreadable They are the titleone tabone navigation itemWhile we can make the main content area hinge aware easily our options are rather limited regarding built in composables right No Let s start with the title Tuning the titleClearly such a long title makes no sense To make it shorter we could show just n characters and add an ellipsis at the end But what value should n be This depends on the screen size and the distribution of letters Obviously W or M need more space than l or i Fortunately Jetpack Compose can help us in this regard Composablefun TopBar hingeDef HingeDef TopAppBar title if hingeDef hasGap Text modifier Modifier width hingeDef sizeLeft dp text stringResource id R string title maxLines overflow TextOverflow Ellipsis else Text text stringResource id R string title So the required steps are set the maximum number of lines to set an overflow textlimit the width of the textHingeDef is a small data class It looks like this data class HingeDef val hasGap Boolean val sizeLeft Dp val sizeRight Dp val widthGap Dp And here s how it is instantiated Composablefun HingeDemo layoutInfo WindowLayoutInfo windowMetrics WindowMetrics var hasGap false var sizeLeft var sizeRight var widthGap layoutInfo displayFeatures forEach displayFeature gt displayFeature as FoldingFeature run hasGap occlusionType FoldingFeature OcclusionType FULL amp amp orientation FoldingFeature Orientation VERTICAL sizeLeft bounds left sizeRight windowMetrics bounds width bounds right widthGap bounds width val hingeDef with LocalDensity current HingeDef hasGap sizeLeft toDp sizeRight toDp widthGap toDp …Finally let s see how HingeDemo is invoked class HingeDemoActivity ComponentActivity override fun onCreate savedInstanceState Bundle super onCreate savedInstanceState lifecycleScope launchWhenResumed setContent val layoutInfo by WindowInfoTracker getOrCreate this HingeDemoActivity windowLayoutInfo this HingeDemoActivity collectAsState initial null HingeDemoTheme HingeDemo layoutInfo WindowMetricsCalculator getOrCreate computeCurrentWindowMetrics this HingeDemoActivity To use Jetpack WindowManager please make sure to add an implementation dependency to androidx window window beta or later in your module level build gradle file Let s return to limiting the width of the text Remember the modifier looked like this Modifier width hingeDef sizeLeft dp sizeLeft is the size of the left screen in density independent pixels But why am I subtracting dp The Text appears inside an app bar which may have paddings and other elements that appear before the title However their widths cannot be determined easily so is an educated guess In fact if the app does not set a navigation icon Compose currently adds a Spacer with this modifier Modifier width dp AppBarHorizontalPadding AppBarHorizontalPadding is set to dp Therefore my dp appear generous You may be wondering if setting the width of the text still works if the app bar also contains actions which appear to the right of the title It does because width is a preferred value If there is less room the text is truncated earlier Now let s turn to tabs Aligning tabsJetpack Compose uses TabRow and Tab to implement tabs Out of the box the label is centred Here s how to change this behaviour Tab selected i selectedIndex text if hingeDef hasGap Text modifier Modifier fillMaxWidth textAlign TextAlign Left text Tab i else Text text Tab i …The idea is to align the text to the left To make it work we also need to make the text as wide as possible Modifier fillMaxWidth Here s how HingeDemo looks with these modifications The screenshot also shows a solution to the third issue We will be covering this in the next section Regarding the alignment of the tab text we need to be aware that this is a clever hack at best Depending on screen size number of tabs and the tab texts one text may be obstructed by the hinge nonetheless A true solution would need to make Text hinge aware I ll return to this in the conclusion Using a navigation railThe third issue of HingeDemo is that one navigation item is partially obstructed by the hinge To solve this we need not look for clever hacks Instead we can use the navigation rail a user interaction pattern that is particularly suited for large screens Composablefun Content modifier Modifier Modifier hingeDef HingeDef Row modifier Modifier fillMaxSize if hingeDef hasGap var selected by remember mutableStateOf NavigationRail for i in NavigationRailItem selected i selected onClick selected i icon Icon painter painterResource id R drawable ic android black dp contentDescription null label Text text i Column modifier modifier fillMaxSize var selectedIndex by remember mutableStateOf TabRow selectedTabIndex selectedIndex …The idea is to add NavigationRail as the first composable in a Row if we detect that the hinge runs vertically The actual content in my case a Column is added anyway Finally if your app shows a navigation rail it should not show other primary navigations for example BottomNavigation Here s how HingeDemo handles this Composablefun BottomBar hasGap Boolean if hasGap BottomNavigation …BottomBar is added to Scaffold like this Scaffold topBar TopBar hingeDef hingeDef bottomBar BottomBar hingeDef hasGap Content modifier Modifier padding it hingeDef To use NavigationRail you must add an implementation dependency to androidx compose material material alpha or later in your module level build gradle file The Jetpack compose version of Material is not yet stable so I have not yet migrated other composables to the new implementation of Material Design Mixing two versions of a design language in an app is certainly no good idea so in the long run the app should be migrated to Material once its Compose lib is stable ConclusionUsing the techniques shown in this post you can minimize the number of UI elements being obstructed by a hinge However in some situations the visual representation of the text may need to be altered For example it could be split into two halves one half being laid out to the left of the hinge the second one to the right It may be possible to achieve this by implementing a hypothetical modifier makeHingeAware If this would be an implementation of the LayoutModifier interface or something different is subject to further investigations Also tweaking the appearance of common user interface elements may feel awkward to the users On Android the title of tabls is expected to be centered A left aligned title can feel strange What are your thoughts on this Please share your impressions in the comments |
2021-11-26 15:22:15 |
海外TECH |
DEV Community |
Building a Unicorn Engineering Org at GRIN |
https://dev.to/linearb/building-a-unicorn-engineering-org-at-grin-575h
|
Building a Unicorn Engineering Org at GRINHow do you build an engineering organization that can drive your company to a billion dollar valuation and unicorn status And how do you do it in an emerging and highly competitive product category like influencer creator management Brent Bartlett VP of Engineering at GRIN joins the podcast this week to share his blueprint for success and his path to leadership Listen as Brent shares his advice on how to use intuition to inform data based decision making how he managed GRIN s engineering department during it s explosive growth on the path to a billion dollar valuation and why he trusts LinearB to help him succeed Episode Highlights Include Building an engineering org in a highly competitive product marketHow to blend intuition and data when decision makingWhy GRIN chose to partner with LinearBInstitutionalizing knowledge and communication practices while scaling Join the Dev Interrupted CommunityWith over members the Dev Interrupted Discord Community is the best place for Engineering Leaders to engage in daily conversation No sales people allowed Join the community gt gt |
2021-11-26 15:21:22 |
海外TECH |
DEV Community |
Packaging and Releasing (Lab 10) |
https://dev.to/ar/packaging-and-releasing-lab-10-3gcl
|
Packaging and Releasing Lab For this lab we were tasked with packaging and releasing our SSG project we ve been working on all semester Since I wrote my SSG in Python I chose PyPI for this Setting upReading PyPI s docs I realized that I have to do a bit of restructuring add a new file and install setuptools which does the packaging Installing setuptools was simple pip install setuptoolsI moved the ssg folder containing the main code into a src folder and added a new setup cfg file which is used by setuptools setup cfg metadata name ssg a rokayversion author Ahmad Rokayauthor email description Uses python to generate static html files from a single txt or folder of txt fileslong description file README mdlong description content type text markdownurl project urls Bug Tracker classifiers Programming Language Python License OSI Approved MIT License Operating System OS Independent options package dir srcpackages find python requires gt options packages find where srcI also had to add some lines to pyproject toml which tells pip and build what is required to build my project build system requires setuptools gt markdown pygments build backend setuptools build meta Because I moved the main code into a new folder I had to update the imports for my tests to reflect the new structure Packaging and releasingNow that everything was setup I was able to package and release py m buildpy m twine upload dist After creating an account on PyPI and entering my information the project was successfully released To install my project all that has to be run is pip install ssg a rokay TestingI reached out through Slack to another student and gave them the PyPI link to have them attempt to install my project They had zero issues and were easily able to implement my code OutcomesI ve always thought you had to have your project approved by some big entity to be able to install it through pip It was very interesting to see how easy it actually is It felt really good installing my work from PyPI and seeing another student effortlessly do too |
2021-11-26 15:16:21 |
Apple |
AppleInsider - Frontpage News |
Black Friday sale: Save 25% on stylish Courant wireless chargers, cases for iPhone, Apple AirPods |
https://appleinsider.com/articles/21/11/26/black-friday-sale-save-25-on-stylish-courant-wireless-chargers-cases-for-iphone-apple-airpods?utm_medium=rss
|
Black Friday sale Save on stylish Courant wireless chargers cases for iPhone Apple AirPodsFor Black Friday weekend Courant is offering off its entire range of premium iPhone charging stations AirPod leather cases and more Get off Courant s chargersAppleInsider has previously recommended Courant for its excellent wireless charging devices all of which are encased in high quality genuine leather Alongside those charging devices though the company also produces cases for the AirPods and AirPods Pro again from genuine hand stitched Italian leather Read more |
2021-11-26 15:47:02 |
海外TECH |
Engadget |
Amazon cuts prices on Anker charging products to an all-time low |
https://www.engadget.com/amazon-drops-anker-charging-products-down-to-all-time-lows-for-black-friday-151905571.html?src=rss
|
Amazon cuts prices on Anker charging products to an all time lowEarlier this year Anker unveiled its second gen gallium nitride GaN chargers that are smaller than ever but offer up to W of power ーenough to charge an M MacBook Pro at full speed Now you can pick up the Nano II W charger today only for just a savings of percent over the regular price It s also selling the Nano II W model for or off the regular price On top of the Nano II products Anker has all time low deals on its external battery chargers too Buy Anker charging products at AmazonAnker s next gen GaN chargers are more efficient smaller and better at regulating temperatures than the first generation of devices thanks to a new design and chips They come with a USB C port and intelligently allocate the optimal wattage to whichever device is plugged in If you don t need quite that much power Anker is also selling the original Nano in a two pack for or percent off the normal price nbsp The company also has some stellar deals on its external batteries for today only The Anker Power Bank is a mAh portabe USB C charger with watts of power delivery letting you charge up your iOS or Android smartphone at a rapid rate If the normal price of gave you pause you can now grab one in black for just nbsp For more capacity and ports Anker s PowerCore Portable Charger offers mAh with W charger and three ports for iPhone Android and other smart devices It s now on sale for instead of for a savings of or percent Again the sale is on today only for Black Friday nbsp Get the latest Black Friday and Cyber Monday offers by visiting our deals homepage and following EngadgetDeals on Twitter All products recommended by Engadget are selected by our editorial team independent of our parent company Some of our stories include affiliate links If you buy something through one of these links we may earn an affiliate commission |
2021-11-26 15:31:05 |
海外TECH |
CodeProject Latest Articles |
One more solution to calling PowerShell from C# |
https://www.codeproject.com/Articles/5318610/One-more-solution-to-calling-PowerShell-from-Cshar
|
class |
2021-11-26 15:12:00 |
海外TECH |
WIRED |
The Best Black Friday Deals on Laptops and Home Office Gear |
https://www.wired.com/story/best-black-friday-laptop-deals-2021-1
|
external |
2021-11-26 15:42:00 |
金融 |
金融庁ホームページ |
鈴木大臣が、11月22日の⾦融審議会総会・⾦融分科会合同会合で挨拶及び諮問を、同月24日に中小企業等の金融の円滑化に関する意見交換会で挨拶を行いました。 |
https://www.fsa.go.jp/kouhou/photogallery.html
|
中小企業 |
2021-11-26 17:00:00 |
金融 |
金融庁ホームページ |
国際金融センター特設ページを更新しました。 |
https://www.fsa.go.jp/internationalfinancialcenter/index.html
|
alfinancialcenterjapan |
2021-11-26 17:00:00 |
金融 |
金融庁ホームページ |
金融庁国際総括官の保険監督者国際機構(IAIS)執行委員会副議長就任について公表しました。 |
https://www.fsa.go.jp/inter/iai/20211126/20211126.html
|
保険監督者国際機構 |
2021-11-26 17:00:00 |
金融 |
金融庁ホームページ |
第16回金融審議会公認会計士制度部会議事次第について公表しました。 |
https://www.fsa.go.jp/singi/singi_kinyu/kounin/siryou/20211129.html
|
公認会計士制度 |
2021-11-26 17:00:00 |
金融 |
金融庁ホームページ |
保険監督者国際機構(IAIS)によるプレスリリースを掲載しました。 |
https://www.fsa.go.jp/inter/iai/20211126_1/20211126_1.html
|
保険監督者国際機構 |
2021-11-26 17:00:00 |
金融 |
金融庁ホームページ |
みずほ銀行及びみずほフィナンシャルグループに対する行政処分について公表しました。 |
https://www.fsa.go.jp/news/r3/ginkou/20211126/20211126.html
|
行政処分 |
2021-11-26 16:36:00 |
金融 |
金融庁ホームページ |
金融審議会「資金決済ワーキング・グループ」(第3回)議事次第について公表しました。 |
https://www.fsa.go.jp/singi/singi_kinyu/shikinkessai_wg/shiryou/shikinkessai_wg3.html
|
金融審議会 |
2021-11-26 16:00:00 |
ニュース |
BBC News - Home |
Coronavirus: EU latest to call for border closures over new variant fears |
https://www.bbc.co.uk/news/world-59427770?at_medium=RSS&at_campaign=KARANGA
|
africa |
2021-11-26 15:37:47 |
ニュース |
BBC News - Home |
New Covid variant: Javid says UK must act quickly over public health risk |
https://www.bbc.co.uk/news/uk-59428398?at_medium=RSS&at_campaign=KARANGA
|
substantial |
2021-11-26 15:15:01 |
ニュース |
BBC News - Home |
Dressing room culture part of cricket anti-racism plan |
https://www.bbc.co.uk/sport/cricket/59417260?at_medium=RSS&at_campaign=KARANGA
|
wales |
2021-11-26 15:22:17 |
ニュース |
BBC News - Home |
Motsi Mabuse to miss Strictly Come Dancing after Covid contact |
https://www.bbc.co.uk/news/entertainment-arts-59433988?at_medium=RSS&at_campaign=KARANGA
|
trace |
2021-11-26 15:08:05 |
ニュース |
BBC News - Home |
'Not good news for other teams' - Klopp praises 'outstanding' Rangnick as he closes in on Man Utd job |
https://www.bbc.co.uk/sport/football/59431558?at_medium=RSS&at_campaign=KARANGA
|
x Not good news for other teams x Klopp praises x outstanding x Rangnick as he closes in on Man Utd jobLiverpool manager Jurgen Klopp says that unfortunately a good coach is coming to England if Manchester United agree a deal with Ralf Rangnick |
2021-11-26 15:24:00 |
ビジネス |
不景気.com |
ブリヂストンが香川・岐阜・静岡の3工場を閉鎖、化成品子会社 - 不景気.com |
https://www.fukeiki.com/2021/11/bridgestone-dcp-close-plants.html
|
香川 |
2021-11-26 15:01:33 |
サブカルネタ |
ラーブロ |
中華そば 深緑@高坂(埼玉県) 「白出汁、ほか」 |
http://ra-blog.net/modules/rssc/single_feed.php?fid=194061
|
中華そば |
2021-11-26 15:01:02 |
北海道 |
北海道新聞 |
ふるさと納税巡り収賄疑い 佐賀・大町町長を書類送検 |
https://www.hokkaido-np.co.jp/article/616160/
|
書類送検 |
2021-11-27 00:15:00 |
北海道 |
北海道新聞 |
NY株、一時800ドル超安 南ア新変異株の影響警戒 |
https://www.hokkaido-np.co.jp/article/616157/
|
警戒 |
2021-11-27 00:10:00 |
コメント
コメントを投稿