Arun Stephens

Facebook lost some data

I’m not sure how widespread this was, but I got an email from Facebook saying: Subject: Please reset your email notification settings. Unfortunately, the settings that control which email notifications get sent to you were lost. We’re sorry for the inconvenience. To reset your email notification settings, go to: http://www.facebook.com/editaccount.php?notifications Thanks, The Facebook Team And on the Facebook home page, this appears at the top: Apparently, it’s quite widespread, but that’ Read post »

Windows Azure Development Storage with real SQL Server

I don’t have SQL Server Express, I’ve got the real deal. Development Storage for Windows Azure assumes you are using SQL Server Express with the instance name SQLEXPRESS. Thanks to this article I now know that you just need to edit the config file for DevelopmentStorage.exe, which is usually located in C:Program FilesWindows Azure SDKv1.0binDevelopmentStorage.exe.config. There are two spots to modify. The first is the connection string (XPath: /configuration/connectionStrings/add/@connectionString) and Read post »

SSH slow to login? Disable reverse DNS lookup

By default in Ubuntu (and probably other distributions), when you log into the SSH server, it will do a reverse DNS lookup of the client for security reasons. That’s fine, but it’s kind of annoying when you don’t have a working reverse DNS for your IP address. Like for all my internal addresses. To turn it off (thanks to http://ubuntuforums.org/showthread.php?t=577616): Edit /etc/ssh/sshd_config and add the following line: UseDNS Read post »

Declarative data binding on User Controls

I had this problem a few years ago and figured that there was no good solution, but I am older and wiser now so figured it’s time look for a better solution. I have a GridView, and inside the ItemTemplate I call one of my own UserControls: <asp:GridViewID="grdMessages"runat="server" ... > ... <ItemTemplate><uc1:EmailAddressID="EmailAddress1"runat="server" DataSource='<%# (MailAddress)Eval("FromAddress") %>'/>ItemTemplate> ... asp:GridView> But the DataSource property of the EmailAddress user Read post »

ObjectDataSource.SelectCountMethod wants an int

I have been working with the GridView ASP.NET control today, bound to an ObjectDataSource. This is to do with my experiment with DBMail that I mentioned the other day. It wasn’t working. I couldn’t find a solution on the net. By chance, I changed this: class DatabaseSource { long _messageCount = 0; public List GetMessages(long startRow, int pageSize) { Database db = new Database(); List messages = db.GetMessages( startRow, pageSize, out _messageCount); return messages; } publiclong GetMessageCount() { return _messageCount; } } into this: Read post »