Michael D. Irizarry interviewed @ Twittericans.net
Michael D. Irizarry interviewed at Twittericans.net Tweetcast 04 on Startup Weekend, his projects and also plugs in http://iphone.sal.pr
Puerto Rico Startup Weekend June 5 – 7
Startup Weekend in San Juan, Puerto Rico from June 5 -7 at Hacienda Country Club & Convention Center.
Come join us as we bring this new and exciting business opportunity to the Shinning Star of the Caribbean.
Startup Weekend World #2 Challenge from Andrew on Vimeo.
What is Startup Weekend?
Startup Weekend is a community building startup event. Get together with local developers, marketers, designers, enthusiasts, and do what you do best. Start projects, Start companies. No talk, all action. The weekend of June 5-7 is Startup Weekend World. Celebrating the news that Startup Weekend is now ‘open’ to anyone to organize. How exciting 20+ cities from around the worl will host their own startup Weekends. No city is too big or small.
What’s its purpose?
Build new startup companies, bring people together, share ideas.
What’s the target market?
Technology, Web Development, Entrepreneurs, Legal, Marketing, Web 2.0, e-Business
What are the requirements?
Be a technology enthusiast, be a Web Junkie, Programmer, IT person, blogger, marketers, lawyer or just have a cool business idea.
Is it FREE?
Yes! It’s Free.
REGISTER FOR THIS EVENT
Register here now for the June 5-7 Event: http://puertorico2.eventbrite.com/
C# Form Validation Class
A nice little form validation class. It provides validation for Phone, Email, URL and Zipcode but its real easy to extend.
Read more >>
10 jQuery 1.3 Tips and Tricks for everyday use
Some useful jQuery Tips and Tricks for your everyday use. Removing and Hiding Dom Elements, Browser Detection, Toggling, Handling Select Lists and more.
Read more >>
Group By, Group, Take and Order By with LinQ in C#
At some point you’ll need to group and order your results using LINQ. It’s an easy task but a little bit hard to master since you have a few options. Lets imagine we have Voting Poll that people will vote on periods. The voting Poll has 3 tables TimePeriod, Items and the Cross Reference table TimePeriod_Items and we want to build a results grid using them. The best option for me is the following. Notice I’m also limiting the results using the Take method this way I only have 3 items per Group. Also notice that I’m not returning an Anonymous Type but rather an ItemResults Type.
Code
public List<ItemResults> FindResults() { var query = from items in db.TimePeriod_Items group items by items.TimePeriod into g orderby g.Key.finish select new ItemResults { TimePeriod = g.Key, TimePeriod_Item = g.Key.TimePeriod_Items.OrderByDescending(item => item.votes).Take(3) }; return query.ToList(); }
ItemResult Class
public class ItemResults { public TimePeriod TimePeriod { get; set; } public IEnumerable<TimePeriod_Item> TimePeriod_Item { get; set; } }
Use in ASP.NET MVC
public ActionResult Results() { var items = appRepository.FindResults(); return View("Results", items); }




