Profilo di ambatiProgramming Myself.. Amb...FotoBlogElenchiAltro ![]() | Guida |
PDCSource: Mahesh .NET Framework 4 Poster – Deep Zoom Version & PDF Version .NET Framework 3.5 namespace poster – Download Visual Studio 2010 and .NET Framework 4.0 CTP Download from here. Source: From Harish Ranganathan jQuery Demos -- Contains sample code that demonstrates how to use jQuery selectors, animations, and plug-ins. PDC on LIve : Here at PDC, Los Angeles, there is one thing for sure. ASP.NET Sessions are overflowing invariably across all days. Yes! There are way too many exciting things that I can cover over a single post and in this short duration that I wanted to keep them off until I am back. Quick announcements. ASP.NET Builds on various features such as Dynamic Data, MVC, Astora, AJAX & Futures are available at CodePlex http://codeplex.com/aspnet ASP.NET 4.0 Roadmap : i. jQuery support built-in to Visual Studio ii. MVC Built-in
iii. Dynamic Data for Business Objects visit http://www.microsoftpdc.com/ for live sessions, recorded videos, downloads and latest updates.
29 ottobre LINQ problemI have two tables with a parent child relationship between them
But in the child table I have to allow nulls for the child table as I am using the same table for another scenario.
Using LINQ it is not possible to make this situation possible,
So I am going to the old way by removing LINQ from my application PDC announcementsSmall basic
NET 3.5 SP 1 improvements
Source: Harish Ranganathan
PDC 2 day coverage : Sam Gentile Keynote/Windows 7 VS2010/.NET Framework 4/ASP.NET 4/Concurrency
Silverlight PDC 1 Day Coverage Here is my wrapper topic/links from some people I trust on the Keynote and Day1: Keynote Azure Services Platform and .NET Services WCF REST, WCF and WF 4.0
VS2010 and .NET Framework 4.0/C# 4.0 Windows Live ID is publicly committing to support the OpenID digital identity framework. OpenID
Microsoft announced that the next version of Microsoft Office will be available as browser-based tools in addition to being desktop software products, too. The online apps will include Word, Excel, PowerPoint, and OneNote and they will run in the browser thanks to the Silverlight plugin. Plans are to support Internet Explorer, Firefox, and Safari.
Key components of the Azure Services Platform include the following:
patterns & practices App Arch Guide 2.0 Project".
http://blogs.msdn.com/somasegar/archive/2008/10/27/announcements-from-pdc-2008.aspx New MSDN REST dev center - http://msdn.microsoft.com/en-gb/netframework/cc950529.aspx New REST toolkit from the product team on Codeplex - http://www.codeplex.com/aspnet/Wiki/View.aspx?title=WCF%20REST 27 ottobre Microsoft Devlabshttp://msdn.microsoft.com/en-us/devlabs/default.aspx
Sharepoint virtual labs : http://msdn.microsoft.com/en-us/virtuallabs/cc707678.aspx
=======
Currently I am working on a 3.5 project where I have to do lot of calculations and my methods should be wcf exposed.
But I used two dimensional arrays which are not helpful in wcf.. I think they cant deserialize.
I got help from Sendhil to identify this problem . Again I have to revamp the calculation engine to jagged arrays. Why there is no support for multidimensinal arrays arr[,] in WCF?? Dont know ...
I am having a method in service interface
float[,] CalculateProgressPaymentsYearwise(float input_DirectProcurementCost, float []input_OtherEquipmentCosts)
I implemented it also
then in my client application when I am taking service reference ..it is giving error that multidimensional arrays are not supported
you can use a jagged array 24 ottobre WCF basicsfile - new project - wcf -> wcf service library
It will create Iservice1.cs and service1.cs files
There is a warning here in Iservice1.cs file
// NOTE: If you change the interface name "IService1" here, you must also update the reference to
"IService1" in App.config. (if u try to rename iservice1 file then u have to go app.config and u have
to manually do the changes .THats y i added a new service file as per my naming conventions which
automatically updates app.config file.
Please follow.
If u want ur own service file just delete this file and add another
right click on solution ->add new item .. select "wcf service" file and rename (MyWebservice) according to ur needs.
It will automatically adds two files : IMyWebService.cs and MyWebservice.cs files. In IMyWebService.cs file I wrote "
[OperationContract] int AddTwoNumbers(int firstnumber, int secondnumber); "
In MyWebService.cs file I added
public int AddTwoNumbers(int first, int second) { return first + second; } Thats it.
Press F5 it wil open a window which shows ur added method "AddTwoNumbers" U can test ur webmethod by giving inputs and u can check the result. Fully flexible in 2008 Then develop a client application
=================================== webapplication:
File -> Add new website -> selcte asp.net website 3.5 c#
right click on project : Add new reference --> system.ServiceModel
right click on project : add service reference.. click on discover and ok
in default.aspx: add using system.servicemodel
and page_load
ServiceReference1.Service1Client cl = new ServiceReference1.Service1Client();
Response.Write(cl.AddTwoNumbers(1, 2).ToString()); Make this as startup project ..Press f5.thats it
======= This procedure is same for windows,console (add code in program.cs file) Join The Bangalore Jaago Re! One Billion Votes City TeamVolunteer To Join The Bangalore Jaago Re! One Billion Votes City Team
Jaago Re! One Billion Votes is a non-partisan nationwide movement launched by Janaagraha and Tata Tea to awaken and enable the citizens of India, especially the youth, to register for voting. The mission is to register One Billion Voters to vote in the next five years for a more robust democracy. The campaign focuses on empowering the youth of India to lead this change. Volunteering The campaign will reach out to 11 key cities. Beginning 1st November 2008, talks will be organized in more than 200 of India's largest colleges and companies, to spread the message of the campaign and organizing ON THE SPOT voter registration drives using innovative technology. Outreach will be managed largely by volunteers. The campaign will give opportunities to Institutions and Individuals (especially youth) to participate. Institutions who have committed their support include Infosys, Wipro, St. Xaviers Mumbai, St Josephs Bangalore etc. The Jaago Re! One Billion Votes campaign is looking for volunteers to join the Bangalore city team. City Team Member: Role for Volunteers You will need to spend one working day per week for the next 3 months, playing these roles: 1. Outreach campaigner (mandatory) 2. Sunday campaigner (optional) 3. Outreach facilitator (optional) An Outreach Campaigner needs to approach Colleges and Companies, to bring them on board as Host Institutes. A Sunday Campaigner will conduct creative outreach events in the city to get youth enrolled on Jaago Re One Billion Votes! An Outreach facilitator, will need to address audiences during outreach drives You need to attend meetings every Saturday at 3 pm. Meeting Venue: Janaagraha, 4th Floor, UNI Building, Thimmaiah Road, Vasanthnagar, Bangalore - 560052 Contact: Vijay Pamarathi, Regional Outreach Coordinator, vijay@janaagraha.org +91-9886720477 Jaago re! Please register to voteFriends As part of my volunteering with Janaagraha I came to know about this program (TATA with Janaagraha) For the upcoming elections if u r not registered to vote .. please use this online registration
Please pass this information in your company and in your neighbourhood Thanks 18 ottobre ExcelIn my current project I am migrating an excel application into .net 3.5 project.
my client is using an excel sheet as their project.
After seeing that excel application I learned so much about Excel. we can do so many things in excel.
Formulas tab: Name Manager (For defining the constants) Trace precendents, trace dependents, remove arrows.
Excel problem
If u importing excel into a datatable if some columns are having formulas then they wont go to dataset.
For getting them imported use IMEX=1; Source :http://social.msdn.microsoft.com/forums/en-US/vblanguage/thread/680d332d-0243-409d-8e12-e94a4ca435e1
Soul: IMEX=1;
string strConnectionToSheet = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + pathToSpreadSheet + "; Extended Properties='Excel 8.0; IMEX=1; HDR=YES'"; ---------
Find no of columns in a table in sqlserver CREATE TABLE #temp ( table_name sysname , row_count INT, reserved_size VARCHAR(50), data_size VARCHAR(50), index_size VARCHAR(50), unused_size VARCHAR(50)) SET NOCOUNT ON INSERT #temp EXEC sp_msforeachtable 'sp_spaceused ''?''' SELECT a.table_name, a.row_count, COUNT(*) AS col_count, a.data_size FROM #temp a INNER JOIN information_schema.columns b ON a.table_name collate database_default = b.table_name collate database_default GROUP BY a.table_name, a.row_count, a.data_size ORDER BY CAST(REPLACE(a.data_size, ' KB', '') AS integer) DESC DROP TABLE #temp LINQ problemJust working on 3.5 framework project and using LINQ . sqlmetal.exe tool for generating file Exists in C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin
when casting from a number the value must be a number less than an infinity Solution:
17 ottobre Book: The Monk Who Sold His FerrariThe Monk Who Sold His Ferrari Browsing Options: This inspiring tale provides a step-by-step approach to living with greater courage, balance, abundance, and joy. A wonderfully crafted fable, The Monk Who Sold His Ferrari tells the extraordinary story of Julian Mantle, a lawyer forced to confront the spiritual crisis of his out-of-balance life. On a life-changing odyssey to an ancient culture, he discovers powerful, wise, and practical lessons that teach us to: Develop Joyful Thoughts, Follow Our Life's Mission and Calling, Cultivate Self-Discipline and Act Courageously, Value Time as Our Most Important Commodity, Nourish Our Relationships, and Live Fully, One Day at a Time. Review: http://www.chillibreeze.com/bookreviews/ThemonkwhosoldhisFerrari.asp http://www.esnips.com/doc/16051b14-70e2-4666-9785-69b30bc68bbf/The-Monk-Who-Sold-His-Ferrari 16 ottobre Dynamic Data Extensions 1. Dynamic Data Web Site (to use LINQ to SQL)
------------------------------------------------- File - new - website - Dynamic Data website template Location : file system . Language : c#
It will have default.aspx
Open server explorer in vs editor from View tab connect to a db in sqlserver
Then vs solution explorer .. right click add App_code folder
Right click App_code folder and add new item and select "LINQ to SQL classes" and name it as northwind.dbml Drag required tables from server explorer on to northwind.dbml file.
Go to web.config and
check for " <dynamicData dataContextType="" enableTemplates="false"> " change enableTemplates = true Thats it
f5 shows u default.aspx with selected tables. 2. Dynamic Data Entities Web Site (to use the ADO.NET Entity Framework).
=========================================================================== Restful coding : Coding from the url .. I mean like the below:
Fetch ProductID = 1 : http://localhost:1453/WebSite5/NorthwindDataService.svc/Products(1)
Fetch the Supplier for the Product : http://localhost:1453/WebSite5/NorthwindDataService.svc/Products(1)/Supplier
Fetch Products 11 - 20 : http://localhost:1453/WebSite5/NorthwindDataService.svc/Products?$skip=10&$top=10
File --> New - website -- asp.net website
location: file system language : c#
Choose an ADO.NET Data Service and click Add (say fielname is WebDataService1.svc ..it will generate webDataService1.cs file too)
Choose an" LINQ to sqlclasses" and click Add (say filename is DataClasses1.dbml) view tab --> server explorer .. create a connection with db
And drop required tables on DataClasses1 file Copy the classname of DataClasses1.dbml file ..
And paste in webDataService1.cs file at the first line in between < > and copy this line "
config.SetResourceContainerAccessRule("*", ResourceContainerRights.AllRead); " in InitializeService method Bankruptcy ConceptSource : My colleague Mriganka
If you could read patiently and understand, its a great knowledge !
Microsoft ‘Software + Services – Live Services Microsoft ‘Software + Services’ Services – Live Services
Why Microsoft is not conducting this in India?? 10 ottobre Dublin’ is the next version of Application ServerDublin’ is the next version of Application Server
Project Automation:
Concerned about your team’s performance? Looking for ways to enhance your team’s productivity and getting rid of all those mundane tasks? Years of consulting and building products have thought me that Automation is the key to improving team’s productivity and bringing joy back to software development. If your team is seriously looking at automating as much as possible on their projects, you must consider some items like:
|
|
|