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

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 […]
Δημοσίευση στην κατηγορία: , , , , , , ,
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 […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: change color of validation messages in ASP.net MVC
02 Νοεμβρίου 18 02:35 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
If you need to customize the colors (or do more restyling) of validation messages in ASP.net MVC, the following snippet from a discussion on ASP.net forums should be useful: Add to Content/Site.css: /* styles for validation helpers */ .field-validation-error {     color: #b94a48; } .field-validation-valid {     display: none; } input.input-validation-error {     border: 1px […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
HowTo: Fix DVD/CD with Live filesystem (Packet/UDF) on Windows
10 Οκτωβρίου 18 09:33 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
The other day I found how easy it is to use a Live CD/DVD (where packet writing occurs when adding stuff) instead of a Mastered one (where all is kept to be written when you close the disk) on Windows. It feels more like using a USB flash disk and should be more safe regarding […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , ,
HowTo: include MVC model property Display name in Required validation message
04 Οκτωβρίου 18 01:04 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Just came across this validation error display in an MVC app I’ve recently started maintaining. The required input field validation seemed to not be localized, resulting in a mixed English and Greek (from the field’s Display name) message: Looking at the MVC model I noticed they were using [Required] attributes for the userName and password […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Download and install Windows Live Movie Maker
28 Μαρτίου 18 08:00 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Unfortunately, Microsoft seems to have gone to extra lenghts to make the Windows Live suite of software go away, without anyone thinking that there were people who were using them and without offering file/project-level compatible replacements for user-friendly tools like Windows Live Movie Maker. Only Windows Live Writer was at some point reincarnated as the […]
Δημοσίευση στην κατηγορία: , , , , , ,
HowTo: Install Skype desktop on Windows 10 (for older webcams)
22 Μαρτίου 18 02:05 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
On Windows 10, Microsoft (they’ve acquired Skype some years ago) provide a Windows Store app for Skype, however Universal Windows Platform (UWP) apps like that one don’t support older webcams (even the ones embedded in not-that-old laptops). Unfortunately, Microsoft hasn’t bothered to provide some frame grabber driver to bridge with DirectShow-based etc. older webcams that […]
Δημοσίευση στην κατηγορία: , , , , , , , , , ,
HowTo: open older Pi SD card via USB multi-reader on Raspberry Pi
18 Νοεμβρίου 17 03:02 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
After doing sudo apt-get update sudo apt-get upgrade on an older Raspbian installation (at a 4GB SD Card), some corruption occured (probably due to lack of space, since I see newer NOOBS asks for an 8GB SD Card), making it unbootable. Would only show the NOOBS splash screen, but couldn’t boot into Raspbian. I just […]
Δημοσίευση στην κατηγορία: , , , , , , ,
HowTo: Hide HTML markup from non-signedin users at MonoX Social CMS
26 Μαΐου 16 07:44 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At MonoX Social CMS, which I use at both ClipFlair Social and Trafilm websites, I was in the need of hiding some HTML markup when the user is not signed-in. The solution for this is to add runat="server" to the HMTL element one wants to hide and then set the Visible property that the object […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Copy effective-computed CSS style for specific HTML paragraph
25 Ιανουαρίου 16 02:48 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I’m in the process of setting up a temporary landing page for the trafilm project, where I need apart from showing the trafilm logo to also show some text description about the project, till I set up an instance of MonoX Social CMS for it, like the one in ClipFlair’s Community website (ClipFlair Social). Since […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
HowTo: show inner exception message if available, else outer one
09 Δεκεμβρίου 15 05:44 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Sometimes when you catch an exception in .NET, the message it prints out isn’t very informative, since it is wrapping another exception that had been thrown a bit inner in the code. That exception is in that case accessible via InnerException of the Exception instance. That inner exception is also an Exception, so one would […]
Δημοσίευση στην κατηγορία: , , , , , ,
HowTo: Pause and Resume Speech Recognition with Microsoft engines
07 Δεκεμβρίου 15 09:59 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At SpeechTurtle application, I’ve just added speech feedback (voicing of a command) when an available command is executed using a mouse click on its name. That could also help the user learn the expected pronunciation in English in case the speech recognition engine doesn’t understand some of the commands as voiced by the user. One […]
Δημοσίευση στην κατηγορία: , , , , ,
HowTo: Get and combine executable path with subfolder and filename
03 Δεκεμβρίου 15 02:58 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Based on others answers at http://stackoverflow.com/questions/3123870/find-the-location-of-my-applications-executable-in-wpf-c-or-vb-net here’s an example that shows how to remove the executable name from the path and combine the result with some subfolder and filename: At my updated version of Hotspotizer (http://github.com/birbilis/Hotspotizer), I’ve just added support for loading a Gesture Collection file at startup, if found at Library\Default.hsjson, by using the […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Reinstall a new Windows 10 build after reverting to older build
23 Νοεμβρίου 15 02:28 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At http://www.askvg.com/fix-windows-10-insider-preview-build-10240-not-appearing-on-windows-update/ it writes: NOTE: If you previously had a new Windows 10 build installed in your computer and then reverted back to an older build, you’ll lose access to the new build and it’ll no longer be offered as an upgrade option. Deleting the number for that build from the list at HKEY_LOCAL_MACHINE\SOFTWARE\   […]
Δημοσίευση στην κατηγορία: , , , , ,
HowTo: Remove unused references and using clauses in Visual Studio
17 Νοεμβρίου 15 03:04 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I recently posted a list of the VS2015 extensions I use on my main machine at: https://zoomicon.wordpress.com/2015/11/13/visual-studio-2015-extensions-i-use/ From that list of extensions I use the Productivity Power Tools one, it has a "Power Commands > Remove and Sort Usings" action that one can right click and run on the whole solution. Much easier than opening […]
Δημοσίευση στην κατηγορία: , , , , , , ,
HowTo: Upgrade Kinect Audio Positioning code from older Beta SDK
24 Οκτωβρίου 15 09:02 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Exploring the Kinect SDK v1.8 Developer Toolkit Browser application, I noticed some audio positioning visualizations at various samples (specifically at Audio Basics, Audio Explorer and Kinect Explorer samples), but I kept on looking for some simpler/cleaner sample code to return audio positioning info that would be easier to reuse. So I can across http://kinectaudioposition.codeplex.com that […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
HowTo: List all known color names and find name of given color at WPF
01 Σεπτεμβρίου 15 06:11 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
This is my answer at http://stackoverflow.com/questions/4475391/wpf-silverlight-find-the-name-of-a-color Modified answer from Thomas Levesque to populate the Dictionary only when 1st needed, instead of taking the cost at startup (going to use at speech recognition-driven turtle graphics, so that user can pronounce known color names to change the turtle’s pen color) //Project: SpeechTurtle (http://SpeechTurtle.codeplex.com) //Filename: ColorUtils.cs //Version: 20150901 […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , ,
HowTo: Insert new line and spacing at content of WPF TextBlock control
28 Αυγούστου 15 04:34 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
While adding more voice commands at SpeechTurtle, I had to update the active legend where the available commands are displayed and their text is highlighted as the respective commands are recognized by the speech recognition engine (using .NET’s managed Speech API). A problem I faced was how to add a newline and prefixing the 2nd […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
HowTo: Free up some disk space by disabling hibernation on Windows 10
11 Αυγούστου 15 02:49 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I have a small older Tablet PC (Lenovo S10-3t) that I’m running Windows 10 on, having replaced its internal classic SATA hard disk with an SSD one, and since SSD space is scarce (being more expensive I got a smaller in size disk than the original one), I needed to make free space. Since that […]
Δημοσίευση στην κατηγορία: , , , , ,
HowTo: Use MEF to implement import/export etc. plugin architecture
03 Ιουνίου 15 01:13 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
Copying here my comment at a discussion on the GraphX project: https://github.com/panthernet/GraphX/pull/15 in case it helps somebody in using MEF (Managed Extensibility Framework) in their software’s architecture ——– Using static classes instead of interfaces can mean though that you need to use reflection to call them (e.g. if you wan to have a list of […]
Δημοσίευση στην κατηγορία: , , , , , , , ,
HowTo: Open page from Internet Explorer (Metro) app into desktop IE
20 Απριλίου 15 11:03 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
The Windows 8/8.1 app version of Internet Explorer is also known as IE Metro because of the “Metro” codename (inspired by navigation signs in public transport] of the Modern UI design language promoted by Microsoft). However that version isn’t the full Internet Explorer, in that it is unfortunately not supporting extensibility via plugins in the […]
Δημοσίευση στην κατηγορία: , , , , , , , , , , , , ,
HowTo: Delete all nodes and relationships from Neo4j graph database
18 Απριλίου 15 02:54 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
At a Neo4j question in http://stackoverflow.com/questions/19624414/delete-node-and-relationships-using-cypher-query-over-rest-api, a recent reply (older ones use obsolete Cypher syntax) says: Both START and the [r?] syntax are being phased out. It’s also usually not advised to directly use internal ids. Try something like: match (n{some_field:"some_val"}) optional match (n)-[r]-() delete n,r So, to delete all nodes (including disconnected ones) and […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
HowTo: Install .NET 3.5 component in Windows 8.1
12 Δεκεμβρίου 14 02:55 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
I just installed .NET 3.5 on a Windows Enterprise 8.1 system that was failing to bring the needed files from the network To do this I opened a command prompt with elevated rights and ran a single command, having the Windows DVD at drive F: Dism /online /enable-feature /featurename:NetFx3 /All /Source:F:\sources\sxs /LimitAccess as explained at […]
Δημοσίευση στην κατηγορία: , , , , , , ,
HowTo: Use WordPress Permalinks on IIS
29 Οκτωβρίου 14 10:28 πμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
at http://zachis.it/blog/7-dangers-of-using-windows-server-on-a-wordpress-installation/ the thing that guy says about Permalinks isn’t accurate at all (not that the other things that he says are any accurate that is). WordPress Codex have documentation on how to configure URL rewriting in web.config that is necessery for Permalinks to work in IIS. e.g. at http://ClipFlair.net, if you press the "about" […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
HowTo: use PivotViewer in WPF
04 Σεπτεμβρίου 14 02:12 μμ | Μπιρμπίλης Γεώργιος | 0 σχόλια   
PivotViewer is an impressive Silverlight control (see my usage at http://gallery.clipflair.net), however Microsoft never released it for WPF. One could work arround this by embedding Silverlight in their WPF app using the WebBrowser control and talking to it via the JavaScript Bridge of Silverlight, however they could also embed one of those HTML5 PivotViewer-compatible controls […]
Δημοσίευση στην κατηγορία: , , , , , , , , ,
Περισσότερες Δημοσιεύσεις Επόμενη »

Search

Go

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

Συνδρομές