Παρουσίαση με Ετικέτες

HowTo: Extract numeric suffix from a string in Python
24 Αυγούστου 20 11:15 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
HowTo: Install Python, PIP and cx_Oracle on MSYS2 / Windows
23 Αυγούστου 20 03:12 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
Using cross-platform fswatch for monitoring file system changes
15 Αυγούστου 20 04:07 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Python rstrip and whitespace
10 Ιουλίου 20 04:10 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
HowTo: make raw_input & input work the same in both Python 2 and 3
10 Ιουλίου 20 04:00 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
HowTo: Use DISM and SFC tools to check+fix your Windows installation
14 Απριλίου 20 10:28 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
HowTo: Optimize your website enabling web server GZIP compression
14 Απριλίου 20 09:40 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , ,
Fix: Microworlds Pro installer showing gibberish instead of Greek
31 Μαρτίου 20 11:17 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Fix: Cisco Webex Meetings install fail (AddDllDirectory @ KERNEL32.dll)
28 Μαρτίου 20 06:52 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
Fix: make ownCloud installer display in English language
26 Μαρτίου 20 02:33 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
Fix: Buildbox activation issues on load
22 Φεβρουαρίου 20 09:51 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , ,
HowTo: disable video autoplay in Chromium-based Microsoft Edge
06 Φεβρουαρίου 20 05:40 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Fix: Acer Aspire One (AS1) ZG5 blank screen at startup
22 Δεκεμβρίου 19 02:15 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
MySQL DATETIME vs TIMESTAMP and the year 2038
01 Νοεμβρίου 19 09:45 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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' […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
HowTo: Reset browser cache of CSS files upon ASP.net MVC app publish
18 Οκτωβρίου 19 01:45 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
Fix: “A numeric comparison was attempted” at VS build (Costura.Fody)
18 Οκτωβρίου 19 12:56 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
Fix: Invalid Firmware Image at Dell Inspiron 3537 BIOS update
09 Αυγούστου 19 09:56 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
For some time now I was trying to update the BIOS of an older Dell Inspiron 3537 laptop from inside Windows (with the InsydeFlash application that the respective Dell update package employs), only to get a blue screen saying Invalid Firmware Image upon reboot and the BIOS update was skipped every time. Since that update […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: round a number up to N decimal digits in Javascript
17 Ιουνίου 19 05:21 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Was just trying to round-off some Google Maps coordinates for display in Javascript up to 3 decimal digits and that was a bit like a blast from the past (the end of the ‘90s to be more accurate)… So here’s my contributed answer at: https://stackoverflow.com/questions/2221167/javascript-formatting-a-rounded-number-to-n-decimals This works for rounding to N digits (if you just […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
HowTo: remove Javascript imports from OpenLayers map examples
11 Ιουνίου 19 09:31 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
OpenLayers is a fine alternative to the map visualization part of Google Maps Platform, however many of its examples sometimes use features from future and server-side Javascript versions, like “imports”. Based on lou’s answer at https://stackoverflow.com/questions/51093964/why-examples-dont-work-a-struggle-with-imports/56549364, here’s a fix I just did to make the Marker animation example work when you just copy-paste the example […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
HowTo: Use latest C# features in MVC5 Razor views (.cshtml)
16 Απριλίου 19 03:53 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Having recently updated an ASP.net MVC web app from MVC4 to MVC5 and from .NET 4.5 to .NET 4.7.2 I was expecting Razor views (.cshtml files) to use the latest C# compiler, especially since at Properties/Build/Advanced option for the web project one read “C# latest major version (default)”. However that was not the case and […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Fix: Word print view showing no margins and pages appear collated
05 Απριλίου 19 11:46 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I’m often asked by friends and family to assist them on frustrating technical issues they can’t resolve by themselves. Thanks to remote access / support software like TeamViewer, this is a piece of cake nowadays. The solution to such problems isn’t always straightforward though. Just came across a Microsoft Word installation where suddenly the Print […]
Δημοσίευση στην κατηγορία: , , , , , , ,
Fix: “The Global element ‘xx’ has already been declared” warnings in config files after .NET framework upgrade in Visual Studio solution
04 Απριλίου 19 05:09 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Had just converted to target .NET framework 4.7.2 a Visual Studio solution full of 4.5 libraries, console apps and an MVC 5.0 (recently converted from 4.0) web app and all seemed to build fine, but then noticed that with web.config of the MVC web app open in the editor, it was showing lots of warnings […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
How-to: get int value via ADO.net SqlDataReader using column name
21 Ιανουαρίου 19 08:54 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Based on Sam Holder’s answer at https://stackoverflow.com/questions/7388475/reading-int-values-from-sqldatareader/54296026, just contributed an extension method for fetching Int32 values via ADO.net’s SqlDataReader, without jumping through hoops (aka first fetch column ordinal [number] by name, then fetching the int value passing the column ordinal). Would be nice if Microsoft was providing such things out of the box. namespace adonet.extensions […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
Microsoft AI solutions
30 Νοεμβρίου 18 10:36 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
* AI business solutions: https://partner.microsoft.com/en-US/solutions/practice-areas/artificial-intelligence * AI platform: https://azure.microsoft.com/en-us/overview/ai-platform/ at the section «Open and comprehensive platform» (scroll down) and see the three tabs AI tools/AI frameworks/AI related infrastructure * Azure (cloud) Machine Learning: https://azure.microsoft.com/en-us/overview/machine-learning/ – Machine Learning service (TensorFlow, PyTorch, or Jupyter etc.) https://azure.microsoft.com/en-us/services/machine-learning-service/ https://docs.microsoft.com/en-us/azure/machine-learning/service/ – Machine Learning Studio (visual drag-drop/flow based) https://azure.microsoft.com/en-us/services/machine-learning-studio/ https://docs.microsoft.com/en-us/azure/machine-learning/studio/ – […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
Fix: Reset forgotten Windows Phone pin remotely if locked out of it
15 Νοεμβρίου 18 12:44 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I got an older Lumia 930 phone (nice big display and 20MP camera, Windows Mobile 8.1 upgradeable to Windows 10, main shortcoming is that it doesn’t have microSD slot) on big discount the other day, but after upgrading it to Windows 10 I accidentally entered the wrong PIN code at login an it managed to […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
Περισσότερες Δημοσιεύσεις Επόμενη »

Search

Go

Ιστορικό Δημοσιεύσεων

Συνδρομές