投稿時間:2023-02-05 00:16:58 RSSフィード2023-02-05 00:00 分まとめ(16件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita Pythonでほぼ日手帳形式のmarkdownメモ帳を作ろう(1年分) https://qiita.com/NNNiNiNNN/items/92a740ca773a05cbbdc6 markdown 2023-02-04 23:46:32
python Pythonタグが付けられた新着投稿 - Qiita PIVをやってみる.part 2 直接相互相関法で作成 https://qiita.com/higeDss/items/6b938e753e167c901981 openpiv 2023-02-04 23:38:11
python Pythonタグが付けられた新着投稿 - Qiita Vite+FastAPI+NGINX+Dockerの環境構築 https://qiita.com/gaitou2048/items/4c187ff3ed60de1cb366 dockerdocke 2023-02-04 23:34:38
python Pythonタグが付けられた新着投稿 - Qiita Python: フーリエ変換とは? https://qiita.com/sai-sui/items/7461e3ebb04ca72b1a33 bluebrown 2023-02-04 23:07:28
Ruby Rubyタグが付けられた新着投稿 - Qiita Search Console API と Ruby on Rails https://qiita.com/tauemo/items/a7eaf9222156622dcd0d rubyonrails 2023-02-04 23:11:48
AWS AWSタグが付けられた新着投稿 - Qiita 【直前の速習におすすめ】AWS DevOpsProfessional勉強メモ https://qiita.com/Rocky_dayo/items/cb01cf0d452c1c8dd44e awsdevopsprofessional 2023-02-04 23:16:56
Docker dockerタグが付けられた新着投稿 - Qiita Vite+FastAPI+NGINX+Dockerの環境構築 https://qiita.com/gaitou2048/items/4c187ff3ed60de1cb366 dockerdocke 2023-02-04 23:34:38
技術ブログ Developers.IO Androidアプリを実機でデバッグできるようにしてみた https://dev.classmethod.jp/articles/making-it-possible-to-debug-the-android-app-on-an-actual-device/ aabandroi 2023-02-04 14:54:50
海外TECH MakeUseOf The 4 Best Websites for Free 3D Printing Files https://www.makeuseof.com/free-3d-printing-files/ filesexplore 2023-02-04 14:15:16
海外TECH MakeUseOf Change the Way You Watch TV Forever: Samsung 85" Class TU7000 Review https://www.makeuseof.com/samsung-85-class-tu7000-led-4k-uhd-smart-tizen-tv/ screen 2023-02-04 14:05:16
海外TECH DEV Community How to reverse a range in Python (with examples) https://dev.to/lavary/how-to-reverse-a-range-in-python-with-examples-664 How to reverse a range in Python with examples Update This post was originally published on my blog decodingweb dev where you can read the latest version for a user experience rezaSometimes you need to reverse a range in Python to iterate over a list of items in reverse order This quick guide explores two popular methods of reversing ranges or any iterator in Python Reverse a range using reversed Generate a reversed rangeBefore we start let s quickly review Python s range function A range object in Python is a sequence of numbers you can use with a for loop to repeat a set of instructions a specific number of times Python s range function makes it super easy to generate range objects The range function accepts three parameters start stop and step With these parameters you can define where the sequence begins and ends And thanks to the step parameter you can even choose how big the difference will be between one number and the next For instance to generate a range from to with a step of you call the range function like so items range print items output range Convert them into a listprint list items output Using ranges with for loops is straightforward for i in range print i The above code generates the following output Reverse a range using reversed Alright now let s see how we can reverse a range in Python to iterate over it in reverse order Luckily Python makes it easy to do this with the reversed function The reversed function takes a range or any iterator supporting the sequence protocol and returns a reversed iterator object You can use reversed function in conjunction with the range function in for loops to iterate over a sequence in reverse order for i in reversed range print i And the output would be You can also use the reversed function with a list In this case the returned value will be a list reverseiterator object my list for i in reversed my list print i Generate a reversed rangeYou can also use the range function to generate a sequence of numbers in reverse order In this case the start argument is the highest number in the range and the stop parameter is the lowest Obviously the step parameter should be a negative value like To create a range from to with a step of we can do it like so for i in range print i And to create a reversed list with negative numbers for i in range print i Output Alright I think that does it I hope you found this quick guide helpful Thanks for reading️You might like TypeError missing required positional argument self Fixed Unindent does not match any outer indentation level error in Python Fixed AttributeError module DateTime has no attribute strptime Fixed How back end web frameworks work Your master sword a programming language 2023-02-04 14:41:29
海外TECH DEV Community On "TabError: inconsistent use of tabs and spaces in indentation" in Python https://dev.to/lavary/on-taberror-inconsistent-use-of-tabs-and-spaces-in-indentation-in-python-2i2p On quot TabError inconsistent use of tabs and spaces in indentation quot in PythonUpdate This post was originally published on my blog decodingweb dev where you can read the latest version for a user experience rezaThe error “inconsistent use of tabs and spaces in indentation occurs when you mix tabs and spaces to indent lines in a code block Here s what it looks like File test py line print tab TabError inconsistent use of tabs and spaces in indentationSometimes the lines look perfectly aligned but you still get the error If that happens chances are there s a whitespace inconsistency in the respective indentation level You usually won t have to worry about mixing spaces and tabs because most modern editors automatically convert tabs to spaces as your write code However if you copy a piece of code from the Internet or another editor you might have to check the indentation ️Python disallows mixing spaces and tabs in the same indentation level for instance to indent the lines inside a for loop Although tabs and spaces are interchangeable the Python style guide PEP recommends using spaces over tabs four space characters per indentation level According to PEP if you re working with a code that s already using tabs you can continue using them to keep the indentation consistent To detect ambiguous indentation errors you can use the tabnanny module dwd dwd sandbox python m tabnanny test pytest py tprint tab In the above tabnanny output line is indented by a tab t How to fix the unindent does not match any outer indentation level errorTo avoid this situation you can make all whitespaces visible in your code editor These indicators give you quick feedback as you write code Additionally you can automatically turn all unwanted tabs into spaces without re indenting each line manually Here s how to do it with three popular code editors Visual Studio CodeSublime TextVim Visual Studio Code To make whitespace characters space or tab visible in VS code press ⌘ Shift P on Mac or Ctrl Shift P on Windows to open up the command palette Then type Toggle Render Whitespaces and hit enter ↵ As a result VS Code will display space characters as gray dots and tabs as tiny arrows And to make whitespaces consistent in the command palette run Convert Indentation to Spaces or Convert Indentation to Tabs accordingly Sublime Text If you have a space tab indentation issue on Sublime Text go to View ➝Indentation and select Indent Using Spaces You can also highlight your code Ctrl A to see the whitespaces in your code Vim In Vim you can use the retab command to convert tabs into spaces automatically And to make whitespace characters visible in Vim First run the following Vim command set listAnd then run set listchars space ␣ tab gt You can replace ␣ and ➝ with the characters of your choice Alright I think that does it I hope you found this quick guide helpful Thanks for reading ️You might like TypeError missing required positional argument self Fixed Unindent does not match any outer indentation level error in Python Fixed AttributeError module DateTime has no attribute strptime Fixed AttributeError str object has no attribute decode Fixed How back end web frameworks work 2023-02-04 14:17:59
海外TECH DEV Community How I ruined my SEO https://dev.to/johnnyreilly/how-i-ruined-my-seo-3pin How I ruined my SEOIn October traffic to my blog dropped like a stone What happened Somehow I ruined my SEO Don t be me I ll tell you what I got up to and hopefully you can avoid doing the same What I did on my holidaysNaturally I blame all of this on a holiday to the British seaside I was away for a week and whilst I was away I did not have access to a laptop This is intentional by the way I spend too much time on computers one way or another I force myself to disconnect on holidays But whilst I didn t have the ability to program I had the ability to ponder I found myself going down a rabbit hole on SEO I d never really thought about it previously and I thought what would happen if I made some tweaks My expectation was that I d slightly improve my SEO Probably not by much but I d learn something and it d be fun What actually happened was that in October after my fiddling traffic from search engines more or less dried up Not quite the plan Odds are the was probably because of my actions I m not sure what I did wrong but I m going to share what I did and maybe you can tell me where I pulled the pin out of the hand grenade Frustratingly the feedback loop on SEO is anything but tight You make a change and then weeks or months later you see the results And by then you ve forgotten what you did So I m going to try and document what I did and what I think I did wrong Incidentally I m hoping someone will read this and tell me what I did wrong I did something I assume I did something Come with me and embrace your inner Sherlock I m going to share evidence and maybe you can draw some conclusions So what did I get up to In the time before my traffic fell off a cliff I did all kinds of things Let s begin Upgraded to Docusaurus My blog runs on Docusaurus I upgraded from to I can t see why that would be an issue I don t think it is Added fontaineI started using fontaine on my blog If you haven t tried it out you can find it here It helps reduce Cumulative Layout Shift The flash of unstyled content jank that you can see when you first land on a site before fonts have loaded I can t see why that would be an issue It should improve my blogs Core Web Vitals and help stuff rank better not worse I think this is a red herring Google Analytics sharing my g tag with the Docusaurus docsHere s where I suspect we may have a candidate I did a foolish thing You may be aware that Google are sunsetting Google Analytics as was in favour of Google Analytics I was using Google Analytics to track my blog traffic and thought oh well I best migrate then Migration involved using in a new plugin for Docusaurus However the docs weren t great I managed to work out how to get it working and I thought I d help the community by submitting a docs PR Can you see where this is going Yup I managed to land my GA tag in the actual Docusaurus docs I know I know I m a mug You might be wondering how I found out Well the real giveaway was that I ve never written any blogposts in Chinese I started seeing unfamiliar entries in my search traffic I couldn t work out what was going on It didn t make sense Then I remembered my PR and the terrible truth became apparent It is a truth universally acknowledged that a developer in possession of a good keyboard must copy and paste Nightmare Other people were using my GA tag I did try to roll this back search GitHub for my tag and submit PRs to remove it But not every PR was merged In the end I gave up and created a new GA property and started again Out there right now there are still websites sending my old GA tag traffic to Google What a horlicks I don t know if Google tracks for sites sharing analytics tags and deranks them as a consequence but I suspect it s a possibility Who knows Maybe you do Tell me Googles new spam updateWhen I started to see traffic tail off I started to look around for clues It turns out there s a subculture of SEO tools out there I m not sure how I missed them before I found ahrefs and semrush others too This graph from ahrefs caught my eye You can see everything going South for me in October What you can also see are Google search updates on the X axis It turns out Google regularly update their search algorithm Interestingly one of their updates coincides with my traffic tailing off October Spam UpdateSpam updates target sites that don t follow the webmaster guidelines Sites impacted by these updates may be seeking short term gains while ignoring best practices This update was completed on October st Google Search spam updates and your site Bingo I thought This is it But as I dug through the details I became doubtful Nothing on my site looks spammy In my opinion obviously But try as I might I couldn t see it any other way My content isn t spammy Unless I m missing something Am I From PNG to WebP and back againMost of the images on my blog were PNGs Lighthouse would regularly suggest migrating to a newer image format I read around and the suggestion generally was that WebP was the way to go So I did But I think I made a bit of a mistake As the images were converted their filenames changed Because I didn t think it mattered I didn t implement redirects My view was the blog posts have references to the new image names that s likely all that matters I d lay money that s a mistake that I should have implemented redirects and the site is being penalised Again do tell me if I m running with a false assumption here Oh the and back again I make use of Open Graph sharing previews on my blog so people using my links on social media get a nice preview of the content I learned from Steve Fenton that open graph doesn t always support WebP Which sucks So I decided to revert my Open Graph images back to being PNGs with entirely different names Again I didn t implement redirects no wonder Google loves me Backlinks referring domainsAs I did my deepdive into SEO I learned that backlinks and referring domains are important I had a lot of them I ve been blogging for a long time However I suspect I had rather scorched the earth by failing to implement redirects This chart from ahrefs shows the impact My assumption here is that by failing to implement redirects I ve lost a lot of backlinks Previous s had transitioned to be s and Google had noticed RSS feedsI mentioned that I ve been blogging a long time Consequently I have a lot of blog posts I also have Atom RSS feeds on my blog I didn t realise that there are limits on the size of these feeds It doesn t appear to be standardised but when I took a look at my feeds in various feed readers I found they were erroring due to the size of the feeds I decided to start truncating the number of entries in my feeds It s not so hard to do just a post build step which reads amends and writes the XML With this in place RSS readers seemed to be happier And given a number of publications read my RSS feeds it s likely that this will increase my backlinks over time I also contributed a PR to Docusaurus that will allow everyone to configure and adjust the number of entries in their feeds directly through Docusaurus as opposed to afterwards in a post build step Dynamic redirects too little too late As I ve mentioned I broke links by not implementing redirects It might be closing the stable door after the horse has bolted but I decided to go back and implement redirects In December I implemented dynamic redirects on my blog using Azure Static Web Apps and Azure Functions I implemented redirects for imagesblog posts from my old Blogger URLs to my new Docusaurus URLs RSS Atom feeds Blogger had both of these but at different endpoints renamed blog posts I renamed a number of blog posts over time to be more SEO friendly I also decided to do some research I plugged Application Insights into my blog and started logging out when redirects were being hit I also started logging out when s were being hit I wanted to see if I was missing anything I ve been checking the logs every day since and adding new redirects as I go Will this help over time Answers on a postcard please Or toot tweet email DM me As an aside looking at the logs in itself has been a lesson Someone on the internet is always trying to hack you And usually under the assumption you re running WordPress PHP Help me Obi Wan you re my only hopeAs you can see I ve done a lot of tinkering I m not quite sure what torched my SEO It may be one thing it may be a combination of things I don t know if there s a road back I m hoping someone will read this and tell me what I did wrong I did something Or at least I assume I m the cause Maybe I m not Maybe I m missing something entirely If you know please let me know I really want to understand Discussion on Hacker NewsThis was disussed on Hacker News You can read the discussion here 2023-02-04 14:07:34
ニュース BBC News - Home Chris Parry and Andrew Bagshaw's bodies recovered in prisoner swap - Ukraine https://www.bbc.co.uk/news/world-europe-64521865?at_medium=RSS&at_campaign=KARANGA andrew 2023-02-04 14:14:29
ニュース BBC News - Home Everton 1-0 Arsenal: James Tarkowski scores winner in Sean Dyche's first game https://www.bbc.co.uk/sport/football/64436127?at_medium=RSS&at_campaign=KARANGA Everton Arsenal James Tarkowski scores winner in Sean Dyche x s first gameJames Tarkowski s second half goal gives new Everton manager Sean Dyche enjoys a dream start as a much improved side stun Premier League leaders Arsenal at a raucous Goodison Park 2023-02-04 14:47:35
ニュース BBC News - Home Six Nations 2023: Caelan Doris gives Ireland early lead against Wales https://www.bbc.co.uk/sport/av/rugby-union/64524690?at_medium=RSS&at_campaign=KARANGA wales 2023-02-04 14:39:33

コメント

このブログの人気の投稿

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