Al Pascual


Geo RSS
Geo Twitter Timeline

Blogs I read

<August 2008>
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456
September 9th 2008 say goodbye to your laser mouse.

I have a little problem with buying a new mouse once in a while, my wife has the same problem with shoes. I don’t try to understand it, I just let it be. A new mouse is coming out from Microsoft on September 9th that I must have.

Like any gadget, this one has something new, better than laser. Microsoft claims that will be able to be used in any surface. What can be better than laser? And what’s that great blue glow the radiates? Worth to get a mouse that glows I may add.

So I am going to spoil myself a little, I spend more than 8 hours using a mouse anyway. Let’s hope is not very expensive and I don’t have to wait to come down of price.

Are you going to get one?

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Posted: Aug 27 2008, 11:32 PM by albert | with no comments
Filed under:
Activating a classic iPhone is not a simple nor fast task
 

Finally I got the iPhone 3G from the Apple Store at Victoria Gardens, Rancho Cucamonga, CA. They activated my new iPhone with my phone number, 5 minute job at the store. Now I have a classic iPhone to give to my wife. However AT&T nor Apple will let you know the steps, don’t they want more accounts? AT&T won’t have a clue; Apple will give you some guidance of the best way to do it.

 

1.       Make sure the classic iPhone is backup, so when you connect the new iPhone 3G to your iTunes will restore all your data, that may take around 30 minutes.

2.       You need to go to a AT&T store and ask for a new SIMM card for your classic iPhone, the SIMM card right now belives is activated without any service.

3.       Then you can connect the classic iPhone to your iTunes and you’ll need to create another line for that phone in your account. You won’t be able to create a Family Plan at that time, however if you call AT&T to do the help you, they don’t have a clue about iPhone activation.

4.       Just create a new line and then you can go online and convert your lines to Family Plan using wireless.att.com

 

Those steps are not that simple, the iTunes phone transfer now if not just adding your cell phone number any more, you’ll have to find your account numbers and social security number.

 

Still stuck calling AT&T to convert my account to Family Plan, they website is giving me an error, I know that can be done, but AT&T is closed on Sundays.

 

 

Posted: Aug 25 2008, 11:21 PM by albert | with 1 comment(s)
Filed under: ,
Using the ESRI JavaScript API as the Silverlight control SDK

After Richie released the Map Viewer Silverlight control I thought to provide the control with an SDK.  Completely write an SDK in Silverlight for queries and tasks would take a long time. However ArcGIS 9.3 comes out with the Rest Api and Silverlight can talk to Javascript without any problems. ESRI Javascript API uses rest to talk to the server. So I would use the Javascript API from Silverlight as the SDK.

This is how a little application using the JavaScript API looks like

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Create Map</title>
    <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.1/js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=1.1"></script>
    <script type="text/javascript">
      dojo.require("esri.map");

      function init() {
        var map = new esri.Map("map");
        var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer");
        map.addLayer(tiledMapServiceLayer);
      }

      dojo.addOnLoad(init);
    </script>
  </head>
  <body class="tundra">
    <div id="map" style="width:900px; height:600px; border:1px solid #000;"></div>
  </body>
</html>

If you look at the div to create the map you can replace that line with the Silverlight Control:

<object id="map" data="data:application/x-silverlight," type="application/x-silverlight-2-b2" height="100%" width="100%">
     <param name="source" value="ClientBin/ESRI.PrototypeLab.Silverlight.xap"/>
     <param name="onerror" value="onSilverlightError" />
     <param name="background" value="white" />
     <param name="initParams"
      value="Url=http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer,ShowCoordinateDisplay=true" />
     <a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;">
     <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
     </a>
 </object>

Then you need to replace the map object to use the Silverlight map instead of the div, in the JavaScript line:

var map = new esri.Map("map");  
var map = document.getElementById("map").Content.Map;

The second like is an object in Javascript that reference the Silverlight Map control.

Now I started building the methods supported by the Javascript API. For example the addLayers method would look like this in Silverlight:

[ScriptableMember]
public void addLayer(System.Windows.Browser.ScriptObject mapLayer)
{   
    Url = mapLayer.GetProperty("url").ToString();
}

The arguments passed by JavaScript are ScriptObject type that you need to get the properties from inside the object as shown above.

Silverlight 2.0 makes the communication between JavaScript and Silverlight very easy. Now, to call Javascript methods from Silverlight you can use this method in C#:

HtmlPage.Window.CreateInstance(method, args);

First parameter is the javascript method to execute, the second is the list of parameters to pass to the Javascript method:

MapEventArgs args = new MapEventArgs(coor.X, coor.Y);

Now you can have a simple application using the ESRI JavaScript API with the Silverlight Map control to query and geolocate:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Silverlight Demonstration</title>
    <style type="text/css">
    html, body {
        height: 100%;
        overflow: auto;
    }
    body {
        padding: 0;
        margin: 0;
    }
    #silverlightControlHost {
        height: 90%;
    }
    </style>
    <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/1.1/js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null && sender != 0) {
                appSource = sender.getHost().Source;
            }
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;
            var errMsg = "Unhandled Error in Silverlight 2 Application " + appSource + "\n";
            errMsg += "Code: " + iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";
            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " + args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }
            throw new Error(errMsg);
        }
    </script>    
    <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=1.1"></script>
    <script type="text/javascript">
        dojo.require("esri.map");
        dojo.require("esri.tasks.query");
        dojo.require("esri.tasks.gp");

        var locator;
        var map;

        function init() {
            map = document.getElementById("map").Content.Map;
            
            // Start listening to the MapMouseMove Event
            map.MapMouseMove = MapMouseMove;

            locator = new esri.tasks.Locator("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer");
        }

        function ReveseGeocoder() {
            map.OnClick = "LocationOnClick";
            
            var infoTemplate = new esri.InfoTemplate("Address", "Street: ${Address} City: ${City} State: ${State} Zip: ${Zip}");
            var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 15, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([0, 0, 255]), 2), new dojo.Color([0, 0, 255]));

            dojo.connect(locator, "onLocationToAddressComplete", function(candidate) {
                if (candidate.address) {
                    var graphic = new esri.Graphic(candidate.location, symbol, candidate.address, infoTemplate);
                    map.graphics.add(graphic);

                    alert(graphic.getTitle() + graphic.getContent());

                    // Create a infoWindow class
                    map.infoWindow.setTitle(graphic.getTitle());
                    map.infoWindow.setContent(graphic.getContent());
                    var screenPnt = map.toScreen(candidate.location);
                    map.infoWindow.show(screenPnt, map.getInfoWindowAnchor(screenPnt));
                }
            });
        }

        function LocationOnClick(args) {
            var point = new esri.geometry.Point(args.X, args.Y);
            //map.graphics.clear();
            locator.locationToAddress(point, 100);            
        }


        function ToggleCoordinateDisplay() {
            var map = document.getElementById("map").Content.Map;
            // Toggle the display of the coordinate display in the bottom right hand corner
            map.ShowCoordinateDisplay = !map.ShowCoordinateDisplay;
        }
        function DisplayMapExtent() {
            var map = document.getElementById("map").Content.Map;
            // Display map extent (in JSON)
            alert(map.Extent);
        }
        function FullExtent() {
            var map = document.getElementById("map").Content.Map;
            // Set Full Extent (using JSON)
            map.Extent = "{\"spatialreference\":null,\"xmax\":180,\"xmin\":-180,\"ymax\":90,\"ymin\":-90}";
        }
        // 
        function MapMouseMove(sender, args) {
            var label = document.getElementById("label1");
            // Display Mouse Coordinates
            label.innerHTML = args.X + " " + args.Y;
        }

        function ChangeStreets() {
            var streetMap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer");

            map.addLayer(streetMap);
        }
 
        function PopulationQuery() {
            var startExtent = new esri.geometry.Extent(-83.41, 31.98, -78.47, 35.28, new esri.SpatialReference({ wkid: 4326 }));
 
            //build query task
            var queryTask = new esri.tasks.QueryTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/3");

            //build query filter
            var query = new esri.tasks.Query();
            query.returnGeometry = true;
            query.outFields = ["NAME", "POP2000", "POP2007", "POP00_SQMI", "POP07_SQMI"];
            query.where = "STATE_NAME = 'South Carolina'";

            var infoTemplate = new esri.InfoTemplate();
            infoTemplate.setTitle("${NAME}");
            infoTemplate.setContent("<b>2000 Population: </b>${POP2000}<br/>"
                             + "<b>2000 Population per Sq. Mi.: </b>${POP00_SQMI}<br/>"
                             + "<b>2007 Population: </b>${POP2007}<br/>"
                             + "<b>2007 Population per Sq. Mi.: </b>${POP07_SQMI}");

            map.infoWindow.resize(245, 105);

            //Can listen for onComplete event to process results or can use the callback option in the queryTask.execute method.
            dojo.connect(queryTask, "onComplete", function(featureSet) {
                map.graphics.clear();
                var symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 255, 255, 0.35]), 1), new dojo.Color([125, 125, 125, 0.35]));
                //QueryTask returns a featureSet.  Loop through features in the featureSet and add them to the map.
                for (var i = 0, il = featureSet.features.length; i < il; i++) {
                    //Get the current feature from the featureSet.
                    //Feature is a graphic
                    var graphic = featureSet.features[i];
                    graphic.setSymbol(symbol);
                    graphic.setInfoTemplate(infoTemplate);

                    //Add graphic to the map graphics layer.
                    map.graphics.add(graphic);
                }
            });

            queryTask.execute(query);
        }


        dojo.addOnLoad(init);        
    </script>
</head>
<body>
    <!-- Runtime errors from Silverlight will be displayed here.
    This will contain debugging information and should be removed or hidden when debugging is completed -->
    <div id='errorLocation' style="font-size: small;color: Gray;"></div>
    <div id="silverlightControlHost">
        <object id="map" data="data:application/x-silverlight," type="application/x-silverlight-2-b2" height="100%" width="100%">
            <param name="source" value="ClientBin/ESRI.PrototypeLab.Silverlight.xap"/>
            <param name="onerror" value="onSilverlightError" />
            <param name="background" value="white" />
            <param name="initParams"
                   value="Url=http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer,ShowCoordinateDisplay=true" />
            <a href="http://go.microsoft.com/fwlink/?LinkID=115261" style="text-decoration: none;">
                 <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
            </a>
        </object>
        <iframe style='visibility:hidden;height:0;width:0;border:0px'></iframe>
    </div>
    <input id="button1" type="button" value="Reverse Geocoder" onclick="ReveseGeocoder()" />
    <input id="button2" type="button" value="Toggle Coordinate Display" onclick="ToggleCoordinateDisplay()" />
    <input id="button3" type="button" value="Population" onclick="PopulationQuery()" />
    <input id="button4" type="button" value="Street Map" onclick="ChangeStreets()" />
    <label id="label1" style="font-family: Arial; font-size: larger"></label>
    </body>
</html>

This is still a work in progress, I need to finish every method from the map control implemented in the JavaScript API. Silverlight 2.0 is very powerful to create rich graphical web applications. Sorry if the article got bigger than intended.

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Windows Vista TCP/IP stack cannot send UDP packets?

Windows Vista came out with the new TCP/IP stack that was very promising TCP/IP v6 build in. That was great news for anybody that has worked in the socket world. I have been going in and out with my love and projects in IP and UDP. I do prefer UDP as I’ve always the excuse that I do not warranty the delivery ;-) That’s a great joke in the 3G conference in Barcelona for next year, must write down.

.NET 3.5 provides us a new class UdpClient to handle the communications using UDP to send and received packets from a socket, I personally still love using the Socket library from .NET as is very similar to the C/C++ socket library, except the method Peek() to check if there is a new byte arriving. With the .NET libraries if there aren’t any bytes to be received the function Receive() will block forever, make sure you add a timeout to be able to let go of the thread.

For UPD the properties for the socket are the ones passed on the constructor.

Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);

server.Connect(RemoteIPEndPointSent);

server.SendTo(bytesToSend, RemoteIPEndPointSent);
byte[] Buf = new byte[48];

try
{
   server.ReceiveTimeout = 5000;
   int isom = server.Receive(Buf);
}
catch
{
//Nothing is replying!
}

server.Close();

In the sample above the timeout for the socket is 5 seconds, that will give the remote computer, plenty time to reply, after that an exception will be raised that you can catch and handle.

Problem

Something that was driving me crazy was when I started sending UDP packets from Vista and nothing arrived to the remote computer, after using a network sniffer I realize that all packets were converted to ARP packets instead of UDP packets and also sent from a IP v6 address instead of the IP v4 address in my computer. Going to the Network Control panel and disabling IP v6 didn’t make a difference.

image

Resolution

Having a set up with a sniffer in the middle is a time consuming task, so I though to debug a little the problem. I logoff the computer and re-login, he ARP packets were still being sent instead of UDP. A complete computer reboot seems to do the trick for Vista to use the new TCP/IP stack.

I thought that Vista was designed with a new TCP/IP stack, knowing the kernel is still the old 32 bits Windows kernel, the stack will refresh itself to get the newest configuration without needing a reboot. When changing the configuration the OS does not ask for a reboot, as expected, however if you do not reboot, you won’t be able to disable the IP v6 protocol and all packets will be received by routers with that protocol. Now, do you know how many routers have enabled or understand IP v6?

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Posted: Aug 21 2008, 07:58 AM by albert | with no comments
Filed under: , , ,
Qik “streaming real time video” on the iPhone

Today I am in Harrisburg PA, however I wanted to share this with all of you before going to bed.

Finally Qik is coming out with a version for the iPhone, so people can stream video in real time from their iPhone. Yes you may going to see small video podcast from me!

More info here.

Steps:

  1. If you have not already, you'll need to sign up at http://qik.com/sign_up and receive an SMS from us to activate the application.
  2. Launch Cydia.
  3. Go to the "Sections" tab at the bottom and scroll down to "Multimedia."
  4. Under Multimedia, you will find Qik. Tap on it then select "Install" at the top right, then in the same spot tap "Confirm."
  5. Now you will see Qik get installed. You may hit the "Return to Cydia" button at the bottom or just quit Cydia when it is done installing.
  6. You'll now notice a "Qik" icon on your home screen - Go ahead and launch it.
  7. As long as your initial signup SMS/text message is still in your inbox for the first launch, your account will be linked to your device.
  8. Make sure you have 3G service or are on WiFi (edge is not sufficient enough to stream video) before you begin broadcasting.
  9. Hit record and enjoy Qik!
Posted from http://weblogs.asp.net/albertpascual

Posted: Aug 18 2008, 11:28 PM by albert | with no comments
Filed under:
Speed Up Windows Vista

So, you had not option but to upgrade to Vista, Xp is not been sold any more.

I don’t want to be the one to tell you that Windows Vista is the less productive operating system for developers. Don’t get me wrong, I love Vista and I love it having it at home for the wife’s laptop of the kids computer to get to Play House Disney to play with those awesome flash games. Now when using it for developing software, you find yourself less productive, as you are waiting most of the time for the operating system to stop spinning the blue wheel or the hard disk. Visual Studio 2005/2008 and Vista means hours of endless waiting.

What can you do? Complain as I do all the time or start finding the way to speed up the system. There are little things that you can do, as purchasing a USB ReadyBoot with at least twice the size as you computer RAM, more than 1 year ago, I wrote a post about it. It may help a little. Disabling a few startup applications will save you RAM. However the whole experience of Vista is all about the look and feel. I personally prefer to drastically improve the speed by disabling the look and feel of Vista. Go to “performance options” and select “Best Performance”.

image

From now on, your Vista computer will look just like Windows 2003. I really hope that you like that bare bones look, as the computer will run a much faster opening and closing applications as well as using the windows explorer.

If you find better ways to speed up your Windows Vista and keeping your Aero look, please let me know, as I miss it terribly but I feel that I do not have to wait anymore for the computer to finish spinning.

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Posted: Aug 17 2008, 09:59 PM by albert | with 3 comment(s)
Filed under: , ,
ESRI Silverlight control up on the Code Gallery

I normally do not talk about what ESRI is doing on my personal blog, but something that I have been “very interested” in the past few months just saw the public light. The ESRI Silverlight map

Download it here.

Or check the demos:

http://maps.esri.com/SilverlightMap/default.html                                                                         

http://maps.esri.com/SilverlightMap/mapwithjavascript.html

More information will be found in Richie’s blog

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Javascript communication to Silverlight 2.0

Tonight working with a proof of concept in regards to the communication between Javascript and Silverlight 2.0 has 2 attributes to help you with the task.

Class attribute [ScriptableType], method attribute [ScriptableMember].

There are a few steps to follow. You need to create a Javascript control and register it with a name to be able to access from Javascript. This is pretty important, make sure you add a unique name per class and mark the class with ScriptableType. Then create the method that you want to have access from JavaScript and mark it with ScriptableMember

Create a User Cointrol in Silverlight.

<UserControl x:Class="SilverlightApplication1.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">    
    <Canvas Height="200" Width="200">
     <TextBox x:Name="TestText" Text="Something"></TextBox>        
    </Canvas>
</UserControl>
[ScriptableType]
   public partial class Page : UserControl
   {
       public Page()
       {
           InitializeComponent();

           HtmlPage.RegisterScriptableObject("SilverlightApp", this);
       }

       [ScriptableMember]
       public void SendToSilverlight(string sMessage)
       {
           HtmlPage.Window.SetProperty("status", sMessage);

           TestText.Text = sMessage;
       }
   }

 

On the javascript side.

<head runat="server">
    <title>Test Javascript and Silverlight</title>
    <script type="text/javascript" language="Javascript">
        function sendto() {

            var sText = document.getElementById('Text1');
            var silverlightControl = document.getElementById('Xaml1');

            silverlightControl.Content.SilverlightApp.SendToSilverlight(sText.value);            
        }
    </script>
</head>
<body style="height:100%;margin:0;">
    <form id="form1" runat="server" style="height:100%;">
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <div  style="height:100%;">
        <input id="Text1" type="text" />
        <input id="Button1" type="button" value="button" onclick="sendto();"/>
        <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/SilverlightApplication1.xap" MinimumVersion="2.0.30523" Width="100%" Height="100%" />            
        </div>
    </form>

Results.

image

What about calling JavaScript from Silverlight?

HtmlPage.Window.Invoke("myJavascriptFunction", “text to javascript”);

Related links.

Silverlight 1.1 interaction with javascript

Silverlight interoperability

Download code and solution here

Hope that helps,

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Visual Studio 2008 Service Pack 1 and .NET Framework 3.5 Service Pack 1 Released!

Finally Visual Studio 2008 Service Pack 1 is out! What does it fix? From Microsoft:

  • Improved WPF designers
  • SQL Server 2008 support
  • ADO.NET Entity Designer
  • Visual Basic and Visual C++ components and tools (including an MFC-based Office 2007 style ‘Ribbon’)
  • Visual Studio Team System Team Foundation Server (TFS) addresses customer feedback on version control usability and performance, email integration with work item tracking and full support for hosting on SQL Server 2008
  • Richer JavaScript support, enhanced AJAX and data tools, and Web site deployment improvements

I didn’t see any improvement in the javascript namespaces as yet.

Download it here

I didn’t see VS2008 starting faster or compiler faster, however the delays between web pages are gone, thanks Microsoft for that one, was really bothering me.

I have been covering the release of Visual Studio 2008 service pack 1 for a while now. Looks like a simple search in Google returns me on top of dotnetslackers and Scott Guthrie’s blog, that’s crazy, I should stop blogging about the SP1.

image

Other bug fixes that I haven’t notice however I found by looking at the list released by Microsoft:

  • Javascript intellisense: I had intellisense, just not that useful.
  • MS Mouse had problems, I had a MS Laptop Mouse and I don’t think I had a problem before.
  • VS2008 hangs in design view with the UpdateProgress. Oh that was the reason of the hanging?
  • Panels and UpdatePanels were not good friends.
  • CSS files in a nested folder are not being pick up. I haven’t seen that.

Complete list of issues here

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Fixing the Validation of viewstate MAC failed error issue.

This is just a quickie to see if that helps anybody. The GridView in GeoTwitter had a problem as was using the DataKeyNames. I was getting the error on the viewstate MAC failed error. Looks like adding the code below on the web.config fix the issue.

<pages enableEventValidation="false" viewStateEncryptionMode="Never">

The problem now is I don’t have a validation for the viewstate, that’s a security problem in my modest opinion, I found this resource below that help me to understand a little bit more what the MAC failed error is:

Great blog post found here: Resources to fix the issue.

Hope it helps you too.

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Posted: Aug 11 2008, 11:09 PM by albert | with 1 comment(s)
Filed under: , , ,
Community Server and spam comments

I just finished the ESRI UC and my body and mind are tired, sorry for the lack of posting lately. However I spend lots of time talking to technologist and tech evangelist.

 

This is a very different post from just providing code, this is a FYI or a beg for help, you may found the same problem.

 

For the past month I have been receiving spam on my post comments, even having CAPTCHA and moderating the post, Community Server is letting them go though. I spend many times during the day, cleaning the comments with free medication to make your sleeping parts wake up and ready.

 

I have being looking the way that anybody can bypass moderation on CS without any success, the only way I believe could be a trackback, however it would be mark as a trackback instead as a comment.  I also enable the spamming rates. So any spammer got a back door to sell those spam comments? There is there a way to bypass moderation?

 

I believe that has to be my CS 2007 that allows that, as other CS are not having this problem.

Cheers

Al

ESRI User Conference Agenda and checklist

Every year, since I work at ESRI, I’ll be going to the ESRI User Conference to work. I always need some resources and I forget where to find them. So I am setting the checklist/survival kit for the conference below to use:

If you are attending the conference, please look for me of follow me at twitter.

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Posted: Aug 03 2008, 11:28 PM by albert | with no comments
Filed under: , ,
What the AJAX Sys.ParameterCountException: Parameter count mismatch error?

Developers turn to Google or Cuil.com when they receive an error message, I believe is an automatic reaction, in the old days you were stuck debugging that COTS library, right now, we are looking for peers that went through the same experience, and hopefully they were successful, this post is not the case.

Since I added the ScriptManager into my application I have been having an intermittent issue. Sys.ParameterCountException. So I did some research. 

Somebody is throwing an exception with the incorrect parameters? MSDN article

Debug the problem here

Download Microsoft Script Debugger here

So not fast answer? I am shocked, this is what I was looking for, a quick simple resolution for me to implement, instead I am here deciding to move the problem to the back burner.

The articles above are the most viewed and search articles for this search. Still cannot find the answer or how to find out what parameters is causing the exception.

For the time being I removed the ScriptManager and I’ll be using my AJAX.js file until I hate the time to look into it.

In other words, if you know the resolution to this problem, please share with me before I spend any more time looking for the answer in Google.

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Posted: Jul 31 2008, 11:28 PM by albert | with no comments
Filed under: , , , ,
Cuil.com is here, is there room for an improved Google?

Cuil.com just came out from ex-Google employees to improve the job to index the Internet.

So many more before them, have tried to become The Search engine and take away the customers from Google.

Looks like they are indexing more pages than Google does, however my second try I received this error:

image

The first great feature from Google is they are always up. Will cuil.com accomplish that?

Review

Upon using it for one day I found Cuil very slow to display the results. As well the results are being shown in a datagrid instead of a list. The most scary part is that there are actually errors on the result, searching for my name, even egocentric is a good way to check results. A simple search found a blog post with this picture that is not in my blog post:

image 

 

 

 

 

 

 

 

 

Should Cuil add the beta sticker on top of their website?. Just changing my preference got me to see another exception:

image

In my modest opinion, cuil.com may not be the search engine that replaces Google. We shall wait for the next one I guess.

Cheers

Al

Posted from http://weblogs.asp.net/albertpascual

Posted: Jul 28 2008, 11:27 PM by albert | with 2 comment(s)
Filed under: , ,
AJAX 4.0 release at CodePlex

I just received an email from my MVP lead about these new release. Seems like lately Microsoft is using CodePlex for all their releases, a very good thing. Allows developers to see the code and learn. Microsoft transparency improves every year. Everything started with Phil Haack being offered a job there?

I just started using AJAX 3.5 and I’ll have to start with AJAX 4.0 now. Trying to catch up with Microsoft releases is a full time job. I’ll start playing with it and I’ll be posting the new improvements on these new AJAX version.

ASP.NET MVC CodePlex Preview 4 Installer + Source

From CodePlex description:

“This release contains a preview version of the following features (that are also described in our Roadmap document: ASP.NET AJAX Roadmap):

  • Client-side template rendering
  • Declarative instantiation of behaviors and controls
  • DataView control
  • Markup extensions
  • Bindings
The goal of this release is to give some visibility into our design process, allow testing of the technology very early in the product cycle and get feedback on the implementation.” Posted from http://weblogs.asp.net/albertpascual

Posted: Jul 22 2008, 10:06 PM by albert | with no comments
Filed under: , , , ,
More Posts Next page »