instruction
stringlengths
0
30k
Is there any designer for rdl files (visual studio .net reports) that can be used on a web browser?
Web designer for VS.NET ReportViewer
|report|reportviewer|designer|rdl|
What opensource CMS: generates clean xhtml, is skinable with css, and has a lightweight markup content editor?
I use POST when I don't want people to have easy access to what is being passed and I use GET when I don't mind them seeing the value in the url. I generally don't use cookies for much as I find SESSION to be fine for persisting values (although having a proper registry is the best way to utilize that).
I think OpenSSL is a good choice. It's well-maintained, and the price is right :) http://www.openssl.org
Enums have been proposed for inclusion into the language before, but were rejected (see [http://www.python.org/dev/peps/pep-0354/][1]), though there are existing packages you could use instead of writing your own implementation: * enum: [http://pypi.python.org/pypi/enum][2] * SymbolType (not quite the same as enums...
One good solution is to add another connection to the dbml file itself. You can get to this by right-clicking on the field of the design surface and selecting properties. From there, you can add another connection string. Instead of deleting everything and redragging, just change the string and recompile. But if you...
The builtin way to do enums is: (FOO, BAR, BAZ) = range(3) which works fine for small sets, but has some drawbacks: - you need to count the number of elements by hand - you can't skip values - if you add one name, you also need to update the range number For a complete enum implementation in py...
Unhandled exception behavior in a .NET 1.x WinForms app depends on: * The type of thread that threw the exception * Whether it occurred during window message processing * Whether a debugger was attached to the process * The DbgJitDebugLaunchSetting registry setting * The jitDebugging flag in App.Config * Whethe...
[Crypto++][1] - They have NIST FIPS validated dll's for MSVC 6, 7.1, and 8 on top of the normal source code self built packages. [1]: http://www.cryptopp.com/
While you're correct that you shouldn't generally add stuff to the std:: namespace, adding template specializations for user-defined types is specifically allowed. Overloading the functions is not. This is a subtle difference :-) > 17.4.3.1/1 It is undefined for a C++ program to add declarations or definitions ...
While it's correct that one shouldn't generally add stuff to the std:: namespace, adding template specializations for user-defined types is specifically allowed. Overloading the functions is not. This is a subtle difference :-) > 17.4.3.1/1 It is undefined for a C++ program to add declarations or definitions t...
I think one way is to look for ones that reputable sites use. For example, I learnt about [Slicehost](http://www.slicehost.com/) through [Refactor my Code](http://refactormycode.com/) using it, and I love it. :-)
You could write your own utility. Here a sample as starter: http://gist.github.com/11658 1. Create a CpuMeter instance 2. ResetCounter 3. Wait for an intervall 4. Check Cpu utilisation 5. Start again
I depends on what you mean by side by side, if you are trying to make something inside the same URL path as sharepoint then the above answers about managed paths should do it for you, but there is also nothing stopping you from just creating another Web Site inside of IIS, sharepoint will only take over the requests co...
Converting C++ code to HTML safe
|c++|source|wiki|
I decided to try http://www.screwturn.eu/ wiki as a code snippet storage utility. So far I am very impressed, but what irkes me is that when I copy paste my code that I want to save, '<'s and '[' (http://en.wikipedia.org/wiki/Character_encodings_in_HTML#Character_references) invariably screw up the output as the wiki i...
|c++|wiki|source-code|
How do I work with quarters (quarterly dates) in ASP.Net using VB.Net 2.0?
|vb.net|.net-2.0|datetime|date|
I know that [Sql Server has some handy built-in quarterly][1] stuff, but what about the .Net native [DateTime][2] object? What is the best way to add, subtract, and traverse quarters? Is it a *bad thing*™ to use the VB-specific [DateAdd()][3] function? e.g.: Dim nextQuarter As DateTime = DateAdd(DateInterval....
I know that [Sql Server has some handy built-in quarterly][1] stuff, but what about the .Net native [DateTime][2] object? What is the best way to add, subtract, and traverse quarters? Is it a *bad thing*™ to use the VB-specific [DateAdd()][3] function? e.g.: Dim nextQuarter As DateTime = DateAdd(DateInterval....
I know that [Sql Server has some handy built-in quarterly][1] stuff, but what about the .Net native [DateTime][2] object? What is the best way to add, subtract, and traverse quarters? Is it a *bad thing*™ to use the VB-specific [DateAdd()][3] function? e.g.: Dim nextQuarter As DateTime = DateAdd(DateInterval....
I'm not sure I can give you just one hurdle, because it is a complete departure from WinForms. My suggestion is get Adam Nathan's WPF Unleashed, forget everything you know about building UI's with any previous technology (Winforms, MFC, Java) and begin again at square one. If you try and do it any other way it wi...
I'm not sure I can give you just one hurdle, because it is a complete departure from WinForms. My suggestion is get Adam Nathan's WPF Unleashed, forget everything you know about building UI's with any previous technology (Winforms, MFC, Java) and begin again at square one. If you try and do it any other way it wi...
In addition to what has been mentioned previously, I wrote a simple Python audio editor. http://code.google.com/p/yaalp/source/browse/#svn/trunk See main.py. It also has audio manipulation and some effects. Code's GPL, so this could be a starting point for you.
Unfortunately there isn't a straightforward way without making a complete implementation of a TextFormatter. [MSDN article on the basics of an Advanced TextFormatter][1]: > The text layout and UI controls in WPF provide formatting properties that allow you to easily include formatted text in your application. These...
You could try using a cosine interpolation for the points in-between.
> How do I get uriscan to allow > submissions like this without turning > off the double-escaped url feature? How do you get it to allow double-escaped URLs without turning off the double-escaped url feature? I think there's something wrong with what you're trying to do. My question is this: does your HTML sourc...
temp2 will not be updated, but temp1 will point to the next item. So if temp1 is 0x89abcdef and temp1->next is 0x89b00000, then after you're done, temp1 will be 0x89b00000 and temp2 will be 0x89abcdef. Assuming you're making a linked list, of course.
`is` does not use reflection as [Kevlar623][1] says. It maps to the `isinst` operation in IL. On that level, comparing performance is downright silly, unless you're working on a missile guidance system. **I use `value is DBNull`.** It just sounds right and as a paranoid developer, I can't trust that the only value e...
svn update -r 2 A.txt This command will **not** delete any versions in the repository. It will set your working copy of A.txt to be revision 2. You can see this by doing > svn status -u A.txt * 2 A.txt The output of this command show that you are viewing version 2, and that there are updat...
Any sort of diagnostic output - **especially** on failure is critical. If a test fails, you don't want to always have to rerun the test under a debugger to see what happened - there should be some cludes in the output. I also like to see a before and after snapshot of critical system variables like memory or hard di...
Using openssl what does "unable to write 'random state'" mean?
|openssl|
I'm generating a self-signed SSL certificate to protect my server's admin section, and I keep getting this message from openssl: unable to write 'random state' What does this mean? A quick Google search yields nothing useful, so I thought I'd try out the new Stack Overflow! This is on an Ubuntu server. I have ...
I think it is most useful as a compile-time reminder that the intention of the method is to override a parent method. As an example: protected boolean displaySensitiveInformation() { return false; } You will often see something like the above method that overrides a method in the base class. Thi...
What is quicker, switch on string or elseif on type?
|c#|performance|
Lets say I have the option of identifying a code path to take on the basis of a string comparison or else iffing the type: Which is quicker and why? switch(childNode.Name) { case "Bob": break; case "Jill": break; case "Marko": break; } ...
Lets say I have the option of identifying a code path to take on the basis of a string comparison or else iffing the type: Which is quicker and why? switch(childNode.Name) { case "Bob": break; case "Jill": break; case "Marko": break; } ...
If you're using Win32, why don't you simply use the built-in win32 crypto-API? Here's a little example how it works in practice: http://www.codeproject.com/KB/security/EncryptionCryptoAPI.aspx
There is no limit on "lines of code", but there is a limit on total size. Each method has a 64kb limit. I've only ever run into this with code generation tools. If you are coming close to the limit, be careful. A lot of profiling and monitoring tools use byte code insertion. They can push you over the top if y...
There is no limit on "lines of code", but there is a limit on total size. Each method has a 64kb limit. I've only ever run into this with code generation tools. If you are coming close to the limit, be careful. A lot of profiling and monitoring tools use byte code insertion. They can push you over the top if y...
When you are making a SOAP request you are just sending an HTTP request to a server. If the server understands it, it will respond with an HTTP 200 and some XML back, if it doesn't it will send you some error HTTP code (404, 500, ...) There is no general way to ask for the existance of a "method" exposed by a web se...
What I see more often is this, in top-level module context: FOO_BAR = 'FOO_BAR' FOO_BAZ = 'FOO_BAZ' FOO_QUX = 'FOO_QUX' ...and later... if something is FOO_BAR: pass # do something here elif something is FOO_BAZ: pass # do something else elif something is FOO_QUX: pass # do somethin...
There's a lot of good discussion [here][1]. [1]: http://stackoverflow.com/questions/36932/whats-the-best-way-to-implement-an-enum-in-python
CSS list-style
|css|
I am using YUI reset/base, after the reset it sets the ul and li tags to list-style: disc outside; My markup looks like this: <div id="nav"> <ul class="links"> <li><a href="">Testing</a></li> </ul> </div> My CSS is: #nav {} #nav ul li { list-s...
Nope, I don't think so. The only other .NET environment for consoles I know costs money and is called unity3d: http://unity3d.com/ I think it supports the iPhone and the Wii and uses Mono as runtime environment. 200 bucks and you are in :)
Using a ORM for an iPhone app might be a bad idea because of performance issues, you want your code to be as fast as possible. So you can't avoid boilerplate code. If you are considering a ORM, besides SQLAlchemy I'd recommend Storm.
Nobody recommends using SourceSafe anymore. Not even Microsoft. It's just not reliable. I wrote about it here: [http://www.everything2.com/index.pl?node_id=1820195][1] [1]: http://www.everything2.com/index.pl?node_id=1820195
Nobody recommends using SourceSafe any more. Not even Microsoft, who will now offer you an (expensive) TFS licence. SourceSafe is just not reliable. I wrote about it here: [Visual SourceSafe on E2][1]. It's a bit of a rant, but that;s becuase I had to use SourceSafe for quite a while, and the memory makes me froth ...
Nobody recommends using SourceSafe any more. Not even Microsoft, who will now offer you an (expensive) TFS licence. SourceSafe is just not reliable. I wrote about it here: [Visual SourceSafe on E2][1]. It's a bit of a rant, but that's because I had to use SourceSafe for quite a while, and the memory makes me froth ...
Nobody recommends using SourceSafe any more. Not even Microsoft, who will now offer you an (expensive) TFS licence. SourceSafe is just not reliable. I wrote about it here: [Visual SourceSafe on E2][1]. It's a bit of a rant, but that's because I had to use SourceSafe for quite a while, and the memory makes me froth ...
|language-agnostic|content-management-system|
See title. By lightweight markup I mean something like markdown or wikitext.
Hi Guys well I finally got this thing to work the basic workflow was this: #!/bin/bash sudo yum install php-cli php-devel libglade2-devel make atk-devel pango-devel gtk2-devel glib2-devel wget http://gtk.php.net/do_download.php?download_file=php-gtk-2.0.1.tar.gz tar -xvzf php-gtk-2.0.1.tar.gz ...
**UPDATE: Don't Try this as is it!!!!!!** An automatic update on gtk made this to break my menu, if there is an option to avoid updates while installing, use it and please share it. ----- Hi Guys well I finally got this thing to work the basic workflow was this: #!/bin/bash sudo yum install php-cli php...
**UPDATE: Don't Try this as is it!!!!!!** An automatic update on gtk made this to break my menu, if there is an option to avoid updates while installing, use it and please share it. ----- Hi Guys well I finally got this thing to work the basic workflow was this: #!/bin/bash sudo yum install yum-utils ...
|vb.net|.net-2.0|date|datetime|
I know that [Sql Server has some handy built-in quarterly][1] stuff, but what about the .Net native [DateTime][2] object? What is the best way to add, subtract, and traverse quarters? Is it a *bad thing*™ to use the VB-specific [DateAdd()][3] function? e.g.: Dim nextQuarter As DateTime = DateAdd(DateInterval....
I know that [Sql Server has some handy built-in quarterly][1] stuff, but what about the .Net native [DateTime][2] object? What is the best way to add, subtract, and traverse quarters? Is it a *bad thing*™ to use the VB-specific [DateAdd()][3] function? e.g.: Dim nextQuarter As DateTime = DateAdd(DateInterval....
I know that [Sql Server has some handy built-in quarterly][1] stuff, but what about the .Net native [DateTime][2] object? What is the best way to add, subtract, and traverse quarters? Is it a *bad thing*™ to use the VB-specific [DateAdd()][3] function? e.g.: Dim nextQuarter As DateTime = DateAdd(DateInterval....
First limit the selection to the highest score for each account id. Then take the top ten scores. SELECT TOP 10 Id, Score FROM Scores s1 WHERE AccountId NOT IN (SELECT AccountId s2 FROM Scores WHERE s1.AccountId = s2.AccountId and s1.Score > s2.Score) ORDER BY Score DESC
First limit the selection to the highest score for each account id. Then take the top ten scores. SELECT TOP 10 Id, Score FROM Scores s1 WHERE Id NOT IN (SELECT Id FROM Scores s2 WHERE s1.AccountId = s2.AccountId and s1.Score > s2.Score) ORDER BY Score DESC
First limit the selection to the highest score for each account id. Then take the top ten scores. SELECT TOP 10 AccountId, Score FROM Scores s1 WHERE Id NOT IN (SELECT Id FROM Scores s2 WHERE s1.AccountId = s2.AccountId and s1.Score > s2.Score) ORDER BY Score DESC
First limit the selection to the highest score for each account id. Then take the top ten scores. SELECT TOP 10 AccountId, Score FROM Scores s1 WHERE AccountId NOT IN (SELECT AccountId s2 FROM Scores WHERE s1.AccountId = s2.AccountId and s1.Score > s2.Score) ORDER BY Score DE...
You're not really giving us enough information to answer your question. Are they starting out pointing to the same structure, or are they only both of type pointer to structure x? And if it's some struct x, what's the definition of the nxt field?
(any == System.DBNull.Value) vs (any is System.DBNull)
|dbnull|
Does any one have a preference on how to check if a value is DBNull? I've found these two statements give me the results I want, but just wondering if there's a preference? if (any is System.DBNull) ... same as: if (any == System.DBNull.Value) ... Thanks! Ricardo.
|null|.net|dbnull|
|.net|null|dbnull|
Each row is to be taken as a 'div' that contains two 'spans' one for fieldname and one for the input. Set 'float:left' on both the spans. However, you need to set some width for the 'fieldname' span. Also, style the div to include the attribute 'clear:both' for precaution.
Benefits of Webforms 1. Event Driven 2. Stateful 3. Easily develop reusable controls Misconceptions of Webforms 1. Its not easy to test - Its very easy to test if you architect your code properly 2. The controls generated HTML is bad - Not anymore, there are CSS Friendly Control Adapters Overall AS...
No, assuming there are pointers like in C. temp2 would be pointing at the location of x and temp1 would be pointing at whatever the nxt pointer points to. Usually this would be the layout for a singly linked list.
I am using YUI reset/base, after the reset it sets the ul and li tags to list-style: disc outside; My markup looks like this: <div id="nav"> <ul class="links"> <li><a href="">Testing</a></li> </ul> </div> My CSS is: #nav {} #nav ul li { list-s...
Cookies and subdomains
|asp.net|cookies|
Can a cookie be shared between two sites on the same top level domain? Say www.example.com and secure.example.com ? We are looking into implementing a cache for non-secure content, and need to segregate secure content to another domain. What parameters does the cookie need? I'm using asp.net
As an alternative, consider LibTomCrypt (http://libtomcrypt.com/download.html)
It looks like me like your missing a rails concept. Every single page the user sees is a different request. I might have missunderstood what you are trying to do. But it seems to me you want the user to see two pages, 1. In the first page they set a string variable 2. In the second page they see a page that...
Are you tried using the "type" element in your dependencies? For example: <dependency> <groupId>group-a</groupId> <artifactId>artifact-b</artifactId> <version>1.0</version> <type>aar</type> </dependency> Its hard to say for sure what your problem is without seeing your actual...
Have you tried using the "type" element in your dependencies? For example: <dependency> <groupId>group-a</groupId> <artifactId>artifact-b</artifactId> <version>1.0</version> <type>aar</type> </dependency> Its hard to say for sure what your problem is without seeing your actua...
I know that [Sql Server has some handy built-in quarterly][1] stuff, but what about the .Net native [DateTime][2] object? What is the best way to add, subtract, and traverse quarters? Is it a *bad thing*™ to use the VB-specific [DateAdd()][3] function? e.g.: Dim nextQuarter As DateTime = DateAdd(DateInterval....
[The Swing Tutorial][1] is very good. Apart from that, the Swing API is obviously <i>the</i> reference, however it's also a treasure trove of fairly good source code! Add the API source to your IDE and you can jump directly to the implementation to all the Swing classes. This is a great way to explore the functionality...
**UPDATE: Don't Try this as is it!!!!!!** An automatic update on gtk made this to break my menu, if there is an option to avoid updates while installing, use it and please share it. ----- Hi Guys well I finally got this thing to work the basic workflow was this: #!/bin/bash sudo yum install yum-utils ...
**UPDATE: Don't Try this as is it!!!!!!** An automatic update on gtk made this to break my menu, if there is an option to avoid updates while installing, use it and please share it. ----- Hi Guys well I finally got this thing to work the basic workflow was this: #!/bin/bash sudo yum install yum-utils ...
What Are Some Decent ISPs That Host Subversion
|svn|source|control|isp|
I want a recommendation on an ISP which has Subversion installed so I can get a repository started. So far I found out discount.asp doesn't have that on their servers and will not support it. So I'm looking for a recommendation
|svn|source-code|control|isp|
Demonstration is the best, and really the only way to change anyone's mind who is resistant to doing things differently. Here we showed how useful automated builds are by having the ability for QA to grab a green light build straight from the build server and install it and test without any direction from the develo...
Here it is, in all its glory /pets/*[bar] English: Give me all children of pets that have a child bar
SQL Server 2005 - clicking on job->Properties yields "New Job" window.
|sql-server-2005|