March 2011
93 posts
4 tags
Prototyping Applications with MongoDB →
nosql:
When prototyping an application it’s common to need to change the database frequently and MongoDB allows me to do that without the need of generating migrations and keeping the DB schema in the model layer.
You can use a document database at least until you nail your model.
Original title and link: Prototyping Applications with MongoDB (NoSQL databases © myNoSQL)
มีคนทำงานห่วย อย่างมากก็ไล่ออกไม่เท่าไหร่ มีผู้บริหารห่วย = ห่วยทั้งองค์กร...
2 tags
Domain Specific Language (definition)
In software development and domain engineering, a domain-specific language (DSL) is a programming language or specification language dedicated to a particular problem domain, a particular problem representation technique, and/or a particular solution technique. The concept isn’t new—special-purpose programming languages and all kinds of modeling/specification languages have always existed,...
4 tags
Enum with NHibernate
try: http://stackoverflow.com/questions/503310/how-do-you-map-an-enum-as-string-in-fluent-nhibernate
if not successful, try:
http://stackoverflow.com/questions/439003/how-do-you-map-an-enum-as-an-int-value-with-fluent-nhibernate/2716236#2716236
FluentNHibernate Conventions
By default conventions are applied before your mappings are created from thefluent mappings. What this means is you define the “shape” of your mappings first, then the conventions are applied to set all default values, and finally any explicit changes you made with the fluent mappings are applied.
Given this mapping:
public class PersonMap : ClassMap<Person>
{
public...
5 tags
Custom Fluent Nhibernate Membership and Role... →
3 tags
How do I view the SQL that is generated by... →
3 tags
NHibernate.Caches.SysCache2: don’t forget to call... →
2 tags
Using SqlDependency for data change events →
3 tags
Very good NHibernate lessons on Set and Property
<set /> : http://nhforge.org/blogs/nhibernate/archive/2009/04/13/nhibernate-mapping-lt-set-gt.aspx
<property /> : http://ayende.com/Blog/archive/2009/04/07/nhibernate-mapping-ltpropertygt.aspx
cascade : http://ayende.com/Blog/archive/2006/12/02/NHibernateCascadesTheDifferentBetweenAllAlldeleteorphansAndSaveupdate.aspx
3 tags
AutoMapper limit depth of mapping or map lazily →
4 tags
Kill your application with Hibernate subselect! →
4 tags
ADO.NET ไม่ได้เป็นเครื่องมือที่ดีเท่าไหร่ถ้าใช้กับ App ขนาดใหญ่...
– Ochawin
ชีวิตผมโชคดีที่ได้รู้จัก architect เก่งๆหลายคน หลายคนขอบอกว่า...
– Ochawin
4 tags
WCF Concurrency (Single, Multiple and Reentrant)... →
2 tags
Constructing a Domain Object from multiple DTOs →
2 tags
Riak →
fb hacks
Deceiving Users with the fb Like Button : http://arnab.org/blog/deceiving-users-facebook-button
How to steal fb Authentication cookies : http://atenlabs.com/blog/how-to-steal-facebook-authentication-cookies/
1 tag
The HTML5 Video Framework →
3 tags
WCF membership links
How to: Use Non-default Membership Provider for WCF Authentication Service : http://msdn.microsoft.com/en-us/library/bb386455.aspx
AuthenticatingEventArgs.CustomCredential Property : http://msdn.microsoft.com/en-us/library/system.web.applicationservices.authenticatingeventargs.customcredential.aspx
How to: Customize the Authentication Cookie from the WCF Authentication Service...
ฝรั่งวิ่งเข้าหา ‘ความยาก’ แล้วทำให้มันเกิด ‘ความง่าย’...
– Ochawin
เพราะคนยิ่งใหญ่ คู่ควรกับการสร้างสิ่งที่ยิ่งใหญ่..
– Ochawin
The moment you have fear the opponent will look greater than he really is! Have...
– The Breaker New Waves Comic
2 tags
Today Must Watch
The Evolution of the Erlang VM : http://www.infoq.com/presentations/The-Evolution-of-the-Erlang-VM
Hot Swapping Your Engines At 30,000 Feet : http://www.infoq.com/presentations/Hot-Swapping-Your-Engines-At-30000-Feet
3 tags
NHibernate inverse attribute very good... →
Note that set inverse attribute to ‘true’ at the collection’s holder side (to tell the NH not to update the parent id, it will be our responsible to update parent id manually. If set to ‘false’, NH will insert and then issue update the child’s parent id automatically).
Though, parent id cannot be null (nullable constrain is set), if you can make sure when...
4 tags
Why XML doesn't fit in NHibernate?
Why replace HBM.XML? While the separation of code and XML is nice, it can lead to several undesirable situations.
Due to XML not being evaluated by the compiler, you can rename properties in your classes that aren’t updated in your mappings; in this situation, you wouldn’t find out about the breakage until the mappings are parsed at runtime.
XML is verbose; NHibernate has gradually...
5 tags
Today Must Read
- Are concurrency issues possible when using the WCF Service Behavior attribute set to ConcurrencyMode.Multiple and InstanceContextMode.PerCall? : http://stackoverflow.com/questions/2545778/are-concurrency-issues-possible-when-using-the-wcf-service-behavior-attribute-set
- WCF Instancing, Concurrency, and Throttling...
ต่อให้เป็นงานที่เรารักที่สุด แต่มันคือ ‘งาน’...
– Ochawin
2 tags
What NoSQL solutions are out there for .NET? →
2 tags
Thrift →
สำหรับคุณprogrammerชีวิตไม่เร่งรีบ ผมอยากบอกว่าคุณต้องรีบได้แล้ว งั้นคุณตายแน่...
– Ochawin
3 tags
http://stackoverflow.com/questions/1980214/how-to-s... →
http://sqlazuremw.codeplex.com/ →
Is it better to ignore and go with NoSQL for social networking sites?
No. All...
– Gates VP - http://stackoverflow.com/questions/3833383/asp-net-with-nosql
2 tags
Microsoft also markets an appliance for a private... →
5 tags
MARS →
4 tags
Inside Azure (by Microsoft)
Logical Databases on a SQL Azure ServerSQL Azure subscribers access the actual databases, which are stored on multiple machines in the data center, through the logical server. The SQL Azure Gateway service acts as a proxy, forwarding the Tabular Data Stream (TDS) requests to the logical server. It also acts as a security boundary providing login validation, enforcing your firewall and protecting...
4 tags
Today Must Read
Getting Started with SQL Azure Development http://msdn.microsoft.com/en-us/magazine/gg309175.aspx
Windows Server AppFabric Concepts and Architecture http://msdn.microsoft.com/en-us/library/ee677175.aspx
Windows Server AppFabric Learning Resources http://msdn.microsoft.com/en-us/windowsserver/ee695849.aspx
Windows Server AppFabric Training Kit...
3 tags
ASP.NET SEO around VIEWSTATE →
1 tag
4 tags
Protecting Your Cookies: HttpOnly →
5 tags
Internet security is a failure and TLS...
http://journal.paul.querna.org/articles/2010/04/11/internet-security-is-a-failure/ : Good article :’)
http://www.securegoose.org/ : (a blog post) SSL Renegotiation bug (TLS renegotiation vulnerability (CVE-2009-3555)) in Twtter by Kurmus
3 tags
patterns & practices: WCF Security Guidance →
3 tags
Command-Query Responsibility Segregation (CQRS)
Command-Query Responsibility Segregation is a smart way of architecting software that uses messaging in a structured way. We separate commands (that change data) from queries (that read data) and differentiate between read and write sides.
These are places to learn more about CQRS:
- http://stackoverflow.com/questions/5043513/cqrs-examples-and-screencasts
...
6 tags
WebHttpBinding, BasicHttpBinding, and...
webHttpBinding is the REST-style binding, where you basically just hit a URL and get back a truckload of XML or JSON from the web service
basicHttpBinding and wsHttpBinding are two SOAP-based bindings which is quite different from REST. SOAP has the advantage of having WSDL and XSD to describe the service, its methods, and the data being passed around in great detail (REST doesn’t...
2 tags
Kerberos in Thai →
3 tags
3 tags
Double Hop Authentication with Kerberos →
2 tags
Setting up Delegation Authentication in Win2003 →