Skip to content

{handshake sound}

    • About
    • Blog Posts
August 24, 2024

Blog Posts

  • C++ rand generates the same number with srand time

    June 3, 2011

    Random number generation in C++ in the standard libraries is generally done using “ctime” (time.h) and “cstdlib” (stdlib.h). If you are experiencing an issue where calling rand() keeps generating the same number due to similar seeds, simply call it multiple times. (See below). References Stackoverflow (blog), http://stackoverflow.com/questions/3032726/rand-generating-the-same-number-even-with-srandtimenull-in-my-main LearnCPP, http://www.cplusplus.com/reference/clibrary/cstdlib/rand/

  • C++ Simple Class Implementation using Header

    June 3, 2011

    (The following example project was created using Microsoft Visual Studio 2008 Win32 Console Application) example header (“robot.h”): class implementation of header (“robot.cpp”): class usage example (“main.cpp”):

  • OrderBy Column Name as String using Linq C# .Net Dynamic Sorting of Anonymous Types

    May 24, 2011

    If you’re familiar with Linq, you have undoubtedly used the popular “OrderBy” extension method. Unfortunately, this method does not accept a string value with the column name. To resolve, you can add the following small class or just the method to a generic DLL you use in your web application projects or create a new…

  • Calendar Extender Highlight Current Day in C# .Net

    May 24, 2011

    Thanks goes to Karan from asp.net blogs. References ASP.Net (blogs), http://weblogs.asp.net/karan/archive/2010/09/20/calendar-extender-today-s-date.aspx

  • Copy File With Update Progress in .Net

    May 17, 2011

    The process of copying a file in .Net is of course very simple and straightforward. If you want to copy multiple files and update the end user on the progress of a large file copy, or copy files asynchronously while performing other tasks in your application, you’re getting into slightly hairy territory. There are many…

Previous Page Next Page

Share this:

  • Share
  • Share on X (Opens in new window) X
  • Share on LinkedIn (Opens in new window) LinkedIn
Like Loading…

{handshake sound}

Blog at WordPress.com.

  • Subscribe Subscribed
    • {handshake sound}
    • Already have a WordPress.com account? Log in now.
    • {handshake sound}
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar

Notifications

%d