Print This Post

iPhone backup taking forever

If you are trying to update your iPhone to the latest iOS 4 and the backup process is taking forever, please stop right now and read the following thread, you will thank me later:

http://discussions.apple.com/thread.jspa?messageID=11730367�

In a nutshell, here is what you have to do:

  • Cancel the backup
  • Manually backup your iphone through itunes.
  • Then restore iphone. An option will come up that says “restore and update”.
  • Iphone reboots after installation of os4. Then restore from backup in itunes.

That’s it, it worked like a charm for me.

Print This Post

ModalPopupExtender hiccup with Safari and Chrome

I don’t write much, as you can see by the dates on my posts. But I want to make sure to register this here, so people can easily find a solution to this problem instead of spending hours trying different things.For some reason, my modal popup was not displaying in Safari/Chrome.The fix is to replace ScriptManager with AjaxToolKitScriptManager.Replace:<asp:ScriptManager ID=”scriptManager” runat=”server” />With this:<ajaxToolkit:ToolkitScriptManager ID=”scriptManager” runat=”server” ></ajaxToolkit:ToolkitScriptManager>I hope this helps,

Print This Post

My trip to Europe - 2007

Man, was Europe fun or what? It was my first to trip back to Europe since I was born. Besides the fact that Europe is awesome, I was traveling with my parents, my oldest brother and his wife, my wife and another brother of mine. I think having your family sharing an experience like that makes everything even better.

Here are some pics, check it out: http://picasaweb.google.com/rloureiro/20070929Europa2007

Eiffel Tower

Print This Post

Displaying the results of a query in matrix format (pivot table)

Today I came across an unusual request, I had to query the database and return the values in a pivot table format (variable columns). That’s kind of easy to do if you are using Sql Reporting, but I had never had to display a gridview in this format. After some research, I was able to find and article on Uma Chandar’s site doing just this: here

create table #tb (record_id int, obj_id char(4), reference char(10))


insert #tb values(1, ‘Btn1′, ‘forward’)
insert #tb values(1, ‘Btn2′, ‘backward’)
 

select
  record_id
,
 
min(case when obj_id = ‘btn1′ then reference end) as btn1,
  min(case when obj_id = ‘btn2′ then reference end) as btn2
from #tb
group by record_id
 

 

I hope this helps.  

Print This Post

AjaxControlToolkit and SmartNavigation

After spending almost 2 hours investigating the following problem with a Ajax dropdown extension object:

‘Error: Sys.ArgumentTypeException: Object of type ‘AjaxControlToolkit.PopupBehavior’ cannot be converted to type ‘AjaxControlToolkit.PopupBehavior’.

I finally realized the page was using the smartNavigation directive. This directive has become obsolete with .NET 2.0, you can now use Page.SetFocus() and
Page.MaintainScrollPositionOnPostBack() instead to obtain similar result. However, during the upgrade process from 1.1, the wizard didn’t flag this directive as a problem, so
I was not aware of its presence until I came across the problem above.
 
Anyway, I was not surprised that upon removing this directive, the page was no longer throwing the javascript exception.

Lesson learned.