.comment-link {margin-left:.6em;}

.code

.. Hello Earthling .. \o/ :)

So ... Meego is DEAD!
Wednesday, September 28, 2011

So this day brings a very bad news from intel and linux foundation. They are just creating a yet another new Linux project for, well, "all devices". Just few years back it was Moblin from Intel and Maemo from Nokia, and then they got merged and formed Meego. Then one day the Mr. *f*ELop decided he wanted to please his old boss and he decided to just abandon EVERYTHING and start making the lame windows phone devices. That came as a surprise to Intel which used to think Nokia was its core partner in developing Meego. But still, Intel told everyone to stay calm and they are just fully committed to Meego. Yeah Right! And now fresh out of twitter the world is learning that "Good bye Meego" has been sung and there is a new effort in town, called Tarzan .. ooops sorry its called Tizne .. TintintintinTINZIN .. umm no Tizen dammit! Yes its called #Tizen. You can read the *justification* here https://meego.com/community/blogs/imad/2011/whats-next-meego. Really silly, what an excuse! HTML5. Huh.

Anyway, so some twitter reaction:


@qole:
Intel: Moblin... MeeGo... Tizen! This time it will work! http://t.co/GasmsXci

@qole:
Why do companies (fail to) compete against established platforms by repeatedly starting over instead of refining existing platforms?

@segphault
Not convinced that starting over from scratch and rewriting the whole stack with yet another toolkit is going to accomplish anything #Tizen

@achipa
When I hear a platform's software offering is built around HTML5, it almost feels like hearing 'no real software offering yet'

@segphault
Intel and the Linux Foundation have shown that they can't get the job done. I don't see why anybody should give a crap about Tizen.

@Texrat
Why #Tizen? Was FlibberGertz taken?

@murraycumming
The Meego #Tizen announcement (ur1.ca/583lj), is arbitrary and one-directional, as usual. It causes failure. It prevents success.

@qole
Random word generators produce some interesting results. #Maemo #Tizen #FlibberGertz #Gobbryfux

@corneliushald
I know another OS that tried to use HTML/JS as it's primary API. #intel #meego #webos

@RevdKathy
#Tizen. Sounds like a cheap fizzy drink. Lots of caffeine and additives, and no actual nutritional value.

@jaffa2
Dear #Intel, will you consider handing over *.meego.com to a community governance body so we can enact a truly open mobile Linux OS?

@jaffa2
#Intel blamed #Nokia for delay in their handset efforts with #MeeGo. So doing everything again from scratch is way of speeding up?!

@mece66
I think this is rather relevant right now: xkcd.com/934/ #tizen #meego #html5 #fail #xkcd

oh well, lets just hope for the best and grab a N9 while we are at it.


Crystal Report Error on 64 bits
Wednesday, September 07, 2011

If you get this error that says:

"An error has occurred while attempting to load the Crystal Reports runtime.

Either the Crystal Reports registry key permissions are insufficient or the Crystal Reports runtime is not installed correctly.

Please install the appropriate Crystal Reports redistributable (CRRedist*.msi) containing the correct version of the Crystal Reports runtime (x86, x64, or Itanium) required.  Please go to http://www.businessobjects.com/support for more information. "

Open your IIS and click "Application Pools", select the application pool name that your application is using, then on the right side click "Advanced Settings", which will show you the advanced settings for your app pool. There set the "Enable 32-Bit Applications" to True. Click Ok, and now go check your page which uses crystal reports, it should work just fine.

This info was for 64-bits Windows 7 rocking Visual Studio 2005, may also work for few other microsoft operating systems and iis.


Convert DataTable to JSON in C#
Monday, September 05, 2011

A generic code to convert your C# DataTable to JSON:



  string makejsonoftable(DataTable table, makejson e)
  {
    StringBuilder sb = new StringBuilder();
    foreach (DataRow dr in table.Rows)
    {
      if (sb.Length != 0)
        sb.Append(",");
      sb.Append("{");
      StringBuilder sb2 = new StringBuilder();
      foreach (DataColumn col in table.Columns)
      {
        string fieldname = col.ColumnName;
        string fieldvalue = dr[fieldname].ToString();
        if (sb2.Length != 0)
          sb2.Append(",");
        sb2.Append(string.Format("{0}:\"{1}\"", fieldname, fieldvalue));


      }
      sb.Append(sb2.ToString());
      sb.Append("}");


    }
    if (e == makejson.e_with_square_brackets)
    {
      sb.Insert(0, "[");
      sb.Append("]");
    }
    return sb.ToString();


  }

and I added this enum:

  enum makejson
  {
    e_without_square_brackets,
    e_with_square_brackets
  }

because you wont need the square brackets in case you are calling this function again for some nested object definition, for example like:
[{name:{name1:"ab",name2:"cd"},id:9}]

resulting json for one of my data query looked like this:

[{village_name:"Lourba leten",school_name:"EB 1.2 Nazare Gumer",village_id:"4030301",school_id:"525",classroom_id:"1893",location_name:"Seluk tan",location_id:"9"},{village_name:"",school_name:"",village_id:"",school_id:"",classroom_id:"1905",location_name:"Seluk tan",location_id:"9"}]

say you requested this through an ajax call, you can call a:
var jsondatastructure = eval (yourResponseText);
in case of the above sample result the "jsondatastructure" will have a jsondatastructure.length set to 2.







Blogs:

MSDN Blogs
Joel Pobar
Don Syme

Friends:
Adeel
Aqeel
#Fahad
Haroon
Omer
Muhammad Ali
Lahore Food Blog

Links:
Rotor
CodeGuru
Mozilla
OpenSourceNokia
Tech Blog

Languages:
IronPython
F#

Archives

June 2004   July 2004   August 2004   September 2004   October 2004   November 2004   December 2004   February 2005   April 2005   June 2005   July 2005   September 2005   October 2005   November 2005   June 2007   December 2007   January 2008   March 2008   April 2008   June 2008   October 2008   February 2009   May 2009   June 2009   July 2009   August 2009   March 2011   June 2011   July 2011   September 2011   October 2011   November 2011   December 2012   May 2013   October 2013   May 2014   March 2015   July 2015   August 2015   December 2015   March 2016   July 2016   October 2016   November 2016  

This page is powered by Blogger. Isn't yours?