IT |
気になる、記になる… |
「iOS 16」は大規模なデザインの刷新はないものの、通知機能の大幅な改善や健康関連の新機能が特徴に?? |
https://taisy0.com/2022/04/10/155601.html
|
apple |
2022-04-10 13:22:46 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Python v2.7でバイナリデータ解析 |
https://qiita.com/kohmashi/items/7f69228c1186ed13c6ce
|
pythonv |
2022-04-10 22:48:03 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonでPDFファイルを結合・分割・並び替えアプリ作成 |
https://qiita.com/daifuku10/items/d1fc52590b3a515565c0
|
結合 |
2022-04-10 22:09:13 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【Rails】1つのform_withで複数のテーブルに保存をかける |
https://qiita.com/iloveomelette/items/88c81dafa97500130c70
|
formwith |
2022-04-10 22:28:50 |
海外TECH |
MakeUseOf |
The 6 Best Barre Workout YouTube Channels for Ultimate At-Home Fitness |
https://www.makeuseof.com/barre-fitness-youtube-channels/
|
The Best Barre Workout YouTube Channels for Ultimate At Home FitnessBarre blends yoga Pilates and ballet to help increase overall body strength and you can use these free YouTube workouts to exercise from your home |
2022-04-10 13:45:13 |
海外TECH |
MakeUseOf |
How to Fix a "Read Only" External Hard Drive on Mac |
https://www.makeuseof.com/tag/solving-the-read-only-external-hard-drive-problem-on-your-mac/
|
How to Fix a amp quot Read Only amp quot External Hard Drive on MacIs your external hard drive showing up as amp quot read only amp quot on your Mac Learn how to fix a locked Mac drive and get it working again |
2022-04-10 13:45:14 |
海外TECH |
MakeUseOf |
How Many Miles Does a Tesla Last Over Its Lifetime? |
https://www.makeuseof.com/how-many-miles-does-a-tesla-last-over-its-lifetime/
|
How Many Miles Does a Tesla Last Over Its Lifetime Thinking about buying a Tesla Something you ll want to know is how long the battery lasts and how many miles you can drive over the car s lifetime |
2022-04-10 13:15:14 |
海外TECH |
DEV Community |
Open-Source MUI Template - Argon React |
https://dev.to/sm0ke/open-source-mui-template-argon-react-4h33
|
Open Source MUI Template Argon ReactHello Coders This article presents an Open Source MUI Template crafted and released for free by Creative Tim Argon Dashboard React can be downloaded and used in commercial projects or eLearning activities For newcomers MUI is a popular components library for React a leading JS library used to code interactive user interfaces Thanks for reading Content provided by Admin DashboardsArgon MUI Dashboard LIVE DemoArgon MUI Dashboard Product pageMore Free Templates crafted by Creative TimStart your development with a Dashboard for React React Hooks Create React App and Material UI It is open source and free and it features many components that can help you create amazing websites Argon Dashboard Material UI is built with over individual components giving you the freedom of choosing and combining All components can take variations in color that you can easily modify using JSS files This Dashboard is coming with pre built examples so the development process is seamless switching from our pages to the real website is very easy to be done Every element has multiple states for colors styles hover and focus that you can easily access and use Example Pages If you want to get inspiration or just show something directly to your clients you can jump start your development with our pre built example pages Thanks for reading For more resources feel free to access More Free Dashboards crafted in Django Flask and ReactMore Admin Dashboards a huge index with products |
2022-04-10 13:34:54 |
海外TECH |
DEV Community |
Feedback portfilio#6 |
https://dev.to/baraa_baba/feedback-portfilio6-54p4
|
Feedback portfilio Finally after month I finished the first version of my website of course I will improve it but I really want your feedback on it I really enjoyed the process and I am now ready to share it the website |
2022-04-10 13:24:12 |
海外TECH |
DEV Community |
How to Setup a Node API with SWC Compiler and ESLint |
https://dev.to/franciscomendes10866/how-to-setup-a-node-api-with-swc-and-eslint-1h5d
|
How to Setup a Node API with SWC Compiler and ESLintAs our APIs get a larger code base consequently the time it takes to build and even hot reload will be longer By the way who ever made a small change and then had to wait almost three seconds for the API to hot reload Or even making several changes in a short amount of time and then having problems with the process running This is where compilers like SWC help us whether during the development of our applications or during the compilation and bundling process In today s article we are going to setup an API in TypeScript and then we will proceed to configure the SWC together with ESLint During the development of the application we will want the SWC to watch the changes we make to our TypeScript source code as soon as it has any changes it will transpile to JavaScript from the same file we made the changes Finally we will use nodemon to watch the changes that occur in the transpiled code and we will hot reload the API as soon as there is a change What is the advantage during the development of our API Most of the articles I read use nodemon to watch the code and as soon as there is a change they build the entire API Even if SWC is fast it s always good to have good approaches When we need to put the API into production just do the regular process just run the build command and then we would have to run the start command Project SetupFirst let s start with the usual one which is to create the project folder mkdir swc configcd swc configNext initialize a TypeScript project and add the necessary dependencies npm init ynpm install D typescript types nodeNext create a tsconfig json file and add the following configuration to it compilerOptions target es module es allowJs true removeComments true resolveJsonModule true typeRoots node modules types sourceMap true outDir dist strict true lib es baseUrl forceConsistentCasingInFileNames true esModuleInterop true experimentalDecorators true emitDecoratorMetadata true moduleResolution Node skipLibCheck true paths routes src routes middlewares src middlewares include src exclude node modules As you may have noticed we already defined some things in our tsconfig json that I don t usually define in my articles such as creating a path alias and using a very current version of ES With the configuration of our project in TypeScript we can now install the necessary dependencies In this project I will use the Koa framework however this setup works with many others such as Express Fastify etc dependenciesnpm install koa koa router koa body dev dependenciesnpm install D types koa types koa routerNow with these base dependencies we can create a simple api starting with the entry file src main tsimport Koa from koa import koaBody from koa body import router from routes index const startServer async Promise lt Koa gt gt const app new Koa app use koaBody app use router routes return app startServer then app gt app listen catch console error Then we can create our routes src routes index tsimport KoaRouter from koa router import Context from koa import logger from middlewares index const router new KoaRouter router get logger ctx Context void gt ctx body message Hello World export default routerAnd a simple middleware src routes index tsimport Context Next from koa export const logger async ctx Context next Next Promise lt Next gt gt const start Date now const ms Date now start console log ctx method ctx url ms ms return await next With this we can now move on to the next step which will be the SWC configuration SWC SetupNow we can install the necessary dependencies to configure our SWC npm install D swc cli swc core chokidar nodemon concurrentlyNext let s create a swcrc file and add the following configuration to it jsc parser syntax typescript tsx false decorators true dynamicImport true target es paths routes src routes middlewares src middlewares baseUrl module type commonjs Now let s add the necessary scripts to our package json scripts dev concurrently npm run watch compile npm run watch dev watch compile swc src w out dir dist watch dev nodemon watch dist e js dist main js build swc src d dist start NODE ENV production node dist main js clean rm rf dist In the watch compile script swc will automatically transpile the code using chokidar While the watch dev script uses nodemon to hot reload the application When the dev script is executed concurrently executes both commands watch compile and watch dev at the same time so that swc transpiles the TypeScript code to JavaScript and nodemon hot reloads the API when notices a change With the SWC configured we can move on to the ESLint configuration ESLint SetupFirst we will install ESLint as a development dependency npm install D eslintThen we will initialize the eslint configuration by running the following command npx eslint initThen in the terminal just make the following choices Now we can go back to our package json and add the following scripts scripts lint eslint ext ts src lint fix eslint ext ts src fix Finally just create the eslintignore file and add the following dist ConclusionI hope you enjoyed today s article and that it was useful to you even if it is to try something new Finally I leave here the link of a repository in which I have a similar configuration but using Express See you |
2022-04-10 13:20:35 |
海外TECH |
DEV Community |
use `console.time()` and `console.timeEnd()` to measure the time taken to execute a piece of code, in JS |
https://dev.to/theabhayprajapati/use-consoletime-and-consoletimeend-to-measure-the-time-taken-to-execute-a-piece-of-code-in-js-j4
|
use console time and console timeEnd to measure the time taken to execute a piece of code in JSconsole time time console log Hello World console timeEnd time Hello World time msHere in JavaScript we are having cool method called as console time and console timeEnd which is used to measure the time taken to execute a piece of code start with writing the code in console time time here are time is the name of the variable which we will use to store the time taken to execute the codeStart writing your complex code in console log Hello World Now I ll end the code with console timeEnd time and we will get the time taken to execute the codeNote console time and console timeEnd must have same string name which is time here It is really handy when you are learning Algorithums and you want to measure the time taken to execute the code Let s try it out let nums it s empty array for let i i lt i making a loop over million times and pushing it nums push Math floor Math random sorting the arrraynums sort function a b return a b Solving by Linear Search Algo let LinearSearch function nums target console time linear for let i i lt nums length i if nums i target console timeEnd linear return i console timeEnd linear return find million and LinearSearch nums console log LinearSearch nums linear ms Example with Binary Search Algo Make a function of binary searchlet nums let target let BinarySearch function nums target console time binary let start let end nums length while start lt end let mid Math floor start end if nums mid target console timeEnd binary return mid else if nums mid lt target start mid else end mid console timeEnd binary return console log BinarySearch nums binary ms See it s become so handy far a beginner to understand the concept of time taken by a function 🫂Thanks for reading If you have any questions please feel free to contact me comment on the post below or reach on me on Twitter Abhayprajapati Github theabhayprajapati |
2022-04-10 13:16:14 |
海外TECH |
DEV Community |
How top and translate work together to centre a div |
https://dev.to/nicm42/how-top-and-translate-work-together-to-centre-a-div-4d6n
|
How top and translate work together to centre a divI ve known for a long time that centring an absolutely positioned div requires writing top left translate but until this week I never considered how it works I found out by accident and it s so obvious once you know It s just that percentages confuse things and make it not obvious when you don t know An absolutely positioned divIf you absolutely position a div with position absolute then it will be positioned relative to its nearest relatively positioned parent And that position will be the top left Which is top and left If you want to move it down then top px will move it down by px And top px will move it up by px Moving the div by top will move it down since it s a positive number And the refers to the size of its relatively positioned parent Let s say that parent is px tall Then px So it s moving the div down by px Why isn t it centred Logically moving a div down by half its parent s height would centre it vertically But it s not It s a bit too far down The answer lies in the position it started in It started at the top By which I mean that the top of the div was at the top of its parent However much we move it down it ll position it based on the top of the div So top positions the top of the div of the way down its parent How does transform translate move it up We know that to vertically centre the div transform translateY works But how The answer lies in what is a percentage of Unlike with top which was a percentage of the parent translate is a percentage of the div itself That is moving it up by half the height of itself Say the div is px tall will move it up px Remember how top positioned the top of the div halfway down its parent If we think about it what we want to do to vertically centre it is to move it up by half its height so the mid point of the div is aligned with the mid point of the parent Which is exactly what transform translateY is doing It s obvious once you understand what those percentages are a percentage of And easier to see the taller your absolutely positioned div is What about horizontal centring It s exactly the same The div starts off at left the left edge of the div is at px across on its parent left moves it so its left edge is of the way across transform translateX moves it back by of the its width Always ask what is it a percentage ofThis is true in life as well as in CSS |
2022-04-10 13:13:29 |
海外TECH |
DEV Community |
When the Captain Turns the Helm: a 7 Steps Migration |
https://dev.to/otomato_io/when-the-captain-turns-the-helm-a-7-steps-migration-10cc
|
When the Captain Turns the Helm a Steps MigrationShall we continue with sea allegories I made an amazing picture to attract attention Large organizations are often quite conservative when it comes to upgrading to the latest software versions Of course it is very important to be sure that everything works clearly and correctly especially considering Helm s wide use in CI Fear of migration is not so unfounded We re not sailors onboard the RMS Titanic who didn t have binoculars are we You should turn the helm understanding which way the ship will turn But first things first Helm v became legacy in late but there are companies that still use version in their practices these days There are not many short and clear summaries on the Internet about migrating to Helm v Well in this note the author will try to break everything down into points Stage BackupBackup all the existing releases It s important to take a backup of all the releases before starting with the migration Though the first step of migration won t delete Helm v s release information it s always better to take a backup By default Helm v stores its releases data as ConfigMaps in kube system namespace of the cluster This command is to list Helm v releases kubectl get configmap n kube system l OWNER TILLER Helm v changed the default release information storage to Secrets in the namespace of the release How to list Helm v releases kubectl get secret namespace my namespace grep sh helm releaseUsing helm backup plugin by Maor maorfr Friedman The helm backup is a Helm v plugin which can take backup of releases and also has the ability to restore them Here is how it achieves the backup It finds the storage method used by Tiller then backs up the ConfigMaps along with release names as a tar file While doing the restore it first applies the ConfigMaps Then it tries to find the release with STATUS DEPLOYED label gets the manifest YAML for that release and then applies it Another way is to just backup all the ConfigMaps which hold the release information The easiest way to do it is to run the following command kubectl get configmaps namespace kube system selector OWNER TILLER output yaml gt helm backup cm yaml Stage Converting releasesWhen we install or update a chart it creates one Helm release in the cluster It is stored as a ConfigMap within the cluster in case of Helm v This makes it possible to do the rollback and keeps a history The format in which Helm v stores the release information is different from v v uses Secrets predominately as a storage The to plugin written by Martin Hickey will do the work of converting these releases to the new format ️An important note about access to the tiller namespace for required RBAC roles If Tillerless setup then a service account with the proper cluster wide RBAC roles will need to be used If not used forbidden errors will be thrown when trying to access restricted resources Install to plugin helm plugin install Stage Dumping Helm v Tiller releases It is good to have this list for your confidence helm tiller run helm ls max sed n p awk FNR gt print gt releases log kubectl n kube system get configmap l OWNER TILLER STATUS DEPLOYED awk FNR gt print cut f d gt releases log Stage Launching an automated migration with a bash script bin bashhelm cmd helm if x which helm gt dev null then helm releases helm ls all short else echo helm is not installed or not present in PATH Using kubectl to get list of releases …fiecho e Found the following releases n helm releases n for release in helm releases do helm cmd to convert dry run release read p Convert release Y n user choice if user choice Y then echo Converting release helm cmd to convert release echo Converted release successfully else echo Skipping conversion of release fidoneThe original script written by Bhavin Gandhi Stage Resolving Kubernetes API validation problemHelm v validates all of your rendered templates against the Kubernetes OpenAPI schema This approach supposes your rendered templates are validated before they are sent to the Kubernetes API That means any invalid fields will trigger a non zero exit code and fail the release Lack of fields will lead to the same The labels and annotations which had not been added to migrated Kubernetes objects should be added manually kubectl n NAMESPACE label deployment l app kubernetes io instance RELEASE app kubernetes io managed by Helm kubectl n NAMESPACE annotate deployment l app kubernetes io instance RELEASE meta helm sh release name RELEASE meta helm sh release namespace NAMESPACE ️Example of needed labels amp annotations which are valid for stage metadata labels app kubernetes io instance Release Name app kubernetes io managed by Helm annotations meta helm sh release name Release Name meta helm sh release namespace Release Namespace If before we relied entirely on the version of Helm then we have Tiller installed in our cluster so we may omit tiller out cluster flag The safest way of course to start with dry run flag for simulation only Stage Checking out whether it was successfulHelm v now behaves similarly to kubectl With Helm v you could query all releases across all namespaces simply by typing helm ls With Helm v running helm list will only show releases in the default namespace just like kubectl get pods would To list releases in any non default namespace you must supply the n argument and the namespace just as you would when using kubectl helm list n lt namespace gt Stage Helm v cleanupAs we did not specify delete v releases flag Helm v releases information was left in tact it can be deleted with helm to cleanup later on Stage Bye bye TillerAfter all we may remove Tiller from our cluster kubectl delete deployment tiller deploy namespace kube system Note A Check your CIs CLI commands renamedSome CLI commands have been renamed in Helm vhelm delete is renamed to helm uninstall but the first one is still retained as an alias to helm uninstall Also in Helm v the purge flag removes the release configs In Helm v this feature is enabled by default To retain the previous behavior you can use the command helm uninstall keep history helm inspect command is renamed to helm show helm fetch command is renamed to helm pull Note B Check your YAMLsWhen chart s Kubernetes apiVersion is set to v it signifies that it is using v schema that is introduced in Helm v Therefore apiVersion v is not rendered in Helm v because of this If you need more compatibility stay on v here Please see my post on LinkedIn for references Pic source Padok Painless migration to you Happy charting |
2022-04-10 13:09:44 |
海外TECH |
DEV Community |
Generative minimal CSS patterns 🪩 |
https://dev.to/bryce/generative-minimal-css-patterns-1ekf
|
Generative minimal CSS patterns 🪩I m a huge fan of Okan Uckun s work with minimal line designs they d make for a great tattoo one day Here are a couple of examples Their art is subtle and beautiful amp I m a sucker for tasteful minimal design I wanted to replicate some of the simpler designs with CSS and allow them to generate themselves with some JS and this was the result bryce io tatterns short for tattoo patterns brycedorn tatterns Generative minimal tattoo patterns 🪩 FeaturesClicking on a pattern will enlarge it amp encode its randomized parameters in the URL so you can share bookmark them Here s one I like Hovering over a pattern will pause the auto update timer Pressing spacebar will regenerate all patterns at once Tech notespreact picostyle for Kb total build sizeFast performant animations wmr for near instant builds amp native TS support Some things I learned along the way Inverse logarithm for hover state I wanted a way to have a consistent hover experience across different sizes without re rendering a pattern The solution I ended up with uses transform scale with a scale percentage relative to each pattern diameter The calculation was simple in the end though I had to plot a line by hand to get to it It ended up being Math log maxDiameter diameter bringing me back to my calculus geometry days wmr is really nice will be using it in the future I ll never use query string or any other library over URLSearchParams again Smooth animations how Relying primarily on transform translate and transition transform would overload the GPU Instead I used position which trades smoother more expensive transition animations for much cheaper animations After experimenting with both methods this performed better on both my M Macbook Pro and an older Intel Macbook Air when regenerating the full page of patterns The browser is recalculating layout each time a pattern s internal state is updated but this calculation is still cheaper than hundreds or thousands of individual GPU threads to handle complex translations I may do more research into this as it was interesting how relying on browser recalculation was faster than offloading to GPU which I presumed would be faster What s next Not really sure just made this for fun I may add more geometry for additional pattern possibilities Maybe one day I ll use it for a gallery wall with a projector Or make some NFTs Who knows Thanks for reading and share any patterns that you like in the comments |
2022-04-10 13:06:42 |
海外TECH |
DEV Community |
Late nights or early mornings? |
https://dev.to/tmchuynh/late-nights-or-early-mornings-3b1d
|
Late nights or early mornings Do you rather work in the cold night air Or wake up bright and early with a cup of coffee in your hand Before everyone is awake Or after everyone is asleep I personally can never make up my mind sometimes it s one and then there are phases when it s the opposite Happy coding |
2022-04-10 13:06:11 |
海外TECH |
DEV Community |
Render HTML tag in Next JS or React JS |
https://dev.to/agiksetiawan/render-html-tag-in-next-js-or-react-js-3cfe
|
Render HTML tag in Next JS or React JSIf we use WYSIWYG Editor in our content usually it will be save as HTML in Database render HTML tag in React Next JS very simply with dangerouslySetInnerHTML Example const content lt b gt Test Content lt b gt lt p dangerouslySetInnerHTML html content gt lt p gt |
2022-04-10 13:05:15 |
海外TECH |
DEV Community |
GitHub Action Schedules |
https://dev.to/tmchuynh/github-action-schedules-ad5
|
GitHub Action Schedules Table of ContentsGitHub ActionsGitHub Actions Schedules GitHub ActionsGitHub actions was launched in to help developers automate their workflows and goes beyon the typical testing building and deploying It supports C C C Java JavaScript PHP Python Ruby Scala and TypeScript GitHub actions brings automation into the development cycle through event driven triggers and can range from creating a pull request for building a new brand in a repository All GitHub actions are handled via YAML files stored in github workflows directory Every workflow consists of Events triggers that start the workflowJobs steps that executeSteps individual tasks that run commandsActions a command that s executedRunners a GitHub Actions serverGitHub actions is completely free and available to use on any public repository and self hosted runner With the free plan there is MB of workflows GitHub Action SchedulesThe word schedule defines when your workflow runs on Let s take a look at this name run this thing every minuteson schedule cron When you type this into your YAML file a blue squiggly line will appear below If you hover your mouse over this area and your cursor turns into the question mark hook icon you will get a pop up with the schedule you ve set In this case it would say Runs every hour on the hour Actions schedules run at most every minutes If you want to change the schedule to your needs the asterisks work like so ┬┬┬┬┬││││└ーWeekday Sun Sat │││└ーMonth ││└ーDay │└ーHour └ーMinute OperatorDescription all values separate individual values a range of values divide a value into stepsHere are some examples that may helpExampleDescription every hour every mins every hours every week Mon Sat at pm every Sat and Sun on am every Sunday midnight rebootevery rebootEach is considered an allotted time period and are based in UTC timezone Be careful because some of you may need to do some timezone conversions Check out these articles by kalashin and himanshugarg Using Github Actions To Run Scheduled Jobs Kinanee Samson・Dec ・ min read programming productivity github Schedule Tasks Using GitHub Actions Himanshu Garg・Oct ・ min read github devops linux bash Happy coding |
2022-04-10 13:04:26 |
海外TECH |
DEV Community |
Git & GitHub: The Best Friends |
https://dev.to/tmchuynh/git-github-the-best-friends-4b8f
|
Git amp GitHub The Best Friends Table of ContentsWhat is version control What is Git What is GitHub Other Articles What is version control Version control is what helps developers track and manage changes in a project s code As a software project grows it becomes that more crucial to have quality version control Version control allows all the developers on the project to safely work on their portion of the project through what is called as branching and merging This way my work won t get in the way of your work and his work won t get confused with hers Once the developer s portion of the code is working properly he or she is able to merge it back to the main source code to make it official What is Git Git is the most widely used modern distributed version control system It is an open source project that was developed in by Linus Torvalds Linus also created the Linux operating system kernel A number of software projects including open source rely on Git for version control This means the entire codebase and history is available on every developer s computer which allows for easy branching and merging Git focuses on file content and is not fooled by the names of the files unlike other version control software Git has also been designed with the integrity of managed source code as a top priority Though Git can be said to be difficult to learn Git is a very well supported open source project that is widely adopted and attractive for countless of reasons It has the functionality performance security and flexibility that most teams and individual developers need It is a tool with power to increase any developer s development speed Helpful LinksWhat is Git Explained in Minutes What is Git and How to Use ItGit Crash Course for BeginnersUnderstanding GitPro GitVersion Control with Git What is GitHub GitHub is a company that offers a cloud based Git repository hosting service This makes it easier for software teams and individuals to use Git The GitHub service was developed in and launched in by Tom Preston Werner Chris Wanstrath P J Hyett and Scott Chacon GitHub Inc was originally a flat organization with no middle managers With GitHub s user friendly interface Git became user to use Anyone is able to sign up host a public repository for free and even make use of their GitHub pages Students get the GitHub Student Developer Pack with their edu emails with many discounts and perks from various companies while they are a student Using Git couldn t get easier Helpful LinksWhat is GitHub What is GitHUb and How to Use itIntroduction to GitHubGitHub TutorialBeginner s Guide to Using Git and GitHubGit vs GitHub What s the difference and how to get started with both Other ArticlesCheck out these other amazing articles by ericawanja and aleksandrhovhannisyan Git and GitHub for beginners Ericawanja・Nov ・ min read beginners programming git github Getting Started with Jekyll and GitHub Pages Your First Website Aleksandr Hovhannisyan・Mar ・ min read jekyll github webdev Happy coding |
2022-04-10 13:04:12 |
海外TECH |
DEV Community |
How to Learn Data Science For Free?? |
https://dev.to/yaswanthteja/how-to-learn-data-science-for-free-1c03
|
How to Learn Data Science For Free How Should I Learn for Data Science I am assuming that you are a complete beginner in Python So I will start the learning path from scratch For our convenience I have divided the whole learning path into different steps So that we can easily move forward step by step and achieve your learning goal I will also mention the resources to learn the different topics of Python So this article is a complete guide for your learning But before starting the learning path I would like to discuss why Python is good for Data Science I know you already knew this…that s why I will not bore you with so much detailed explanation I will only explain why I like Python for Data Science Why Python is Good for Data Science The most appealing quality of Python is that anyone who wants to learn it even beginners can do so quickly and easily Unlike other programming languages such as R Python excels when it comes to scalability And the most important thing is that Python has a wide variety of data analysis and data science libraries pandas NumPy SciPy StatsModels and scikit learn Python also has a huge community That means there is a huge Python community that can help you when you are stuck at some point So these are the main reasons I prefer Python for data science Now let s move to your question “What Should I Learn in Python for Data Science and start with the first step Step Learn Python BasicsYou have to start with learning Python Basics when I say “Python Basics …you might be thinking about what exact topics you have to learn Right So don t worry…I am going to list the topics which you have to learn in this step So that you will not be confused about topics In Python Basics learn the following topics Installing Python amp Python EnvironmentNumbersStringsListStandard Input OutputBasic commands in PythonIf then else statementLoopsFunctionsVariable ScopeDictionarySetsClassesMethods amp AttributesModules amp PackagesList ComprehensionMap Filter and LambdaDecoratorsFile HandlingThe list is long…but these are very easy to grasp topics You can learn these topics within a week if you plan your learning accurately Now I have discussed the topics…it s time to discuss the resources to learn Python Basics Python for Everybody Specialization CourseraIntroduction to Python Programming Udacity Free Course The Python Tutorial PYTHON ORG Python Tutorial MLTUTIntroduction To Python Programming Udemy by Avinash Jain Step Learn Python Libraries for Data SciencePython has a rich set of libraries to perform data science tasks At this step you have to learn about these libraries Libraries are the collection of pre existing functions and objects You can import these libraries into your script to save time If you want to know the differnce between Differences Between Python Modules Packages Libraries and Frameworks click the link belowDifferences Between Python Modules Packages Libraries and FrameworksPython has the following libraries Numpy NumPy will help you to perform numerical operations on data With the help of NumPy you can convert any kind of data into numbers Sometimes data is not in a numeric form so we need to use NumPy to convert data into numbers Pandas pandas is an open source data analysis and manipulation tool With the help of pandas you can work with data frames Dataframes are nothing but similar to Excel files Matplotlib Matplotlib allows you to draw a graph and charts of your findings Sometimes it s difficult to understand the result in tabular form That s why converting the results into a graph is important And for that Matplotlib will help you Scikit Learn Scikit Learn is one of the most popular Machine Learning Libraries in Python Scikit Learn has various machine learning algorithms and modules for pre processing cross validation etc So these are the libraries that you have to learn at this step Now let s see the resources to learn these Python Libraries Resources for Learning Python LibrariesNumPy Tutorial by freeCodeCampExploratory Data Analysis With Python and Pandas Guided Project Applied Data Science with Python Specialization by the University of MichiganNumPy user guidepandas documentationMatplotlib Guidescikit learn Tutorial Step Learn basic Statistics with PythonStatistical knowledge is essential for data science Knowledge of statistics will give you the ability to decide which algorithm is good for a certain problem Statistics knowledge includes statistical tests distributions and maximum likelihood estimators All are essential in data science statsmodels is a popular Python library to build statistical models in Python Statsmodels is built on top of NumPy SciPy and matplotlib and contains advanced functions for statistical testing and modeling Resources to learn Statistics with PythonPractical Statistics UdacityStatistics with Python Specialization University of MichiganFitting Statistical Models to Data with Python CourseraStatistics Fundamentals with Python DatacampLearn Statistics with Python Codecademy Step Learn Accessing DataBaseYou should know how to store and manage your data in a database You can use SQL to store your data but it is good to know how to connect to databases using Python MySQLdb is an interface for connecting to a MySQL database server from Python It implements the Python Database API v and is built on top of the MySQL C API PyMySQL is also an option PyMySQL is also an interface for connecting to a MySQL database server from Python It implements the Python Database API v and contains a pure Python MySQL client library The goal of PyMySQL is to be a drop in replacement for MySQLdb Resources to learn MySQLdb and PyMySQLMySQLdbPyMySQL Step Build Your First Machine Learning Model with scikit learnscikit learn is a library offered by Python scikit learn contains many useful machine learning algorithms built in ready for you to use Now you need to experiment with different machine learning algorithms Find a Machine learning problem take data apply different machine learning algorithms and find out which algorithm gives more accurate results Step Practice Practice and PracticeAt this step you need to practice as much as you can The best way to practice is to take part in competitions Competitions will make you even more proficient in Data Science When I talk about top data science competitions Kaggle is one of the most popular platforms for data science Kaggle has a lot of competitions where you can participate according to your knowledge level You can start with some basic level competitions such as Titanic ーMachine Learning from Disaster and as you gain more confidence in the competitions you can choose more advanced competitions So these are the steps to learn Python for Data Science If you follow these steps and gain these required skills then you can easily learn Python for Data Science Some Other Free Resources PythonCorey Schafer Corey SchaferSentdex Sentdex Machine Learning with Maths Statistics and Linear AlgebraAndrew NG applied AIKrish NaikStatquest with Josh StarmerSentdex Natural Language ProcessingKrish NaikSentdex Deep LearningAndrew NgKrish Naik Data Science Projects Blogs that are freely AvailableBlogBlog Feature Engineering Playlist Feature Selection Playlist These are the few resources i use to learn Data Science and mostly available for free If you have any other resources feel free to share that may help others to learn ConclusionI hope you got an answer to your question “What Should I Learn for Data Science “ If you have any doubts or queries feel free to ask me in the comment section Happy Learning |
2022-04-10 13:02:48 |
海外科学 |
NYT > Science |
Why a Coronavirus-Flu ‘Twindemic’ May Never Happen |
https://www.nytimes.com/2022/04/08/health/covid-flu-twindemic.html
|
coronavirus |
2022-04-10 13:59:35 |
ニュース |
BBC News - Home |
P&O Ferries: Larne-Cairnryan passenger service facing delay |
https://www.bbc.co.uk/news/uk-northern-ireland-61057113?at_medium=RSS&at_campaign=KARANGA
|
tweets |
2022-04-10 13:00:54 |
北海道 |
北海道新聞 |
PSVの堂安律はベンチ外 RKCワールウェイク戦 |
https://www.hokkaido-np.co.jp/article/667930/
|
堂安律 |
2022-04-10 22:12:00 |
北海道 |
北海道新聞 |
ロナルド問題行動で警察が捜査 サポーターの携帯はたき落とす |
https://www.hokkaido-np.co.jp/article/667929/
|
警察 |
2022-04-10 22:11:00 |
北海道 |
北海道新聞 |
ギターと歩んだ半世紀、CD5枚に凝縮 江別のギタリスト 難聴乗り越え「宅録」 |
https://www.hokkaido-np.co.jp/article/667928/
|
佐藤洋一 |
2022-04-10 22:03:00 |
コメント
コメントを投稿