How to Build Ruby 2.1.3 on Osx 10.10 Gm 3.0 with Rbenv

Unable to build Ruby 2.1.3 on OSX 10.10 GM 3.0 with rbenv

The Homebrew package for gcc on Yosemite seems to be broken. That's why it doesn't work.

Had the same issue. Running:

CC=/usr/bin/gcc rbenv install 2.1.3

worked for me.

Should I migrate to ASP.NET MVC?

If you are quite happy with WebForms today, then maybe ASP.NET MVC isn't for you.

I have been frustrated with WebForms for a really long time. I'm definitely not alone here. The smart-client, stateful abstraction over the web breaks down severely in complex scenarios. I happen to love HTML, Javascript, and CSS. WebForms tries to hide that from me. It also has some really complex solutions to problems that are really not that complex. Webforms is also inherently difficult to test, and while you can use MVP, it's not a great solution for a web environment...(compared to MVC).

MVC will appeal to you if...
- you want more control over your HTML
- want a seamless ajax experience like every other platform has
- want testability through-and-through
- want meaningful URLs
- HATE dealing with postback & viewstate issues

And as for the framework being Preview 5, it is quite stable, the design is mostly there, and upgrading is not difficult. I started an app on Preview 1 and have upgraded within a few hours of the newest preview being available.

SQL: Select TOP N Marks Per User (In a List of Users)

If you're using SQL 2005 or greater, this should work. If not, there are other slightly messier ways to do it.

WITH Student_Grades AS
(
SELECT
S.student_id,
G.grade,
RANK() OVER (PARTITION BY S.student_id, ORDER BY G.exam_date DESC) AS grade_rank
FROM
Students S
LEFT OUTER JOIN Grades G ON
G.student_id = S.student_id
)
SELECT
student_id,
grade
FROM
Student_Grades
WHERE
grade_rank <= 5

Force 2005 for ProviderManifestToken in EF Data Model

If you connect to a 2005 DB/server when you update, then it will stay at 2005. That, or manual editing, are the only ways I know.



Related Topics



Leave a reply



Submit