Report

czetsuya's tech




Site Details
Current Rank: 41 (Technology & Computers)
URL: http://czetsuya-tech.blogspot.com
Site Description: Your 1-click Help to Programming
Date Joined: Jan 13, 2010

Tags: magento, codeigniter, programming, technology, software


Latest Blog Posts

Elmah not logging, elmah.axd page is always null when using SqlErrorLog
on Feb 6, 2012 in programming visual studio csharp vb dot net First make sure that you're web.config file is setup properly and that you have defined elmah to handle the error in each controller. You can do that easily in c# mvc3 by using nuget and downloading elmah, elmah.corelibrary and elmah.contrib.mvc.&nbs...



How to read and write an object in a textfile in C#
on Jan 30, 2012 in programming visual studio csharp vb dot net Long time ago I've a requirement to read sms messages from device to be written in a text file. Before I learned to serialize an object, I was saving it in a file comma-delimited. That approach is working but sometimes it's a pain to keep track of wh...



Injection of Control in a C# Console Application
on Jan 26, 2012 in programming visual studio csharp vb dot net Now that I'm working with C# MVC3, I learned that it's easier to setup Injection of Control because of several available plugins that you can use straightly after install. For example the one I'm using is Unity.MVC, in Visual Studio 2010 you just hav...



Read and update your mailbox using php
on Jan 26, 2012 in web programming php codeigniter There are 2 ways I use 2 read email from my mailbox. Let the code explain:1.) Usually use for gmail./* connect to gmail */$hostname = '{imap.gmail.com:993/imap/ssl}INBOX';$username = 'xxx@gmail.com';$password = 'xxx';/* try to connect */$inbox = imap...



How to alter bit and date column's default value in MSSQL
on Jan 24, 2012 in database mysql mssql postgresql oracle sql Aside from using the SQL Designer, you can alter a bit and date column's default value.ALTER TABLE TableName ADD CONSTRAINT TableName_Disabled DEFAULT 0 FOR DisabledALTER TABLE TableName ADD CONSTRAINT TableName_DateCreated DEFAULT getdate() FOR Date...



Add a jquery datepicker on jquery dialog box via load method
on Jan 16, 2012 in web programming html css javascript Recently I've worked on a form that requires a jquery datepicker to be rendered inside jquery's dialog element. Where I encountered several problems like:1.) datepicker() should be invoke inside dialog2.) the dialog created (div) should be remove fro...



Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints
on Jan 11, 2012 in programming visual studio csharp vb dot net Have you encountered this error:"Introducing FOREIGN KEY constraint 'x_y_Target' on table 'z_UsersInRoles' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints."It app...



How to declare foreign key in Entity Framework
on Jan 11, 2012 in programming visual studio csharp vb dot net There are 2 ways to declare foreign key in entity framework. Assuming we have 2 entities aspnet_Users and Person, which are link via UserId from aspnet_Users.1.) class Person { public Guid UserId { get;set; } [ForeignKey("UserId")] public virtual...



Many to many relationship in Entity Framework
on Jan 11, 2012 in programming visual studio csharp vb dot net An example of many-to-many relationship is asp's membership tables, between aspnet_Users and aspnet_Roles.Usually we declare it like this:public class AspUser { public Guid UserId { get; set; } ... public ICollection AspRoles { get; set; }}public...



Adding loading screen to C# MVC ajax dialog form using jquery
on Jan 4, 2012 in programming visual studio csharp vb dot net With my experience from telerik, I want my entity's add and edit form to be a popup so I don't have to change screen. I'm using C# MVC3, so I tried to look for jquery add on that would do the job. Fortunately I've come up with this article: http://ni...



Statistics
Unique Visitors Today: 260
Page Views Today: 273
Unique Visitors this Week: 1,874
Page Views this Week: 1,971
Unique Visitors this Month: 2,814
Page Views this Month: 2,955
Total Unique Visitors: 109,841
Total Page Views: 116,276
Total Hits Out: 140

Site Traffic