The complex web

 Web development is becoming more and more complex everyday. It is reaching several different areas and i, well i love to know about all of them, and i think a good web programmer should know about all of them. How can a programmer do a good job if he is totally unware of what surrounds him?

Getting a site out there isn’t really enough for me nowadays and it shouldn’t be enough for anybody.

There are a lot of things to think about.

  • Good developing – Ease of use CMS, performance, functions that help the people that contribute to the site (the editors) and for the users.
  • Good design – Clean, simple and beautifull.
  • Accessability – this is a topic i wish to post about.
  • Usability – Let people find what they need.
  • Architecture – Putting the right info in the right place.
  • Copy – Well written concise texts.
  • SEO
  • Webmarketing – ROI
  • Analytics – How is it all working out.

Did i forgot any?

They all influence each other and i don’t think you can have one without the other.

So i’ve become more interested in all that aspects and have been trying to know more about them.

I find people that tend to know about one of the above areas but they end up failing in the others.  And i don’t mean that you need to know everything about them because you don’t, but you should be aware of what they are. And depending on what you do some are more important then others.


Time ignored in datetime caml query

Caml query not using the time part in datetime. If your are doing a caml query and you see that your time is being ignored in datetime try this:

<Value Type=”DateTime” IncludeTimeValue=”TRUE”><Today /></Value>

You have to use IncludeTimeValue=”TRUE”.

c# to javascript

Hello again. first of all i want to say i haven’t had a comment yet, so feel free to comment if you think you have something to add.

When i started with c# i thought i wouldn’t need to code in javascript anymore, why? c# was a new language. to easy the programers job. somehow and cause i didn’t knew much about c# i thougt that, i guess for me that would be natural.. Well has you all know that wasn’t true.

 Javascript was a burden, it was so dificult to debug that i used it the less i could, this days javascript is the hype.

It’s easy to be wrong in this industry there’s no way to predict what will happen, i thought javascript wass terrible and it wouldn’t go far. how wrong i was… but still today i have this ideia that we should be able to program javascript with c# as i think we should be able to do sql with c# and xaml with c#. Sql with c# is happening so i started reserching for my old ideia, my webdeveloper utopia, c# to javascript.

Script#. I’m not the only one who things this way. And also we have jsc.

Script# is being brought to life by Nikhil Kothari, who is part of the Microsoft group building Atlas,  you can read it here, just look at the amount of comments it has, wow…

There are many ppl that don’t like the ideia, you really don’t have to like it you know? For me it´s just about productivity.

 This post says it all: (Steve answered for me)


Posted on 5/23/2006 @ 11:00 AM

I am shocked by some of these responses. I don’t want to sound negative, but I am bothered by the negativity I see here in regards to C#.

“C# is like a farm tractor: it’s got bare metal plate for a seat, looks ugly, smells funny, but eventually gets the job done. On the other hand, JS is like a Ferrari: it’s beautiful, elegant, comfortable to work with, and yes, dangerous (potentially lethal) for a novice.”

“So we need to find a way to get the masses who are unable to gain the multi-disciplinary skills to write modern AJAX web apps.”

? why do you assume people who use these tools do not know this. Actually, you don’t know. This statement is unwarranted. ie. I wrote ‘AJAX’ before ‘AJAX’ was a term. I use Atlas today. I understand how Atlas works – I know javascript well. AJAX isn’t really that difficult to understand.

“will no doubt appeal to those individuals who disregard JavaScript and the Browser as “real development tools”. ”
javascript is a scripting language. It has a purpose and serves a purpose. Making tools to help do tasks is a normal thing. That doesn’t mean there is a ‘disregard as a real development tool’. This is not some holy grail here, we make tools to abstract away the rudimentary things we do over and over again repititiously.

“is that we spend less and less time on “real innovation””

My first thought is – you guys need to go back and write assembly language to do your websites. Sorry folks, but innovation for the masses is that we don’t have to recreate the wheel everytime we need to ‘bind data to a grid’. I assume from these posts that you really enjoyed the asp/vbscript model of jangled spaghetti code with td tags and recordset movenext. Or better yet, perhaps create ATL objects to make com objects that output html.   »

Some guys thing they are so better then all the rest… i just want to add one thing to what Steve said. My job is to get a happy client.

Well enough about that you read it and think for yourselfs.

Now for some c# 3.0. Pretty much the same in same people comments about it… here it the link to the enhancements. Most of these enhancements where because of linq. Once again i say to the comments about Extension Methods, you don’t have to use it.

I won’t comment much cause i haven’t read much i’m still geting the picture but i think i like it 😀

Also i searched for linq with mysql, i found dblinq .

It’s all for today now i have to find some time to test those stuff i was telling you about.

Custom Sharepoint field type

I had a problem when i was doing a custom sharepoint field type. I was getting:

Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))

The first time i did the xml definition for my custom field i made a mistake and put the type as text instead of datetime and imediatly corrected it.

after that i kept getting that error. It happened only when i edited it and not when i was inserting. After sometime i realize dthat the problem was due to the fact that sharepoint did not update my changes to the xml definition so it was expecting text and not datetime.

so i changed my assembly name and it’s name in the xml and everything went ok this time.

so be carefull when you make your xml.

sharepoint (moss 2007) thumbnails and image library


Would you like to be able to see a preview or thumbnail when you put a video or flash in your image library? Users will want to be able to see it instead of an icon.
Look at my asset picker:

Asset Picker

I did the same for the image library but i haven’t got the image now, i had some problems with my Virtual machine, i’ll post it later. 
A trully multimedia sharepoint 😀 with avi, swf, mpeg, mov preview. What do you think?

c# and ffmpeg

The first thing i’m going to talk about here is  how to use c# and ffmpeg.

Do you know what we can do with those two? Our private youtube stuff.

The need: Multimedia files in sharepoint but we want everybody to be able to see them independently if they have this or that program (eg: media player or quicktime…) so all videos must be converted to flv (Macromedia Flash video format). 

I searched the web for something that was already done but haven’t found much, you have:


None of them suited me sharpffmpeg looked like the most promissing but there’s no documentation. I thought with the time i’ll take to understand how to use it I could do one myself. And i did. Something simple that served my needs.

All i want is to get a movie and pass it to flv format. Simple and easy. How you do it?

First you need ffmpeg after that i created a console application and sent my commands to it.

System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.FileName = @”””C:\edgar\mediaHandler\ffmpeg\ffmpeg”””;
proc.StartInfo.Arguments = “-i C:\\edgar\\mediaHandler\\ffmpeg\1.mpg -ar 22050 -ab 32 -f flv -s 320×240 -aspect 4:3 -y movie4.flv”; /* use /y to overwrite if there it exists already or will fail */
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = false;
proc.StartInfo.RedirectStandardOutput = true;

You could elaborate the code more, i will probably do it later, but for now it’s up to you.
Please comment if this was of any help to you.

I edited this post just to tell you that this was a prototype. I have never used it again. So i’m not the right person to ask questions.

If anybody has got further into this issue and would like to help others please comment.

  • Calendar

    • January 2018
      M T W T F S S
      « Jul    
  • Search