input stringlengths 51 42.3k | output stringlengths 18 55k |
|---|---|
How do I get the mac address or IPAddress from a cisco callmanager? <p>Is there any way to retrieve either the mac address or the IP address of phones on a Cisco server using Callmanager version 6 via the axl with VB.net?</p>
<p>The server can retrieve the IP address itself to use the phone and it's not in the databas... | <p>You can download the WSDL file from your CallManager server. Then with the included methods, you can make a call to getPhone and it's pretty simple from there. If you want to do it in a more manual way, you can use the method from this blog post:</p>
<p><a href="http://blog.crowe.co.nz/Archive/2008/October" rel="... |
MySQL Training videos <p>Hi were can I find training videos for MySQL ? </p>
| <p>In youtube you find somethings like
mysql install: <a href="http://www.youtube.com/watch?v=KQcFP3GcQ0s" rel="nofollow">http://www.youtube.com/watch?v=KQcFP3GcQ0s</a></p>
<p>mysql trainning: <a href="http://www.youtube.com/watch?v=BHq-bORKncA" rel="nofollow">http://www.youtube.com/watch?v=BHq-bORKncA</a></p>
<p>Go... |
How do I retrieve the selected rows of a woodstock table <p>I have a JSF woodstock table with checkboxes. When a row is selected I want to do some processing with those items. I managed to get a selection of RowKey objects but can't find out how to get the original objects I put in back. The table is populated by an Ob... | <p>Always nice to be able to answer you own questions.
I managed to solve it by casting the table's data provider to ObjectListDataProvider and use the method 'getObject' to get my original object back.</p>
|
Help needed for extending Asp.Net <p>As most of you would know, if I drop a file named app_offline.htm in the root of an asp.net application, it takes the application offline <a href="http://asp-net-whidbey.blogspot.com/2006/04/aspnet-20-features-appofflinehtm.html" rel="nofollow">as detailed here</a>.</p>
<p>You woul... | <p>The handling of app_offline.htm is hardcoded in the ASP.NET pipeline, and can't be modified: see <code>CheckApplicationEnabled()</code> in <code>HttpRuntime.cs</code>, where it throws a very non-configurable 404 error if the application is deemed to be offline.</p>
<p>However, <a href="http://support.microsoft.com/... |
AMD 64 bit Dual Core Optimization <p>We have a graphics intensive application that seems to be experiencing problems on AMD 64 bit Dual Core platforms that are not apparent on Intel platforms.</p>
<p>Running the application causes the CPU to run at 100%, in particular when using code for shadows and lighting (Open GL)... | <p>Note that AMD64 is a <a href="http://en.wikipedia.org/wiki/Non-Uniform_Memory_Access" rel="nofollow">NUMA</a> architecture - if you are using a multi-processor box you may be running lots of memory accesses across the hypertransport bus which will be slower than the local memory and may explain the behaviour.</p>
<... |
spring & web service client - Fault Detail <p>How could I get the Fault Detail sent by a SoapFaultClientException ?
I use a WebServiceTemplate as shown below :</p>
<pre><code>WebServiceTemplate ws = new WebServiceTemplate();
ws.setMarshaller(client.getMarshaller());
ws.setUnmarshaller(client.getUnMarshaller());
try {
... | <p>I also had the problem that getFaultDetail() returned null (for a SharePoint web service). I could get the detail element out by using a method similar to this:</p>
<pre><code>private Element getDetail(SoapFaultClientException e) throws TransformerException {
TransformerFactory transformerFactory = TransformerF... |
What is an ideal variable naming convention for loop variables? <p>If you are writing a <em>simple</em> little loop, what <em>should</em> you name the counter?</p>
<p><em>Provide example loops!</em></p>
| <p>1) For normal old style small loops - i, j, k - If you need more than 3 level nested loops, this means that either the algorithm is very specific and complex, either you should consider refactoring the code.</p>
<p>Java Example:</p>
<pre class="lang-java prettyprint-override"><code>for(int i = 0; i < ElementsLi... |
CSV API for Java <p>Can anyone recommend a simple API that will allow me to use read a CSV input file, do some simple transformations, and then write it.</p>
<p>A quick google has found <a href="http://flatpack.sourceforge.net/">http://flatpack.sourceforge.net/</a> which looks promising.</p>
<p>I just wanted to check... | <p>I've used <a href="http://opencsv.sourceforge.net/">OpenCSV</a> in the past. </p>
<pre><code>import au.com.bytecode.opencsv.CSVReader;</code></pre>
<p><pre>String fileName = "data.csv";
CSVReader reader = new CSVReader(new FileReader(fileName ));</p>
<p>// if the first line is the header
String[] header = reader.... |
What would you use to write end user documentation for a WPF application <p>We're working on a WPF-based application and we would like to have user documentation included in the application.</p>
<p>Our requirements:</p>
<ul>
<li>Must support multiple output formats (CHM,HTML,PDF)</li>
<li>Be able to load the text int... | <p>We're using <a href="http://www.codeplex.com/Sandcastle" rel="nofollow">SandCastle</a> with <a href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=SHFB" rel="nofollow">Sandcastle Help File Builder</a> as a configuration tool.
It can create CHM, help2 & website (asp or html).
It is very easy to use and free ... |
Which is the best .Net XML-RPC library? <p>I need to communicate with an XML-RPC server from a .NET 2.0 client. Can you recommend any libraries?</p>
<p>EDIT: Having tried XML-RPC.Net, I like the way it generates dynamic proxies, it is very neat. Unfortunately, as always, things are not so simple. I am accessing an XML... | <p>If the method name is all that is changing (i.e., the method signature is static) XML-RPC.NET can handle this for you. This is addressed <a href="http://xml-rpc.net/faq/xmlrpcnetfaq.html#2.23" rel="nofollow">in the FAQ</a>, noting "However, there are some XML-RPC APIs which require the method name to be generated d... |
Vim errorformat for Visual Studio <p>I want to use Vim's quickfix features with the output from Visual Studio's devenv build process or msbuild.</p>
<p>I've created a batch file called build.bat which executes the devenv build like this:</p>
<pre><code>devenv MySln.sln /Build Debug
</code></pre>
<p>In vim I've point... | <p>I have a blog post which walks through all the details of getting C# projects building in Vim, including the error format. You can find it here: <a href="http://kevin-berridge.blogspot.com/2008/09/vim-c-compiling.html">http://kevin-berridge.blogspot.com/2008/09/vim-c-compiling.html</a></p>
<p>In short you need the... |
How many bits are there in a nibble? <p>binary question :)</p>
| <p>The answer is 4 bits. 2 nibbles make a byte.</p>
<p><a href="http://www.geneziegler.com/clocktower/DrSeuss.html" rel="nofollow">See here</a> for a cute poem.</p>
|
Is there a way to prevent google search terms from matching urls? <p>At the moment, I am doing a number of searches which include "html" in them, for example "html rearrange". Unfortunately, I get a lot of hits from sites that include "rearrange" on a .html page but have no mention of html in the page itself.</p>
<p>... | <p>try something like</p>
<p>"html rearrange -inurl:html"</p>
<p>the inurl means "match the following pattern in the URL", the - means to exclude those pages</p>
|
Restrict access to a single application when logging in from the console without replacing GINA <p>Does anybody know if there is a feasible way on Windows XP to programmatically create and configure a user account so that after logging in from the console (no terminal services) a specific app is launched and the user i... | <p>SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinLogon has two values
UserInit points to the application that is executed upon successful logon. The default app there, userinit.exe processes domain logon scripts (if any) and then launches the specified Shell= application.</p>
<p>By creating or replacing those entrie... |
Prototype get by tag function <p>How do I get an element or elementlist by it's tag name. Take for example that I want all elements from <code><h1></h1></code></p>
| <p>document.getElementsByTagName('a') returns an array. Look here for more information: <a href="http://developer.mozilla.org/En/DOM/Element.getElementsByTagName" rel="nofollow">http://developer.mozilla.org/En/DOM/Element.getElementsByTagName</a></p>
|
PHP: GET-data automatically being declared as variables <p>Take this code:</p>
<pre><code><?php
if (isset($_POST['action']) && !empty($_POST['action'])) {
$action = $_POST['action'];
}
if ($action) {
echo $action;
}
else {
echo 'No variable';
}
?>
</code></pre>
<p>And then access the file ... | <p>Check your php.ini for the <code>register_globals</code> setting. It is probably on, you want it off.</p>
<blockquote>
<p>Why would I want the variable to be declared for me?</p>
</blockquote>
<p><a href="http://us3.php.net/manual/en/security.globals.php" rel="nofollow">You don't.</a> It's a horrible security ri... |
Why do I get "java.net.BindException: Only one usage of each socket address" if netstat says something else? <ul>
<li>I start up my application which uses a Jetty server, using port 9000.</li>
<li>I then shut down my application with Ctrl-C</li>
<li>I check with "netstat -a" and see that the port 9000 is no longer bein... | <p>During your first invocation of your program, did it accept at least one incoming connection? If so then what you are most likely seeing is the socket linger in effect. </p>
<p>For the best explanation dig up a copy of TCP/IP Illustrated by Stevens </p>
<p><img src="http://www.kohala.com/start/gifs/tcpipiv1.gif" a... |
Why would VS2005 keep checking out a project for editing without any changes being made? <p>I have a VS2005 solution which contains a variety of projects (C++ DLLs, C++ static libraries, C# assemblies, C++ windows executables) that are combined in various ways to produce several executables. For some reason, every tim... | <p>As Charles and Graeme have hinted at, Visual Studio constantly make changes to user option files and such on the backed even if you don't make changes to the project directly.</p>
<p>I'm not sure what information is being stored but I do know that it happens. Common remedies is to not include the *.suo files. I al... |
Farseer Physics Tutorials, Help files <p>Is there a tutotial or help file, suitable for a beginner c# programmer to use.</p>
| <p>The primary documentation for the Farseer Physics engine is on the homepage.</p>
<p><a href="http://www.codeplex.com/FarseerPhysics/Wiki/View.aspx?title=Documentation&referringTitle=Home">http://www.codeplex.com/FarseerPhysics/Wiki/View.aspx?title=Documentation&referringTitle=Home</a></p>
<p>You can also c... |
Synchronize SourceSafe with SVN <p>Our company has a policy imposing the requirement of keeping source code in a SourceSafe repository. I've tried hard to persuade the management to migrate to SVN with no success (whcih is an another issue, anyway). </p>
<p>As I and few of my colleagues use SVN repository placed on my... | <p>How about checking in the <strong><em>SVN Repository</em></strong> to SourceSafe?</p>
|
What's the best way to create a drop-down list in a Windows application using Visual Basic? <p>I'd like to add a drop-down list to a Windows application. It will have two choices, neither of which are editable. What's the best control to use? Is it a combo box with the editing property set to No?</p>
<p>I'm using V... | <p>I'd suggest taking a look at the <a href="http://msdn.microsoft.com/en-us/library/aa511258.aspx" rel="nofollow">Windows Vista User Experience Guide</a>. It sounds like you might be better off with radio buttons, or, if it's an explicit on/off type of situation, using a check box. I think we'd really need more info, ... |
What would you say, is the best online-source for PHP-related things? <p>What would you say is the best online-source for interesting things about <code>PHP</code> and stuff around it? I am thinking along the lines of a blog or online-magazine, which tells me about tricks, news and best practices.</p>
<p>Please add a ... | <p>I find php.net to be a great resource for pretty much everything PHP related. Great reference, great community, and lots of code.</p>
|
Linq to SQL Association combo box order <p>This is kind of a weird question and more of an annoyance than technical brick wall.</p>
<p>When I'm adding tables and such using the Linq-to-SQL designer and I want to create an association using the dialogs. I right click on one of the target tables and choose <em>Add</em> ... | <p>I went poking around some and found an answer.</p>
<p>The <strong>dbml</strong> file is an XML file that hold all of the basic information about the SQL tables, connections, etc. needed for Linq-to-SQL. By reordering the Table elements, you affect the order of the combo boxes used in the Association editor.</p>
|
Learning Anaysis Services <p>Can anyone recommend a good resource -- book, website, article, etc -- to help me learn SQL Server Analysis services.</p>
<p>I have no knowledge of this technology right now but I do constantly work with SQL server in the traditional sense. </p>
<p>I want to learn about Cubes and Using Re... | <p>Take a look <a href="http://stackoverflow.com/questions/101242/nice-book-on-sql-server-analysis-services">Here</a> for a list of AS resources I compiled in answer to a similar question.</p>
|
CSS Margin Collapsing <p>So essentially does margin collapsing occur when you don't set any margin or padding or border to a given div element?</p>
| <p>No. When you have two adjacent vertical margins, the greater of the two is used and the other is ignored.</p>
<p>So, for instance, if you have two block-display elements, A, followed by B beneath it, and A has a bottom-margin of 3em, while B has a top-margin of 2em, then the distance between them will be 3em.</p>
... |
How does c# figure out the hash code for an object? <p>This question comes out of the discussion on <a href="http://stackoverflow.com/questions/101825/whats-the-best-way-of-using-a-pair-triple-etc-of-values-as-one-value-in-c">tuples</a>.</p>
<p>I started thinking about the hash code that a tuple should have.
What if ... | <p>Don't override GetHashcode() and Equals() on mutable classes, only override it on immutable classes or structures, else if you modify a object used as key the hash table won't function properly anymore (you won't be able to retrieve the value associated to the key after the key object was modified)</p>
<p>Also hash... |
css organization and colours <p>I just finished a medium sized web site and one thing I noticed about my css organization was that I have a lot of hard coded colour values throughout. This obviously isn't great for maintainability. Generally, when I design a site I pick 3-5 main colours for a theme. I end up setting... | <p>One thing I've done here is break out my palette declarations from other style/layout markup, grouping commonly-colored items in lists, e.g.</p>
<pre><code>h1 {
padding...
margin...
font-family...
}
p {
...
}
code {
...
}
/* time passes */
/* these elements are semantically grouped by color in the design ... |
How can I install CPAN modules locally without root access (DynaLoader.pm line 229 error)? <p>Doesn't work with other modules, but to give an example. I installed Text::CSV_XS with a CPAN setting:</p>
<pre><code>'makepl_arg' => q[PREFIX=~/lib],
</code></pre>
<p>When I try running a test.pl script:</p>
<blockquote... | <p>Personally I would suggest to use <a href="http://search.cpan.org/dist/local-lib/" rel="nofollow">local::lib</a>. :)</p>
|
Build new computer using Scripts <p>I would like to automate the process of setting up a new PC, this would include downloading and installing the latest windows and office updates; installing software from a network share (some software will require a restart so the script would need to be able to login and continue) ... | <p>Check out <a href="http://www.nliteos.com/" rel="nofollow">nLite</a>. Allows you to pre-configure many options, slipstream updates and service packs, etc.</p>
|
Generate a Sandcastle help file for a website without the "Xml Documentation File" option <p>I am trying to generate a Sandcastle help file for a website. In the properties window for project, there aren't any options for creating the XML Documentation File required for Sandcastle.</p>
<p>The Build tab in the property... | <p>The problem with websites in VS2k5 is that, when they get compiled, the resulting dlls are a mess. No namespaces, weird names, etc. </p>
<p>If you truly want to generate a Sandcastle Help File, look at converting your website into a web application. You can definitely generate source code docs for that.</p>
|
Is IIS7 migration a piece of cake <p>I wish to migrate a website to windows 2008 platform, is there any obvious pitfalls i should be aware of?</p>
<p>code base is c# 3.5,asp.net with ms ajax.</p>
| <p>I googled a bit and found this link:</p>
<p><a href="http://weblogs.asp.net/steveschofield/archive/2008/09/04/iis6-to-iis7-migration-tips-tricks.aspx" rel="nofollow">http://weblogs.asp.net/steveschofield/archive/2008/09/04/iis6-to-iis7-migration-tips-tricks.aspx</a></p>
<p>Biggest Issue i find is that 3rd party co... |
Should I store a database ID field in ViewState? <p>I need to retrieve a record from a database, display it on a web page (I'm using ASP.NET) but store the ID (primary key) from that record somewhere so I can go back to the database later with that ID (perhaps to do an update).</p>
<p>I know there are probably a few w... | <p>It depends.</p>
<p>Do you care if anyone sees the record id? If you do then both hidden fields and viewstate are not suitable; you need to store it in session state, or encrypt viewstate.</p>
<p>Do you care if someone submits the form with a bogus id? If you do then you can't use a hidden field (and you need to lo... |
What are some project management tips and processes for a single-developer team? <p>I usually have some project that I can do alone that take around 6 months to 1 year. I always try to have some "release" date and write few documentations (external to the code).</p>
<p>My question is, what type of management do you us... | <p>Having been in a similar position for years, I base my approach to how I'm billing the project: project based or time/materials based.</p>
<p><strong>If I do project based billing</strong>, then I tend to be a little more formal. Meaning that my contract lays out the main project features as well as possible limit... |
Finding First Row in a RDLC Table <p>I have a table in a RDLC report which is utilized as a subreport, and the first column of this table is a static string. Does anyone know how I can determine if a row is the first in the table. I tried using "=First("My String")" but it didn't work.</p>
| <p>Looking at the link supplied by <a href="http://stackoverflow.com/questions/103240/finding-first-row-in-a-rdlc-table#103388">ThatBloke in his answer</a>, I found the RowNumber command. </p>
<p>Which means that this worked:</p>
<pre><code>=IIf(RowNumber(Nothing)=1,"myString", "")
</code></pre>
|
Portable way to catch signals and report problem to the user <p>If by some miracle a segfault occurs in our program, I want to catch the SIGSEGV and let the user (possibly a GUI client) know with a single return code that a serious problem has occurred. At the same time I would like to display information on the comma... | <p>This <a href="http://docs.oracle.com/cd/E19963-01/html/821-1601/gen-61908.html#gen-95948">table</a> lists all of the functions that POSIX guarantees to be async-signal-safe and so can be called from a signal handler.</p>
<p>By using the 'write' command from this table, the following relatively "ugly" solution hopef... |
What's the best way to determine the name of your machine in a .NET app? <p>I need to get the name of the machine my .NET app is running on. What is the best way to do this?</p>
| <p><a href="http://msdn.microsoft.com/en-us/library/system.environment.machinename.aspx" rel="nofollow"><code>System.Environment.MachineName</code></a></p>
|
iPhone programming - impressions, opinions? <p>I've been programming in C,C++,C# and a few other languages for many years, mainly for Windows and Linux but also embedded platforms. Recently started to do some iPhone programming as a side project so I'm using Apple platforms for the first time since my Apple II days. I'... | <p>I'm in the same boat as you (somewhat). I've been developing in C# for 7 years, ever since .NET 1.0. Over the past couple weeks I've been teaching myself Cocoa and Objective-C. Here are my impressions (note for note with yours)</p>
<ul>
<li><p>Agreed in that clutter can be a problem. I tend to use Spaces heavil... |
Invalid postback or callback argument <p>I have an ASP.net application that works fine in the development environment but in the production environment throws the following exception when clicking a link that performs a postback. Any ideas?</p>
<blockquote>
<p>Invalid postback or callback argument.
Event validati... | <p>This can happen if you're posting what appears to be possibly malicious things; such as a textbox that has html in it, but is not encoded prior to postback. If you are allowing html or script to be submitted, you need to encode it so that the characters, such as <, are passed as & lt;.</p>
|
jQuery Menu and ASP.NET Sitemap <p>Is it possible to use an <a href="http://en.wikipedia.org/wiki/ASP.NET">ASP.NET</a> web.sitemap with a jQuery <a href="http://users.tpg.com.au/j_birch/plugins/superfish/">Superfish</a> menu? </p>
<p>If not, are there any standards based browser agnostic plugins available that work w... | <p>I found this question while looking for the same answer... everyone <em>says</em> it's possible but no-one gives the actual solution! I seem to have it working now so thought I'd post my findings...</p>
<p>Things I needed:</p>
<ul>
<li><p><a href="http://users.tpg.com.au/j%5Fbirch/plugins/superfish/#download">Supe... |
Specifying location of new inlineshape in Word VBA? <p>I'm working on a document "wizard" for the company that I work for. It's a .dot file with a header consisting of some text and some form fields, and a lot of VBA code. The body of the document is pulled in as an OLE object from a separate .doc file.</p>
<p>Current... | <p>InlineShape is treated as a letter. Hence, the same technique.</p>
<pre><code>ThisDocument.Range(15).InlineShapes.AddPicture "1.gif"
</code></pre>
|
how do I query multiple SQL tables for a specific key-value pair? <p>Situation: A PHP application with multiple installable modules creates a new table in database for each, in the style of mod_A, mod_B, mod_C etc. Each has the column section_id.</p>
<p>Now, I am looking for all entries for a specific section_id, and ... | <p>What about?</p>
<pre><code>SELECT * FROM mod_a WHERE section_id=value
UNION ALL
SELECT * FROM mod_b WHERE section_id=value
UNION ALL
SELECT * FROM mod_c WHERE section_id=value
</code></pre>
|
Flash vs. Silverlight <p>We are building a training website where we need to track viewers watching videos and store detailed info about the viewing (when they paused, if they watched the whole video etc)</p>
<p>What should we consider when deciding between the two technologies?</p>
<p>I forgot to add. This is for an... | <p>I'll chime in because it seems people missed the point of the question: What are the technical advantages of Flash vs Silverlight? (as it pertains to an <em>in-house</em> app)</p>
<p><strong>Flash Pros</strong></p>
<ul>
<li>The "artistic" interface is much better, in my opinion. If you have artists and designers t... |
SQL Query Help: Transforming Dates In A Non-Trivial Way <p>I have a table with a "Date" column, and I would like to do a query that does the following:</p>
<p>If the date is a <strong>Monday</strong>, <strong>Tuesday</strong>, <strong>Wednesday</strong>, or <strong>Thursday</strong>, the displayed date should be shift... | <p>Here is how I would do it. I do recommend a function like above if you will be using this in other places.</p>
<pre><code>CASE
WHEN
DATEPART(dw, [Date]) IN (2,3,4,5)
THEN
DATEADD(d, 1, [Date])
WHEN
DATEPART(dw, [Date]) = 6
THEN
DATEADD(d, 3, [Date])
ELSE
[Date]
END AS [ConvertedDate]
</code></pre>
|
Tips on refactoring an outdated database schema <p>Being stuck with a legacy database schema that no longer reflects your data model is every developer's nightmare. Yet with all the talk of refactoring code for maintainability I have not heard much of refactoring outdated database schemas. </p>
<p>What are some tips... | <p>Here's a whole catalogue of database refactorings:</p>
<p><a href="http://databaserefactoring.com/">http://databaserefactoring.com/</a></p>
|
How to generate all permutations of a list in Python <p>How do you generate all the permutations of a list in Python, independently of the type of elements in that list?</p>
<p>For example:</p>
<pre><code>permutations([])
[]
permutations([1])
[1]
permutations([1, 2])
[1, 2]
[2, 1]
permutations([1, 2, 3])
[1, 2, 3]... | <p>And in <a href="http://docs.python.org/dev/whatsnew/2.6.html">Python 2.6</a> onwards:</p>
<pre><code>import itertools
itertools.permutations([1,2,3])
</code></pre>
<p>(returned as a generator. Use <code>list(permutations(l))</code> to return as a list.)</p>
|
Flash/FLEX 3 Argument Error 2082 <p>Has anyone else experienced this error? Sometimes it pops up at the beginning of loading the application with Argument Error 2082. The only way I can solve it is by rebooting my machine. Restarting the browser doesn't even solve it. I have read about some solutions on the web, but I ... | <p>It's a known bug in Flash, there's a pretty long discussion about it here:</p>
<p><a href="http://tech.groups.yahoo.com/group/flexcoders/message/63829" rel="nofollow">http://tech.groups.yahoo.com/group/flexcoders/message/63829</a></p>
<p>The long and short of it is you should wrap your localConnection.connect() in... |
WPF Validation for the whole form <p>I have been seriously disappointed with WPF validation system. Anyway! How can I validate the complete form by clicking the "button"? </p>
<p>For some reason everything in WPF is soo complicated! I can do the validation in 1 line of code in ASP.NET which requires like 10-20 lines o... | <p>A WPF application should disable the button to submit a form iff the entered data is not valid. You can achieve this by implementing the <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.idataerrorinfo.aspx">IDataErrorInfo</a> interface on your business object, using Bindings with <a href="http:... |
Always have to use .css files? <p>Are .css files always needed? Or may I have a .css "basic" file and store other style items inside the HTML page?</p>
<p>Does padding, borders and so on always have to be defined into a .css file stored separately, or may I use them normally into an HTML page?</p>
| <p>It is technically possible to use inline CSS formatting exclusively and have no external stylesheet. You can also embed the stylesheet within the HTML document. The best practice in web design is to separate out the CSS into a separate stylesheet. The reason for this is that the CSS stylesheet exists for the purp... |
Any good SQL Anywhere database schema comparison tools? <p>Are there any good database schema comparison tools out there that support Sybase SQL Anywhere version 10? I've seen a litany of them for SQL Server, a few for MySQL and Oracle, but nothing that supports SQL Anywhere correctly. </p>
<p>I tried using DB Solo,... | <p>If you are willing to download SQL Anywhere Version 11, and Compare It!, check out the comparison technique shown here:</p>
<p><a href="http://sqlanywhere.blogspot.com/2008/08/comparing-database-schemas.html" rel="nofollow">http://sqlanywhere.blogspot.com/2008/08/comparing-database-schemas.html</a></p>
<p>You don'... |
How can I disable the eclipse server startup timeout? <p>By default when using a webapp server in Eclipse Web Tools, the server startup will fail after a timeout of 45 seconds. I can increase this timeout in the server instance properties, but I don't see a way to disable the timeout entirely (useful when debugging ap... | <p><img src="http://i.stack.imgur.com/SmwTY.png" alt="enter image description here"> In Eclipse Indigo, you can edit the default timeout by double-clicking on the server in the "servers" view and changing the timeout for start (see graphic). Save your changes, and you're good to go!</p>
|
C#: Test if string is a guid without throwing exceptions? <p>I want to try to convert a string to a Guid, but I don't want to rely on catching exceptions (</p>
<ul>
<li>for performance reasons - exceptions are expensive</li>
<li>for usability reasons - the debugger pops up </li>
<li>for design reasons - the expected i... | <p><strong>Performance Benchmarks</strong></p>
<pre><code>Catch exception:
10,000 good: 63,668 ticks
10,000 bad: 6,435,609 ticks
Regex Pre-Screen:
10,000 good: 637,633 ticks
10,000 bad: 717,894 ticks
COM Interop CLSIDFromString
10,000 good: 126,120 ticks
10,000 bad: 23,134 ticks
</co... |
Dealing with the rate of change in software development <p>I am primarily a .NET developer, and in that sphere alone there are at any given time probably close to a dozen fascinating emerging technologies, some of them real game-changers, that I would love to delve into. </p>
<p>Sadly, this appears to be beyond the li... | <p>I have been in IT for 30 years now, so perhaps I can offer some perspective. Yes, there is an increasing amount of material to keep abreast of. But the rate of <i>change</i> (as in "progress") is not increasing - if anything, it is decreasing. What we are seeing is a <i>widening</i> of the field.</p>
<p>Take a simp... |
Is there a .NET performance counter to show the rate of p/invoke calls being made? <p>Is there a .NET performance counter to show the rate of p/invoke calls made? I've just noticed that the application I'm debugging was making a call into native code from managed land within a tight loop. The intended implementation ... | <p>Try the ".NET CLR Interop" for "# of marshalling" performance counter.</p>
<p>See this article for more <a href="http://msdn.microsoft.com/en-us/library/ms998551.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms998551.aspx</a>.</p>
|
Are there any ORM tools for Haskell? <p>What is the best way to interact with a database using Haskell? I'm accustomed to using some sort of ORM (Django's ORM, hibernate, etc.) and something similar would be nice when creating apps with <a href="http://www.happs.org/">HAppS</a>.</p>
<p><strong>Edit:</strong> I'd like... | <p>The library I have in mind is not an ORM, but it may still do what you want.</p>
<p>If you want something that makes your database accesses safe while integrating things into your program nicely then try out <a href="http://www.haskell.org/haskellwiki/Applications_and_libraries/Database_interfaces/HaskellDB">Haskel... |
How should a blog be structured to easily extract its data? <p>I'm currently using Wordpress to run my website. However, with each new release I become more concerned with software bloat and the convoluted table structures used to store my data. Maybe this is a fruitless pursuit. Features are always added to bloggin... | <p>You do have the option of sticking with the 2.0 branch. This will be maintained with just bug fixes until 2010. Take a look at <a href="http://wordpress.org/download/legacy/" rel="nofollow">http://wordpress.org/download/legacy/</a></p>
|
CSS: Display differences <p>What is the difference between display:block and display:inline</p>
| <p>display: block <br />will cause the object to force other objects within a container on to a new line.</p>
<p>display: inline <br />tries to display the object on the same line as other objects.</p>
<p>display:block</p>
<pre>
Item 1
Item 2
Item 3
</pre>
<p>display:inline</p>
<pre>
Item 1 Item 2 Item 3
</pre>
|
Why use WinDbg vs the Visual Studio (VS) debugger? <p>What are the major reasons for using <a href="http://en.wikipedia.org/wiki/WinDbg">WinDbg</a> vs the Visual Studio debugger?</p>
<p>And is it commonly used as a complete replacement for the Visual Studio debugger, or more for when the need arises.</p>
| <p>If you are wondering why you should use windbg over Visual Studio, then you need to read <a href="http://rads.stackoverflow.com/amzn/click/0321374460">Advanced Windows Debugging</a>. Any time you need to debug a truly ugly problem windbg has better technology to do it with than Visual Studio. Windbg has a more pow... |
Where'd my generic ActionLink go? <p>Moved from preview 2 to preview 5 and now my Html.ActionLink calls are all failing. It appears that the generic version has been replaced with a non-type safe version.</p>
<pre><code>// used to work
<li>
<%= Html.ActionLink<HomeController>(c => c.Index(), "Home... | <p>Don't blame the GU, it's my fault. That method has been moved to MvcFutures. Here's a <a href="http://haacked.com/archive/2008/08/29/how-a-method-becomes-an-action.aspx">blog post that provides the foundation for why this change was made</a>.</p>
|
Automated way to detect tests that can't fail, checked in to get by minmum code coverage? <p>I have a dev, that will get around our code coverage by writing tests that never fail.</p>
<p>The code is just atrocious, but the tests never catch it because they assert(true).</p>
<p>I code review, but I can't do everyones ... | <p>Real motiviation comes from within. Some people will game the system every chance they get sometimes for no other reason than they can. Others do it simply because they are hacks.</p>
<p>That said, assuming your the manager, have a "come to jesus" meeting with the dev. If that still doesn't work, there's always ... |
Is there a Java-based ray tracing model that can be adapted for use in underwater acoustics? <p>I am looking for an open-source Java-based raytracing system suitable for use in modeling underwater ray-based acoustics. Such a package might be similar to the Comprehensive Acoustic System Simulation (CASS) with the Gauss... | <p>The <a href="http://sourceforge.net/projects/rapsor" rel="nofollow">RaPSor</a> project appears to be a java based ray-tracing simulator. It actually stands for Radio Propagation Simulator and was developed initially to support radio signal propagation for things like projecting dead spots in the WiFi coverage in bu... |
What are indexes and how can I use them to optimize queries in my database? <p>I am maintaining a pretty sizable application and database and am noticing some poor database performance in a few of our stored procedures.</p>
<p>I always hear that "adding an index" can be done to help performance. I am certainly no DBA,... | <p>As a rule of thumb, indexes should be on any fields that you use in joins or where clauses (if they have enough different values to make using an index worthwhile, field with only a few possible values doesn't benefit from an index which is why it is pointless to try to index a bit field). </p>
<p>If your structure... |
How do I stop Blend 2.5 June Preview replacing Canvas.ZIndex with Panel.ZIndex on SL1.0 XAML? <p>I have a Silverlight 1.0 application that I edit with Blend 2.5. Whenever I touch a <code>UIElement</code> in the designer that has a Canvas attribute such as <code>Canvas.ZIndex="1"</code>, when it updates the XAML, it ch... | <p>Looks like it's a reported bug in 2.5,</p>
<p><a href="http://social.expression.microsoft.com/forums/en-US/blend/thread/db02b75c-922e-4de1-8943-bd525d9862c0/" rel="nofollow">http://social.expression.microsoft.com/forums/en-US/blend/thread/db02b75c-922e-4de1-8943-bd525d9862c0/</a></p>
<p>Their suggested workaround ... |
VSTO Excel 2007 PivotTable, having a PivotField in more than one column <p>I am using VSTO with Excel 2007 to generate PivotTables and PivotCharts dynamically.
I am having a problem when I need to have a PivotField in more than one column. </p>
<p>To accomplish this I create a PivotTable in Excel and serialize its pro... | <p>If you add a calculated field to a Piviot Table and make the formula simply be the name of the field you need a duplicate of that allows you to use the same field twice, the Calculated Field does have to be a Value field. </p>
<p>Prehaps you can do this programaticly.</p>
|
What is a good functional language on which to build a web service? <p>Is there a functional language that has good support and tools for building web services? I've been looking at Scala (which compiles to the JVM and can use the Java libraries) and F# (which is .NET), but these are young and have some inefficiencies... | <p>If .NET is an option for the platform, don't discount F# because of its youth. As it get closer to becoming an official product, it is getting better and better integration with Visual Studio and inherits all the goodness afforded by .NET. </p>
<p>There is also active and accessible support by both Microsoft and ... |
What are some excellent examples of user sign-up forms on the web? <p>I'm trying to get a sampling of what people think are the best sign-up forms. Good design, usability. Smart engineering. Helpful feedback.</p>
| <p>One of my all-time fave sign-up forms was the original <a href="http://www.vox.com/" rel="nofollow">Vox</a> one, which has since been changed; there was <a href="http://www.askthecssguy.com/2007/03/form_field_hints_with_css_and.html" rel="nofollow">a great break-down</a> of it published online, and it goes into the ... |
.NET String.Format() to add commas in thousands place for a number <p>I want to add a comma in the thousands place for a number. <code>String.Format()</code>?</p>
| <pre><code>String.Format("{0:n}", 1234);
string.Format("{0:n0}", 9876); // no digits after the decimal point.
</code></pre>
|
How do I get a string type of a hex value that represents an upper ascii value character <p>Part of our app parses RTF documents and we've come across a special character that is not translating well. When viewed in Word the character is an elipsis (...), and it's encoded in the RTF as ('85).</p>
<p>In our vb code we... | <p>This looks like a character encoding issue to me. Unicode doesn't include any characters with numbers in the upper-ASCII 128-255 range, so trying to convert character 133 will fail.</p>
<p>Need to convert it first to a character using the proper decoding, Convert.toChar appears to be using UTF-16.</p>
<p>Sometimes... |
SEO and hard links with dynamic URLs <p>With ASP.NET MVC (or using HttpHandlers) you can dynamically generate URLs, like the one in this question, which includes the title.</p>
<p>What happens if the title changes (for example, editing it) and there's a link pointing to the page from another site, or Google's Pagerank... | <p>I use the same system as is in place here, everything after the number in the URL is not used in the db query, then I 301 redirect anything else to be the title.</p>
<p>In other words, if the title changed, then it would redirect to the correct place. I do it in PHP rather than htaccess as it's easier to manage mor... |
How do I set the default database in Sql Server from code? <p>I can't seem to figure out how to set the default database in Sql Server from code. This can be either .Net code or T-Sql (T-Sql would be nice since it would be easy to use in any language). I searched Google and could only find how to do it in Sql Server Ma... | <p><code>ALTER LOGIN</code> should be used for SQL Server 2005 or later:</p>
<p><a href="http://technet.microsoft.com/en-us/library/ms189828.aspx">http://technet.microsoft.com/en-us/library/ms189828.aspx</a></p>
<pre><code>ALTER LOGIN <login_name> WITH DEFAULT_DATABASE = <default_database>
</code></pre>
... |
Which SharePoint 2007 features are not available to Office 2003 users? <p>I have been tasked with coming up with a compatibility guide for SharePoint 2007 comparing Office 2003 and Office 2007. Does anyone know where to find such a list?</p>
<p>I have been searching for awhile but I cannot seem to find a comprehensive... | <p>There is an entire MS white paper on Office integration with SharePoint:</p>
<p><a href="http://download.microsoft.com/download/5/d/c/5dcfc15a-c31e-4a14-93cf-b44bce3e447e/Microsoft%20Office%20and%20SharePoint%20Integration%20White%20Paper.doc" rel="nofollow">http://download.microsoft.com/download/5/d/c/5dcfc15a-c31... |
How can I best connect Seam and GWT in a stateful web application? <p>We have a web application that was implemented using GWT. What it presents is fetched from a Jboss/Seam server using the remoting mechanism, and this works fine. However, the application is now extended to support sessions and users. The Seam GWT ser... | <p>It turns out that things are "just working" as I hoped. By using Seam's Identity and login mechanism, I can access the current logged in user via <code>Identity.instance().getUsername();</code> in the service code that gets requests from the GWT portion of the application.</p>
<p>I tried to put a <code>@Restrict</c... |
What is your favorite Visual Studio add-in/setting? <p>What add-in/setting in Visual Studio can you not live without? Which one improves your productivity or fixes something you can't stand in Visual Studio? Why is it your favorite?</p>
<p>My favorite is <a href="http://www.ardentdev.com/blog/index.php/aspxedithelper... | <p><a href="http://www.jetbrains.com/resharper/index.html">ReSharper!</a> - It blows away the refactoring utils that are built-in to VS, and the default hotkeys as well. Once you get used to it, you'll never want to work on a VS installation that doesn't have it!</p>
<p>And if you use Subversion, <a href="http://visu... |
Fetch top X users, plus a specific user (if they're not in the top X) <p>I have a list of ranked users, and would like to select the top 50. I also want to make sure one particular user is in this result set, even if they aren't in the top 50. Is there a sensible way to do this in a single mysql query? Or should I just... | <p>If I understand correctly, you could do:</p>
<pre><code>select * from users order by max(rank) desc limit 0, 49
union
select * from users where user = x
</code></pre>
<p>This way you get 49 top users plus your particular user.</p>
|
Changing the default settings for a console application <p>I would prefer that a console app would default to </p>
<p>multithreaded debug.
warning level 4.
build browse information.
no resource folder.</p>
<p>Does anyone know of any technique that would allow me to create a console app, with my desired options, witho... | <p>Yes, you can do that. What you want is to create your own project template. You can then select that template from the New Project wizard. I wasn't able to location documentation on how to create a project template in Visual Studio 6, but <a href="http://msdn.microsoft.com/en-us/library/ms247120(VS.80).aspx" rel="no... |
Why do I need to SEM_PRIORITY_Q when using a VxWorks inversion safe mutex? <p>In VxWorks, I am creating a mutex with the SEM_INVERSION_SAFE option, to protect against the priority inversion problem.<br />
The manual says that I <strong>must</strong> also use the SEM_PRIORITY_Q option. Why is that?</p>
| <p>When creating a mutex semaphore in VxWroks, you have two options to deal with multiple tasks queued (waiting) for the semaphore: FIFO or Highest priority task first.</p>
<p>When you use the SEM_INVERSION_SAFE option, the task holding the mutex will be bumped up to the same priority as the highest priority task wait... |
Why unicode() uses str() on my object only with no encoding given? <p>I start by creating a string variable with some <strong>non-ascii</strong> <em>utf-8</em> encoded data on it:</p>
<pre><code>>>> text = 'á'
>>> text
'\xc3\xa1'
>>> text.decode('utf-8')
u'\xe1'
</code></pre>
<p>Using <cod... | <p>The behaviour does seem confusing, but intensional. I reproduce here the entirety of the unicode documentation from the <a href="http://docs.python.org/lib/built-in-funcs.html" rel="nofollow">Python Built-In Functions documentation</a> (for version 2.5.2, as I write this):</p>
<blockquote>
<p><strong>unicode([obj... |
Standard concise way to copy a file in Java? <p>It has always bothered me that the only way to copy a file in Java involves opening streams, declaring a buffer, reading in one file, looping through it, and writing it out to the other steam. The web is littered with similar, yet still slightly different implementations... | <p>As toolkit mentions above, Apache Commons IO is the way to go, specifically <a href="https://commons.apache.org/proper/commons-io/javadocs/api-release/org/apache/commons/io/FileUtils.html" rel="nofollow">FileUtils</a>.<a href="https://commons.apache.org/proper/commons-io/javadocs/api-release/org/apache/commons/io/Fi... |
Unit Testing Guidelines <p>Does anyone know of where to find unit testing guidelines and recommendations? I'd like to have something which addresses the following types of topics (for example):</p>
<ul>
<li>Should tests be in the same project as application logic?</li>
<li>Should I have test classes to mirror my logi... | <p>I would recommend <a href="http://rads.stackoverflow.com/amzn/click/0321146530">Kent Beck's</a> book on TDD.</p>
<p>Also, you need to go to <a href="http://martinfowler.com/articles/mocksArentStubs.html">Martin Fowler's</a> site. He has a lot of good information about testing as well.</p>
<p>We are pretty big on T... |
What is Java EE? <p>I realize that literally it translates to Java Enterprise Edition. But what I'm asking is what does this really mean? When a company requires Java EE experience, what are they really asking for? Experience with EJBs? Experience with Java web apps? </p>
<p>I suspect that this means something differ... | <p>Java EE is a collection of specifications for developing and deploying enterprise applications.</p>
<p>In general, enterprise applications refer to software hosted on servers that provide the applications that support the enterprise.</p>
<p>The specifications (defined by Sun) describe services, application program... |
How best to draw in the console? <p>I'm trying to write a console (as in terminal, not gaming console) pong game in python and I'm having trouble figuring how best to (re)draw the game.</p>
<p>I was thinking of having an 2d array as a sort of bitmap, editing the array to reflect the ball/paddles new positions and then... | <p>It looks like there is a <a href="http://en.wikipedia.org/wiki/Curses_(programming_library)" rel="nofollow">curses</a> port/library for Python:</p>
<p><a href="https://docs.python.org/library/curses.html" rel="nofollow">https://docs.python.org/library/curses.html</a></p>
|
InternalsVisibleTo attribute isn't working <p>I am trying to use the <code>InternalsVisibleTo</code> assembly attribute to make my internal classes in a .NET class library visible to my unit test project. For some reason, I keep getting an error message that says:</p>
<blockquote>
<p>'MyClassName' is inaccessible d... | <p>Are you absolutely sure you have the correct public key specified in the attribute?
Note that you need to specify the full public key, not just the public key token. It looks something like:</p>
<pre><code>[assembly: InternalsVisibleTo("MyFriendAssembly,
PublicKey=00240000048000009400000006020000002400005253413100... |
How can I get source and variable values in ruby tracebacks? <p>Here's the last few frames of a typical Ruby on Rails traceback:
<img src="http://img444.imageshack.us/img444/8990/rails-lastfew.png" alt="application trace" /></p>
<p>And here are the last few frames of a typical Nevow traceback in Python:
<img src="http... | <p>AFAIK, once an exception has been caught it's too late to grab the context in which it was raised. If you trap the exception's new call, you could use evil.rb's Binding.of_caller to grab the calling scope, and do</p>
<pre><code>eval("local_variables.collect { |l| [l, eval(l)] }", Binding.of_caller)
</code></pre>
<... |
ASP.NET TreeView and Selecting the Selected Node <p>How do I capture the event of the clicking the Selected Node of a TreeView?
It doesn't fire the <strong>SelectedNodeChanged</strong> since the selection has obviously not changed but then what event can I catch so I know that the Selected Node was clicked?</p>
<p><st... | <p>Easiest way - if it doesn't interfere with the rest of your code - is to simply set the node as not selected in the SelectedNodeChanged method.</p>
<pre><code>protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e){
// Do whatever you're doing
TreeView1.SelectedNode.Selected = false;
}
</code><... |
How does one add a custom build step to an automake-based project in KDevelop? <p>I recently started work on a personal coding project using C++ and KDevelop. Although I started out by just hacking around, I figure it'll be better in the long run if I set up a proper unit test suite before going too much further. I'v... | <p>
Although you <i>could</i> manipulate the default `make` target to run your tests,
it is generally not recommended, because every invocation of
</p>
<pre>make</pre>
<p>
would run all the tests.
You should use the "check" target instead,
which is an accepted quasi-standard among software packages.
By doing that,
th... |
What's the difference between a POST and a PUT HTTP REQUEST? <p>They both seem to be sending data to the server inside the body, so what makes them different?</p>
| <p><strong>HTTP PUT:</strong></p>
<p>PUT puts a file or resource at a specific URI, and exactly at that URI. If there's already a file or resource at that URI, PUT replaces that file or resource. If there is no file or resource there, PUT creates one. PUT is <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.h... |
Tools to annotate images <p>What tools do you use to annotate images?</p>
<p>I mean, for example, placing a screenshot into documentation with some text bubbles, arrows, numbers for references in text and so on.</p>
<p>Sure, you can do all of these in general graphics editor, but a specialized tool (or plugin for a g... | <p>The best program I have come across is <a href="http://screenshot-program.com/" rel="nofollow">Screenshot Studio</a>. It is commercial software though and only available for Windows.</p>
<p>As mentioned in the comments, there is a free version called <a href="http://screenshot-program.com/fireshot/" rel="nofollow"... |
How to compute the critical path of a directional acyclic graph? <p>What is the best (regarding performance) way to compute the critical path of a directional acyclic graph when the nodes of the graph have weight?</p>
<p>For example, if I have the following structure:</p>
<pre><code> Node A (weight 3)
... | <p>I would solve this with dynamic programming. To find the maximum cost from S to T:</p>
<ul>
<li>Topologically sort the nodes of the graph as S = x_0, x_1, ..., x_n = T. (Ignore any nodes that can reach S or be reached from T.)</li>
<li>The maximum cost from S to S is the weight of S.</li>
<li>Assuming you've comp... |
Can Flash save content without server-side help? <p>As far as I know, Flash has to pass info off to another external process in order to save files - POSTing to PHP or talking to an executable, right? But every once in a while I hear rumors that Flash is able to open a file, make changes, then save/write those changes,... | <p>This will be available in Flash Player 10:</p>
<p>Reading and Writing Local Files in Flash Player 10</p>
<p><a href="http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/">http://www.mikechambers.com/blog/2008/08/20/reading-and-writing-local-files-in-flash-player-10/</a></... |
How to display latest revision in a file? <p>I'm wondering how do you deal with displaying release revision number when pushing live new versions of your app?</p>
<p>You can use <code>$Rev$</code> in a file to get latest revision, but only after you update the file.</p>
<p>What if I want to update a string in one fil... | <p>The best way to do this is have a build script for releases that will determine the revision number using <code>svnversion</code> or <code>svn info</code> and insert it into a file. It's always helpful to have a script which:</p>
<ol>
<li>checks out a clean copy of the source into an empty directory</li>
<li>uses ... |
Optimal multiplayer maze generation algorithm <p>I'm working on a simple multiplayer game in which 2-4 players are placed at separate entrypoints in a maze and need to reach a goal point. Generating a maze in general is very easy, but in this case the goal of the game is to reach the goal before everyone else and I do... | <p>An alternative to freespace's answer would be to generate a random maze, then assign each cell a value representing the number of moves to reach the end of the maze (you can do both at once if you decide that you're starting at the 'end'). Then pick a distance (perhaps the highest one with n points at that distance?... |
Parse multiple XML files with ASP.NET (C#) and return those with particular element <p>Greetings.</p>
<p>I'm looking for a way to parse a number of XML files in a particular directory with ASP.NET (C#). I'd like to be able to return content from particular elements, but before that, need to find those that have a cert... | <p>If you are using .Net 3.5, this is extremely easy with LINQ:</p>
<pre><code>//get the files
XElement xe1 = XElement.Load(string_file_path_1);
XElement xe2 = XElement.Load(string_file_path_2);
//Give me all XML that has a filter of 'filter'.
var filter_elements1 = from p in xe1.Descendants("filter") select p;
var f... |
Best way to extract a timezone from a mail Date header in Java? <p>I need to store the timezone an email was sent from. Which is the best way to extract it from the email's 'Date:' header (an RFC822 date)? And what is the recommended format to store it in the database (I'm using hibernate)?</p>
| <p>Probably easiest to parse with JodaTime as it supports ISO8601 see <a href="http://johannburkard.de/blog/programming/java/date-time-parsing-formatting-joda-time.html" rel="nofollow">Date and Time Parsing and Formatting in Java with Joda Time</a>.</p>
<pre><code>DateTimeFormatter parser2 = ISODateTimeFormat.dateTime... |
Subclassed form not behaving properly in Designer view (VS 2008) <p>I have subclassed <code>Form</code> to include some extra functionality, which boils down to a <code>List<Image></code> which displays in a set of predefined spots on the form. I have the following:</p>
<pre><code>public class ButtonForm : Form ... | <p>First of all you need to inherit your TitleButton class from Component so that the designer knows it is a component that can be created via designer generated code. Then you need to instruct the designer code generator to work on the contents of the collection and not the collection instance itself. So try the follo... |
Code behind in ASP.NET MVC <p>What is the purpose of the code behind view file in ASP.NET MVC besides setting of the generic parameter of ViewPage ?</p>
| <p>Here's my list of reasons why code-behind can be useful taken from <a href="http://stackoverflow.com/questions/489415/how-to-get-a-codebehind-file-for-an-asp-net-mvc-view-in-rc1-to-be-created-by-de">my own post</a>. I'm sure there are many more.</p>
<ul>
<li>Databinding legacy ASP.NET controls - if an alternative i... |
best way to get started in setting up Mono for ASP.NET on Mac <p>I have recently gained access to a Mac. I am wondering if anyone has any tips/advice for setting up <a href="http://www.mono-project.com/Main_Page">Mono</a> on a mac for development and execution of ASP.NET? Most resources point to Linux implementations w... | <p>To launch the development ASP.NET server, just open a terminal window and run the "xsp2" command from the Mono installation.</p>
<p>The only thing that is missing from the Mono distribution on the Mac compared to Linux is the Apache module, that one you will have to compile yourself if you want to deploy your appli... |
The ideal multi-server LAMP environment <p>There's alot of information out there on setting up LAMP stacks on a single box, or perhaps moving MySQL onto it's own box, but growing beyond that doesn't seem to be very well documented.</p>
<p>My current web environment is having capacity issues, and so I'm looking for <st... | <p>You need to be able to identify bottlenecks and test improvements.</p>
<p>To identify bottlenecks, you need to use your system's reporting tools. Some examples:</p>
<ul>
<li>MySQL has a slow query log. </li>
<li>Linux provides stats like load average, iostat, vmstat, netstat, etc.</li>
<li>Apache has the access lo... |
Script.aculo.us Autocompleter problem in IE <p>I'm struggling with a problem with the Script.aculo.us Autocompleter control in IE (I've tried it in IE6 & 7). The suggestions fail to appear for the first character is entered into the text box after the page has been loaded. After that initial failure, the control wo... | <p>I am indeed having the exact same problem. The problem only occurs in IE (also in 8.0 beta)</p>
<p>Both Firefox and Chrome I tried, have no issues what-so-ever. </p>
<p>According to others this is due to the DOCTYPE declaration in the HTML file. Check here: <a href="http://prototype.lighthouseapp.com/projects/8887... |
Do you use TestLink and are you happy with it? <p>In our project, we use this software for test management. What is your experience with this software ? Does it scale correctly with thousands of tests ? </p>
| <p>I used it a while back and liked it, but I didn't have thousands of tests.</p>
|
Programmatically updating FILEVERSION in a MFC app w/SVN revision number <p>How do I go about programmatically updating the FILEVERSION string in an MFC app? I have a build process that I use to generate a header file which contains the SVN rev for a given release. I'm using SvnRev from <a href="http://www.compuphase.c... | <p>An <code>.rc</code> file can <code>#include</code> header files just like <code>.c</code> files can. I have an auto-generated <code>version.h</code> file, which defines things like:</p>
<pre><code>#define MY_PRODUCT_VERSION "0.47"
#define MY_PRODUCT_VERSION_NUM 0,47,0,0
</code></pre>
<p>Then I just have my <co... |
How do I use (require :PACKAGE) in clisp under Ubuntu Hardy? <p>I am trying to evaluate the answer <a href="http://stackoverflow.com/questions/108081/are-there-any-high-level-easy-to-install-gui-libraries-for-common-lisp">provided here</a>, and am getting the error: <code>"A file with name ASDF-INSTALL does not exist"<... | <p>try this before anything else:</p>
<pre><code>(require :asdf)
</code></pre>
<p>you can steal some ideas from the environment we use. it's available at: <a href="http://dwim.hu/darcsweb/darcsweb.cgi?r=HEAD%20hu.dwim.environment;a=summary" rel="nofollow">darcsweb</a></p>
<p>see environment.lisp that loads and sets ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.