George Birbilis' blog
...discussing pretty much everything
Suggestion: Add support for constants in C# (and VB.net etc.) interfaces
16 Νοεμβρίου 15 12:52 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
It is rather unfortunate that C# doesn’t support constants in interfaces, whereas Java does. If IL (intermediate language) that C# usually compiles to (when not using AOT that is like in .NET Native or Xamarin iOS) doesn’t support this, then the compiler could create a special sealed class to carry the constants. Then, wherever they’re […]
Visual Studio 2015 Extensions I use
13 Νοεμβρίου 15 10:34 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
This is the complete list of Visual Studio 2015 Extensions I’m using currently: Tagged: Extensions, Visual Studio
Suggestion: Introduce .= operator for C#
11 Νοεμβρίου 15 05:45 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
It would be nice if one could write in C# (and maybe in other .NET languages too): s = s.SomeMethodOfS(…)… as s .= SomeMethodOfS(…)… that is to have a .= operator, similar to += and other shorthand experession operators see screenshot for an example usecase from the opensource project FoscamController Ideally, usage of […]
Suggestion: Define once and reuse result type of method inside its body
10 Νοεμβρίου 15 11:58 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
It would be nice if one could rewrite this C# snippet: public SortedDictionary<string, UObject> GetObjects() { SortedDictionary<string, UObject> result = new SortedDictionary<string, UObject>(); using (ReadTransaction xact = namingSchema.ReadTransaction()) foreach (ObjectName.RowType row in ObjectName.object_name_(xact)) result.Add(row.name_, row.object_); return result; } in a more concise form like: public T GetObjects() where T=SortedDictionary<string, UObject> { T result […]
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 […]
Fix: VSIX installer error – SignatureDescription could not be created
10 Οκτωβρίου 15 02:13 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
This is my answer at: http://stackoverflow.com/questions/31552082/vsix-installer-signaturedescription-could-not-be-created-for-the-signature-algo/ to the question on why some extensions fail to install at RC (Release Candidate) versions of Visual Studio 2015, showing error “SignatureDescription could not be created for the signature algorithm supplied”. Not sure if Microsoft fixed this on purpose or by accident, but this is very useful for people […]
Suggestion: Allow local nested methods inside any code block
05 Σεπτεμβρίου 15 09:44 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
It would be nice if one could define methods inside other methods so that they are only accessible in the context of the parent method. In Pascal one could define them at the start of the parent method, before any other commands, but after local variables block, so they could also access the variables of […]
Suggestion: Define scoped variable at C# switch conditional statement
01 Σεπτεμβρίου 15 08:47 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Trying to reuse the conditional value of a switch statment in C# at the fallback “default” code block of it, and looking up if that was supported in C#, I found the a related discussion at: http://stackoverflow.com/questions/29628507/c-sharp-get-switch-value-if-in-default-case I added a comment there and also elaborated it a bit more at a suggestion (PLEASE VOTE IT […]
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 […]
Suggestion: property and event setting block attached to C# type instance
25 Αυγούστου 15 03:31 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Instead of having to write in C# speechRecognizer = CreateSpeechRecognizer(); if (speechRecognizer != null) { speechRecognizer.SomeProperty = someValue; speechRecognizer.SomeOtherProperty = someOtherValue; speechRecognizer.SpeechRecognized += SpeechRecognized; speechRecognizer.SpeechHypothesized += SpeechHypothesized; speechRecognizer.SpeechRecognitionRejected += SpeechRecognitionRejected; } I’d prefer to write: speechRecognizer = CreateSpeechRecognizer() { SomeProperty = someValue, SomeOtherProperty […]
Managed .NET Speech API links
24 Αυγούστου 15 03:11 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
(this is my answer at http://stackoverflow.com/questions/14771474/voice-recognition-in-windows) I’m looking into adding speech recognition to my fork of Hotspotizer Kinect-based app (http://github.com/birbilis/hotspotizer) After some search I see you can’t markup the actionable UI elements with related speech commands in order to simulate user actions on them as one would expect if Speech input was integrated in WPF. […]
Suggestion: implement ignore keyword or allow missing catch block in C#
23 Αυγούστου 15 01:23 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
This is a suggestion I’ve just sent in via Visual Studio’s “Send a frown” feature (rewritten here a bit differently from memory, since that feedback channel doesn’t allow you to access your previous feedback as the Microsoft Connect or the Uservoice site does) : Instead of having to write try { … } catch […]
Suggestion: Allow new in C# without giving Type
23 Αυγούστου 15 01:12 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
This is a suggestion I’ve just sent in via Visual Studio’s “Send a frown” feature: Instead of writing statements like: List<CultureInfo> result = new List<CultureInfo>(); in C# I’d prefer to be able to write List<CultureInfo> result = new (); inside the () one would be able to pass contructor parameters and also they […]
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 […]
Fix: Cleanup after upgrading from Windows 10 technical preview
07 Αυγούστου 15 10:25 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
I recently replaced the internal hard disk of my old Lenovo S10-3t Tablet PC with an SSD and installed Windows 10 technical preview, but recently realized the hard disk had almost run out of space. Trying to figure out why, I realized that upgrading from the Windows 10 technical preview version to the final Windows […]
Class diagrams for Hotspotizer Kinect-based application source code
04 Αυγούστου 15 02:11 πμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Following are class diagrams for Hotspotizer’s C# code, as is currently at 4 Aug 2015 at its refactored version I maintain in my fork at GitHub (http://github.com/birbilis/hotspotizer). The respective diagram (.cd) files for Visual Studio are available in the code repository at the various subfolders: Tagged: Authoring, Automation, Class, Diagrams, Gestures, Hotspotizer, Keyboard, Kinect, Smart […]
Hotspotizer (εφαρμογή για Kinect, μετάφραση άρθρου στα ελληνικά)
03 Αυγούστου 15 01:30 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Το παρακάτω κείμενο είναι μετάφραση στα ελληνικά της σελίδας: http://designlab.ku.edu.tr/hotspotizer Μια βελτιωμένη έκδοση του πηγαίου κώδικα της εφαρμογής Hotspotizer είναι διαθέσιμη στο: http://github.com/birbilis/hotspotizer Επιβλέποντες: Prof Oğuzhan Özcan, Dr Yücel Yemez Ανάπτυξη ιδέας: Mehmet Aydın Baytaş, Dr Ayça Ünlüer Ανάπτυξη λογισμικού: Mehmet Aydın Baytaş Σχετικό έργο: Προδιαγραφές πάνω σε Εκπαίδευση Σχεδίασης για Διάδραση μέσω Χειρονομιών Οι […]
Kinect for Xbox 360 and Kinect for Windows (KfW) v1 specs
28 Ιουλίου 15 05:01 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
1) 3D Depth sensor (IR Emitter + IR Camera / Depth Sensor) 2) RGB camera (Color Sensor) 3) Microphone array 4) Tilt motor (for detecting floor and players in the playspace) Kinect Specifications Viewing angle Field of View (FoV): 43° vertical x 57° horizontal Vertical tilt range ±27° Frame rate (depth and color stream) […]
Structuring (physical) source and (virtual) solution folders for portability
05 Ιουνίου 15 06:40 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Copying here those comments of mine at a discussion on the GraphX project: https://github.com/panthernet/GraphX/issues/21 describing the source code (physical) folder structure and the Visual Studio solution (virtual) folder structure I’ve been using at ClipFlair and other multi-platform projects. —— looking at the folders/projects/libraries/namespaces naming, I think it would be more appropriate to add the platform […]
Source code analyzers for .NET porting & Portable Class Libraries (PCL)
05 Ιουνίου 15 06:04 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
.NET Portability Analyzer extension https://visualstudiogallery.msdn.microsoft.com/1177943e-cfb7-4822-a8a6-e56c7905292b API Portability Analyzer – Alpha (command-line version) http://www.microsoft.com/en-us/download/details.aspx?id=42678 PLIB API XLS https://onedrive.live.com/view.aspx?resid=8A7FB4A4B32FB2C9!180&app=Excel&authkey=!AHaBmLAhQ49YCI0 Xamarin Scanner (How Mobile is your .NET code?) http://scan.xamarin.com/ Tagged: .NET, Analysis, API, ClipFlair, GraphX, PCL, Porting, Source, Xamarin
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 […]
Fix: Enable Silverlight & other NPAPI plugins at Chrome web browser
26 Μαΐου 15 05:43 μμ
|
Μπιρμπίλης Γεώργιος
|
0 σχόλια
Below I’m elaborating a bit more my related tweet: #Fix #Silverlight & other #NPAPI (Netscape #Plugin API) at #Chrome Go to chrome://flags/#enable-npapi and click Enable, Close/Reopen browser — George Birbilis (@Zoomicon) May 13, 2015 Showing below the easiest of the suggested solutions that I found in this page At Chrome’s address bar you […]
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 […]
Περισσότερες Δημοσιεύσεις
« Προηγούμενη
-
Επόμενη »
Search
Go
Το Ιστολόγιο
Αρχική Σελίδα
Επικοινωνία
Ετικέτες
.NET
ASP.net
Audio
Automation
Binding
Browser
Bugs
C#
Class
ClipFlair
Compatibility
Compression
Computers
Computers and Internet
Configuration
Controls
CSS
Database
Downloads
Ecology
Education
Errors
E-Slate
Events
Extensions
Fail
Filesystem
Filters
Firefox
Fix
Free
Games
Google
Gotcha
Hash
HowTo
HTML
HTTP
IE
IE9
IIS
Installation
Installers
Javascript
Kinect
Law
Layout
Links
Maps
Media
MediaElement
Methods
Microsoft
MMPPF
Mouse
None
Operators
Plugins
Posts
Programming
Prometheus
Properties
Python
RegEx
Security
Sharing
Silverlight
Smart Classroom
SMF
Source
String
Suggestion
Suggestions
Syntax
Text
trafilm
Transforms
Troubleshooting
Twitter
UI
Updates
URL
Usability
Video
Visual Studio
Visualization
VisualStudio
Windows
Windows 10
Windows 7
Word
WordPress
Workarround
WPF
XAML
XML
YouTube
ZIP
ZUI
Αταξινόμητα
Πλοήγηση
Αρχική σελίδα
Ιστολόγια
Συζητήσεις
Εκθέσεις Φωτογραφιών
Αρχειοθήκες
Ιστορικό Δημοσιεύσεων
Ιούνιος 2021 (1)
Απρίλιος 2021 (1)
Φεβρουάριος 2021 (2)
Ιανουάριος 2021 (2)
Αύγουστος 2020 (3)
Ιούλιος 2020 (2)
Απρίλιος 2020 (2)
Μάρτιος 2020 (3)
Φεβρουάριος 2020 (2)
Δεκέμβριος 2019 (1)
Νοέμβριος 2019 (1)
Οκτώβριος 2019 (2)
Αύγουστος 2019 (1)
Ιούνιος 2019 (2)
Απρίλιος 2019 (3)
Ιανουάριος 2019 (1)
Νοέμβριος 2018 (4)
Οκτώβριος 2018 (4)
Σεπτέμβριος 2018 (2)
Αύγουστος 2018 (2)
Ιούνιος 2018 (3)
Μάρτιος 2018 (2)
Φεβρουάριος 2018 (1)
Νοέμβριος 2017 (4)
Ιούνιος 2017 (1)
Απρίλιος 2017 (1)
Μάρτιος 2017 (1)
Μάιος 2016 (5)
Ιανουάριος 2016 (1)
Δεκέμβριος 2015 (7)
Νοέμβριος 2015 (12)
Οκτώβριος 2015 (2)
Σεπτέμβριος 2015 (3)
Αύγουστος 2015 (9)
Ιούλιος 2015 (1)
Ιούνιος 2015 (3)
Μάιος 2015 (1)
Απρίλιος 2015 (2)
Μάρτιος 2015 (2)
Φεβρουάριος 2015 (1)
Ιανουάριος 2015 (2)
Δεκέμβριος 2014 (3)
Νοέμβριος 2014 (3)
Οκτώβριος 2014 (1)
Σεπτέμβριος 2014 (2)
Αύγουστος 2014 (6)
Ιούλιος 2014 (1)
Μάιος 2014 (1)
Απρίλιος 2014 (2)
Μάρτιος 2014 (3)
Φεβρουάριος 2014 (2)
Δεκέμβριος 2013 (2)
Νοέμβριος 2013 (2)
Σεπτέμβριος 2013 (2)
Αύγουστος 2013 (3)
Ιούλιος 2013 (5)
Ιούνιος 2013 (2)
Μάιος 2013 (3)
Απρίλιος 2013 (2)
Μάρτιος 2013 (2)
Φεβρουάριος 2013 (4)
Δεκέμβριος 2012 (6)
Νοέμβριος 2012 (11)
Οκτώβριος 2012 (5)
Σεπτέμβριος 2012 (2)
Αύγουστος 2012 (9)
Ιούλιος 2012 (11)
Ιούνιος 2012 (8)
Μάιος 2012 (2)
Απρίλιος 2012 (2)
Φεβρουάριος 2012 (5)
Ιανουάριος 2012 (5)
Δεκέμβριος 2011 (8)
Νοέμβριος 2011 (3)
Οκτώβριος 2011 (4)
Σεπτέμβριος 2011 (8)
Ιούλιος 2011 (3)
Ιούνιος 2011 (2)
Μάιος 2011 (2)
Μάρτιος 2011 (4)
Φεβρουάριος 2011 (8)
Ιανουάριος 2011 (2)
Δεκέμβριος 2010 (1)
Νοέμβριος 2010 (3)
Οκτώβριος 2010 (12)
Σεπτέμβριος 2010 (2)
Αύγουστος 2010 (2)
Ιούλιος 2010 (9)
Ιούνιος 2010 (3)
Μάιος 2010 (11)
Απρίλιος 2010 (15)
Μάρτιος 2010 (13)
Φεβρουάριος 2010 (15)
Ιανουάριος 2010 (4)
Δεκέμβριος 2009 (3)
Νοέμβριος 2009 (15)
Οκτώβριος 2009 (26)
Σεπτέμβριος 2009 (13)
Αύγουστος 2009 (8)
Ιούλιος 2009 (8)
Ιούνιος 2009 (4)
Μάιος 2009 (4)
Απρίλιος 2009 (7)
Μάρτιος 2009 (8)
Φεβρουάριος 2009 (8)
Ιανουάριος 2009 (3)
Δεκέμβριος 2008 (31)
Νοέμβριος 2008 (24)
Οκτώβριος 2008 (1)
Μάιος 2008 (2)
Αύγουστος 2007 (1)
Νοέμβριος 2006 (1)
Σεπτέμβριος 2006 (1)
Συνδρομές
RSS 2.0
Atom 0.3