instruction stringlengths 0 30k ⌀ |
|---|
Recently, I've started having a problem with my SQL Server 2005 client running on Windows XP where right-clicking on any job and selecting Properties instead brings me to the New Job window. Also, if I select "View History", I get the history for all jobs, instead of the one I right-clicked on.
This happened to m... |
Recently, I've started having a problem with my SQL Server 2005 client running on Windows XP where right-clicking on any job and selecting Properties instead brings me to the New Job window. Also, if I select "View History", I get the history for all jobs, instead of the one I right-clicked on.
This happened to m... |
**UPDATE: Don't Try this as is it!!!!!!**
An automatic update on gtk made this to break my menu, if there is an option to avoid updates while installing, use it and please share it.
-----
Hi Guys well I finally got this thing to work the basic workflow was this:
#!/bin/bash
sudo yum install yum-utils
... |
**UPDATE: Don't Try this as is it!!!!!!**
An automatic update on gtk made this to break my menu, if there is an option to avoid updates while installing, use it and please share it.
-----
Hi Guys well I finally got this thing to work the basic workflow was this:
#!/bin/bash
sudo yum install yum-utils
... |
Nobody recommends using SourceSafe any more, not even Microsoft. They will now offer you an (expensive) TFS licence instead. SourceSafe is just not reliable.
I wrote about it here: [Visual SourceSafe on E2][1]. It's a bit of a rant, but that's because I had to use SourceSafe for quite a while, and the memory makes ... |
Nobody recommends using SourceSafe any more, not even Microsoft. They will now offer you an (expensive) TFS licence instead. SourceSafe is just not reliable.
I wrote about it here: [Visual SourceSafe on E2][1]. It's a bit of a rant, but that's because I had to use SourceSafe for quite a while, and the memory makes ... |
If you are trying to use a simple JTable with 1 column editable and you know the column location you could always use default table model and overload the isCellEditable call.
something like
myTable.setModel(new DefaultTableModel(){
@Override
public boolean isCellEditable(int row, int column) {
if (... |
Hi Guys well I finally got this thing to work the basic workflow was this:
#!/bin/bash
sudo yum install yum-utils
#We don't want to update the main gtk2 by mistake so we download them
#manually and install with no-deps[1](and forced because gtk version
#version of AA1 and the gtk2-devel aren'... |
There are tools available that help you develop your schema, develop changes, version those changes and will help you compare the differences between versions and even generate the SQL to make the DDL changes.
For example, check out [Embarcadero Change Manager][1] and other products offered by Embarcardero.
[... |
BCC, by definition, doesn't create nor use any of the headers in an e-mail message. It wouldn't be "blind" otherwise, no? |
Short answer: the migration doesn't seem like something easily automated.
My guess is that your best bet is to rewrite (and install) the system one piece at a time, even if (perhaps) it forces your users to run the old and new versions side-by-side for a while to use different bits of functionality. You can minimize... |
Dirty reads? |
You could try adding a line of code to call the function only if some condition is true, and guarantee that that condition will never be true. Just make sure the compiler can't figure that out. For example,
<pre><code>
int main(int argc, char **argv)
{
if(argv == NULL) // C runtime says this won't happen
... |
As everyone has already said it here: the branch isn't dead and commits to the branch can continue just fine.
Sometimes though you want to kill the branch after the merge. The only reliably solution is to delete the branch. The downside is that then it's harder to find the branch again if you wanted to have a look a... |
Lets say I have the option of identifying a code path to take on the basis of a string comparison or else iffing the type:
Which is quicker and why?
switch(childNode.Name)
{
case "Bob":
break;
case "Jill":
break;
case "Marko":
break;
}
... |
Why don't modules always honor 'require' in ruby? |
|ruby| |
I have this in ruby:
require 'size_specification'
module SomeModule
def self.sizes
YAML.load_file(File.dirname(__FILE__) + '/size_specification_data.yml')
end
end
class SizeSpecification
def fits?
end
end
Then if I call
SomeModule.si... |
(sorry I should have been clearer with the code the first time I posted this. Hope this makes sense)
File "size_specification.rb"
class SizeSpecification
def fits?
end
end
File "some_module.rb"
require 'size_specification'
module SomeModule
def self.sizes
... |
To make a new revision of A.txt that is equal to revision 2:
svn up -r HEAD
svn merge -r HEAD:2 A.txt
svn commit
|
To make a new revision of A.txt that is equal to revision 2:
svn up -r HEAD
svn merge -r HEAD:2 A.txt
svn commit
Also see the description in [Undoing changes][1].
[1]: http://svnbook.red-bean.com/en/1.5/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.undo |
Isn't this a little like asking "How can I abort a thread when no method other than Thread.stop() is available?"
Obviously, the only valid answer is Thread.stop(). Its ugly, could break things in some circumstances, can lead to memory/resource leaks, and is frowned upon by TLEJD (The League of Extraordinary Java De... |
I haven't tested this, but I believe you need to clear the "skip whitespace" flag:
inFile.unsetf(ios_base::skipws);
I use the following reference for C++ streams:
[IOstream Library][1]
[1]: http://www.cplusplus.com/reference/iostream/ |
If you want to do 1 file at a time you can go to the History view for the file assuming you have an Eclipse SVN plugin installed. "Team->Show History"
In the History view, find the last good version of that file, right click and choose "Get Contents". This will replace your current version with that version's cont... |
Can I just add, that the most "efficient" way of getting the total number of records, particularly in a large table, is to save the total amount as a number in another table.
That way, you don't have to query the entire table everytime you want to get the total.
You will however, have to set up some code or Trigger... |
It's not true SOAPpy does not work with Python 2.5 - it works, although it's very simple and really, really basic. If you want to talk to any more complicated webservice, ZSI is your only friend.
The really useful demo I found is at http://www.ebi.ac.uk/Tools/webservices/tutorials/python - this really helped me to u... |
What you could do is create a bunch of different user accounts, put them all in the same group and give that group write access to the repository. Then you should be able to write a simple incoming hook that checks if the user that executes the script is the same as the user in the changeset.
I've never done it bec... |
Visual Studio: How to break on handled exceptions? |
|visual-studio|debugging|break|firstchance|exception| |
i would like Visual Studio to break when a handled exception happens (i.e. i don't just want to see a "First chance" message, i want to debug the actual exception).
e.g. i want the debugger to break at the exception:
try
{
System.IO.File.Delete(someFilename);
}
catch (Exception)
{
... |
Have you tried using the "type" element in your dependencies? For example:
<dependency>
<groupId>group-a</groupId>
<artifactId>artifact-b</artifactId>
<version>1.0</version>
<type>aar</type>
</dependency>
Its hard to say for sure what your problem is without seeing your actua... |
Yes, you can. Use:
Response.Cookies("UID").Domain = ".myserver.com" |
Moving directories in Subversion doesn't destroy history, AFAIK. |
I think it would be better to move to Win 2008 server (setup as workstation see: http://www.win2008workstation.com/wordpress/) |
You can use the svn copy command. It keeps your history. You just have to deselect the Option "Stop on copy/rename" while showing the Log (Example for Tortoise).
Take a closer look at the Subversion-Book [svn copy][1]
[1]: http://svnbook.red-bean.com/en/1.1/re07.html |
Further to yoavf's answer, you can also use haxevideo as an open source rtmp video streaming server. |
I use the following library:
http://www.efgh.com/software/rsa.htm
It's public domain, compact, self contained, and does the work well. |
As far as I know, only Bazaar allow to keep history on directories, espacially when talking about moving directories. SVN allows you to keep history when moving files, but not directories. |
Wow, where to start?
First, there is a set of knowledge someone should have to do analysis on some projects, but it really depends on what you are building for who. In other words, it makes a big difference if you are modifying an enterprise application for a Fortune 100 corporation, building an iPhone app, or addi... |
We are in the middle implementing Cognos right now, and I really think it's a fairly robust tool. The ETL tool seems pretty straightforward and easy to use and the front end is fairly easy to administer and set up. I don't have much experience in the framework models and the data modeling stuff, but our report design... |
What's the right way to branch with Visual Source Safe? |
|source|branch|safe| |
What I currently do is I link the project to another location and give it the same name, then check the box where it says "Branch after share."
And then I would Check out the shared project and work off it. And finally merge with the original project.
This works okay, but it feels very clunky: I have multiple inst... |
|source-code|branch|safe| |
I like XAMPP, personally. I have an install running on a thumbdrive that I carry around that's pretty much my development environment for LAMP web dev on any machine I happen to be at (I'm mostly on Windows client machines).
Small, fully-functional, and stable - works really well for my needs. |
Judging by the description, a state machine might be the best way to deal with it. Have an enum variable to store the current state, and implement the processing as a loop over the records, with a switch or if statements to select the action to take based on the current state and the input data. You can also easily dis... |
In the end I guess it was added the type. This seems to work for me.
function convertToDecimal(){
var key = document.getElementById("key");
var keypressed = document.getElementById("keypressed");
keypressed.value = key.value;
var url = "/My_Servlet/response?key="+ escape... |
<svg>
<text id="thingyouhoverover" x="50" y="35" font-size="14">Mouse over me!</text>
<text id="thepopup" x="250" y="100" font-size="30" fill="black" visibility="hidden">Change me
<set attributeName="visibility" from="hidden" to="visible" begin="thingyouhoverover.mouseover" end="thingyouhover... |
alternative to VSS for a one man show (army of one?) |
|source|version-control| |
I've been programming for 10+ years now for the same employer and only source code control we've ever used is VSS. (Sorry - That's what they had when I stated). There's only ever been a few of us; two right now and we usually work alone, so VSS has worked ok for us. So, I have two questions: 1) Should we switch to some... |
Unless you're using `LPSTR_TEXTCALLBACK`, the tree-view control is responsible for allocating the memory, not your code. You can use `TVM_SETITEM` to set the text for a particular item by specifying the `TVIF_HANDLE` and `TVIF_TEXT` flags in the `TVITEM` structure. |
Unless you're using `LPSTR_TEXTCALLBACK`, the tree-view control is responsible for allocating the memory, not your code, so you shouldn't change the value of the `pszText` pointer.
To change the item's text in your `TVN_ENDLABELEDIT` handler, you can use `TreeView_SetItem`, then return 0 from the handler. |
Kerberos requires a port 88 connection to the KDC, in this case, most likely your DC.
What you probably want to look at is HTTPS + Basic Authentication + Protocol Transition to take the Basic Authentication and translate it into a DC based Kerberos Ticket for delegation and back end authentication.
- [Protocol ... |
It's important to note that inline elements cannot be assigned their own width, height, or vertical whitespace (margin/padding top/bottom).
If you are trying to make block elements behave like inline elements (where they stack next to each other), you should be using `float`. Floats will stack next to other floats ... |
If you need a variable name to match that of a keyword, enclose it with brackets. Not nec. the best practice though ;-)
e.g.
Class Ex
Public [If] as Delegate
''...
End Class
''later
Dim e as new Ex
e.If = new Delegate(AddressOf MyIf)
|
If you need a variable name to match that of a keyword, enclose it with brackets. Not nec. the best practice though ;-)
e.g.
Class CodeException
Public [Error] as String
''...
End Class
''later
Dim e as new CodeException
e.Error = "Invalid Syntax"
|
I'm pretty sure there is no way around the 256 character limit, Joel Spolsky explains why here: http://www.joelonsoftware.com/printerFriendly/articles/fog0000000319.html.
You could however use VBA to get close to replicating the functionality of the built in validation by coding the Worksheet_Change event. Here's a ... |
If you are having a problem with a particular key combo or miss-typing a particular word, or even just want to practice something, put it into your password. That way you get it fixed in your muscle memory as you can't even see what you are typing. |
Load a WPF BitmapImage from a System.Drawing.Bitmap |
|wpf| |
I have an instance of a System.Drawing.Bitmap and would like to make it available to my WPF app in the form of a System.Windows.Media.Imaging.BitmapImage.
What would be the best approach for this? |
Create an interface IReadOnlyPerson which exposes only get accessors. Have Person implement IReadOnlyPerson. Store the reference to Person in your controller. Give other clients only the read only version.
This will protect against mistakes, but not fraud, as with most OO features. Clients can runtime cast to be Per... |
Create an interface IReadOnlyPerson which exposes only get accessors. Have Person implement IReadOnlyPerson. Store the reference to Person in your controller. Give other clients only the read only version.
This will protect against mistakes, but not fraud, as with most OO features. Clients can runtime cast to Person... |
Create an interface IReadOnlyPerson which exposes only get accessors. Have Person implement IReadOnlyPerson. Store the reference to Person in your controller. Give other clients only the read only version.
This will protect against mistakes, but not fraud, as with most OO features. Clients can runtime cast to Person... |
The Ganymede Java EE plugins are absolutely huge when running in memory. Also, I've had bad experiences with FindBugs and its reliability over a long coding session. If you can't live without these plugins though, then your only recourse is to start closing projects. If you limit the number of *open* projects in you... |
|visual-studio|debugging|exception| |
|visual-studio|exception|debugging| |
i would like Visual Studio to break when a handled exception happens (i.e. i don't just want to see a "First chance" message, i want to debug the actual exception).
e.g. i want the debugger to break at the exception:
try
{
System.IO.File.Delete(someFilename);
}
catch (Exception)
{
... |
I did some simple benchmarking on ArrayList's vs Generic Lists for a different question: http://stackoverflow.com/questions/94884/generics-vs-array-lists#95753, your mileage will vary, but the Generic List was 4.7 times faster than the ArrayList.
So yes, boxing / unboxing are critical _if_ you are doing a lot of o... |
It really depends wich requirements you're talking about.
- Functionnal requirements? Maybe that UML is the rigth tool for. But I would prefer a test o test specifications
- GUI requirements? Nothing beats a paper and a pencil.
- Security requirements? By describing the limits of your security, you avoid... |
Three things need doing,
fork
setsid
redirect STDIN and STDOUT to /dev/null |
Three things need doing,
fork
setsid
redirect STDIN, STDOUT and STDERR to /dev/null |
Three things need doing,
fork
setsid
redirect STDIN, STDOUT and STDERR to /dev/null
This applies to POSIX systems (all the ones you mention claim to be POSIX (but Windows stops at the claiming bit)) |
<pre><code>SELECT accountid, MAX(score) as top_score
FROM Scores
GROUP BY accountid,
ORDER BY top_score DESC
LIMIT 0, 10</code></pre>
That should work fine in mysql. It's possible you may need to use 'ORDER BY MAX(score) DESC' instead of that order by - I don't have my SQL reference on hand. |
To launch the development ASP.NET server, just open a terminal window and run the "xsp2" command from the Mono installation.
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 application i... |
In my admittedly limited experience with WPF, the bigger hurdles include a complete overhaul of my mental model for how UIs are built and the new terminology that needs to be learned as a result of that. It may be that others have an easier time adjusting to the model, though. I can see how someone coming from best p... |
Use **[java.util.TreeMap][1]**.
"The map is sorted according to the natural ordering of its keys, or by a Comparator provided at map creation time, depending on which constructor is used."
[1]: http://java.sun.com/javase/6/docs/api/java/util/TreeMap.html |
I wouldn't, I would use a table. This is a classic example of a tabular layout - exactly the sort of thing tables are _supposed_ to be used for. |
I've had good luck with [Linode][1]. I run [Utility Mill][2] through them. They run great, reasonable rates, and there are always people able to help you in their IRC room.
Back when I was researching, [Slicehost][3] also looked very promising but they had a waiting list at that time.
[1]: http://linode.com... |
I've tried quite a few of them. The only one that I can recommend wholeheartedly is [Slicehost][1]. They are incredibly good at what they do. I have many clients running on their systems.
[1]: http://www.slicehost.com/ |
If you simply have to do this, add the guesses to the UI as an optional selection. This way, you could tell the user how you parsed the name and let them pick a different parsing from a list you provide. |
I assume you want a data structure to hold some kind of instruction template, probably parsed from existing machine code, similar to:
add r1, r2, <int>
You will have an array of this structure and you will perform some optimization on this array, probably changing its size or building a new one, and generate ... |
This is a very similar question to the one that I answered here: [link text][1]
In short, no, it's not safe according to the C++ standard. If, for some reason, you need a SOME_STRUCT object allocated in an area of memory that has a size difference from `size_of(SOME_STRUCT)` (and it had better be bigger!), then you ... |
svn move SRC DST
$ svn move -m "Move a file" http://svn.red-bean.com/repos/foo.c http://svn.red-bean.com/repos/bar.c
svn move will keep your history. |
svn help rename
Moving/renaming in subversion keeps history intact. |
If you're lazy, one easy way is to extend <code>generic-mode</code> to know about your new language:
<http://www.emacswiki.org/cgi-bin/wiki/GenericMode>
I do this a lot for config files for applications that I work with a lot to get decent syntax highlighting. [Here's one](http://lists.digium.com/pipermail/aster... |
In terms of performance, the big gain in using separate files/filegroups is that it lets you spread your data across multiple physical disks. This is beneficial because with several disks, multiple data requests can be handled simultaneously (parallel is generally faster than serial). All other things being equal, this... |
How to show that you understand the requirements of the project |
|project-management| |
How do you show your clients/employers that you understood their requirements?
What do you recommend to use? Use-Case diagrams? Flow-Charts? Data-Flow-Diagrams?
I'm not really asking for a very detailed answer. Just something simple to help me communicate with the person who wrote the requirements and to see if b... |
How do you show your clients/employers that you understood their requirements?
What do you recommend to use? Use-Case diagrams? Flow-Charts? Data-Flow-Diagrams? Decision Trees?
I'm not really asking for a very detailed answer. Just something simple to help me communicate with the person who wrote the requirements... |
git wasn't initially designed to work like svn with a big central repository. Perhaps you can pull from people as needed, and refuse to pull if they have their author set inaccurately? |
Unfortunately, at least with PB 9, you can't *natively*. PB has always been a two-tier dev tool. However, if you are using the WebServices support that started in PB 9 you can get around this limitation by invoking WebServices on a connection pooled appServer. I haven't played with PB 11.5 yet BTW. Could be differe... |
Check out [TypeMock][1] or [Rhino Mocks][2]. Mocking can save you so much time and pain when you're unit testing a web application.
[1]: http://www.typemock.com
[2]: http://ayende.com/projects/rhino-mocks.aspx |
Using System types makes it easier to port between C# and VB.Net, if you are into that sort of thing. |
The last Swing application I worked on used [JGoodies' FormsLayout][1].
[1]: http://www.jgoodies.com/freeware/forms/index.html |
if you compare a generic list (for example) to a specific list for exactly the type you use then the difference is minimal, the results from the JIT compiler are almost the same.
if you compare a generic list to a list of objects then there is significant benefits to the generic list - no boxing/unboxing for value t... |
Strange. Is there perhaps a plugin installed that turns this off without your knowledge? |
What is the best way for a Java program to monitor system health? |