Wely

wel = new Geeks();
See also: Other Geeks@INDC

September 2007 - Posts

ASP.NET 2.0 FileUpload Problems
I was wondering why I got error when I upload big size file (4 or 5 MB). But when 3.9 MB, it worked well. My colleague told that we have to change a key "AspMaxRequestEntityAllowed" at MetaBase.xml which is located in C:\WINDOWS\system32\inetsrv. I tried it but still could not fix my problem.

 

At last, I found an article in the internet http://community.sgdotnet.org/blogs/chuawenching/archive/2006/04/25/25995.aspx

 

Yeah... By default we are not allowed to upload < 4 MB from FileUpload. To overcome this problem, we have to add a key in our configuration file (web.config).

<httpRuntime
executionTimeout = "110" [in Seconds][number
maxRequestLength = "4096" [number]
requestLengthDiskThreshold = "80" [number]
useFullyQualifiedRedirectUrl = "false" [true|false]
minFreeThreads = "8" [number]
minLocalRequestFreeThreads = "4" [number]
appRequestQueueLimit = "5000" [number]
enableKernelOutputCache = "true" [true|false]
enableVersionHeader = "true" [true|false]
apartmentThreading = "false" [true|false]
requireRootedSaveAsPath = "true" [true|false]
enable = "true" [true|false]
sendCacheControlHeader = "true" [true|false]
shutdownTimeout = "90" [in Seconds][number]
delayNotificationTimeout = "5" [in Seconds][number]
waitChangeNotification = "0" [number]
maxWaitChangeNotification = "0" [number]
enableHeaderChecking = "true" [true|false]
/>

See maxRequestLength -> it is in KB. So if I am going to upload below 10 MB, fill it with 10240. And also, take a look at executionTimeout which is the the time out for uploading the file. It is in seconds.

Share this post: | | | |
Posted: Sep 27 2007, 01:44 PM by very_wel | with 1 comment(s)
Filed under: ,
A lot of # (Sharp)
 

While reading C# at Wikipedia http://en.wikipedia.org/wiki/C_Sharp , di bawahnya ada External link, ada box .NET Framework (Microsoft).

 

Dalam box itu ada beberapa reference ke link seputar technology Microsoft dikategorikan masing-masing. Saya perhatikan di bagian language dan other language...

Ada beberapa programming language yg asing (blm pernah saya dengar seperti (C Omega), A#, IronLISP, L#, Nemerle, P#, Scala) etc.

 

Mungkin kebanyakan dari kita biasa tau ada C#, ternyata selain itu juga ada # lain, ada yg dari Microsoft, ada juga yg bukan.

  • 1. A# -> "Ada" yg di #-kan. Hehe

A# is a port of the Ada programming language to the Microsoft .NET Platform. A# is freely distributed by the Department of Computer Science at the United States Air Force Academy as a service to the Ada community under the terms of the GNU general public license. (http://en.wikipedia.org/wiki/A_Sharp_%28.NET%29)

 

  • 2. L# -> "LISP" yg di #-kan.

L# .NET is a Lisp-based scripting language for .NET. It uses a Lisp dialect similar to Arc but tightly integrates with the .NET Framework which provides a rich set of libraries.

L Sharp is Free Software distributed under the terms of the GNU General Public License.

(http://en.wikipedia.org/wiki/L_Sharp)

 

  • 3. P# -> "Prolog" yg di #-kan

P# is a Prolog (logic programming language) interpreter written for the Common Language Infrastructure.

(http://en.wikipedia.org/wiki/P_sharp)

 

  • 4. F# -> Functional Programming language yg biasa dipake sama MSR (microsoft researcher)

F# (pronounced F sharp) is a functional and object oriented programming language for the Microsoft .NET platform. A strength of F# is its setting within .NET. A key design aim is seamless .NET interoperability, both via direct use of .NET APIs from F# and authorship of natural .NET components in F#.

(http://en.wikipedia.org/wiki/F_Sharp_programming_language)

 

Di sisi lain, dulu pertama ada language yg namanya C, kemudian ada C++, trus C#, ternyata sekarang juga ada Cω (Bacanya C-Omega) (http://en.wikipedia.org/wiki/C%CF%89)

 

Maybe selain itu masih banyak language yg aneh2 yg masih blm kita tau.

Share this post: | | | |
Posted: Sep 25 2007, 01:55 PM by very_wel | with 1 comment(s)
Filed under: ,
ASP.NET 2.0 talks to BinusCenter's instructors

Last week, I delivered training about C# 2.0 to others BinusCenter's instructors.

 

This week and next week (Friday and Saturday), I will train ASP.NET 2.0 to them.

 

Actually, not all of them understand web programming before; most of them came from "desktop programming". So I will talk about web fundamental first and after that ASP.NET will be continued by then.

 

On second session, I show them the richness of ASP.NET Server Control (Calendar, Grid, etc). They found that was extremely cool!!!!

 

Next, I show them how to use Validator (RequiredFieldValidator, RangeValidator, etc). They were shock!!! We could do it how easily in ASP.NET rather than they have to do in Javascript and also validate on server side. But ASP.NET Validators has done it for us. We just learn how to use it.

 

The talks will be continuing next week. I promise, I will show them how to connect the database, select, insert, update, and delete the data WITHOUT TOUCHING THE KEYBOARD. Hahaha... I guess most of INDC's geeks know that, yeah.... I will do it with GridView, SqlDataSource, etc.

 

Bravo ASP.NET. You are really cool!!!

 

Share this post: | | | |
Posted: Sep 15 2007, 11:38 AM by very_wel | with 2 comment(s)
Filed under: ,
Binus University Scholarship Expo

For those who want to survey or take a scholarship!

http://202.58.182.15/Application/bncall.nsf/RNTJYF7845NFEW89RHJFE78R3JRR703RJRE789R3HR237R23/E71F0B7BE31ACCC94725734B0012CE30

Share this post: | | | |
Posted: Sep 09 2007, 03:07 PM by very_wel | with no comments
Filed under:
Listen to C# 3.0 at the morning, Talk about C# 2.0 at the evening
Yesterday morning I join MSDN Day - Visual Studio 2008. The first session is the most interesting one that I've been waiting for times. Yeah C# 3.0. Mr Norman presented "what's new in C# 3.0". It was great.

At the evening, I trained about .NET Framework and C# 2.0 to others BinusCenter's programming instructor. I compile the material and slide myself, which is I always love to do that.

C# is quite a new subject in binus center syllabus. It started yesterday evening and will be another 3 sessions (today evening and tomorrow). The material is:

Yesterday

  • .NET Framework Overview
  • Introduction to C# 2.0

Today

  • C# Fundamental: basic syntax, data type, flow control, etc

Tomorrow

  • OOP in C#: inheritance, binding, polymorphism, etc
  • Advanced C# Features : delegate, event, etc

The training will takes 4 sessions, from the basic syntax of C# to a little bit advance of delegate and event.

It seems that I will train ASP.NET 2.0 next week J

Share this post: | | | |
Posted: Sep 01 2007, 04:50 PM by very_wel | with no comments
Filed under: ,