LinqPad, A great tool to work and learn LINQ

« Developing E-Commerce application in .NET | PointUI, a fancy UI for windows moible » LinqPad, A great tool to work and learn LINQ by Vahid 30. January 2009 14:36 Want to learn LINQ? looking for a lightweigh and fast application to evaluate your linq expression? now check this out. i found a very good free application which lets you interactively query SQL databases in a modern query language: LINQ. LINQPad is also a great way to learn LINQ: it comes preloaded with 200 examples from the book, C# 3.0 in a Nutshell. And finally LINQPad is more than just a LINQ tool: it’s a code snippet IDE that instantly executes any C#/VB.net expression, statement block or program. Put an end to those hundreds of Visual Studio Console projects cluttering your source folder! you can get it from here. ...

January 30, 2009 · 2 min

Need Credit card numbers to test your E-Commerce site?

« Java learning videos | Developing E-Commerce application in .NET » Need Credit card numbers to test your E-Commerce site? by Vahid 28. January 2009 03:24 one issue we usually face while developing an ECommerce application is testing credit card payment system. so here is list of credit card numbers we can use to test payment system. American Express: 3111-1111-1111-1117 Visa: 4111-1111-1111-1111 or 4222-2222-2222-2222 MasterCard: 5111-1111-1111-1118 Discover: 6111-1111-1111-1116 remember that CCV number and Name does not matter but you should keep the amount bellow $500 dollars and also make sure expiration date is not today but in the future. ...

January 28, 2009 · 1 min

Comparision between C# and JAVA

« export to excel but in new page | Java learning videos » Comparision between C# and JAVA by Vahid 25. January 2009 15:30 here is a quick comparision between microsoft c# (.net) and java Concept C# Java Notes Virtual machine CLR JVM CLR is not quite the same as JVM concept, but very similar. Namespace namespace/ using package/ imports C# allows multiple namespaces in a file, Java does not. Attributes [attribute] @annotation C# 1.0, Java 1.5 Base class base super abstract objects abstract class abstract class abstract methods abstract abstract sealed objects sealed final In both cases, sealing is discouraged. sealed methods sealed final replacement methods new keyword not supported Effectively ignores the base method. constants const / readonly final static Enum’s enum keyword enum keyword C# 1.0, Java 1.5 virtual functions explicit virtual always virtual This is one of the gotcha’s when working between the two languages override intention override @Override (though members override by default) Causes compiler error if method is not actually overriding a base method. Class/Type representation of simple types Map 1:1 with the simple type keywords. Behave different to simple type keywords. C# seems more natural than Java in it’s behavior Getters/Setters get/set keywords, behave like properties Explicit get/set methods Again, C# seems more natural with this. Events Typically via delegates Typically via interfaces Reference equivalence Object. ReferenceEquals() == Another C# vs Java gotcha. Value equivalence == or Object.Equals() object.equals(), == for value types Java’s choice of using == for reference equals adds to the need to distinguish between objects and value types. Object introspection Object.GetType() object.class Very similar Exceptions thrown by method implicit throws keyword Actually liking Java’s philosophy here, albeit taking some getting used to. Stack scoping using keyword, or try/finally keywords try/finally keywords ‘using’ keyword is syntax sugar that calls IDisposable.Dispose() method at end of block. Simple synchronization lock keyword synchronized keyword ‘synchronized’ can also be used on a method. Generics class<type> class<type> C# 2.0. Java 1.5. C# has a cleaner implementation and discovery of generics in reflection. In Java, class and class<type> cannot co-exist. class becomes synonymous to class. Output parameters out, ref Not allowed Not a huge loss in Java, there are simple workarounds. Switch fall-through Not allowed Allowed iteration foreach(type x in y) for (type x : y) C# 1.0. Java 1.5. Lambda/Closures => (future) C# 3.0. Java 1.7 (maybe) .Net | JAVA | Technical ...

January 25, 2009 · 3 min

Java learning videos

« Comparision between C# and JAVA | Need Credit card numbers to test your E-Commerce site? » Java learning videos by Vahid 25. January 2009 17:04 i just found a set of java and eclips learning videos. these are good mostely for begginers. you can find them here http://sourceforge.net/project/showfiles.php?group_id=200662 Technical | JAVA | Learning resource Comments (0) Related posts Comparision between C# and JAVA here is a quick comparision between microsoft c# (.net) and java …Entity Framework learning resouce browsing internet i found this document about ado.net entity framework which comes with microsoft …Differences between XML and JSON Here are some key differences between JavaScript Object Notation (or JSON), an open and text-… ...

January 25, 2009 · 1 min

export to excel but in new page

« Why Grandma should not do sky diving | Comparision between C# and JAVA » export to excel but in new page by Vahid 20. January 2009 05:42 in the last sub system which we were working on, there was requirement to export the result of a query which is from oracle database and is displayed in an asp.net data grid into excel file. but the component we are using for export to excel functionality gets the collection as input parameter and export the data to excel file and write the excel file into response object of the asp.net. this means once the functionality is invoked, a dialog box will be displayed asking Open the file, save the file of cancel the operation. no issue with save and cancel. but when they clicked on the open it opens the excel file in the same browser window where they were viewing the page and they close the window once they were through with viewing the excel file. this means they close the application. ...

January 20, 2009 · 2 min

Why Grandma should not do sky diving

« free lightweight source code editor | export to excel but in new page » Why Grandma should not do sky diving by Vahid 16. January 2009 05:59 Technorati Tags: Funny General Comments (0) Related posts Why I believe software development should be like amazon kindle developmentFew weeks ago I got myself an Amazon Kindle to facilitate book reading and hopefully get back my rea…Could not create the driver from NHibernate.Driver.OracleDataClientDriver error in NHibernateI have been playing with Nhibernate to connect to an oracle database using ODP.NET. first POC projec…Could not load file or assembly ‘Oracle.DataAccess’ or one of its dependencies. An attempt was made to load a program with an incorrect formatI had deploying an asp.net application to a windows 2008 64bit server. the application uses od… ...

January 16, 2009 · 1 min

free lightweight source code editor

« patterns & practices Application Architecture Guide 2.0 | Why Grandma should not do sky diving » free lightweight source code editor by Vahid 15. January 2009 07:27 Guys, looking for a free lightweight code editor? then you gatta check Programmer’s Notepad. very nice and usefull tool to edit and compile different kind of source code including : Assembly, C#, Java, ASP.net, Javascript, Sql, pl/sql, CSS, C, C++, HTML, Fortran, XML, Pascal, Pear, PHP, PHP script, powershell, vbscript, Python, Ruby, Visual Basic and so many more. it has also a set of nice feature like : ...

January 15, 2009 · 2 min

patterns & practices Application Architecture Guide 2.0

« Solution for CS0016 Error on ASP.NET and IIS7 | free lightweight source code editor » patterns & practices Application Architecture Guide 2.0 by Vahid 14. January 2009 07:29 I have been waiting for this for long time. the first version has been really usefull for me. this is an official guied for application architecture provided by patterns and practicess team at microsoft. i hope this will be usefull for you also and let’s thank the team for the greate job. ...

January 14, 2009 · 1 min

Base Class Library Samples

« Sort based on input parameter in oracle query. | Know more about Representational state transfer (REST) » Base Class Library Samples by Vahid 13. January 2009 13:30 i found a set of usefull samples for .net BCL (base class library). you can take them at the following link: http://msdn.microsoft.com/en-us/netframework/aa569267.aspx .Net | Technical Comments (0) Related posts Sort based on input parameter in oracle query.Today I was tracing a defect happened in a stored procedure with paging functionality. After spendin…Customizing Entity Framework Classes in VS 2010 need to know about new cool features in visual studio 2010? check this link which describes …Comparision between C# and JAVA here is a quick comparision between microsoft c# (.net) and java … ...

January 13, 2009 · 1 min

Know more about Representational state transfer (REST)

« Base Class Library Samples | Solution for CS0016 Error on ASP.NET and IIS7 » Know more about Representational state transfer (REST) by Vahid 13. January 2009 13:42 i am sure these you hear about REST, so want to know what rest is? then have a look at the following definition Representational state transfer (REST) is a style of software architecture for distributed hypermedia systems such as the World Wide Web. As such, it is not strictly a method for building “web services.” The terms “representational state transfer” and “REST” were introduced in 2000 in the doctoral dissertation of Roy Fielding,one of the principal authors of the Hypertext Transfer Protocol (HTTP) specification. ...

January 13, 2009 · 2 min