benwong.me

  • About

Author Archives: ben

How to prevent a web page from being indexed by search engines

Posted on Sunday, May 31st, 2015 by Ben Wong
Tags: search engines

At work, there are times when we need to publish web pages with embargoed content for review by stakeholders. Often it’s too much hassle to add some basic password protection to the page to prevent unwanted visitors. All you really … Continued

Tip: Use Log Parser Studio to Analyse IIS Web Logs

Posted on Saturday, November 23rd, 2013 by Ben Wong
Tags: iis, log parser, log parser studio, web logs

Last week I had to go through IIS web logs to troubleshoot an issue one of the websites I look after at work. Fortunately for me I found Log Parser Studio. LPS is a GUI for Log Parser and makes … Continued

Always specify radix parameter for Javascript parseInt

Posted on Sunday, July 28th, 2013 by Ben Wong
Tags: javascript, parseint, radix

This week I learned how important the radix parameter for the javascript parseInt is. I implemented my own custom date string parser and discovered that older versions of Firefox behaved differently when running the following line. var month = parseInt(’08’); … Continued

How to use ASP.NET FileUpload’s PostedFile.InputStream

Posted on Saturday, May 11th, 2013 by Ben Wong
Tags: asp.net, fileupload, httppostedfile, inputstream

This week I started working on a new file uploader for the company website admin. The current version uses the HttpPostedFile SaveAs method to save the file to a temporary directory before uploading to the web server using FTP. I … Continued

Useful .NET libraries for console applications

Posted on Sunday, March 24th, 2013 by Ben Wong
Tags: .NET, console, import, libraries, scheduled task

In the past couple of weeks at work I’ve being rewriting a .NET console application that imports data and runs as a schedule task on a server. I’ve had to work on few of these sort of apps as a … Continued

← Older posts
Newer posts →

Recent Posts

  • Using Content Picker Type for Macro Parameter in Umbraco
  • How to move the Visual Studio Code extensions folder on Windows
  • How to configure Umbraco ModelsBuilder to generate models in a separate project
  • Tip: Best way to copy files to and from Azure Blob Storage
  • How to set up Gulp to optimise PNG images using Zopfli

Recent Tweets

Tweets by @benwong

© 2022 benwong.me