Geeks With Blogs

  • sonamsingh Merry Christmas dear about 1923 days ago
  • sonamsingh I am Sorry guys for that mafiawars spam.Really sorry..They spam by reading cookies too..Be careful and secure about 1995 days ago
  • sonamsingh Don't login to mafiawars on ym invite..its a spam..login if you want to..they will spam your followers too once you approve them..hello man about 1995 days ago
  • sonamsingh Hey guys,I haven't send any invitation to anybody on mafiawars family..They spammed with my twitter account..bloody hell about 1995 days ago
  • sonamsingh Any jobs for .Net Developer(c#,WPF,ASP.Net) in India ?At entry level atleast.:). Drop me a mail about 2006 days ago
  • sonamsingh I didn't ever thought that i would go on job hunting..:) Uploaded Resume to job sites about 2006 days ago

Sonam Singh C#
Capturing optional groups in regular expressions?
string input = @"cool man dog no dude yes fight son"; string pattern = @"cool (?<hello>((.)* )) (?<h>( (dude)?)) (?(h)(?<dude>((.)*)))"; MatchCollection matches = Regex.Matches(input, pattern, RegexOptions.ExplicitCapture | RegexOptions.IgnorePatternW... foreach (Match match in matches) { Console.WriteLine("dude=" + match.Groups["dude"].Value); Console.WriteLine("hello=" + match.Groups["hello"].Value); Console.ReadLine(); } /*Output- dude= hello= man dog no dude yes fight ......

Posted On Thursday, December 24, 2009 7:05 AM

What happened to my vacations
College is opening tommorow and I am thinking what i have done in past 1 and half months of vacations. The only thing i can remember is bluz,my open source project. Where is that p2p thing i decided earlier? All the research papers about skype,overlay networks ,guntella etc are lying there on disk as it is.i have read them only once.I have read not understood.. The positive side of vacations is: 1)I learned a lot about WPF,Blend etc. 2) I am participating in win7 contest based on above experience. ......

Posted On Tuesday, July 21, 2009 5:20 PM

I am gonna win this contest
Hii guys, Just heard about this If you have a little experience with MS .Net and you are as empty as me,Have a look over it. The prizes are awesome and mouth watering .You will have to grasp a little about the windows 7 techonolgies though .But you can do that for atleast 17777$. I am getting ready with a killer app idea..yes it is a a killer idea,Either it will Kill MS or my!(Sorry bill,its a metaphor,don't take it serious.) And the best thing is that ,My ......

Posted On Tuesday, July 21, 2009 7:57 AM

New Open Source Project-Bluz(Next Generation Media Player)
hi guys. I have just released a pre beta release of next generation media player bluz. Link is here: Its based on vlc libraries and bass and a couple of others for various tasks. Its in c#,WPF but if any of you would like to contribute through any means. The UI is purely in XAML,I am not a good designer,Even all icons are made in XAML. . If any of you would like to contribute through coding various modules or helping me develop the website,it would be nice of you to ......

Posted On Wednesday, July 15, 2009 8:49 AM

Setting "WindowStyle=None" hides taskbar on maximizing
If you ever tried to make irregular windows in wpf and used setting windowstyle=none,You might have used some code like this to enable minimising,maximising properties for the window: private void Minimize_Click(object sender, RoutedEventArgs e) { this.WindowState = WindowState.Minimized; } private void Maximize_Click(object sender, RoutedEventArgs e) { this.WindowState = WindowState.Maximized; } But on maximizing ,the window hides the taskbar.i.e it goes fullscreen. To avoid that issue,You can use ......

Posted On Tuesday, July 21, 2009 11:49 PM

Extracting Album art from An Audio File
I have moved the tagging features for my media player application from MediaInfo to taglib-sharp. because taglib-sharp provides writing of tags back to audio files too.. As a matter of fact, Everything else was fine but,it took me whole half day to figure out how to display an image (album art) from taglib-sharp. I thought to finally post this workaround. TagLib.File file = TagLib.File.Create((FilePath); //FilePath is the audio file location TagLib.IPicture pic=file.Tag.Pictures[0]; //pic contains ......

Posted On Thursday, June 11, 2009 3:27 AM

I got task for summers:Study p2p architectures
This is in continuation to my last post in which i was confused of "what to do in summers". After a lot of thinking,I have got the answer. I'll study/research on "p2p architectures and there use in enterprises"...Lets see how it goes,i have semester exams next week and i have downloaded a lot of books/technical papers to get started. .. p2p will help me distinguish my music player from others in the market... I'll also look at using the p2p library "Brunet" which is not much publicized as gnutella ......

Posted On Sunday, May 3, 2009 12:14 AM

Awesome way to support plugins/AddIns in your applications
Hey all, I can't imagine how easy it can be to develop and maintain a plugin architecture with System.AddIn and this tool VSPipelineBuilder.. This is a visual studio addIn is an open source project by the ClrAddIn team and is really awesome. U just define an interface/Contract and rest of the things, just a single click through that addIn. AddIn will implement that Interface and thats it,u can use it..Cheers ......... I used it for first defining a single interface .and implemented a small AddIn. ......

Posted On Tuesday, April 14, 2009 5:53 AM

ListView DragDrop in WPF,multiselect
After going through the web ,I haven't got anything that i can use directly to enable drag drop between two listview controls or within same for multiple items. The best thing available in my opinion is this one by Josh smith: But it is for single SelectionMode only Another one for multiselct is this: But the second one has many limitations.. So i have done some work to extend ......

Posted On Monday, March 2, 2009 5:46 PM

Static methods in Interface
I was trying to implement an Interface by a class but i wanted to have static methods. But C# doesn't allow static methods in interface. After a little search,I got "why We can't have static methods in Interfaces". suppose i have an interface, interface IDemo { static void add(); } Now we implement it: class MyClass:IDemo { static void add() { Console.WriteLine("Added"); } } Pretty cool na. But it won't compile. because what if IDemo.add(); To avoid this ambiguity, Static Methods are not allowed ......

Posted On Thursday, December 18, 2008 6:03 PM

Copyright © sonam | Powered by: | Join free