投稿時間:2022-04-20 10:30:38 RSSフィード2022-04-20 10:00 分まとめ(33件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… iTunes Storeの「今週の映画」、今週は「フェアウェル」(レンタル102円) https://taisy0.com/2022/04/20/155991.html apple 2022-04-20 00:16:26
IT ITmedia 総合記事一覧 [ITmedia Mobile] 「Galaxy Z Flip3」のポケモンエディション、韓国で発売へ https://www.itmedia.co.jp/mobile/articles/2204/20/news077.html galaxyzflip 2022-04-20 09:43:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 新卒時代のテレアポ業務「大変だった」9割 「今に生きている」と考える人の割合は? https://www.itmedia.co.jp/business/articles/2204/20/news064.html itmedia 2022-04-20 09:40:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 住信SBIネット銀行、即時発行のMastercardデビット開始 Apple Pay対応 https://www.itmedia.co.jp/business/articles/2204/19/news163.html applepay 2022-04-20 09:10:00
IT ITmedia 総合記事一覧 [ITmedia News] Netflix、広告付き低価格サブスクを計画中 https://www.itmedia.co.jp/news/articles/2204/20/news075.html itmedianewsnetflix 2022-04-20 09:04:00
IT SNSマーケティングの情報ならソーシャルメディアラボ【Gaiax】 SNSアカウント運用を成功に導く新メソッド“4C”を解説【Twitter、Instagram、TikTok、YouTube等全媒体共通】 https://gaiax-socialmedialab.jp/post-124494/ instagram 2022-04-20 00:51:29
TECH Techable(テッカブル) シナジー創出へ。スタートアップ・投資家・⼤企業をつなぐプラットフォーム登場 https://techable.jp/archives/177310 storium 2022-04-20 00:00:56
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders パーソルプロセス&テクノロジー、RPAを導入して2年間で20万時間超の業務を自動化 | IT Leaders https://it.impress.co.jp/articles/-/23050 パーソルプロセステクノロジー、RPAを導入して年間で万時間超の業務を自動化ITLeadersパーソルプロセステクノロジーパーソルPTは年月日、総合人材サービスを営むパーソルグループの業務にRPAを導入、年月からの年間で万時間を超える業務を自動化したと発表した。 2022-04-20 09:30:00
デザイン コリス 2022年用、日本語のフリーフォント606種類のまとめ -商用サイトだけでなく紙や同人誌などの利用も明記 https://coliss.com/articles/freebies/japanese-free-fonts.html 続きを読む 2022-04-20 00:36:26
技術ブログ Developers.IO Inspector V2 の ECR 拡張スキャンで、特定のリポジトリのみスキャンをする制限の方法を教えてください。 https://dev.classmethod.jp/articles/tsnote-inspectorv2-ecr-enhancedscan-repository-filter/ inspectorv 2022-04-20 00:35:53
技術ブログ Developers.IO UdemyBusinessを入社初日オリエンテーションに導入した話 https://dev.classmethod.jp/articles/how-to-ojt/ udemybusiness 2022-04-20 00:13:31
技術ブログ クックパッド開発者ブログ クックパッドマートのドライバー向けWebアプリケーション https://techlife.cookpad.com/entry/driver-web-app-in-cookpad-mart-2022 クックパッドマートのドライバー向けWebアプリケーションクックパッドマートは生鮮食品のECサービスで、流通の仕組みを自分たちで作っています。 2022-04-20 10:00:00
海外TECH DEV Community I Store My Infra-as-Code This Way, You SHOULD Too. https://dev.to/n3wt0n/i-store-my-infra-as-code-this-way-you-should-too-1pa3 I Store My Infra as Code This Way You SHOULD Too I ve recently sent a poll on my YouTube channel community tab asking where people store their IaC Infrastructure as Code With my surprise more than half of the people said that they always store their IaC scripts and their application code in separate repos In this article I will discuss those results and tell you how and where I store my Infra as Code files and why I think you should do the same as well VideoAs usual if you are a visual learner or simply prefer to watch and listen instead of reading here you have the video with the whole explanation and demo which to be fair is much more complete than this post Link to the video If you rather prefer reading well let s just continue About IaCAs I ve mentioned in the intro today we talk about how to store your IaC Infrastructure as Code which is the way to describe create and manage your resources using some definition language If you are not very familiar with it and want to know more I d recommend you to check out the video I made about what IaC is and why using it You can find it here How I Store My Infra as CodeAlright enough of that How do I store my Infra as Code Well it depends I can say I do it both ways I would have picked the option in the middle in my poll above And the reason for this is very easy to explain it depends on what the IaC script or model I m writing is for I tend in fact to split my IaC into two parts foundational infrastructure and app related one Foundational InfrastructureFoundational infrastructure comprises of all the pieces that are not directly related to a specific app or service but are instead more general and perhaps shared between different applications Examples of this could be some Virtual Networks used by multiple services storage accounts for storing logs or Kubernetes clusters Since those are independent from the software parts I store them in a separate centralized repository As you can see in the image above I have different folders for different environments and in each I have the resources As I ve mentioned you can see I define here the AKS Kubernetes clusters the networking resources etc And as you have probably noticed I use Terraform for my IaC And I like to separate my resources into modules I store their code in separate repositories in GitHub and publish them to the HashiCorp cloud on my private registry together with the Terraform state Let me know in the comments if you want to know more about how I structure my Terraform IaC modules and files App related InfrastructureAlright that was about the shared foundational infrastructure So what about the other piece of IaC I ve mentioned The one related to the applications Well as you have probably already figured I store it together with the application code in the same repo As you can see here I have my application code but I also have this ARM Template folder in the root of the repo in which I have the IaC scripts for this particular piece of software In this case this was ARM but I do the same for Terraform which as I ve mentioned is my IaC provider of choice I store this way all the Infra as Code that provisions and manages resource only related to a specific application That could be an App Service Web App where my web application runs a Virtual Machine that hosts a server management tool or an API Management solution that provides the gateway for my application s APIs and of course the list can be endless but you got the point Why The Double ApproachNot only do I store my IaC it this way but I usually recommend this to the teams and companies I work with Storing your Infrastructure as Code with this double approach gives a lot of flexibility For example you could have a centralized infra management team taking care of all the shared infrastructure which provides the foundation of your environments while leaving the apps specific bits to the app developers who know exactly what their software needs ConclusionsLet me know in the comments below how you store your Infrastructure as Code and what you think about my approach Also check out this video in which I go through the reasons why you should use Infrastructure as Code Like share and follow me for more content YouTube Buy me a coffeePatreonNewsletterCoderDave io WebsiteMerchFacebook page‍GitHubTwitterLinkedInPodcast 2022-04-20 00:30:56
海外TECH DEV Community How does glob work in Python? https://dev.to/code_with_ali/how-does-glob-work-in-python-4olm How does glob work in Python Python is famous for huge list of ready made modules These ready made modules can make our lives much easier if we make use of them Recently I have started exploring different Python modules In this Short tutorial I will introduce you to the glob module If you do not what a module is Please read this What the hack is glob module in Python In general Programming the term glob means global You can read the full history on the Wikipedia To make things simple glob is a way of searching for files matches to a specific pattern Wait but you have regular expression that do the job Yes you have regular expression but glob modules makes things way more easier than regular expression if you are dealing with files Install glob module in Python Lets get our hands dirty on glob module by first installing it It is a python built in module I know that But to be on the safe side you can use the following command on your terminal to install glob module pip install globMake sure you have python installed and you have pip set up Example of using glob moduleThe best way to learn something is to learn it by example In this example we will use python glob module to find mp files available in all sub directories along with the root Check the following code import globpath curfiles glob glob path mp recursive True for file in curfiles print file The same result can be achieved using regular expression import reimport oscurrentdir os getcwd files os listdir currentdir pattern mp prog re compile pattern htmlfiles for file in files result prog findall file if len result htmlfiles append result for htmlfile in htmlfiles print htmlfile Words From My HeartI am so thankful to you for reading this piece of article I will be more than happy and pleased if you leave a like comment on it PS Please check out my YouTube channel if you love coding videos Code With Ali 2022-04-20 00:20:09
海外TECH DEV Community Learning Clojure, part II https://dev.to/cazevedo/learning-clojure-part-ii-22b4 Learning Clojure part IINow you re convinced that is a good idea learn Clojure and if you not I recommend to read the part I we ll start the practical part installing the language and all the tools that we need for program in Clojure I ll not cover the process on Windows most of things like SDKMan only work on Linux Mac Operating Systems if you re using Windows I would recommend you to use WSL to follow this tutorial Install SDKMan and JavaThe first thing to do is install Java Clojure is entirely written in Java and Clojure itself we need have Java installed and configured in our computer not only to run most of the tools that we use to program in Clojure but also to run Clojure itself To do this we will install a bash tool called SDKMan this is a version manager tool for all JVM languages including our beloved Clojure To install it we have to run the command in our terminal curl s bashAfter it complete the installation we have to source or open close our terminal to load the changes in our bashrc SDKMan is a collection of bash functions that are linked in our bash profile If you want to understand how the sdk function we ll use works you can use the following command on your terminal describe f sdkNow we have to install Java on our machine The actual Long Term Supported LTS version of Java is the we ll use it In your terminal run the following command sdk install java openAll right now you can check if Java is installed and running with the command java versionThe SDKMan not only helps you to install and configure Java as it also manages different JDKs on your computer if you want to learn more about it I recommend reading the documentation Install Maven and LeiningenNow we have to install the build tools both for Java and for Clojure since we ll use them for manage dependencies and build our code For our own luck SDKMan also do this for us For install maven we have to run sdk install mavenAnd for install leiningen we have to run sdk install leiningenAfter doing it we should have all we need to run Clojure If you want to start doing things in REPL or just test the installation you can run it in you terminal lein replBy the way if you need to exit the REPL just run the function exit on REPL Installing VS Code and CalvaWait VS Code Why not Emacs Well a lot of people following this tutorial never learned Emacs before and I won t recommend learning Clojure and Emacs at the same time because things can become messy and confusing After all the complexity of the ecosystem and the elisp language be so similar that can be confusing By other way probably you already have VS Code installed in your computer and even if you don t you can just use apt or snap to install it sudo apt install snapd sudo snap install classic codeAfter installing the IDE you can open it and install the Calva plugin it will add a lot of features to VS Code including things such as REPL integration and folding parens capabilities To install it open your VS Code press CTRL P and paste this code into the open dialog ext install betterthantomorrow calvaAfter restarting your VS Code everything will be fine for we start the development in Clojure Hello Clojure After we have all set we can start programming in Clojure by building our first project To do this you can just open a terminal in the folder where you want your project to be created and run the following command for leiningen create our project scaffold named getting started based on app template lein new app getting startedAnd then we can open it on VS Code code getting startedThe entry point of our project will be getting started src getting started core clj file that contains a Hello World program let s change Hello World for Hello Clojure and then run the project with the command lein runIf everything worked fine you should see the printed string printed in a newline in your terminal Using the REPLOne of the main advantages of using Clojure is the Read Eval Print Loop REPL tool that helps a lot to get feedback while we re coding for work with Clojure is recommended that at least you learn to use the basics on it For start a REPL open the VS Code and press CTRL ALT C and the CTRL ALT J and then select leiningen and use the uberjar profile You will see a prompt with clj꞉getting started core꞉ gt open on the right of the code this is our REPL window and you can run any Clojure code or part of the code you re writing on it clj꞉getting started core꞉ gt   clj꞉getting started core꞉ gt   main Hello Clojure nilAt any moment you can also put the file cursor on the closing parenthesis in your file and run CTRL ENTER and it will send the code to REPL and display the result of it If you want to learn more about how to send files to REPL how to make a partial evaluation and everything else in Calva I recommend you to look at the docs I ll be backThis is just the first step in the Clojure journey now we installed and configurated our whole development ambient we re ready to start evaluating parenthesis on our next post 2022-04-20 00:18:21
海外TECH DEV Community Working with Lists in Python https://dev.to/ahmedgouda/working-with-lists-in-python-5cj Working with Lists in Python Looping Through an Entire ListLooping allows you to take the same action or set of actions with every item in a list As a result you ll be able to work efficiently with lists of any length including those with thousands or even millions of items You ll often want to run through all entries in a list performing the same task with each item For example in a game you might want to move every element on the screen by the same amount or in a list of numbers youmight want to perform the same statistical operation on every element Or perhaps you ll want to display each headline from a list of articles on a website When you want to do the same action with every item in a list you can use Python s for loop Let s say we have a list of magicians names and we want to print out each name in the list We could do this by retrieving each name from the list individually but this approach could cause several problems For one it would be repetitive to do this with a long list of names Also we d have to change our code each time the list s length changed A for loop avoids both of these issues by letting Python manage these issues internally users Ahmed Mohammed Ali for user in users print user AhmedMohammedAliThis line for user in users tells Python to pull a name from the list users and associate it with the variable user A Closer Look at LoopingThe concept of looping is important because it s one of the most common ways a computer automates repetitive tasks For example in a simple loop like we used Python initially reads the first line of the loop for user in users This line tells Python to retrieve the first value from the list users and associate it with the variable user This first value is Ahmed Python then reads the next line print user Python prints the current value of user which is still Ahmed Because the list contains more values Python returns to the first line of the loop for user in users Python retrieves the next name in the list Mohammed and associates that value with the variable user Python then executes the line print user Python prints the current value of magician again which is now Mohammed Python repeats the entire loop once more with the last value in the list Ali Because no more values are in the list Python moves on to the next line in the program In this case nothing comes after the for loop so the program simply ends When you re using loops for the first time keep in mind that the set of steps is repeated once for each item in the list no matter how many items are in the list If you have a million items in your list Python repeats these steps a million timesーand usually very quickly Also keep in mind when writing your own for loops that you can choose any name you want for the temporary variable that will be associated with each value in the list However it s helpful to choose a meaningful name that represents a single item from the list Doing More Work Within a for LoopYou can do just about anything with each item in a for loop Let s build on the previous example by printing a message to each user users Ahmed Mohammed Ali for user in users print f Hello user Hello AhmedHello MohammedHello AliYou can also write as many lines of code as you like in the for loop Every indented line following the line for user in users is considered inside the loop and each indented line is executed once for each value in the list Therefore you can do as much work as you like with each value in the list users Ahmed Mohammed Ali for user in users print f Hello user print f How are you user n Hello AhmedHow are you Ahmed Hello MohammedHow are you Mohammed Hello AliHow are you Ali You can use as many lines as you like in your for loops In practice you ll often find it useful to do a number of different operations with each item in a list when you use a for loop Doing Something After a for LoopWhat happens once a for loop has finished executing Usually you ll want to summarize a block of output or move on to other work that your program must accomplish Any lines of code after the for loop that are not indented are executed once without repetition users Ahmed Mohammed Ali for user in users print f Hello user print f How are you user n print Thanks Everyone Hello AhmedHow are you Ahmed Hello MohammedHow are you Mohammed Hello AliHow are you Ali Thanks Everyone When you re processing data using a for loop you ll find that this is a good way to summarize an operation that was performed on an entire data set For example you might use a for loop to initialize a game by running through a list of characters and displaying each character on the screen You might then write some additional code after this loop that displays a Play Now button after all the characters have been drawn to the screen Avoiding Indentation ErrorsPython uses indentation to determine how a line or group of lines is related to the rest of the program In the previous examples the lines that printed messages to individual user were part of the for loop because they were indented Python s use of indentation makes code very easy to read Basically it uses whitespace to force you to write neatly formatted code with a clear visual structure In longer Python programs you ll notice blocks of code indented at a few different levels These indentation levels help you gain a general sense of the overall program s organization As you begin to write code that relies on proper indentation you ll need to watch for a few common indentation errors For example people sometimes indent lines of code that don t need to be indented or forget to indent lines that need to be indented Seeing examples of these errors now will help you avoid them in the future and correct them when they do appear in your own programs Forgetting to IndentAlways indent the line after the for statement in a loop If you forget Python will remind you users Ahmed Mohammed Ali for user in users print f Hello user IndentationError expected an indented blockYou can usually resolve this kind of indentation error by indenting the line or lines immediately after the for statement Forgetting to Indent Additional LinesSometimes your loop will run without any errors but won t produce the expected result This can happen when you re trying to do several tasks in a loop and you forget to indent some of its lines users Ahmed Mohammed Ali for user in users print f Hello user print f How are you user n Hello AhmedHello MohammedHello AliHow are you Ali This is a logical error The syntax is valid Python code but the code does not produce the desired result because a problem occurs in its logic If you expect to see a certain action repeated once for each item in a list and it s executed only once determine whether you need to simply indent a line or a group of lines Indenting UnnecessarilyIf you accidentally indent a line that doesn t need to be indented Python informs you about the unexpected indent message Hello Python world print message IndentationError unexpected indentYou can avoid unexpected indentation errors by indenting only when you have a specific reason to do so If you accidentally indent code that should run after a loop has finished that code will be repeated once for each item in the list Sometimes this prompts Python to report an error but often this will result in a logical error users Ahmed Mohammed Ali for user in users print f Hello user print f How are you user n print Thanks Everyone Hello AhmedHow are you Ahmed Thanks Everyone Hello MohammedHow are you Mohammed Thanks Everyone Hello AliHow are you Ali Thanks Everyone This is another logical error similar to the one in “Forgetting to Indent Additional Lines Because Python doesn t know what you re trying to accomplish with your code it will run all code that is written in valid syntax If an action is repeated many times when it should be executed only once you probably need to unindent the code for that action Forgetting the ColonThe colon at the end of a for statement tells Python to interpret the next line as the start of a loop If you accidentally forget the colon as shown at u you ll get a syntax error because Python doesn t know what you re trying to do Although this is an easy error to fix it s not always an easy error to find You d be surprised by the amount of time programmers spend hunting down single character errors like this Such errors are difficult to find because we often just see what we expect to see users Ahmed Mohammed Ali for user in users print f Hello user SyntaxError expected Making Numerical ListsMany reasons exist to store a set of numbers For example you ll need to keep track of the positions of each character in a game and you might want to keep track of a player s high scores as well In data visualizations you ll almost always work with sets of numbers such as temperatures distances population sizes or latitude and longitude values among other types of numerical sets Lists are ideal for storing sets of numbers and Python provides a variety of tools to help you work efficiently with lists of numbers Once you understand how to use these tools effectively your code will work well even when your lists contain millions of items Using the range FunctionPython s range function makes it easy to generate a series of numbers For example you can use the range function to print a series of numbers like this for value in range print value Although this code looks like it should print the numbers from to it doesn t print the number In this example range prints only the numbers through This is another result of the off by one behavior you ll see often in programming languages The range function causes Python to start counting at the first value you give it and it stops when it reaches the second value you provide Because it stops at that second value the output never contains the end value which would have been in this case To print the numbers from to you would use range You can also pass range only one argument and it will start the sequence of numbers at For example range would return the numbers from through for value in range print value Using range to Make a List of NumbersIf you want to make a list of numbers you can convert the results of range directly into a list using the list function When you wrap list around a call to the range function the output will be a list of numbers numbers list range print numbers We can also use the range function to tell Python to skip numbers in a given range If you pass a third argument to range Python uses that value as a step size when generating numbers even numbers list range print even numbers You can create almost any set of numbers you want to using the range function For example consider how you might make a list of the first square numbers that is the square of each integer from through In Python two asterisks represent exponents squares for value in range square value squares append square print squares To write this code more concisely omit the temporary variable square and append each new value directly to the list squares for value in range squares append value print squares You can use either of these two approaches when you re making more complex lists Sometimes using a temporary variable makes your code easier to read other times it makes the code unnecessarily long Focus first on writing code that you understand clearly which does what you want it to do Then look for more efficient approaches as you review your code Simple Statistics with a List of NumbersA few Python functions are helpful when working with lists of numbers For example you can easily find the minimum maximum and sum of a list of numbers gt gt gt digits gt gt gt min digits gt gt gt max digits gt gt gt sum digits List ComprehensionsThe approach described earlier for generating the list squares consisted of using three or four lines of code A list comprehension allows you to generate this same list in just one line of code A list comprehension combines the for loop and the creation of new elements into one line and automaticallyappends each new element The following example builds the same list of square numbers you saw earlier but uses a list comprehension squares value for value in range print squares It takes practice to write your own list comprehensions but you ll find them worthwhile once you become comfortable creating ordinary lists When you re writing three or four lines of code to generate lists and it begins to feel repetitive consider writing your own list comprehensions Working with Part of a ListWe learned how to access single elements in a list and how to work through all the elements in a list You can also work with a specific group of items in a list which Python calls a slice Slicing a ListTo make a slice you specify the index of the first and last elements you want to work with As with the range function Python stops one item before the second index you specify To output the first three elements in a list you would request indices through which would return elements and names Ahmed Mohammed Ali Omar Hassan print names Ahmed Mohammed Ali You can generate any subset of a list For example if you want the second third and fourth items in a list you would start the slice at index and end at index names Ahmed Mohammed Ali Omar Hassan print names Mohammed Ali Omar If you omit the first index in a slice Python automatically starts your slice at the beginning of the list names Ahmed Mohammed Ali Omar Hassan print names Ahmed Mohammed Ali Omar Without a starting index Python starts at the beginning of the list A similar syntax works if you want a slice that includes the end of a list For example if you want all items from the third item through the last item you can start with index and omit the second index names Ahmed Mohammed Ali Omar Hassan print names Ali Omar Hassan This syntax allows you to output all of the elements from any point in your list to the end regardless of the length of the list Recall that a negative index returns an element a certain distance from the end of a list therefore you can output any slice from the end of a list For example if we want to output the last three names we can use the slice names names Ahmed Mohammed Ali Omar Hassan print names Ali Omar Hassan This prints the names of the last three names and would continue to work as the list of players changes in size You can include a third value in the brackets indicating a slice If a third value is included this tells Python how many items to skip between items in the specified range names Ahmed Mohammed Ali Omar Hassan print names Ahmed Ali Looping Through a SliceYou can use a slice in a for loop if you want to loop through a subset of the elements in a list names Ahmed Mohammed Ali Omar Hassan print Here is the first three names in the list for name in names print name lower Here is the first three names in the list ahmedmohammedaliInstead of looping through the entire list Python loops through only the first three names Slices are very useful in a number of situations For instance when you re creating a game you could add a player s final score to a list every time that player finishes playing You could then get a player s top three scores by sorting the list in decreasing order and taking a slice that includes just the first three scores When you re working with data you can use slices to process your data in chunks of a specific size Or when you re building a web application you could use slices to display information in a series of pages with an appropriate amount of information on each page Copying a ListOften you ll want to start with an existing list and make an entirely new list based on the first one Let s explore how copying a list works and examine one situation in which copying a list is useful To copy a list you can make a slice that includes the entire original list by omitting the first index and the second index This tells Python to make a slice that starts at the first item and ends with the last item producing a copy of the entire list For example imagine we have a list of our favorite foods and want to make a separate list of foods that a friend likes This friend likes everything in our list so far so we can create their list by copying ours my foods pizza pasta cake friend foods my foods print My favorite foods are print my foods print nMy friend s favorite foods are print friend foods My favorite foods are pizza pasta cake My friend s favorite foods are pizza pasta cake To prove that we actually have two separate lists we ll add a new food to each list and show that each list keeps track of the appropriate person s favorite foods my foods pizza pasta cake friend foods my foods my foods append ice cream friend foods append rice print My favorite foods are print my foods print nMy friend s favorite foods are print friend foods My favorite foods are pizza pasta cake ice cream My friend s favorite foods are pizza pasta cake rice If we had simply set friend foods equal to my foods we would not produce two separate lists For example here s what happens when you try to copy a list without using a slice my foods pizza falafel carrot cake This doesn t work friend foods my foodsmy foods append ice cream friend foods append rice print My favorite foods are print my foods print nMy friend s favorite foods are print friend foods My favorite foods are pizza falafel carrot cake ice cream rice My friend s favorite foods are pizza falafel carrot cake ice cream rice Instead of storing a copy of my foods in friend foods we set friend foods equal to my foods This syntax actually tells Python to associate the new variable friend foods with the list that is already associated with my foods so now both variables point to the same list As a result when we add ice cream to my foods it will also appear in friend foods Likewise rice will appear in both lists even though it appears to be added only to friend foods The output shows that both lists are the same now which is not what we wanted TuplesLists work well for storing collections of items that can change throughout the life of a program The ability to modify lists is particularly important when you re working with a list of users on a website or a list of characters in a game However sometimes you ll want to create a list of items that cannot change Tuples allow you to do just that Python refers to values that cannot change as immutable and an immutable list is called a tuple Defining a TupleA tuple looks just like a list except you use parentheses instead of square brackets Once you define a tuple you can access individual elements by using each item s index just as you would for a list For example if we have a rectangle that should always be a certain size we can ensure that its size doesn t change by putting the dimensions into a tuple rectangle dimensions print f Length rectangle dimensions print f Width rectangle dimensions Length Width Let s see what happens if we try to change one of the items in the tuple rectangle dimensions rectangle dimensions TypeError tuple object does not support item assignmentThe code tries to change the value of the first dimension but Python returns a type error Basically because we re trying to alter a tuple which can t be done to that type of object Python tells us we can t assign a new value to an item in a tuple This is beneficial because we want Python to raise an error when a line of code tries to change the dimensions of the rectangle Tuples are technically defined by the presence of a comma the parentheses make them look neater and more readable If you want to define a tuple with one element you need to include a trailing comma my tuple It doesn t often make sense to build a tuple with one element but this can happen when tuples are generated automatically Looping Through All Values in a TupleYou can loop over all the values in a tuple using a for loop just as you did with a list rectangle dimensions for dimension in rectangle dimensions print dimension Writing over a TupleAlthough you can t modify a tuple you can assign a new value to a variable that represents a tuple So if we wanted to change our dimensions we could redefine the entire tuple rectangle dimensions print Original dimensions for dimension in rectangle dimensions print dimension rectangle dimensions print nModified dimensions for dimension in rectangle dimensions print dimension Original dimensions Modified dimensions we associate a new tuple with the variable rectangle dimensions We then print the new dimensions Python doesn t raise any errors this time because reassigning a variable is valid When compared with lists tuples are simple data structures Use them when you want to store a set of values that should not be changed throughout the life of a program 2022-04-20 00:14:12
海外TECH DEV Community Thank u https://dev.to/pythonpony/thank-u-58o1 drama 2022-04-20 00:13:24
海外TECH DEV Community AWS Well-Architected Framework - Operational Excellence Pillar https://dev.to/sebastiantorres86/aws-well-architected-framework-operational-excellence-pillar-1ccn AWS Well Architected Framework Operational Excellence Pillar What is the Operational Excellence pillar The Operational Excellence pillar focuses on how your organization supports your business objectives It includes your ability to run workloads effectively gain insight into their operations and continuously improve supporting processes and procedures to deliver business value Why is Operational Excellence important to improving my architecture Operational Excellence helps you define success for your workloads identify risks inherent in their operation and make informed decisions It enables your teams understanding of their roles in that success and helps you determine if they have what they need to succeed Its best practices support measuring success through the achievement of business outcomes understanding workload and operations health responding when outcomes are at risk and continuing improvement What are the design principles of Operational Excellence There are five design principles for Operational Excellence in the cloud Perform operations as codeIn the cloud you can apply the same engineering discipline that you use for application code to your entire environment You can define your entire workload applications infrastructure as code and update it with code You can implement your operations procedures as code and automate their operation by starting them in response to events By performing operations as code you limit humane error and enable consistent responses to events Make frequent small reversible changesDesign workloads to allow components to be updated regularly to increase the flow of beneficial changes into your workload Make changes in small increments that can be reversed if they fail to aid in identifying and resolving issues introduced into your environment without affecting customers when possible Refine operations procedures frequentlyAs you use operations procedures look for opportunities to improve them AS you evolve your workload evolve your procedures appropiately Set up regular Game Days to review and validate that all procedures are effective and that teams are familiar with them Anticipate failurePerform pre mortem exercises to identify potential sources of failure so that they can be removed or mitigated Test your failure scenarios and validate your understanding of their impact Test your response procedures to ensure that they are effective and that teams are familiar with their activities Set up regular Game Days to test workloads and team responses to simulated events Learn from all operational failuresDrive improvement through lessons learned from all operational events and failures Share what is learned across teams and through the entire organization 2022-04-20 00:11:32
海外TECH DEV Community The Ultimate List of VSCode Extensions https://dev.to/timwjames/the-ultimate-list-of-vscode-extensions-57ih The Ultimate List of VSCode ExtensionsVSCode is highly extensible and customizable Though VSCode is technically a text editor the extensions in this list will start to turn it into a feature rich IDE Getting StartedInstall VSCodeEnable settings sync CTRL Alternatively use the Settings Sync extension to sync your settings via GitHub gists GeneralGitHub Copilot Your AI pair programmer I for one welcome our robot overlords Note that the preview requires you to sign up for a waitlist GitHub Codespaces Cloud hosted development environments that allows you to access your projects from a browser Live Server Launch a development local Server with live reload feature for static amp dynamic pages Live Share Real time collaborative development Live Share Whiteboard Adds a real time collaborative whiteboard to Visual Studio Live Share sessions Remote SSH Open any folder on a remote machine using SSH Remote SSH Editing Configuration Files Edit SSH configuration files Remote WSL Open any folder in the Windows Subsystem for Linux WSL Cacher Code snippet manger via GitHub gists paid extension vscode spotify Use Spotify inside vscode requires a Spotify subscription ProductivityIntelliCode AI assisted IntelliSense Path Intellisense Autocomplete filenames Version Lens Shows the latest version for each package using code lens vscode faker Generate fake data for name address lorem ipsum commerce and much more Bookmarks Mark lines and jump to them Peacock Subtly change the workspace color of your workspace Output Colorizer Syntax highlighting for log files Bracket Pair Colorizer A customizable extension for colorizing matching brackets Note this is now a built in feature of VSCode add the following to your settings json editor bracketPairColorization enabled true editor guides bracketPairs true Image preview Shows image preview in the gutter and on hover vscode pdf Display pdf file in VSCode Code EditingPrettier General purpose code formatter Better Comments Improve your code commenting by annotating with alert informational TODOs and more I ve also configured it to highligh fixme and note Error Lens Improve highlighting of errors warnings and other language diagnostics Some people might find this too distracting but I think the trade off is worthwhile as it helps me quickly identify errors Also works with lots of other extensions linters and suggestions I configured it to set a short delay before showing the error Regex Previewer Regex matches previewer change case Quickly change the case camelCase CONSTANT CASE snake case etc of the current selection or current word Multiple cursor case preserve Preserves case when editing with multiple cursors Rewrap Hard word wrapping for comments and other text at a given column Hungry Delete Delete an entire block of whitespace or tab Tab Out Tab out of quotes brackets etc Code Spell Checker Spell check your code DotEnv Support for dotenv file syntax File ManagmentFile Utils A convenient way of creating duplicating moving renaming and deleting files and directories advanced new file Create new files with a context menu specify the file type and location I ve replaced my new file shortcut CTRL N to use this extension Scratchpads Create multiple scratchpad files for doodling while you re coding I ve set this to the shortcut CTRL ALT N GitGitLens Supercharge Git within VS Code Does a whole lot of Git related things too many to list here Git History View git log file history compare branches or commitsGit Graph View a Git Graph of your repository and perform Git actions from the graph GitHub Pull Requests Allows you to review and manage GitHub pull requests and issues Checkpoints Checkpoints used in between commits for keeping a local short term history of work in progress files like bookmarks in you undo stack gitignore Lets you pull gitignore templates quickly and easily DiagrammingDraw io Integration Integrates Draw io into VS Code Lets you use drawio png files which are both directly editable and easily exported I use the theme atlas PlantUML Rich PlantUML support for Visual Studio Code AppearanceThere are plenty of themes to choose from and this comes down to personal preference but this is what I m currently using One Dark Pro Atom s iconic One Dark theme for Visual Studio Code Material Icon Theme Material Design Icons for Visual Studio CodeMaterial Product Icons Product Icon Theme with Material Icons for VS Code Specialized ExtensionsFor pretty much any language out there you can find extensions for syntax highlighting linting formatter and so on I ll omit most of those sorts of extensions here and instead focus on some more interesting or unique extensions JavaScriptESLint Linting for JavaScript I know I said no linters etc but this is a must have npm npm support for VS Code Add jsdoc comments Adds simple jsdoc comments for the parameters of a selected function signature Wrap Console Log Wrap to console log by word or selection HTMLAuto Close Tag Automatically closes the tag when you type a space after the tag name Auto Rename Tag Renames the tag when you type a space after the tag name Icon Fonts Snippets for popular icon fonts CSSColorize CSS Help visualize css colors in files CSS Peak Quickly view the CSS properties of the current element AWSAWS Toolkit A collection of AWS tools for Visual Studio Code AWS Actions Provides AWS actions in the editor AWS CLI Configure Quickly access the AWS CLI config amp credentials files OtherDocker Makes it easy to create manage and debug containerized applications Remote Containers Open any folder or repository inside a Docker container Kubernetes Develop deploy and debug Kubernetes applications json Json for Visual Studio Code XML Tools XML Formatting XQuery and XPath Tools for Visual Studio Code YAML YAML Language Support by Red Hat with built in Kubernetes syntax support MarkdownFor writing blogs like this one VSCode has pretty good out of the box support for Markdown but there are a few useful extensions Markdown All in One All you need to write Markdown keyboard shortcuts table of contents auto preview and more markdownlint Markdown linting and style checking for Visual Studio Code Be sure to fine tune these rules to your liking Next StepsInstall tooling for your favorite language tool syntax highlighting intellisense linting formatting etc Get familiar with the command pallet CTRL SHIFT P You can search for pretty much anything you want to do extensions included Learn and configure your keyboard shorcuts Anything from the command pallet can be configured as a keyboard shortcut and you can set contextual shortcuts for specific languages etc VSCode has a built in snippet manager but you can download additional snippets for specific languages tools Configure your editor settings You can see what I m current using here Some notable configuration Set a ruler so your lines of code don t get too long editor rulers workbench colorCustomizations editorRuler foreground ff Make your cursor smooth editor cursorBlinking phase editor cursorSmoothCaretAnimation true Feel free to comment with any extensions or tips I have missed and I ll add them to the list 2022-04-20 00:08:25
海外TECH DEV Community 3D Tetris anyone ? https://dev.to/jlivingstonsg/3d-tetris-anyone--26mk sweden 2022-04-20 00:07:26
海外TECH DEV Community Por que Svelte? A próxima tendência em frameworks web. https://dev.to/marcell0lopes/por-que-svelte-a-proxima-tendencia-em-frameworks-web-kbi Por que Svelte A próxima tendência em frameworks web Primeiro o que éSvelte criado em Svelte éuma ferramenta para construir aplicações web com velocidade Ésimilar a frameworks JavaScript como React e Vue onde seu objetivo éfazer a vida do desenvolvedor mais fácil na hora de criar interfaces Porém tem uma diferença crucial Svelte converte seu app para JavaScript puro em build time ao invés de interpretar seu código em run time como os frameworks citados anteriormente Isso significa que vocênão paga os custos de performance e seu app criado com Svelte tem apenas o necessário de código para rodar sem nada extra sendo carregado pelo navegador Definição tirada do tutorial oficial do Svelte link Rich Harris o criador de Svelte recentemente foi contratado pela Vercel empresa criadora do famoso framework para React o Next JS e agora éfocado full time em desenvolver e aprimorar o Svelte e o SvelteKit SvelteKit épara o Svelte o que o Next épara o React ou Nuxt para o vue com sua equipe O que na minha opinião éum grande passo deixando o Svelte com uma cara muito menos “caseira Para muitas empresas a adoção de frameworks como React e Vue vem pela facilidade que os frameworks trazem claro mas principalmente pelo ecossistema rico e suporte full time financiamento e tudo mais que pode estruturar uma empresa como a Vercel por exemplo Em uma entrevista recente chamada The Future of Svelte O Futuro do Svelte Richard Harris descreveu seu projeto como um Framework Web e não um Framework JavaScript Acho muito interessante esse approach do svelte e espero fazer vocêentender por que não é“só JavaScript nos próximos tópicos Por que usar Svelte SvelteKit em primeiro lugar Nessa entrevista que citei Rich Harris diz “Não interessa o que vocêestácriando sua vantagem comparativa éessencialmente limitada em quão rápido vocêconsegue entregar as coisas E SvelteKit vai deixar vocêentregar as coisas mais rápido Eu acredito que ir de React para Svelte vai fazer com que escreva mais coisas mais rápido Nós temos toda uma tese sobre como Svelte éuma linguagem UI que foi criada explicitamente para solucionar esse problema e permitir vocêescrever coisas de maneira mais idiomática E éa mais pura verdade Quando vocêcomeça a construir com Svelte vocêsente a simplicidade de estar criando algo como seus primeiros projetos com HTML com toda a estabilidade e performance tanto em produção quanto para o desenvolvimento de um projeto seguindo todas a tendências atuais Li uma vez na internet que Svelte équase como um superset para HTML e eu adorei essa definição hahaha Ecossistema CrescenteHáuma postagem mensal no blog “What s new in Svelte que éregularmente preenchida com anúncios de novos projetos interessantes no ecossistema Svelte Acho que parte da razão pela qual esse éo caso éa empolgação atual em torno do Svelte mas estou convencido de que a outra parte tem a ver com a arquitetura técnica do Svelte que falaremos em outro tópico futuramente nessa lista O Svelte Fall Summit viu anúncios de várias bibliotecas criadas especificamente para serem usadas com Svelte como svelte cubed uma biblioteca de componentes three jssvelte fsm uma biblioteca de máquinas de estado finitovárias ferramentas de SSG Static Site Generation como Primo Plenti e Slinkity Alguns projetos open source demonstraram seu suporte para o Svelte durante esse Summit juntamente com vest uma estrutura para validação de formuláriosunplugin icons uma biblioteca que permite o acesso a dezenas de milhares de ícones SVGE todo esse ecossistema sótende a crescer conforme o número de usuários do Svelte também cresce Svelte StoresSvelte tem uma abordagem diferente do React quando se trata do estado global do aplicativo Embora o React tenha uma posição muito aberta sobre esse tópico oferecendo uma variedade de utilitários que um desenvolvedor precisa integrar corretamente como achar melhor Svelte oferece uma abordagem padrão na forma de SvelteStores que parecem uma extensão natural para módulos JavaScript Na minha opinião isso resulta em uma maior produtividade ao desenvolver com Svelte jáque o estado global da aplicação éum recurso tão comum que acaba sendo reinventado desnecessariamente muitas vezes em outros frameworks Svelte éum COMPILADORAo invés de ser uma biblioteca ou framework como seus concorrentes Svelte éum compilador Ele pega seu código Svelte e compila ele em JavaScript puro sem adicionar ou remover nada Quando seu navegador carregar uma página feita com Svelte ele não precisaráimportar bibliotecas externas ou qualquer coisa do tipo e o tamanho do bundle final enviado para o navegador ésignificantemente menor A Reatividade do SvelteNo React a reatividade éfortemente acoplada àconfiguração do estado e renderização da UI No Svelte a reatividade émais fundamental e pode ser aplicada a qualquer valor JavaScript a qualquer momento independente das renderizações do componente Outra grande diferença em como tratam a reatividade pode ser visto na forma como uma árvore de componentes érenderizada em cada um deles No React uma atualização no estado de um componente pai pode causar uma nova renderização de seus componentes filhos Para alcançar um desempenho de renderização mais otimizado os desenvolvedores precisam desativar essas renderizações e controlá las com hooks como o useMemo por exemplo No Svelte para que as atualizações sejam propagadas para a interface o desenvolvedor precisa ativar essas atualizações explícitamente o que torna o comportamento padrão do Svelte mais eficiente que o React Curva de aprendizadoEm todas as pesquisas que fiz sobre Svelte e incluindo minha própria experiência mostra como Svelte tem uma curva de aprendizagem muito tranquila Além da ótima documentação e do tutorial que o próprio Svelte disponibiliza como um playground épossível encontrar uma quantidade razoável de conteúdo na internet se souber falar Inglês Sua sintaxe édescomplicada e acredito que a barreira ébem menor se for seu primeiro framework entre React Vue ou Angular Depois de um tempo codando Svelte me senti um pouco “enguiçado nos meus projetos React SvelteKitO SvelteKit éum framework para criar aplicações web de todos os tamanhos com uma linda experiência de desenvolvimento e um sistema de rotas baseados em arquivos flexível Ao contrário te SPAs single page apps SvelteKit não compromete o SEO aprimoramento progressivo ou a experiência do primeiro carregamento ーmas ao contrário dos SSR Server rendered apps tradicionais a navegação éinstantânea para aquele feel de aplicativo Descrição retirada do site oficialEm outras palavras o SvelteKit estápara o Svelte assim como o Next estápara o React Entretanto SvelteKit ainda estásendo preparado para sua versão mas mesmo assim jáentrega muito Acredito que com Rich Harris trabalhando ao lado da equipe do Next esse lançamento do SvelteKit pode ser ainda mais poderoso do que jápromete Ergonomia SvelteA ergonomia de uma ferramenta de desenvolvimento éo principal fator determinante na experiência do desenvolvedor e nesta categoria o Svelte estáa frente de qualquer outra ferramenta de criação de UIsNo mundo React a mudança de componentes baseados em classes para componentes funcionais com hooks foi saudada como uma grande melhoria na ergonomia de escrever um aplicativo React Da mesma forma agora argumenta se que ao passar de React with Hooks para Svelte espera se ver melhorias semelhantes àergonomia Svelte manteve a natureza declarativa de seus antecessores mas oferece melhorias como Menos linhas de código boilerplateHáuma melhor composição do código da interface do usuário com as outras partes da aplicaçãoTendo isso em mente pode se argumentar que Svelte éa próxima geração de frameworks para UI PerformanceAcho que a maioria dos tópicos acima são bem pessoais e refletem a minha visão ao usar Svelte Entretanto algo que éindiscutível éseu desempenho Ser um compilador abriu Svelte para melhorias de desempenho que estão simplesmente fora do alcance de bibliotecas e frameworks tradicionais A melhoria óbvia éo fato de que o Svelte não envia seu próprio pacote JS de biblioteca de interface do usuário para o navegador como citei anteriormente Quando um usuário visita a página final o que éenviado para ele éa quantidade exata de código JS para os recursos dinâmicos do aplicativo e só Durante o Svelte Summit vimos as comparações do mesmo aplicativo sendo criado no Svelte React e Vue e o aplicativo Svelte supera as outras bibliotecas em todas as métricas incluindo Code Size Bundle Size First Content Full Paint e speed index Um fator importante na performance do Svelte no navegador éo fato de que o Svelte acabou com a noção de um virtual DOM Reduzindo seu consumo de memória em relação a outros frameworks A abordagem sistemática da equipe da Svelte para alcançar os ótimos resultados de desempenho em geral também évisível na maneira como eles abordaram os pacotes NPM e o gerenciamento de suas dependências o que apenas mostra uma enorme quantidade de atenção e cuidado Obrigado por ler atéaqui espero que tenha gostado do conteúdo e do Svelte Quaisquer dúvidas estou sempre aberto para contato Obrigado Linkedin Twitter marcello dev br 2022-04-20 00:06:24
Apple AppleInsider - Frontpage News Deal alert: save $600 on this Intel 13-inch MacBook Pro with 16GB RAM (limited supply) https://appleinsider.com/articles/22/04/20/deal-alert-save-600-on-this-intel-13-inch-macbook-pro-with-16gb-ram-limited-supply?utm_medium=rss Deal alert save on this Intel inch MacBook Pro with GB RAM limited supply If you re in the market for a cheap MacBook Pro there are plenty of reasons to go ahead and pull the trigger A sleeker quicker laptop than what you might already have in your arsenal Plus with this closeout Intel model for off you ve got yourself a reliable workstation that you can take just about anywhere Simply Mac s best MacBook deals are going on nowThere have been plenty of deals surrounding various MacBook Pro models as of late but we ve got a great option that s heavily discounted if you re looking to add a new Apple product to your collection or add some more processing power to what you re currently working with Be sure to act fast because this offer likely won t last long Read more 2022-04-20 00:43:22
海外TECH CodeProject Latest Articles Using GFX in PlatformIO https://www.codeproject.com/Articles/5327404/Using-GFX-in-PlatformIO platformio 2022-04-20 00:31:00
金融 ニッセイ基礎研究所 監査等委員会設置会社とは何か-監督と監査の違い https://www.nli-research.co.jp/topics_detail1/id=70932?site=nli 他方、監査等委員会設置会社においては、株主総会において、監査等委員である取締役を、取締役とは別に選任する会社法条項。 2022-04-20 09:20:21
海外ニュース Japan Times latest articles New surrender deadline in Mariupol as West promises Ukraine more arms https://www.japantimes.co.jp/news/2022/04/20/world/russia-ukraine-more-arms/ New surrender deadline in Mariupol as West promises Ukraine more armsThousands of Russian troops backed by artillery and rocket barrages were advancing in what Ukrainian officials called the Battle of the Donbas 2022-04-20 09:10:01
ニュース BBC News - Home Ukraine war: Kyiv's allies pledge more weapons to help win war https://www.bbc.co.uk/news/world-europe-61155035?at_medium=RSS&at_campaign=KARANGA ukraine 2022-04-20 00:13:37
ニュース BBC News - Home Prince Harry says he is making sure the Queen is protected https://www.bbc.co.uk/news/uk-61157345?at_medium=RSS&at_campaign=KARANGA people 2022-04-20 00:29:56
北海道 北海道新聞 ロシア軍が攻勢の東部、激戦続く ロケット弾で4人死亡 https://www.hokkaido-np.co.jp/article/671671/ 参謀本部 2022-04-20 09:07:00
北海道 北海道新聞 秋篠宮ご夫妻、伊勢へ出発 「皇嗣」報告、3府県訪問 https://www.hokkaido-np.co.jp/article/671670/ 三重県伊勢市 2022-04-20 09:06:00
マーケティング MarkeZine 2022年1~3月、最も再生された動画やチャンネルは?【インフルエンサーパワーランキング】 http://markezine.jp/article/detail/38820 年月 2022-04-20 09:15:00
マーケティング AdverTimes VUCAの時代に消費者中心経営を推進する 鍵はCMOとCIOの連携にあり!? https://www.advertimes.com/20220420/article381961/ 2022-04-20 01:00:13
マーケティング AdverTimes 歴代「86」3台によるドリフトとドローンの競演、限界ギリギリの撮影に挑戦した「GR86」の新コミュニケーション https://www.advertimes.com/20220420/article382167/ thefr 2022-04-20 00:49:18
マーケティング AdverTimes 「本場イタリアより美味しい」と話題沸騰。三重県発の感動パスタ〜大手メーカー勤務から星付きレストランを経て開業。辿りついた「幸せの食卓」〜 https://www.advertimes.com/20220420/article372038/ 2022-04-20 00:30:56

コメント

このブログの人気の投稿

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