howto

SQL Server Reporting Services 2005 - How to Handle Empty Reports

I was wondering if it is possible to not attach Excel sheet if it is empty, and maybe write a different comment in the email if empty. When I go to report delivery options, there's no such configuration. Edit: I'm running SQL Server Reporting Services 2005. Some possible workarounds as mentioned below: MSDN: Reporting Services Extens...

JavaScript: How to detect that the Internet connection is offline?

How to detect that the Internet connection is offline in JavaScript? ...

How do you convert VARCHAR to TIMESTAMP in MSSQL?

You'd like to call a stored proc on MS SQL that has a parameter type of TIMESTAMP within T-SQL, not ADO.NET using a VARCHAR value (e.g. '0x0000000002C490C8'). What do you do? UPDATE: This is where you have a "Timestamp" value coming at you but exists only as VARCHAR. (Think OUTPUT variable on another stored proc, but it's fixed alread...

IIS 6 Tuning Guide?

I have been a developer for 10+ years and so far my IIS knowledge is just enough for deploying stuff on it and get it running. Recently I have been playing with IIS 6 and realize the huge difference on the worker process model. I think I would need some good guide to update my knowledge in this area. Any good article/book recommendation?...

Data recovery mechanics, is it possible to recover items from the hard drive?

I've been using some data recovery tools like Diskinternals Uneraser. I've been wondering how we can recover things on a hard drive programmatically? Is there specific disc access mechanics, patterns, API to use? Is it something I can do in C#? ...

How do I get a list of Java Class dependencies for a Main class?

Is there a way to find all the class dependencies of a java Main class? I have been manually sifting through the imports of the Main class and it's imports but then realised that, because one does not have to import classes that are in the same package, I was putting together an incomplete list. This should be recursive (perhaps to a d...

How to change MySQL root password to default?

My initial installation for the MySQL had no password for root. I assigned a password for root and everything worked fine. Due to some reason (don't ask why) I had to revert back to the original settings where root didn't have any password. I changed the root password to '' (empty string). The problem now is that MySQL doesn't run with ...

How gmail handles file attachment?

Hi, When I select a file to attach in gmail compose screen, It automatically uploads the file to server without page refresh. I looked at the html source code via FireBug and have not seen a n iframe. How do they upload attachments? Thanks. ...

Online Translation

I am trying to develop an online translation service (sort of a personal challenge) but I have been looking for any guidelines or any way to see how it should be done and so far I have come up with nothing so. In a nutshell, does anybody knows where to find a service, code or explanation of how online translation works and/or guidelines ...

How to access a file with the least amount of locking

in my application (c# 3.5) there are various processes accessing a single xml file (read and write) very frequently. the code accessing the file is placed in an assembly referenced by quite a couple of other applications. for example a windows service might instanciate the MyFileReaderWriter class (locatied in the previously mentioned as...

How to write a programming language ?

Hi I would like to know which books to recommend writing a programming language. Someone has already developed a programming language ? Which were the biggest problems or issues unresolved ? Related SO question SO - How to write a compiler ...

How can I make my regex match the first pattern instead of the last?

I'm probably doing this all wrong. I have a text file full of data and I want to match and replace patterns of "item" and "catalog number" that are in the file. But the order of each element in the file is very important, so I want to match/replace starting from the top of the file and then work my way down. The code snippet below actua...

Good rails generator tutorial?

As title, good I mean with detail coverage of m.template, m.class_collisions etc. A paid book or free online resources would be acceptable too. ...

Rails generator m.directory returns can't convert nil into String

I have written this generator code but it returns 'can't convert nil into String' when I call m.directory inside the manifest. Anyone know what had happened? class AuthGenerator < Rails::Generator::NamedBase attr_reader :user_class_name def initialize(runtime_args, runtime_options={}) @user_class_name="User" @controller_clas...

During execution, how can a java program tell how much memory it is using?

During execution, how can a java program tell how much memory it is using? I don't care how efficient it is! ...

How do I find a user's Active Directory display name in a C# web application?

I'm writing a web application which uses windows authentication and I can happily get the user's login name using something like: string login = User.Identity.Name.ToString(); But I don't need their login name I want their DisplayName. I've been banging my head for a couple hours now... Can I access my organisation's AD via a web ap...

Stored procedures or inline queries?

First of all there is partial question regarding this, but it is not exactly what I'm asking, so, bear with me and go for it. My question is, after looking at what SubSonic does and the excellent videos from Rob Connery I need to ask: Shall we use a tool like this and do Inline queries or shall we do the queries using a call to the stor...

How do I get a list of commit comments from CVS since last tagged version?

I have made a bunch of changes to a number of files in a project. Every commit (usually at the file level) was accompanied by a comment of what was changed. Is there a way to get a list from CVS of these comments on changes since the last tagged version? Bonus if I can do this via the eclipse CVS plugin. UPDATE: I'd love to accept an...

How to create a CMS web site using OFBiz

I need a simple how-to tutorial on developing a simple CMS web site using the OFBiz CMS framework. There are absolutely no documentation of how OFBiz CMS works. Whatever is there in the official website is only about the data model used in OFBiz CMS application. If somebody can illustrate just a "Hello World" like application in OFBiz C...

How do you write a basic operating system?

Hi, Let me know how I can create a basic operating system. What books do you recommend? ...