• Uncategorized

    All the fuss about FizzBuzz

    Recently I’ve read once again about the FizzBuzz. For those not familiar with this term: Fizzbuzz is a taks that could by used while interviewing a software developer for a job. It’s is essentially a trivial task of listing all the numbers from 1 to 100 but replacing multiples of 3 with Fizz, multiples of 5 with Buzz and multiples of both with FizzBuzz. A task that an intelligent person, with some background in software development, suppose to crack in 5 (10 tops) minutes. But of course there are good solution and better solutions. I’m thinking about the solutions provided after Jeff Attwod post on his blog. People are so…

  • Books

    My personal bookshelf revealed, part I

    Is it possible to by a good software developer and not to read books? Probably, but I think only if you are true genius! Otherwise you are lost in modern tech world if you are not keeping track. Sure you can read blogs, but nothing is better than good technical book from time to time. I love to read good books. Earlier I was a true bookworm. Now I have less and less time, but I still like to take I while to lay back and read. Interestingly enough more and more of my bookshelf is taken by technical books. I’ll tray to review from time to time an interesting…

  • Oracle

    Oracle Hierarchical Queries

    It is rather common developer task to draw a hierarchical data on the screen. You have tons of controls that draw a tree like structures. But did you know that when you are using Oracle you are able to select hierarchical data direct from database? How? It is rather simple. As an example we will draw a tree of an organization structure. Lets create a simple table with employees: CREATE TABLE EMP ( ID NUMBER(2,0) NOT NULL, REFID NUMBER(2,0) NULL, NAME VARCHAR2(40 BYTE) NULL ) Its time to fill the table with data: INSERT INTO EMP(ID, REFID, NAME) VALUES(1, 1, 'John'); INSERT INTO EMP(ID, REFID, NAME) VALUES(2, 1, 'Mary'); INSERT…

  • Clarion

    Waiting for Clarion.NET…

    … and learning Clarion 6. It’s quite interesting to switch from “normal” programming to RAD programming. Learning Clarion teaches you new meaning of the words Rapid Application Development. Few times I heard this term in while speaking about VS. I think that it is a over interpretation. I’ll make a competition with you. We will write a database driven application simultaneously. You will do it in .NET and I will do it in Clarion (after 3 days of learning ;). Few tables in connection to one another, few browse, few forms. I’m pretty suer that I’ll beat you. Sure Clarion is no comparison to VS in terms of developer comfort,…

  • Clarion

    Clarion date and time in .NET

    In Clarion date is defined as follows: number of days that have elapsed since December 28, 1800 Why? I think that’s when Seoftvelsocity CTO’s grandgrandma reached Florida but they say its because this date was inherited from Btrieve Record Manager. Well. Cool, but in .NET DateTime looks different. How to get a Clarion Date for a given .NET date? public static int GetOLDate(DateTime dotNetDate) { CultureInfo ci = new CultureInfo("de-DE"); DateTime baseDate = DateTime.Parse("01.01.1801", ci); System.TimeSpan ts = dotNetDate - baseDate; int l = ts.Days + 4; return l; } How does Clarion defines time? Number of hundredths of a second that have elapsed since midnight, plus one. How to…

  • Uncategorized

    Redirecting standard input

    Lets say you have to start a program with a parameters from a file. With a command line you will write simply something like that: program.exe < ParamFile.txt Using System.Diagnostics.Process you cannot redirect a content of a file to an external application like that. You have to redirect standard input to you process. You can do it like this: StreamWriter paramFileStreamWriter = someProcess.StandardInput; string[] paramData = File.ReadAllLines(paramFile); for (int i = 0; i < procedData.Length; i++) { paramFileStreamWriter.WriteLine(paramData[i]); } paramFileStreamWriter.Close(); Some more information is to by found on MSDN. Originally published at Saturday, November 11, 2006

  • Uncategorized

    Forms Authentication and ASP.NET Development Server

    If you are using forms authentication while developing with ASP.NET Development Server and you have some static elements to show on the login form (I’m sure you have) you will have a problem with standard configuration. Before the user is authenticated by ASP.NET, he will not see the images and the css will not by loaded. Well its not a big deal because the same website deployed on the IIS will behaves correctly. But if you are perfectionist like me it will by annoying to see something like this: It’s way better to see something like this: Here’s the reason why this happens. By default passes IIS all the static…

  • Clarion

    Clarion.NET close encounters

    I’ve seen Clarion.NET in action. Well actually it was something that WILL by a Clarion.NET. But from the beginning… There was a Clarion Developers Meeting in Cambridge last week. I was there at 27th and 28th of July 2006. I’ll skip the Clarion “Core” part, because its irrelevant for us (.NET developers). I’ll say only one thing, I thought it’s a common knowledge that when you are making a presentation, you are not supposed to read all that you have on your PowerPoint slides – the attendees are getting the whole ppts, they surely can reed 😉 I was waiting anxious for Clarion.NET presentation. I’m tired of shuffling the data…

  • Clarion

    MVP Website with .NET Remoting

    I’ve written a short article about extending the MVP (Model View Presenter) with .NET Remoting. “MVP in ASP.NET with .NET Remoting” is available on CodeProject. This article is a extension of great text “Model View Presenter with ASP.NET” by Billy McCafferty. You are welcome to read and flame! Originally published at Friday, August 11, 2006.

  • Uncategorized

    Welcome to IProgrammable.com

    Welcome to my blog. Few years ago when the big blog balloon blow up I surely wasn’t expecting me to blog. But the times are changing. Everybody has a blog so I’ll have mine too 😉 I wont write here about my cat or daughter (have neither). I’ll write about what I do. I’m software developer. I write mostly in .NET (C#) but I have background in Java (J2EE) and PHP. My main point of interest is web development. So think about that. The new ASP.NET web project in version 2.0 is not compiled to one assembly. You have a bunch of small assemblies (when you publish without the possibility…