|
Πρόσφατες Δημοσιεύσεις
-
I recently needed to extract a numeric suffix from a string value in Python. Initially I did the following: import re def extractNumSuffix(value): return (None if (search:=re.search(‘^\D*(\d+)$’, value, re.IGNORECASE)) is None else search.group(1)) Note that return has a single-line expression. So print(extractNumSuffix("test1030")) prints 1030 Tried it online at: https://repl.it/languages/python3 However, then I found out […]...
|
-
Here’s how to install Python, PIP package installer and cx_Oracle extension module on MSYS2: $ pacman -S python warning: python-3.8.3-1 is up to date — reinstalling resolving dependencies… looking for conflicting packages… Packages (1) python-3.8.3-1 Total Installed Size: 108.66 MiB Net Upgrade Size: 0.00 MiB :: Proceed with installation? [Y/n] y … $ pacman -S […]...
|
-
I was just looking for a way to monitor for file system changs in a cross-platform way. After searching the answers here and the ones at the other question mentioned as possible duplicate in that question’s comments, I think I’d go with fswatch since it is has cross-platform support. It uses different kinds of monitors […]...
|
-
One thing I tend to forget is how powerful azure cli is and how many things can be done way faster through this tool. So, for example, if you want to delete all files in an Azure Storage Account at once, a fast and easy way to do just that is by using the delete-batch command from Azure CLI. Run......
|
-
One thing I tend to forget is how powerful azure cli is and how many things can be done way faster through this tool. So, for example, if you want to delete all files in an Azure Storage Account at once, a fast and easy way to do just that is by using the delete-batch command from Azure CLI. Run......
|
-
Was just reading https://www.w3schools.com/python/ref_string_rstrip.asp which says The rstrip() method removes any trailing characters (characters at the end a string), space is the default trailing character to remove. Notes: 1) the chars param was added at Python 2.2.3, can’t use it at older versions as noted at https://docs.python.org/2.6/library/string.html string.rstrip(s[, chars]) Return a copy of the string […]...
|
-
Was just trying to make a Python 2 script work in Python 3 and at first it seemed I just needed a small change to add missing parentheses to the argument of a couple of print statements. But then another issue came up, it wasn’t understanding the command raw_input(somePrompt) that was occuring at various places […]...
|
-
During the 24th AzureHeads meetup, I delivered a presentation about three azure services, Azure Functions, CosmosDB and Signalr; I talked about websockets and the benefits compared to long polling and then, I built a stocks demo application using Azure Functions for the logic, Azure CosmosDB for the data persistence and then I showcase how is it is to add real-time......
|
-
A CRON expression is a string consisting of six or seven subexpressions (fields), separated by white space, that describe individual details of the schedule. A very useful tool that enables users to schedule tasks to run periodically at a specified date/time in the future, thus allowing the automation of a lot of tasks and processes that otherwise would require human......
|
-
On the 25th of April I had the chance to organize the Global Azure Greece 2020 event, the first virtual one of its kind, and also deliver a session thereat. I was one out of 248 international and 18 Greek speakers that took part in this huge online event. I started organizing the Global Azure bootcamp in Greece in 2016......
|
-
If you’re having issues with your Windows 7 or newer, you should consider whether its installation has become corrupted (due to malicious software or hard drive errors). After doing a disk check (say by right clicking the appropriate drive under my computer and selecting Properties, then Tools tab and Error checking) and a complete virus […]...
|
-
Was recently checking out the fine tools from GTmetrix for optimizing some websites I manage and one of the issues I noticed on a client’s site was that GZIP compression was turned off. They have a GZIP compression setup article for IIS and Apache web servers that contains a sample for Apache with compression rules […]...
|
-
During AzureHeads 23rd meetup, I delivered an introductory presentation about Azure API management, what is it, how someone can get started and then I showcase a set of features in Azure Portal like: connecting APIs with Azure Functions and import APIs through Swagger developer portal prevention of API usage spikes using throttling authentication with a backend service caching responses and......
|
-
A thing that really bothers me in Windows, and I believe many would agree, is the lack of UI consistency in Windows applications and components. Although applications implemented with the new Fluid Design System in mind have some very minimal scrollbars that don’t use much of valuable space, there are still a lot of apps, especially the ones built with......
|
-
A friend sent me the other day a screenshot from the installer of Microwords Pro Greek version on Windows 10 that was showing gibberish instead of Greek. At their school on Windows 10 it was showing up fine, so they wondered what the issue was. They mentioned that on Windows 10 english it was showing […]...
|
-
Looking into the following error message occuring with Cisco WebEx Meetings installer on Windows 7, found this useful discussion: https://social.technet.microsoft.com/Forums/en-US/a0970bfe-2bca-4ae3-a463-a5a04df83770/could-not-locate-dynamic-link-library-kernel32dll?forum=w7itproinstall where the following are suggested: – install Update for Windows 7 (KB2533623) from Microsoft: https://www.microsoft.com/en-us/download/details.aspx?id=26767 – video tutorial: https://www.youtube.com/watch?v=TpRRiMGJ_xA And an extra tip, in case you after the installation, when you try to connect via […]...
|
-
OwnCloud is an interesting solution for setting up a file sharing cloud for a group of people. However,one issue I’ve found with its Windows desktop client’s current version (which looks clean of any viruses since I always check first) is that if your Windows 10 is configured with a preferred language that the desktop client’s […]...
|
-
Chrome Dev Tools is undoubtedly a very powerful set of web developer tools, built directly into the Chrome browser that helps you with your day-to-day work on building, debugging and optimizing web applications. To launch Chrome Dev Tools you simply right click on any web page that you are working and select Inspect or press Cmd+Alt+I on a mac or Ctrl+Alt+I......
|
-
Buildbox is a wonderful game authoring tool (that spans the whole nocode-code continuum, including the low-code aspect). It now has a free version too with nice templates and tutorials included. I had an issue with the Windows version (it also has an indentical MacOS-X version since it’s a Qt-based app) where it was complaining about […]...
|
-
Getting really annoyed by YouTube’s insistence to autoplay (and not even stop the previously playing video) everytime you navigate to a browser tab that shows YouTube content (say using CTRL+TAB / SHIFT+CTRL+TAB to find a tab you’re looking for when you have too many and they only manage to fit their icons so no title […]...
|
-
Seems Acer Aspire One (AS1) ZG5 can have a recurring problem, esp. if its battery is near its end of life. If it shuts down abruptly its BIOS settings seem to get corrupted and its BIOS instead of discarding them seems to freeze. Luckily they have a way to update the BIOS via USB key […]...
|
-
Judging from MySQL documentation at https://dev.mysql.com/doc/refman/8.0/en/datetime.html, it sounds best to use DATETIME rather than TIMESTAMP if you want your database to be future proof. After all 2038 is only 18+ years away. The DATETIME type is used for values that contain both date and time parts. MySQL retrieves and displays DATETIME values in 'YYYY-MM-DD HH:MM:SS' […]...
|
-
On an ASP.net MVC webapp I’m maintaining, I had the issue that due to caching of older CSS (stylesheet) files in the browser, if the user didn’t press F5/refresh, it wasn’t showing you some message (since I had added the class .center-horiz-vert in the CSS that didn’t exist in the older cached css the browser […]...
|
-
After upgrading from Visual Studio 2017 to Visual Studio 2019 I was able to update NuGet packages Fody and Costura.Fody of a solution that needed them (to package assembly DLLs inside console EXEcutables) and the solution was rebuilding fine. However after I synced the solution via a Git repository on another machine and installed the […]...
|
-
Azure Availability Zones is a high-availability offering that protects your applications and data from datacenter failures. Availability Zones are unique physical locations within an Azure… Continue reading Move an Azure VM to an Availability Zone...
|
|
|
|