instruction stringlengths 0 30k ⌀ |
|---|
when you added the listview, did you add it to the toolbox and then add it to the form? |
Using ASP.NET MVC just whipped up a quick bit of code using the .NET XML generation library and then just passed that to a view page that had an XML control on it. In the code-behind I tied the control with the ViewData. This seemed to override the default behaviour of view pages to present a different header. |
You may want to split your interfaces into two types, namely:
- View interfaces -- which are interfaces that specify your interactions with your UI, and
- Data interfaces -- which are interfaces that will allow you to specify interactions with your data
It is possible to inherit and implement both set of int... |
You may want to split your interfaces into two types, namely:
- View interfaces -- which are interfaces that specify your interactions with your UI, and
- Data interfaces -- which are interfaces that will allow you to specify interactions with your data
It is possible to inherit and implement both set of int... |
Just a thought, have you got an underscore in the url. e.g. http://my_site ? |
Just a thought, have you got an underscore in the url. e.g. http://my_site ?
And one other thing, you're not running the app pool in web garden mode? i.e. Process Model -> Maximum Worker Processes: > 1
What type of app pool are you using - Integrated or Classic mode ? |
There's a book online about this,
"[Amateur Physics for the Amateur Pool Player][1]" by Ron Shepard (PDF Link)
I haven't read it but I've heard it's good for game developers.
[1]: http://web.cecs.pdx.edu/~howe/poolphysics.pdf |
I'd second the recommendation on the Intro above. The Intro itself has a ["WHAT NEXT?"][1] section that tells you to look at the [Cookbook][2] next, so do that.
I think the docs are actually pretty good these days, as long as you read the right ones. You *really* shouldn't bother looking at most of the docs for any ... |
I'd second the recommendation on the Intro above. The Intro itself has a ["WHAT NEXT?"][1] section that tells you to look at the [Cookbook][2] next, so do that.
I think the docs are actually pretty good these days, as long as you read the right ones. You *really* shouldn't bother looking at most of the docs for any ... |
OK I've got this < Ctrl > thing. And applying this knowledge I've found corresponding VS commands: *Edit.WordDeleteToStart* and *Edit.WordDeleteToEnd*.
I've successfully remapped < Delete > and < Backspace > keys using Options->Environment->Keyboard dialog. Unfortunately this commands apply not only to whitespace ... |
Java jvm parameters |
|java| |
Does someone know if it's possible to modify the jvm settings at runtime (e.g. -dname=value) ?
I need this little trick to run my java stored procedure (oracle 10g)...
Thanks a lot.
P.S.Sorry for my bad English. |
It blocks the thread. If you look in Modules/timemodule.c in the Python source, you'll see that in the call to `floatsleep()`, the substantive part of the sleep operation is wrapped in a Py\_BEGIN\_ALLOW\_THREADS and Py\_END\_ALLOW\_THREADS block, allowing other threads to continue to execute while the current one sle... |
I would lean towards the jTDS driver. The MSSQL driver has a limitation where you cannot re-read the same column twice. This happens frequently when using Hibernate. |
sorry this was a sort of half-assed question, on my part. i'm going through my .js files and eliminating entire blocks of code now. i've isolated it to one particular .js file.
thanks all the same for reading through this question and replying. |
Path implements IPath.
IPath p = new Path(locationString);
IWorkspaceRoot.getFileForLocation(p); |
org.eclipse.core.runtime.Path implements IPath.
IPath p = new Path(locationString);
IWorkspaceRoot.getFileForLocation(p); |
org.eclipse.core.runtime.Path implements IPath.
IPath p = new Path(locationString);
IWorkspaceRoot.getFileForLocation(p);
This would have worked had the location string not been a URL of type "platform:"
For this particular case, notes in org.eclipse.core.runtime.Platform javadoc indicate that the "co... |
org.eclipse.core.runtime.Path implements IPath.
IPath p = new Path(locationString);
IWorkspaceRoot.getFileForLocation(p);
This would have worked had the location string not been a URL of type "platform:"
For this particular case, notes in org.eclipse.core.runtime.Platform javadoc indicate that the "co... |
I work on a project that has a similar problem, I have found that if you touch the .NET config file or assembly information file (depending on your project type). The other projects will then reflect the component change...
I'm not sure why this happens, but this is how I overcome it...
Recently I have switch to ... |
Call DeleteUrlCacheEntry with the same URL just prior to calling URLDownloadToFile |
Call DeleteUrlCacheEntry with the same URL just prior to calling URLDownloadToFile.
You will need to link against Wininet.lib |
In Perl if you are doing a simple test, sometime you will write it in this form:
do_something if condition;
do_something unless condition;
Which can be really useful to check the arguments at the start of a subroutine.
sub test{
my($self,@args) = @_;
return undef unless defined $... |
As several people have pointed out, sleep and other related functions are by default dependent on the "system tick". This is the minimum unit of time between OS tasks; the scheduler, for instance, will not run faster than this. Even with a realtime OS, the system tick is not usually less than 1 ms. While it is tunab... |
> Nick Craver
>
>> GridView_RowCreated
Nick, I'm not using a GridView. It's ItemCreated ;-) |
There is no way to do this using standard JFace wizard APIs. My team accomplished this by writing a custom WizardDialog. We did this on an Eclipse RCP application and not on an eclipse plugin. Disabling the back button is breaking convention, but our business analysts really wanted the functionality. |
I suggest breaking your function into smaller chunks and spreading them over multiple frames. This way you can display an progress animation and the Flash application won't become unresponsive. So for example if you have to loop over 1000 items, you do 100 in one frame, then another hundred in the next frame, etc, unti... |
Well, I don't think you can change the binding of the delete key or backspace key - but CTRL+DEL & CTRL+Backspace are pretty close to what you want. |
Are you source files and binary objects located on the same machine? If not sounds like you have a network time sync issue.
If they are its most likely a header file issue, either the compiler include files have a modified date some time in the future or your application is dependent on some header file that changes... |
Are you source files and binary objects located on the same machine? If not sounds like you have a network time sync issue.
If they are its most likely a header file issue, either the compiler include files have a modified date some time in the future or your application is dependent on some header file that changes... |
Sounds like something you could write a macro for and then assign to a keyboard shortcut (like SHIFT+DEL).
If you explore the EnvDTE namespaces you can do a lot to make changes to text in the active document window. I'd start by checking with something like...
Public Sub RemoveWhiteSpace()
DT... |
Actually, you will need to do this: **Ctrl+Shift+Left+Right** - this will give you only the space selected, and then you can press delete.
This is assuming that you are coming from the right, and you have to delete the space to the left.
Of course, this is still 5 keystrokes... but it beats pressing backspace aga... |
You can position individual boxes completely independent from the source order using position:absolute. So you can move the header to the bottom of the page, and the footer to the top using CSS.
Note however that this is genereally bad for accessibility: You should have the order of the content in the source more or... |
I would recommend Buildr for non-Ruby build tasks. It is based on Rake (sits on top of it, allowing you to use all of Rake's features) but fits the semantics of compiled languages better. It also supports hierarchical builds. |
It's not PHP, but there is a doc2rtf utility out there that you can use. From there you can just open the RTF file as a text document, write some string replacement routines to remove the RTF formatting codes, and have a glob of text suitable for indexing.
Alternately, you can get OpenOffice and open the MS Word doc... |
The original question needs to be clarified:
* What happens with BValue and CValue in the original question? Is there a reason why they shouldn't be part of the flattened structure?
* Do all of the elements in the XML doc have 2 attributes or is this completely arbitrary?
* Are there only 3 types of elements and a... |
See also Stylish REPL (for GNU Emacs) http://blog.jrock.us/articles/Stylish%20REPL.pod |
Carnegie Mellon University's Software Engineering Institute--in Pittsburgh, PA--has certification programs and trainings on Software Architecture:
- http://www.sei.cmu.edu/architecture/certificate_program.html |
I used subst first, it makes to do the path easier, but with mounting virtual disk,
so as typicalrunt said, I used junction :) you can [download here][1]
syntax:
/* to make a symlink use command: */
junction Disk:\path\to\mount\point Disk:\path\to\something\to\mount
/* to delete it, use a key [-d... |
Take a look at this [list of Java open source PDF libraries][1].
Also check out [this article][2].
[Edit: There's always Ghostscript, which is easy to use, but who wants more dependencies?]
[1]: http://java-source.net/open-source/pdf-libraries
[2]: http://www.roseindia.net/java/itext/Comboine2page.shtml |
Which logging library is better? |
|delphi|logging| |
I was wondering; which logging libraries for Delphi do you prefer?
- CodeSite
- SmartInspect
Please try to add a reasoning why you prefer one over the other if you've used more than one.
I'll add suggestions to this question to keep things readable.
|
I was wondering; which logging libraries for Delphi do you prefer?
- [CodeSite][1]
- [SmartInspect][2]
- [Log4Delphi][3]
Please try to add a reasoning why you prefer one over the other if you've used more than one.
I'll add suggestions to this question to keep things readable.
[1]: http://www.ra... |
It seems like you're asking:
> How can I get `ScriptEngine` to evaluate the contents of a URL instead of just a string?
Is that accurate?
`ScriptEngine` doesn't provide a facility for downloading and evaluating the contents of a URL, but it's fairly easy to do. `ScriptEngine` allows you to pass in a `Reader` ... |
One essential difference is that the JVM is portable across platforms and runs on Linux, Macintosh, and many cell phones and embedded devices.
CLR runs on Microsoft supported platforms with the Mono project providing partial support of older versions of CLR on a few more.
Internally this means the JVM's perform... |
Are you trying to access the javascript object in the browser page from a java 1.6 applet? If so, you're going about it in the wrong way. That's not what the scripting engine's for. It's for running javascript within a jvm, not for an applet to accesses javascript from with in a browser.
Here's a [blog entry][1] tha... |
My understanding of ValidationGroup is that a button with no group specified would trigger all validators on the page. Have you tried giving the LinkButton a different ValidationGroup? |
The integer math solution that Ian provided is nice, but suffers from an integer overflow bug. Assuming the variables are all `int`, the solution could be rewritten to use `long` math and avoid the bug:
> `int pageCount = (-1L + records + recordsPerPage) / recordsPerPage;`
If `records` is a `long`, the bug remain... |
Why use Jython when you could just use Java? |
|java|eclipse|jython| |
The standard answer is that it's useful when you only need to write a few lines of code ...
I have both languages integrated inside of Eclipse. Because Eclipse handles the compiling, interpreting, running etc. both "run" exactly the same.
The Eclipse IDE for both is similar - instant "compilation", intellisense e... |
What's the name of Visual Studio Import UI Widget (picture inside) |
|visual-studio| |
What's the name of the circled UI element here? And how do I access it using keyboard shortcuts? Sometimes it's nearly impossible to get the mouse to focus on it.
Thanks.
![Name?][1]
[1]: http://jazz2online.com/junk/vs_question.gif |
In Java, utilize the java.util.concurrent packages in JDK 5+ instead of writing your own. As was mentioned above, this is really a field for experts, and unless you have a spare year or two, rolling your own isn't an option. |
can't you prod the QO with a well-placed query hint? |
What's the difference between Subclipse Get Contents and Get Revision? |
|version-control|svn|eclipse-plugin|subclipse|revision| |
When using the Eclipse->Team->Show History view, what's the difference between using Subclipse "Get Contents" and "Get Revision" options on a revision of a file?
Is there any way to see what svn commands Subclipse is issuing behind the scenes? |
If you would like to pass an array, you will need a function in sql that can turn that array into a sub-select.
These functions are very common, and most home grown systems take advantage of them.
Most commercial, or rather professional ORM's do ins by doing a bunch of variables, so if you have that working, I th... |
Object-Oriented Modeling is used to define, usually without any actual code, the classes, methods, and variables. There are many tools out there to help with such modelling. Netbeans is one such package. Netbeans can help you model your code and will even attempt to help you get started after you make your class diagra... |
Carom3D is a great one, they seem to have mastered the physics. See these links for more info:
http://www.jimloy.com/billiard/phys.htm
http://archive.ncsa.uiuc.edu/Classes/MATH198/townsend/math.html
http://www2.swgc.mun.ca/physics/physlets/billiards.html
http://www.regispetit.com/bil_praa.htm
Good luck! |
in the "global and static" area :)
there are several memory area in C++
- heap
- free store
- stack
- global & static
- const
see [here][1] for detailed answer to your question
[1]: http://www.gotw.ca/gotw/009.htm |
arrayOfA **is** IFoo[]. There must be something else wrong with your program.
using System;
public class oink {
public static void Main() {
A[] aOa = new A[10];
if (aOa is IFoo[]) { Console.WriteLine("aOa is IFoo[]"); }
}
public interface IFoo... |
arrayOfA **is** IFoo[].
There must be something else wrong with your program.
You seem to have mocked up some code to show the problem, but in fact your code (see below) works as you expect. Try updating this question with the real code - or as close to real as you can - and we can take another look.
usin... |
Not only is it a blunt instrument as far as resolution is concerned, but also it is MySQL-instance wide, so that if you have different databases with differing performancy requirements you're kind of out of luck. Obviously there are ways around that, but it's important to keep that in mind when setting your slow log s... |
Good refactoring support for C++ |
|c++|visual-studio|refactoring| |
The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.
I have seen [Refactor!][1] and am currently trying it out, but maybe one of you guys know a better tool or plugin?
[1]:http://www.devexpress.com/P... |
The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.
I have seen [Refactor!][1] and am currently trying it out, but maybe one of you guys know a better tool or plugin?
<hr>
I've been working with [Vis... |
The Visual Studio refactoring support for C# is quite good nowadays (though not half as good as some Java IDE's I've seen already) but I'm really missing C++ support.
I have seen [Refactor!][1] and am currently trying it out, but maybe one of you guys know a better tool or plugin?
<hr>
I've been working with [Vis... |
You are thinking C/C++.
Use objects instead of an identifier byte (or int).
public ??? getEmployeeName(Object obj){
if (obj instanceof Integer){
...
} else if (obj instanceof String){
...
} else if .... // and so on
} else throw Som... |
If you want so much granularity you are in the wrong place (in user space). Remember that if you are in user space your time is not always précis. The scheduler can start your thread (or app), and schedule it, so you are depending by the OS scheduler . If you are looking for something precisely you have to go:
1) In k... |
I use the following a lot:
The `:p` modifier to print a history result. E.g.
!!:p
Will print the last command so you can check that it's correct before running it again. Just enter `!!` to execute it.
In a similar vein:
!^foo^:p
Will search your history for the most recent command that contain... |
I use the following a lot:
The `:p` modifier to print a history result. E.g.
!!:p
Will print the last command so you can check that it's correct before running it again. Just enter `!!` to execute it.
In a similar vein:
!?foo?:p
Will search your history for the most recent command that contain... |
$ g() { return; }
$ declare -f g > /dev/null; echo $?
0
$ declare -f j > /dev/null; echo $?
1 |
The Java "for-each" loop construct will allow iteration over two types of objects:
- `T[]` *(arrays of any type)*
- `java.lang.Iterable<T>`
The `Iterable<T>` interface has only one method: `Iterator<T> iterator()`. This works on objects of type `Collection<T>` because the `Collection<T>` interface extends `... |
Sometimes the Visual Designer serialize all your properties in the code-behind, even if they have the default value.
If your component have a default backcolor of Red, and you change the default backcolor to Blue, the components that use your component will change it back to Red. |
Why I get an "Canvas does not allow drawing" while drawing in TeeChart ActiveX 5 component? |
|c#|.net|system.drawing|teechart| |
I'm using Steema's TeeChart ActiveX 5 component for an application in .NET C#.
I do some drawings using the methods `Line()`, `Rectangle()` and `Circle()` through the "`Canvas`" property of the component.
My code for drawing is called on every on every `OnBeforeDrawSeries()` and `OnAfterDraw()` events of the comp... |
I found this [this][1] to be a good introduction to RESTful web apps, although it doesn't refer to OpenSocial containers.
[1]: http://www.xfront.com/REST-Web-Services.html |
|delphi|logging| |
I was wondering; which logging libraries for Delphi do you prefer?
- [CodeSite][1]
- [SmartInspect][2]
- [Log4Delphi][3]
- [TraceFormat][4]
Please try to add a reasoning why you prefer one over the other if you've used more than one.
I'll add suggestions to this question to keep things readable.
... |
There seems to be a [library for accessing Word documents](http://packages.ubuntu.com/hardy/libwv-1.2-3) but not sure how to access it from PHP. I think the best solution would be to call their [wv command](http://packages.ubuntu.com/hardy/wv) from PHP. |
> Clarification: There are multiple root nodes and roots may have parent nodes. Each is the root of only a sub-tree that has distinct styling. Think of different, color-coded departments. (Perhaps root is a poor name choice. Suggestions?)
Root is a poor name choice because it's (somewhat ironically) accepted as expl... |
> Clarification: There are multiple root nodes and roots may have parent nodes. Each is the root of only a sub-tree that has distinct styling. Think of different, color-coded departments. (Perhaps root is a poor name choice. Suggestions?)
Root is a poor name choice because it's (somewhat ironically) accepted as expl... |
Git pull is a combination of 2 commands
- git fetch (syncs your local repo with the newest stuff on the remote)
- git merge (merges the changes from the distant branch, if any, into your local tracking branch)
git rebase is only a rough equivalent to git merge. It doesn't fetch anything remotely. In fact it ... |
The package name you choose is irrelevant. model vs. domain vs. vo vs. foobar is all fine just as long as your team is all on the same page. I agree that this package should only contain POJO domain objects with no significant business logic. |
you could try building the sub-projects into msm (merge modules) and then linking the lot into a single msi - you get the benefits of having individual modules, and a single msi that way.
|
You can achieve this remarkably easily using [Netz][1], a .net NET Executables Compressor & Packer.
[1]: http://madebits.com/netz/ |
Syntax sugar. |
You are thinking C/C++.
Use objects instead of an identifier byte (or int).
**My Bad, the overload approach is better and using the SSN as a primary key is not so good**
public ??? getEmployeeName(Object obj){
if (obj instanceof Integer){
...
} else if (obj instanceof Str... |
Here's a summary of the ways to call external programs and the advantages and disadvantages of each:
1. <code>os.system("some\_command with args")</code> passes the command and arguments to your system's shell. This is nice because you can actually run multiple commands at once in this manner and set up pipes and i... |
using System.IO;
string path = @"c:\folders\newfolder"; // or whatever
if (!Directory.Exists(path))
{
DirectoryInfo di = Directory.CreateDirectory(path);
di.Attributes = FileAttributes.Directory | FileAttributes.Hidden;
} |
**Ctrl+Back Space** and **Ctrl+Delete** are also greedy, they delete the nearest word in their respective direction. |
Combine rows in Access 2007 |
|ms-access|coalesce|rows| |