Generated by All in One SEO v5.0.0.1, this is an llms.txt file, used by LLMs to index the site. # Codefisher Fishing for bytes ## Sitemaps - [XML Sitemap](https://codefisher.org/sitemap.xml): Contains all public & indexable URLs for this website. ## Posts - [Codefisher Ramblings](https://codefisher.org/codefisher-ramblings/) - [Creating a New WordPress Widget](https://codefisher.org/2022/08/28/creating-a-new-wordpress-widget/) - Been moving some sites to WordPress, and one plugin I could not find a satisfactory result for was one to display or feature the contents of a page. I was also looking for excuses to write about development more often or just about anything. I have not done much with Codefisher.org recently and would like - [Python: Tips, Tricks and Idioms - Part 2 - Decorators and Context Managers](https://codefisher.org/2015/02/11/python-tips-tricks-and-idioms-part-2-decorators-and-context-managers/) - Two weeks ago, I wrote a post called Python: tips, tricks and idioms, where I went through many features of python. However, I want to narrow down on just a few and look at them in more depth. The first is decorators, which I did not cover, and the second is context managers, which I - [Python: Tips, Tricks and Idioms](https://codefisher.org/2015/01/28/python-tips-tricks-and-idioms/) - My programming language of preference is python because I feel I write better code faster with it than I do with other languages. However, it also has a lot of nice tricks and idioms to do things well. Therefore, and partly as a reminder to use them, and partly because I thought this might be - [The property function: why Python does not have Private Methods](https://codefisher.org/2015/05/18/the-property-function-why-python-does-not-have-private-methods/) - Now and then, I see it said that Python should have private or protected methods on its classes. This typically comes from someone used to programming in Java or C++ or the like, who misses them and insists they are essential for any programming language. But python does not have them and never will. Private - [How to Create an Ordered Counter class in Python](https://codefisher.org/2015/06/16/how-to-create-an-ordered-counter-class-in-python/) - After I made my post How to Group and Count with Dictionaries, I noticed there was something nice I could have added. That was how to make a counter class that also remembers the order in which it first found something. It is super easy (pun intended) to do in Python. See the following. from - [Updates to Codefisher](https://codefisher.org/2022/08/25/updates-to-codefisher/) - So today I am replacing the old site with a new one. I have removed almost all the content for stuff that I no longer intend to maintain. Much had become a bit of an embarrassment rather than something I want to share. The projects left are those that I want to begin to start - [Python How To: Group and Count with Dictionaries](https://codefisher.org/2015/04/22/python-how-to-group-and-count-with-dictionaries/) - In this post, I want to have a look at the different possible solutions to two rather simple and closely related problems. How to group objects into a dictionary, or count them. It is something that at least I have found I do every now and then in various forms. I want to start from ## Pages - [Codefisher Projects](https://codefisher.org/) - Most of the projects here are admittedly only semi-active. This is because I started most of them back when I was a student. However, I am rather busy these days or have moved on to other things. Nevertheless, I do have the hope I will revive them fully eventually, so here they are. Toolbar Buttons - [Pastel SVG Icons](https://codefisher.org/pastel-svg/) - About Pastel SVG is an icon set based on the popular silk icons found at FamFamFam.com. It uses the same style, and the icons are virtually identical. The goal will be to soon have all the icons in the original set. The most significant addition of this set is that the icons were created as - [Sharp Colour Picker](https://codefisher.org/sharp-colour-picker/) - About & How to use I have seen quite a few online colour pickers. But few of them were as full-featured as Sharp Color Picker. It has an easy-to-use panel for just point and click for your standard 16.7 million colours. It supports 140 colour names and 216 browser-safe colours for a wide range of - [Toolbar Buttons](https://codefisher.org/toolbar-buttons/) - A now defunct extension that I would like to eventually finish breaking up into individual buttons. For now, you can check out what I have over on my profile on addons.mozilla.org. - [Design](https://codefisher.org/design/) - Might add the sites here that I have designed and managed. But not today. - [Contact](https://codefisher.org/contact/) ## Categories - [Programming](https://codefisher.org/category/programming/) - [Python](https://codefisher.org/category/programming/python/) - [News](https://codefisher.org/category/news/) - [PHP](https://codefisher.org/category/programming/php/) - [WordPress](https://codefisher.org/category/wordpress/) ## Tags - [python](https://codefisher.org/tag/python/) - [porgramming](https://codefisher.org/tag/porgramming/) - [dictionaries](https://codefisher.org/tag/dictionaries/) - [tutorial](https://codefisher.org/tag/tutorial/) - [news](https://codefisher.org/tag/news/) - [programming](https://codefisher.org/tag/programming/)