Quantcast
Channel: whileloop » code
Browsing latest articles
Browse All 10 View Live

Image may be NSFW.
Clik here to view.

embedding a dynamic map of foursquare check-ins into your website

I’ve just been working with embedding foursquare locations in a website, and displayed on a map. After a bit of a fiddle around, I’ve come up with, what I think is, a very simple and dynamic solution....

View Article



Image may be NSFW.
Clik here to view.

retrieving tags and counts from WordPress blog

A website I’ve been working on has a WordPress blog included in it. The site is not using WordPress as the CMS, just as one section. While the blog is sub-foldered (e.g. http://%5BSITENAME%5D/blog/)...

View Article

Image may be NSFW.
Clik here to view.

asp:DeclarativeCatalogPart WebPartsTemplate must have odd number of elements

I discovered an interesting anomaly today, working with ASP.NET and Web Parts, I had an issue whereby creating a CatalogZone caused the HTML generated from template to lose a whole lot of closing tags....

View Article

Image may be NSFW.
Clik here to view.

ensuring a Directory exists in C#

Often we need to ensure a Directory exists before we reference or use it. This is a little method that does this for you. Nothing complicated, but if you need to check that 2 or more directories exist,...

View Article

Image may be NSFW.
Clik here to view.

copying or deleting everything in a directory (C#)

In C# we have the ability to move Directories or Files using System.IO.File.Move(sourceFile, destFile) and System.IO.Directory.Move(sourceDirPath, destDirPath) (making sure your paths use the string...

View Article


Image may be NSFW.
Clik here to view.

use CAB files in C# and .NET

An often overlooked element of working in C# and .NET is the ability to work with CAB files. These are very useful compressed files, which can help you immensely when you are deploying applications and...

View Article

Image may be NSFW.
Clik here to view.

simple random alpha char string variable in C#

Just a quick little code sample which creates a variable which generates a random alpha character string (upper and lower case). This can be very useful when you need to randomise a name, or create one...

View Article

Image may be NSFW.
Clik here to view.

Create a list box in Excel to ensure valid data entry

I’ve been pulling together a spreadsheet for tracking and planning the expenses of my upcoming wedding and honeymoon. Having not used Excel for a while, I was a bit rusty. Anyway, what I wanted to do...

View Article


Image may be NSFW.
Clik here to view.

Convert your website or web app to iOS app

I’ve been looking at web apps for iOS last weekend, as I was helping a friend with possibly porting his work as a native app. The solution provided by Apple is rather elegant, and very minimal in terms...

View Article


Image may be NSFW.
Clik here to view.

Action confirmation with JavaScript

Just a simple little trick for confirming with a user before they undertake an action on your web page. Sometimes you need to confirm things. You know, does the user of your site really want to delete...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images