There was a tutorial, published yesterday on the Russian tech website habr.com on how to create a logging provider for Telegram in .NET 5. And while it’s good on checking how to create custom log provider — you probably already use some provider. So I thought: why should you write your own one and add it to the existing code and not just customize the existing one using it’s built in capabilities. We will look here at NLog as an example. You can use it in any type of .NET projects (.NET Framewok/.NET Core) and add various logging targets using…
MySQL is a very popular relational database (it’s freeee), so I was a bit surprised when realized that you just can’t easily grant some permissions ONLY for certain procedure without any problems and also there is not much information about such problem over noble resources. Sure you can do it with a bit of a `hack` and let’s try that.
Well here are 2 invaluable programs for Windows: Total Commander and Everything.
Total Commander is file manager (like Windows Explorer, but way better in any case), that can be extended using plugins like: sFTP, various format file readers and etc.
Everything is super fast file search engine for Windows with light indexing and fuzzy search.
So it seems like a good idea to mix Everything and Total Commander to search and manipulate files/directories.
To make all run smoothly — use Everything with the same user as Total Commander.
Open Tools->Options in Everything and choose Context Menu there. In the “items”…
There are so many password managers out there: LastPass / Dashlane / 1Password… Just because it became critical to have various difficult passwords linked to variety of resources. The mentioned programs are just making your life more secure => your hair becomes way softer and shinier!
But.. The main problem with all that popular password managers is that they are: closed source and almost all of them are web related, you have…
Just a quick and very specific tip. Writing here, because “google did not help”, so maybe it will be useful for someone.
The problem: Our EC2 machine lost connectivity to external resources (there was no outgoing traffic) after reboot. It had associated ElasticIP, but public DNS for the instance could not have been resolved.
It was a bit of a surprise for me to guess that there is not much material on using https://github.com/kennethreitz/records with MySQL database… So just a smaaaaaall instruction right here:
Records is a wrapper module over https://www.sqlalchemy.org ORM for Python. So from here all the almost settings it can have are from SQLAlchemy, just with addition of some bells-and-whistles.
The basic example on Records’ GitHub is:
db = records.Database(‘postgres://…’)
rows = db.query(‘select * from active_users’) # or db.query_file(‘sqls/active-users.sql’)
As a developer I always need as complete logs as I can get for the current version of my software. But the logs are another topic, probably I will talk about once in a future, for now I want to concentrate on some specific kinds of logs: critical points notifications. Before all the major messengers got the ability to create and use bots — the most obvious decision to notify yourself or your team was to send an email. The drawbacks were a messy interface, slow search, not available until you open your mail client. Telegram is one of the…
The technique, mentioned in the title is just on of the many and there are plenty of ways achieving our target result…
For current article — let’s take some predefined setup, so that I can show you my own steps with screenshots, but the approach would be almost the same for other ways (I’ll mention them too, just without explanation).
— — — — — —
Today had to find some aspects from the code, but didn’t really remember the right repository, where the sample was.. We use BitBucket for code storage and suddenly I’ve found that they have a nice feature in their cloud interface: you can fast search for any text across all your repositories.
But the main feature here is that the search is not just simple INDEX, they added priorities to some terms so that you get more relevant results for the language you have used in that project.
For the term “hash” it shows: