instruction
stringlengths
0
30k
The keywords stuff will fail in plenty of cases -- like if you've modified the source before deploying, or if you check in from one directory in your project then a different directory in the same project will have different revision numbers. Check the docs carefully to make sure the keywords do what you think they do...
I believe you can break up long lines with the caret ^ as long as the next line starts with a space. copy file1.txt file2.txt would be written as: copy file.txt^ <br> &nbsp;file2.txt
I believe you can break up long lines with the caret ^ as long as the next line starts with a space. copy file1.txt file2.txt would be written as: copy file1.txt^ <br> &nbsp;file2.txt
Regarding Projection matrix, you can find a good source to start with here: http://msdn.microsoft.com/en-us/library/bb147302(VS.85).aspx It explains a bit about how to construct one type of projection matrix. Orthographic projection is the very basic/primitive form of such a matrix and basically what is does is ...
Regarding Projection matrix, you can find a good source to start with here: http://msdn.microsoft.com/en-us/library/bb147302(VS.85).aspx It explains a bit about how to construct one type of projection matrix. Orthographic projection is the very basic/primitive form of such a matrix and basically what is does is ...
Does your form have an unload event? That can be canceled, and if it is, the form won't close when it's in form view. It will only close in design view, which, when you edit the vba code is what the form does in the Access window when you're editing the code.
There are a few schools of thought o this. 1. data gets updated let it be 2. You could implement some sort of caching method that will hold the entire result set (This might not be an option if working with really large Datasets) 3. You could do a comparison on each page operation and notify the...
Getting closer: <http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/w2rkbook/gp.mspx?mfr=true>
Getting closer: <http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/w2rkbook/gp.mspx?mfr=true> But it turns out that I was getting sidetracked in Policy space. What I really wanted was to set the desktop in the userspace and let the Policy settings stand. Some helpful stuff was found here: <http://b...
Getting closer: <http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/w2rkbook/gp.mspx?mfr=true> <hr /> But it turns out that I was getting sidetracked in Policy space. What I really wanted was to set the desktop in the userspace and let the Policy settings stand. Some helpful stuff was found here: <ht...
Foreign keys are **essential** to any relational database model
Foreign keys are **essential** to any relational database model. If you take away foreign keys, you no longer have relational data.
Foreign keys are **essential** to any relational database model.
This is partially pseudocode, but you will want something like: rows = ActiveSheet.UsedRange.Rows n = 0 while n <= rows if ActiveSheet.Rows(n).Cells(DateColumnOrdinal).Value > '8/1/08' AND < '8/30/08' then ActiveSheet.Rows(n).CopyTo(DestinationSheet) endif n = n + 1 wend
This is partially pseudocode, but you will want something like: <br><br> rows = ActiveSheet.UsedRange.Rows<br> n = 0<br> <br> while n <= rows<br> if ActiveSheet.Rows(n).Cells(DateColumnOrdinal).Value > '8/1/08' AND < '8/30/08' then<br> <t>ActiveSheet.Rows(n).CopyTo(DestinationSheet)<br> endif<br> n ...
I think that boat has sailed. If you look at the direction the industry has taken you will notice that CSS and Open Standards are the winners of that discussion. Which in turn means for most html work, with the exception of forms, the designers will use divs instead of tables. I have a hard time with that because I am ...
Actually, since you're using Nginx, you're already in great shape and don't need Apache. You can run PHP through fastcgi (there are examples of how to do this [in the Nginx wiki][1]), and use a URL-matching pattern in your Nginx configuration to direct some URLs to Rails and others to PHP. Here's an example Nginx...
TaskVision: a simple and sometimes very usefull .net client-server demo application: [Go to website][1] Complete source code is available (see bottom right corner for download) [1]: http://windowsclient.net/downloads/folders/applications/entry1266.aspx
XUnit is another possibility for a greenfield project. It's got perhaps a more intuitive syntax, but is not really compatible with the other frameworks. http://www.codeplex.com/xunit
What about this: ##[Partitioning Data for Query Performance - Where's the benefit? ](http://blogs.mssqltips.com/blogs/chadboyd/archive/2008/03/19/partitioning-data-for-query-performance-where-s-the-benefit.aspx)
Sockets may be the best route if you're just having to do it over the network. If you use TCP, you get the reliability of communication but take an impact on speed. If you need higher performance, you could try using UDP instead. But the downside to UDP is that packet delivery and order is not guaranteed, so you would ...
If you care about supporting users without Javascript enabled, then the server side sessions will let you use URL rewriting.
If you need these classes, you are probably in a plug-in project already. You should be able to import these classes by applying the quick fix "Fix project setup..." (Ctrl+1) on the line where Eclipse is complaining about the imports. That will add the required plug-ins to your MANIFEST.MF file in the META-INF director...
Have you tried fireEvent instead of RaiseEvent?
You could call the method directly and pass in generic object and EventArgs parameters. Of course, this might not work if you were looking at the sender and EventArgs parameters for specific data. How I usually handle this is to refactor the guts of the method to a doSomeAction() method and the event handler for the bu...
Yep sound like you want to look at a fluid CSS layout. For resources on this, just google fluid CSS layout, should give you a whole lot of things to check. Also have a look at [this previous question][1] for some good pointers. [1]: http://stackoverflow.com/questions/61250/divs-vs-tables-or-css-vs-being-stupid
Quartz Composer is also a pleasant way to capture and work with video, when it's applicable. There's a video input patch. Quartz Composer is a visual programming environment that integrates into a larger Cocoa program if need be. <http://developer.apple.com/graphicsimaging/quartz/quartzcomposer.html>
Code Plex -> 1. ASP.NET MVC - look at source 2. ASP.NET Dynamic Data 3. Script #
The behavior as I understand it is your 1.1. app will user the 1.1 Framework unless it's unavailable, in which case it will use the 2.0 Framework, this is how an application can be compiled against the 1.1 Framework but can often still work on Vista, where only the 2.0 framework is available. Some handy resources I'...
The behavior as I understand it is your 1.1. app will use the 1.1 Framework unless it's unavailable, in which case it will use the 2.0 Framework, this is how an application can be compiled against the 1.1 Framework but can often still work on Vista, where only the 2.0 framework is available. Some handy resources I'v...
Something else to consider is that JavaScript won't update continuously while the window is being resized, so there will be a noticeable delay/choppiness. With a fluid CSS layout, screen elements will update almost instantly for a seamless transition.
not going to make a lot of difference... *pChar-(ofs*16) can be done with [*pCHar & 0x0F]
Ask yourself: What do you gain by moving everything into separate databases? A lot of pain in terms of management would be my guess. I'd be more keen personally to have everything in a single database and if you hit issues that cannot be solved by a single database later then migrate the data into multiple databases...
ctags is very useful. There are two steps involved. First run the program ctags on all your source and include directories. This creates a file named 'tags' in the local directory. ctags *.c *.h would do fine if all your source is in a single directory. When you work with source in multiple directories, it can be wort...
How are you connecting to the database to run the update SQL? You can use the ODBC compatible mode through ADO. Without opening the database in Access.
In classic C, you don't need a prototype to call a function. The compiler will infer that the function returns an int and takes a unknown number of parameters. This may work on some architectures, but it will fail if the function returns something other than int, like a structure, or if there are any parameter conver...
Instead of using IDs for your email fields, you can give them each a class: <div> <label for="Email_Address_1">Friend #1</label></div> <input type="text" class="email"> <span></span> </div> <div> <label for="Email_Address_2">Friend #2</label></div> <input ty...
Understanding how Ada serializes a record
|serialization|ada|binaryfiles|record|
I would like to be able to predict what will be in the resulting binary when I call Write in Ada to serialize a record. Do you know where I can look this up? I have some legacy Ada software that produces a binary file by Write-ing a record, and I need to debug a C++ program that is supposed to write a compatible bin...
Here's a forum post describing, I think, the same problem you face. Excerpt belows states a workaround. >What I do is to put code on the close button that reassigns the sourceobject of any subforms to a blank form, such as: >me!subParts.sourceobject = "subBlank" 'subBlank is my form that is totally blank, f...
![alt text][1] ![alt text][2] [1]: http://codeclimber.net.nz/images/codeclimber_net_nz/WindowsLiveWriter/c506f37540e1.NETvsPHPintheEnterprise_AB36/DotNetPhpCartoon01_3.png [2]: http://www.netfxharmonics.com/Images/WindowsLiveWriter/ComicStrip2.NETandPHPSourceCode_14857/DotNetPhpCartoon02.png
There are a number of options on the market. Either fully fledge commercial products or open source variants. Your choice of search provide is very dependent on the customers you are targetting. Microsoft has a free Express version of there Search Server. As far as I know the Express edition is limited to running th...
There are a number of options on the market. Either fully fledge commercial products or open source variants. Your choice of a search provider is very dependent on the customers you are targetting. Microsoft has a free Express version of their Search Server. As far as I know the Express edition is limited to running...
Not really sure what the problem is here - this works fine in IE6/7 and FF3. Setting the width of the .container DIV element sets the table's width. Adding margins to the .container div doesn't affect the table. Maybe there's something else in your markup / CSS that's affecting the layout? <!DOCTYPE html PUBLIC ...
some of the alternatives: - ActiveRecord - it uses nhibernate.dll in background, but configuration is done through attributes. It's like lite version of nhibernate - Subsonic - CoolStorage.NET - I used it a lot with small projects. Works well with number of dbs
Forget that it's an event handler and just do proper regular method override in child class.
You should have a Session and an XPCollection on the form where the DataLayoutControl is. You should hook XPCollection with Session. You select the right class for the XPCollection and maybe add some criterial that make the XPCollection return zero records. Hook XPCollection to the DataLayoutControl. Then you should...
I can't say I've ever heard of one. Furthermore, most LDAP-capable software I've used supported failover poorly or not at all. You might be better off trying to implement the failover at the server, by putting it behind a load balancer or similar.
The best way that I have seen to do this is to use the [YUI][1] CSS Tools and then use percentages for everything. [YUI Grids][2] allow for various fixed width or fluid layouts with column sizes specified as fractions of the available space. There is a [YUI Grids Builder][3] to help lay things out. [YUI Fonts][4] gives...
Does anyone have a good example of controlling multiple Excel instances from a .Net app?
|msexcel|vb.net|c#|vba|
We have an Excel 2002/XP based application that interacts with SQL 2000/5 to process fairly complex actuarial calculations. The application performs its function well, but it's difficult to manage. We're trying to create a "controller" application or service that can manage and monitor these various instances of Exc...
|c#|.net|vb.net|excel|vba|
1. install a new printer 1. when asked for a port, create a new port of type "Local Port" 1. as name of the port, enter some file name, e.g. <code>c:\temp\print.pcl</code> 42. select some PCL-compatible printer, e.g. HP LaserJet 4, or whatever your fax is comptaible with When you print to this printer, Windows wi...
I suspect this may not be what you want, but here goes anyway: \newcommand{\replace}[2]{\textbf{#1}$\rightarrow$\textbf{#2}} \replace{File}{New} If this isn't what you're looking for, could you clarify the question, please?
OK, I withdraw this answer. Thanks for clarifying the question. ------ I suspect this may not be what you want, but here goes anyway: \newcommand{\replace}[2]{\textbf{#1}$\rightarrow$\textbf{#2}} \replace{File}{New} If this isn't what you're looking for, could you clarify the question, please? ...
How to determine size in bytes of a result set from LINQ to SQL
|sql-server|linq|linq-to-sql|datacontext|
When writing manual SQL its pretty easy to estimate the size and shape of data returned by a query. I'm increasingly finding it hard to do this with LINQ to SQL queries. Sometimes I find WAY more data than I was expecting - which can really slow down a remote client that is accessing a database directly. I'd like to...
Reading your question carefully, you just want to update table B based on the new identity values in table A. After the insert is finished, just run an update... UPDATE B SET NewID = A.ID FROM B INNER JOIN A ON (B.FName = A.Fname AND B.LName = A.LName) This assumes that the FName / LNam...
Using modern semantic markup is much easier when you're adding features or fixing bugs or changing the look of a data-driven web site. Adding AJAX features or any kind of interactive scripting will work much better with DIVs and CSS than with TABLEs. Moving to a content manager like Drupal, Joomla, WordPress, or ...
http://www.openwebware.com/
You need to develop a strategy for handling exceptions. I don't recommend the catch and rethrow. In addition to the superfluous log entries it makes the code harder to read. Consider writing to the log in the constructor for the exception. This reserves the try/catch for exceptions that you want to recover from; makin...
I think the *real* question is how accurate do you want the answer. Because your efficiency is going to really depend on that. I'm going to agree with Justin if you want 100% accuracy on the marbles then once the first marble breaks you're going to have to go up 1 floor at a time from the last known "good" floor un...
I think the *real* question is how accurate do you want the answer. Because your efficiency is going to really depend on that. I'm going to agree with Justin if you want 100% accuracy on the marbles then once the first marble breaks your going to have to go up 1 floor at a time from the last known "good" floor unti...
PHP4 to PHP5 Migration
|php|migration|
What are some good steps to follow for a smooth migration from PHP4 to PHP5. What are some types of code that are likely to break?
Joshua ([#6591][1]) - The Garbage collection stuff in Mac OS X 10.5 seems pretty cool, but isn't available for the iPhone (or if you want your app to run on pre-10.5 versions of Mac OS X). Also, if you're writing a library or something that might be reused, using the GC mode locks anyone using the code into also usi...
We had an app that relied heavily on the PHP 4 XML DOM functions and it required a lot of retooling to change over PHP 5. Beyond that most changes were improvements to things like error handling (to take advantage of exceptions) and PHP Classes.
NilObject's answer is a good start. Here's some supplemental info pertaining to manual memory management (required on the iPhone). If you personally alloc/init an object, it comes with a reference count of 1. You are responsible for cleaning up after it when it's no longer needed, either by calling [foo release] or ...
Without a doubt... ![State machines][1] [1]: http://i89.photobucket.com/albums/k220/kipper_308/fran_web.jpg
I know you said "the shortest distance" but you really meant the optimal solution or a "good/very good" solution is fine for your problem? Because if you need to find the optimal solution, you have to calculate the distance between all of your source and destination poligon bounds (not only vertexes). If you are in ...
UrlRewriting is the way to go. There is a good article on MSDN on the best ways to do it. [http://msdn.microsoft.com/en-us/library/ms972974.aspx][1] [1]: http://msdn.microsoft.com/en-us/library/ms972974.aspx
how about this: 10.to_s(16) #=> "a" 255.to_s(16) #=> "ff" [Documented here][1] [1]: http://www.ruby-doc.org/core/classes/String.html#M000802
how about this: 10.to_s(16) #=> "a" 255.to_s(16) #=> "ff" [Documented here][1] [edit - my bad I copy pasted my link too fast and put the String one instead of the [Fixnum one][2]] [1]: http://www.ruby-doc.org/core/classes/String.html#M000802 [2]: http://www.ruby-doc.org/core/classes/Fixnum.ht...
MS Enterprise Library definitely offers this functionality. It has a little bit of a learning curve, but once it's set up, it is pretty easy to maintain. It also offers several different logging sources, but is not open source.
Well, are you sure you have the name and the right in the correct order in that declaration? It complains about a parameter named 'Currency', but you aren't actually using it, are you? On the other hand, you are using something called *char*, what is that? Or perhaps my knowledge of PL/SQL is way off, if so, l...
How do I do a manual uninstall of Oracle?
|oracle-database|uninstallation|database|10g|9i|
Sometimes my Oracle database gets hosed. How do I do a manual uninstall of Oracle?
|database|oracle-database|10g|uninstallation|9i|
Sometimes my Oracle database on Windows gets hosed. How do I do a manual uninstall of Oracle?
I have a free provider as well that is available from [my website][1] that is a drop in solution for error handling. [1]: http://www.iowacomputergurus.com
isChrome = function() { return Boolean(window.chrome); }
Is there a specification-based testing framework for .Net 2.0?
|c#|testing|.net2.0|automated-tests|
It really depends on the web page you are implementing. As a general rule you're going to want 100% CSS. When sizing elements that will contain text remember to gravitate towards text oriented sizes such as em, ex, and not px. Floats are dangerous if you're new to CSS. I'm not new and they are still somewhat bafflin...
Is it possible to increase the 256 character limit in excel validation drop down boxes?
|msexcel|excel|
I am creating the validation dynamically and have hit a 256 character limit. My validation looks something like this, Level 1, Level 2, Level 3, Level 4..... Is there any way to get around the character limit other then pointing at a range?
I am creating the validation dynamically and have hit a 256 character limit. My validation looks something like this, Level 1, Level 2, Level 3, Level 4..... Is there any way to get around the character limit other then pointing at a range? The validation is already being produced in VBA. Increasing the li...
|excel|
This [guy here][1] had to make the inverse transition. So he listed the top 10 differences of Java and C#. I'll take his topics and show how it is made in Java: ## Gotcha #10 - Give me my standard output! To print to the standard output in Java: System.out.println("Hello"); ## Gotcha #9 - Namespaces == ...
Do you envision folks needing to be able to start on one machine (e.g. their work PC) but continue/finsih from a different machine (e.g. home PC)? If so, the answer is obvious.
Have you made all or many of your files dependent on a particular module? Any files that are dependent on a particular module will be rebuilt any time the module class structure (contained in the .h file) is modified. If, for example, you have a data module that is accessed by many other modules you will see a rebu...
This is the primary reason I switched to the Google Web Toolkit ... I develop and test in Java and have a reasonable expectation that the compiled JavaScript will function properly on a variety of browsers. Since TDD is primarily a unit testing function, most of the project can be developed and tested before compilati...
A delegate is simply a typed method pointer.
A delegate is a typed method pointer. This gives you more flexibility than interfaces because you can take advantage of covariance and contravariance, and you can modify object state (you'd have to pass the this pointer around with interface based functors). Also, delegates have lots of nice syntactic sugar which al...