General
Try to use .UtcNow() as much as you can over .Now() as it is inherently faster than the later. The problem seems to stem from the fact that DateTime.Now performs a DateTime.UtcNow first and then performs a very expensive called to figure out daylight savings time and time zone information. public static DateTime Now
{
get
{
DateTime utcNow = DateTime.UtcNow;
bool isAmbiguousDst = false;
long ticks = TimeZoneInfo.GetDateTimeNowUtcOffsetFromUtc(utcNow, out isAmbiguousDst).Ticks;
...
As an architect, I stress to my team, colleagues or anyone that wants to talk IT that a solid developer needs to understand the fundamentals of how things work – especially when dealing with such a large framework such as the .Net Framework. I’m usually very slow when it comes to adopting new versions of the framework, as of now I still write code in 2.0/3.5 while 4.5 is about to start collecting dust. It has become clear to me in the past years that sometimes frameworks simply get bloated. I wrote comfortable powerful and sophisticated applications with .NET...
if you have been developing more than a few weeks it will be made apparent that you can’t sort a dictionary because of obvious reasons which I won’t go into,all you need to is that its by design and not a bug. therefore, here are some simple ways you can possible sort a dictionary. lets populate a dictionary with some data. // Populate some data into a dictionary
Dictionary<string, int> d = new Dictionary<string, int>();
for (int i = 0; i < 100; i++)
...
JQuery mobile not to be confused with JQTouch is now available, and I have to say its looking very promising. If you are a big JQuery fan like me and you are interested in build one or more UI for a mobile platform then look no further – the new JQuery Mobile is Touch-Optimized Web Framework for Smartphones & Tablets. jQuery mobile framework takes the "write less, do more" mantra to the next level: Instead of writing unique apps for each mobile device or OS, the jQuery mobile framework will allow you to design a single...
from last.fm User-Agent: * Disallow: /music? Disallow: /widgets/radio? Disallow: /show_ads.php Disallow: /affiliate/ Disallow: /affiliate_redirect.php Disallow: /affiliate_sendto.php Disallow: /affiliatelink.php Disallow: /campaignlink.php Disallow: /delivery.php Disallow: /music/+noredirect/ Disallow: /harming/humans Disallow: /ignoring/human/orders Disallow: /harm/to/self Allow: /
In my search for an awesome light weight tooltip, I can across these and a whole lot more, figured I’ll post them and save you the work. I didn’t take the time to review them so its all on you. Tipsy is a jQuery plugin for creating a Facebook-like tooltips effect based on an anchor tag's title attribute - http://onehackoranother.com/projects/jquery/tipsy/ ColorTip is a jQuery Tooltip Plugin - http://tutorialzine.com/2010/07/colortips-jquery-tooltip-plugin/ clueTip - The clueTip plugin allows you to easily show a fancy tooltip when the user's mouse hovers over (or, optionally, clicks...
Before I start cramming code, I’ll like to know what you guys think. I’ve been working heavily on my key value store and it has been working as expected, however, the main reason for me building this store does not seem to be completely eliminated with the functionalities that I have in place so far. therefore, I’ll like to add an extra piece to the jigsaw but before I do so I’ll like to hear what you have to say. The storage engine itself is solid and it works with the minimal functionalities that it currently has. As a...
As I stated in my previous posts here and here, I have set out to write my own NoSQL database simply because I can – well not really but because it will give me the edge, learning experience will be great and there isn’t really too many options when it comes to native .NET NoSQL Databases. I want to be able to build web applications without the RDBMS overhead and schema design time. I haven’t done much yet with distributed or replicating side of things yet, so far all I wanted was a prototype to show that it...
In Part 1 of this series, I mentioned that I really don’t see any need for RDBMS’s and I’ve yet to find a developer that can prove me wrong, however, there is one thing that I’ve yet to solve – that is reporting, although I don’t necessarily think its a problem. There is always the comment that you can’t report on databases that are not relational, how true is that? Very true! oh wait – not really! Read David’s article – about how it all started. However, SQL Server did not start at the...
Yep, the title is right, I’ve been working for years and years building a toolset that will help me develop applications very fast without the setup delay. I want to be able to focus on the application itself rather than the entities around it and one of the most irritating bottlenecks is the database. I mean don’t get me wrong, I’ve worked out a way of speeding up that arena a bit such as using active record and other ORM tools. At this point after designing my database I can simply run my tool and it will create Active Record...
Full General Archive
Next entries »