dkjariwala

Stories kicked by friends of dkjariwala

.NET Regex Lesson 5: Optimization(regexhero.net)

submitted by BucketSoftBucketSoft(324) 2 months, 8 days ago

Starting with a poorly written regular expression, I make a series of optimizations to make it 3 million times faster. I hope to demonstrate several things to look out for in the process. And I encourage you to benchmark your regular expressions before putting them into production code. read more...

add a comment |category: |Views: 290

tags: another

Maximize Your Chances of Caching Your jQuery(blog.bucketsoft.com)

submitted by BucketSoftBucketSoft(324) 2 months, 18 days ago

A couple lessons learned. 1. Use one of the popular CDN-hosted copies of jQuery. 2. Link to an exact version number. read more...

3 comments |category: |Views: 112

tags: another

Avoiding Race Conditions with a BackgroundWorker(blog.bucketsoft.com)

submitted by BucketSoftBucketSoft(324) 7 months, 20 days ago

What is a race condition you say? Well, simply put, it's when two or more threads race to an event or line of code. Sometimes one thread will win the race, and sometimes the other thread will. What this comes down to is that this inconsistent behavior can cause some strange and unexpected results. read more...

1 comment |category: |Views: 197

tags: another

How much faster is multiplication than division?(swortham.blogspot.com)

submitted by BucketSoftBucketSoft(324) 7 months, 23 days ago

This is one of those things I learned a long time ago when I used to write a lot of animations, games, etc -- multiplication is faster than division. But I can't remember ever testing this to see exactly how much of a performance gap there was. I figured division might be 2 or 3 times slower. In fact, the difference is much greater than that. read more...

1 comment |category: |Views: 50

tags: another

Introducing XAML Illustrations(blog.silverlightxap.com)

submitted by BucketSoftBucketSoft(324) 11 months ago

Up until now SilverlightXAP.com has allowed developers to publish and sell Silverlight controls online. Now we're also accepting XAML illustrations. read more...

add a comment |category: |Views: 52

tags: another

XAP File Optimization Techniques for 2011(blog.silverlightxap.com)

submitted by BucketSoftBucketSoft(324) 1 year, 4 months ago

There are tips to be found on the internet. Some say that recompressing the XAP file with something like WinRAR on its "best" compression setting will help. But that was in the Visual Studio 2008 / Silverlight 2 days. Now if you're building a Silverlight 4 app in Visual Studio 2010 it's already going to be compressed about as heavily as it can be. So I'm going to talk about other effective techniques that will help you today. read more...

add a comment |category: |Views: 16

tags: another

Don't use foreach and for loops in .NET(www.codekicks.com)

submitted by duttavrhotmailduttavrhotmail(344) 1 year, 4 months ago

This article explains various loops and their execution timings. 1. foreach loop vs for loop. 1. foreach loop vs while loop. read more...

1 comment |category: |Views: 256

tags: another

A New Source for Royalty Free Silverlight Controls(blog.bucketsoft.com)

submitted by BucketSoftBucketSoft(324) 1 year, 4 months ago

After about a year in the making I have launched SilverlightXAP.com. Originally the site was called Silverlight Shaders and was going to be dedicated to Silverlight pixel shaders, but that was decidedly short-sighted. SilverlightXAP is an online marketplace for Silverlight controls. read more...

add a comment |category: |Views: 28

tags: another

When to use an when not to use Regular Expressions(blog.regexhero.net)

submitted by BucketSoftBucketSoft(324) 1 year, 4 months ago

For the most part regular expressions are there to save you time from parsing text the hard way. But if you're spending more time bending regular expressions to your will to accomplish something that could be done more easily and efficiently with procedural code, then that kind of defeats the purpose. read more...

add a comment |category: |Views: 11

tags: another

Regex Hero can now translate a regular expression into English(blog.regexhero.net)

submitted by BucketSoftBucketSoft(324) 1 year, 5 months ago

Regular expressions are one of those things that many programmers dabble with enough to understand the concept, but not enough to memorize the syntax. Code completion is a big step towards making things easier. Beyond that, sometimes an explanation written out in English is just what you need. read more...

3 comments |category: |Views: 700

tags: another

My Review of Peter's Data Entry Suite(swortham.blogspot.com)

submitted by BucketSoftBucketSoft(324) 2 years ago

I explain what I think of as some of the most powerful features of Peter's Data Entry Suite: the awesome validators, and the MultiFieldStateController. Oh the wonders of the MultiFieldStateController, how I adore thee. read more...

add a comment |category: |Views: 25

tags: another

Stopwatch Threshold Logging for ASP.NET(blog.regexhero.net)

submitted by BucketSoftBucketSoft(324) 2 years, 1 month ago

Intermittent performance problems are annoyingly difficult to diagnose. The idea with this logger is to time the ASP.NET page lifecycle from start to finish, and if it exceeds a certain threshold, then log it. The advantage of this approach is that it's not going to waste processing time logging the stuff I don't care about. read more...

add a comment |category: |Views: 13

tags: another

C# Micro Performance Testing Class(lukencode.com)

submitted by lukenlowreylukenlowrey(288) 2 years, 1 month ago

I often find myself wondering which version of a method would run more efficiently so for my own amusement I built this little class so I could easily test various method's performance. I understand this is no substitute for real profiling but it is handy to do some quick comparisons. read more...

add a comment |category: |Views: 19

tags: another

Code Hinting for Regular Expressions (an Intellisense-like feature)(blog.regexhero.net)

submitted by BucketSoftBucketSoft(324) 2 years, 1 month ago

It's been a long time in the making but code hinting is here. I took a lot of inspiration from Intellisense. But as I'm sure you know, Intellisense doesn't provide any help when writing regular expressions. read more...

add a comment |category: |Views: 38

tags: another

Account Recovery with OpenID(regexhero.net)

submitted by BucketSoftBucketSoft(324) 2 years, 4 months ago

Since OpenID is still relatively new, some of the best practices are still being worked out. We've come to accept the "forgot password" functionality common to most sites accepting usernames and passwords. But what happens when you can't log in to a site using your typical OpenID? I asked this question and, after a little brainstorming, came up with a solution. read more...

add a comment |category: |Views: 21

tags: another

Regex Hero Embraces MVC, OpenID, and Cloud Computing(regexhero.net)

submitted by BucketSoftBucketSoft(324) 2 years, 7 months ago

Steve Wortham tries to stay at the forefront of technology by rewriting the Regex Hero site in ASP.NET MVC, implementing an OpenID login/registration system, and adding "cloud computing" features to the Regex Hero tester. read more...

add a comment |category: |Views: 15

tags: another