instruction stringlengths 0 30k ⌀ |
|---|
We've just moved over to [Perforce][1] and have been really happy with it. It's a commercial product, but it's so powerful and easy to use that it's worth the price per seat IMHO.
[1]: http://perforce.com/ |
You might want to consider using a Mac as your server and using [Time Machine][1] to backup your shared folders. A Mac server is probably overkill. A Mac Mini would do for a small office or a repurposed desktop machine.
You might also consider [Amazon's S3 service][2] to do offline backups. Since it's a pay-as-you-g... |
You might want to consider using a Mac as your server and using [Time Machine][1] to backup your shared folders. Doing this gives you automatic backups and allows you to share through Samba so everyone can have a [network drive][2] on their computer. A Mac server is probably overkill. A Mac Mini would do for a small of... |
To add to what Brad and squadette have said, the self-closing XML syntax `<script />` actually **is** correct XML, but for it to work in practice, your web server also needs to send your documents as properly formed XML with an XML mimetype like `application/xhtml+xml` in the HTTP Content-Type header (and *not* as `tex... |
It would seem your main issue is clients modifying code which then makes it difficult for you to support it. I would suggest you ask for checksums (md5,sha, etc) of their files when they come to you for support, and similarly check files' checksums when patching. For example, you can ask the client to provide the outpu... |
What is the difference between UserControl, WebControl, RenderedControl and CompositControl |
|asp.net| |
What is the difference, what is the official terms, are any terms obsolute in ASP.NET 3.5?
|
What is the difference between UserControl, WebControl, RenderedControl and CompositeControl? |
What is the difference, what is the official terms, are any terms obsolete in ASP.NET 3.5?
|
@Roo:
I somewhat agree to what you are saying but isn't it worth encrypting the data just to make it a little more difficult for someone to get it?
With your reasoning, it would be useless to have locks or alarms in your house, because they can also easily be compromised.
**My reply:**
I would say that if y... |
@Roo
I somewhat agree to what you are saying but isn't it worth encrypting the data just to make it a little more difficult for someone to get it?
With your reasoning, it would be useless to have locks or alarms in your house, because they can also easily be compromised.
**My reply:**
I would say that if yo... |
On second reading I'm a little confused, you seem to want to mix the class into module, which is porbably not so advisable. Also is the YAML supposed to load an array of the SizeSpecifications?
It appears to be that you're not mixing the Module into your class. If I run the test in irb then the require throws a Lo... |
You could use [buildbot][1]. It's a tool that can take arbitrary action whenever a check-in occurs. It's a full featured continuous integration system but if you just want emails it can certainly handle that. It has plug-ins for a variety of SCMs including SVN.
[1]: http://buildbot.net |
If your problem domain permits try to think about a share nothing model. The less you share between processes and threads the less you have to design complex concurrency models.
|
Usually messages are stored as complete snapshots. Previous versions are disabled, and the most recent is displayed. There may be optimizations used like caching which version is the most recent. |
MySQL Joins |
|sql| |
What are the potential pros and cons of each of these queries given different databases, configurations, etc? Is there ever a time when one would be more efficient than the other? Vice versa? Is there an even better way to do it? Can you explain why?
Query 1:
SELECT
*
FROM
table_a, tab... |
If it's a webapp and you're using Spring, then OpenSessionInViewFilter could be the solution to your problems. |
Here's another pseudocode solution from a different angle; a bit more intensive because it does 96 queries for every 24hr period:
results = []
for time in range(0, 24, .25):
amount = mysql("select count(*) from User_Activity_Table where time >= start_time and time <= end_time")
results.appen... |
Just to add to the other answers, I would encourage you to look at actual textual representations of SOAP and XML-RPC calls, perhaps by capturing one with Ethereal. The whole, "XML-RPC is simpler" argument doesn't make much sense until you see how incredibly verbose a SOAP call is. Many of the fairly popular web site... |
You *will* require assistance and a lot of trust from your system administrator. Ordinary users are not able to run the executable of their choice on behalf on other users, period.
She may add your application to `/etc/sudoers` with proper settings and you'll be able to run it as with `sudo -u nobody`. This will ... |
In order to get a good answer for this, you'll have to post the code. In general, the Delphi compiler will give this warning if there is a possible code path that could result in the Result not being defined. Sometimes that code path is less than obvious. |
Give a container an id, then use # to refer to that Id.
e.g.
This is main body of my content. I have a footnote link for this line <a href="#footnote-1">[1]</a>. Then, I have some more content. Some of it is interesting and it has some footnotes as well <a href="#footnote-2">[2]</a>.
<p id="footnot... |
Flash requires you to use a media server (note: I'm still using Flash MX, but a quick Google search brings up documentation for Flash CS3 that seems to concur - note that Flash CS4 is out soon, might change then). Macromedia / Adobe aim to flog you their media server, but the Red5 open-source project might be suitible ... |
Virtual Attributes (more info [here][1] and [here][2]) will help with this greatly. Passing the whole params back to the model keeps things simple in the controller. This will allow you to dynamically build your form and easily build the entries objects.
class Operation
has_many :entries
de... |
No. If the VPC is in full screen mode, alt+tab works only within the context of the VPC. If the VPC Screen is not focused, you will get the collection of applications that are in the Host (including the instance of VPC) |
How to match URIs in text? |
|uri|textmatching| |
How would one go about spotting URIs in a block of text?
The idea is to turn such runs of texts into links. This is pretty simple to do if one only considered the http(s) and ftp(s) schemes; however, I am guessing the general problem (considering tel, mailto and other URI schemes) is much more complicated (if it is ... |
Is it just me
BDictionary torrent = BItem.DecodeFile("my.torrent");int filelength = (BInteger)((BDictionary)((BList)((BDictionary) torrent["info"])["files"])[0])["length"];
You don't need the BDictionary cast 'torrent' is declared as a BDictionary
public BItem this[int index]{ ... |
Look for information about **Apache** and Siteminder as Apache is responsible for the HTTP transport stuff in Subversion |
Tables are used for displaying tabular data. There's not much else to add :-D |
By default I don't think that is possible.
The list web part that would show the Shared Documents understands how to render the library, but doesn't understand how to filter to only show the contents of one subfolder.
It would be nice to create a Filter Web Part and to provide that filter to the List web part so ... |
If you are looking to integrate GWT with non-Java backends such as ROR, PHP etc., you should bear in mind that GWT 1.5 now supports JavaScript Overlay types. This feature lets you write classes that can be mapped over the top of native JavaScript objects to easily provide accessor methods for properties of those object... |
When I started unit testing I started with NUnit as it is simple to set up and use, currently I am using the built in test runner that comes with Resharper, that way I can easily flip between code and test results.
Incidently NUnit detects when you have compiled your code so you do not need to do any refresh in NUnit.... |
You can also try [httperf][1]. It's a very flexible tool and if you want to test how your application and webserver can deal with various traffic loads you should definitely give it a go.
[1]: http://www.hpl.hp.com/research/linux/httperf/ |
Talk to them outside the scrum meeting and tell them how others may perceive their way of presenting what they are currently working on. I assume they are not deliberately non cooperative, but just not accustomed to the exact level of detail scrum meetings should have.
You may also ask them how much information th... |
How create threads under Python for Delphi? |
|python|delphi| |
I'm hosting Python script with Python for Delphi components inside my Delphi application. I'd like to create background tasks which keep running by script.
Is it possible to create threads which keep running even if the script execution ends. I've noticed that the program gets stuck if the executing script ends and ... |
I'm hosting Python script with Python for Delphi components inside my Delphi application. I'd like to create background tasks which keep running by script.
Is it possible to create threads which keep running even if the script execution ends (but not the host process, which keeps going on). I've noticed that the pr... |
How create threads under Python for Delphi |
I'm hosting Python script with Python for Delphi components inside my Delphi application. I'd like to create background tasks which keep running by script.
Is it possible to create threads which keep running even if the script execution ends (but not the host process, which keeps going on). I've noticed that the pr... |
You'll want to query `APPLSYS.FND_PROFILE_OPTIONS` and `FND_PROFILE_OPTION_VALUES`.
For a comprehensive script that you can pick up the SQL from, look here:
http://tipsnscripts.com/?p=16
|
The built in unit testing in VS 2008 is alright, but its difficult to integrate with CruiseControl.net, certainly a lot harder than normal NUnit.
So go with NUnit if you plan to have nice automated tests. |
URI validator = new URI(yourString);
That code will validate the IP address or Hostname. (It throws a malformed URI Exception if the string is invalid)
If you are trying to distinguish the two..then I miss read your question. |
Use bookmarks in anchor tags...
This is main body of my content. I have a footnote link for this
line <a href="#foot1">[1]</a>. Then, I have some more content.
Some of it is interesting and it has some footnotes as well
<a href="#foot2">[2]</a>.
<div>
<a name="foot1">[1]</a>... |
Move mandatory initialization code for the form class out of the `Load` event handler into the constructor. For a Form class, instantiation of an instance (via the constructor), form loading and form visibility are three different things, and don't need to happen at the same time (although they do obviously need to hap... |
This is main body of my content. I have a footnote link for this line <a href=#1>[1]</a>. Then, I have some more content. Some of it is interesting and it has some footnotes as well [2].
<a name="tag">[1]</a> Here is my first footnote.
[2] Another footnote.
-----
Do < a href=#tag> text < /a>
and then at th... |
[IBM Omnifind Yahoo Edition][1] is an Enterprise search server which uses [Apache Lucene][2] for indexing. It is simple, easy to install and administer. It also has a built in Open Search API. It has multi-platform support and its Free!!
This product was launched by IBM to compete with [Google Mini][3] in the Enterp... |
As well as reducing the commit frequency, you should also consider performing bulk updates instead of individual ones. |
<a name="1">Footnote</a>
bla bla
<a href="#1">go</a> to footnote. |
Get-Member, hands down. No, it's not very glamorous, but the ability to inspect objects interactively beats interrupting your work to go hit up MSDN. |
[Fast ESP][1] which Microsoft bought in January 2008
[1]: http://www.fast.no/l3a.aspx?m=1031&amid=12396 |
Try wrapping your real content between the CDATA tags:
<![CDATA[ **it's my content** ]]> |
What I've done is use restful-authentication and then blend the open_id_authentication plugin into your application. It might help to setup the open_id_authentication plugin on a test app as well, so you can determine the changes you'll need to make to the users table. |
It depends on your application. If it spends all its time using the CPU, then multithreading will just slow things down - though you may be able to use it to be more responsive to the user and thus give the *impression* of better performance.
However, if your code is limited by other things, for example using the fi... |
Accessing OpenGL state variables in Cg |
|opengl|variables|state|cg| |
I need to access the *OpenGL state variables* (such as the MVP matrices) in my Cg shader program. I'm passing these values to my Cg shader program manually using calls such as **cgGLSetStateMatrixParameter()** in my C/C++ code. Is there an easier way to do this? |
.Net Dynamic Plugin Loading with Authority |
|c#|.net|plugins|assembly|dynamics| |
What recommendations can you give for a system which must do the following:
Load Plugins (and eventually execute them) but have 2 methods of loading these plugins:
- Load only authorized plugins
(developed by the owner of the
software)
- Load all plugins
And we need to be reasonably secure tha... |
If you are on any fairly recent *Cg profile* (*arbvp1* and later), your Cg shader programs can in fact access the OpenGL state (MVP matrices, material and light settings) directly. This makes writing those programs less painful.
Here are some of the state variables which can be accessed:
MVP matrices of all types... |
Basically, if you're putting your code on someone else's machine, there's no absolute guarantee of security.
You can look at all kinds of security tricks, but in the end, the code is on their machine so it's out of your control.
How much do you stand to lose if the end user loads an unauthorised plugin? |
Valid OpenGL context |
|opengl|glut|context| |
I'm a newbie to OpenGL programming. How and at what stage is a valid OpenGL context created in my code? I'm getting errors on even simple OpenGL code. |
From the posts on **comp.graphics.api.opengl**, it seems like most newbies burn their hands on their first OpenGL program. In most cases, the error is caused due to OpenGL functions being called even before a valid OpenGL context is created. OpenGL is a state machine. Only after the machine has been started and humming... |
How to programmatically iterate datagrid rows? |
If you want to read specific responses you will have to open a socket and read/write data manually.
<?php
$sock = fsockopen($hostname, $port);
?>
Then you'll have to fput/fread data back and forth.<br />
This will require you to read up on the FTP protocol. |
grep astring myfile -A 5 -B 5
That will grep "myfile" for "astring", and show 5 lines before and after each match |
I've hit this before. It has to do with the fact that lucene, under the covers, turns many (all?) things into boolean queries when you call Query.rewrite()
From: <http://lucene.apache.org/java/2_2_0/api/org/apache/lucene/search/Query.html#rewrite(org.apache.lucene.index.IndexReader)>
public Query rewrite(Ind... |
You can also get the source from a Open Source code coverage tool and learn from it. |
I'd say, it depends on your situation. For example, I work in local government, and we have lots of images like mugshots, etc. We don't have a high number of users, but we need to have good security and auditing around the data. The database is a better solution for us since it makes this easier and we aren't going ... |
-A and -B will work, as will -C n (for n lines of context), or just -n (for n lines of context). |
Accessing audio/video metadata with .NET |
|.net|video|audio|mp3| |
What is the best way to get and set the meta data for mp3, mp4, avi files etc. with .NET? |
@Ed, I'm a bit reticent about posting this as it's little more than nitpicking. However, I would point out that in your code sample:
MyClass c;
if (obj is MyClass)
c = obj as MyClass
If you're going to use 'is', why follow it up with a safe cast using 'as'? If you've ascertained that obj is in... |
Not to be vague or anything but I think the type of 'file' you will be storing is one of the biggest determining factors. If you essentially talking about a large text field which could be stored as file my preference would be for db storage. |
In general, it depends :)
I haven't had a lot of problems when the application side has just been updating the data through the forms. You can get warnings/errors when the same row has been updated by more than one user; but Access seems to be constantly updating its the live record sets all the time.
Problems c... |
I don't think this is possible as ActiveX and Javascript are disabled in Outlook.
It seems like it would be better to just link to a web page that has an embedded player with the audio file. |
invalidateList tells the component that the data has changed, and it needs to reload it and re-render it.
invalidateDisplayList tells the component that it needs to redraw itself (but not necessarily reload its data).
mike chambers
mesh@adobe.com |
You are talking about what is called the "client trust" problem. Because the client (in this cash, a SWF running in a browser) is doing something it's designed to do. Save a high score.
The problem is that you want to make sure that "save score" requests are coming from your flash movie, and not some arbitrary HTTP... |
If you don't offer your users a way to decompress and the raw size isn't an issue to begin with, then don't bother. |
There are a couple different directions you can go with automated testing tools for web applications.
First, there are the **commercial web scanners**, of which HP WebInspect and Rational AppScan are the two most popular. These are "all-in-one", "fire-and-forget" tools that you download and install on an internal Wi... |
What is the "best" canonical implementation of Equals() for reference types? |
|c#|.net|equals| |
Implementing Equals() for reference types is harder than it seems. My current canonical implementation goes like this:
public bool Equals( MyClass obj )
{
// If both refer to the same reference they are equal.
if( ReferenceEquals( obj, this ) )
return true;
// If the othe... |
A Csv file with Quoted fields, is not a Csv file. Far more things (Excel) output without quotes rather than with quotes when you select "Csv" in a save as.
IF you want one you can use, free, or commit to, here's mine that also does IDataReader/Record. It also uses DataTable to define/convert/enforce columns and DbNu... |
IMO most common usage is to pass reference to pointer variable
void test(int ** var)
{
...
}
int *foo = ...
test(&foo);
You can create multidimensional jagged array using double pointers:
int ** array = new *int[2];
array[0] = new int[2];
array[1] = new int... |
Either of the two samples below will work:
The second is an add on to [lassevk's][1] answer.
SELECT
MAX(date_columns) AS max_date
FROM
(
(
SELECT
date1 AS date_columns
FROM
data_table
)
UNION
(
SELECT
date2 AS date... |
I just found it out myself: If you add a trailing backslash to the *Project Folder* setting e.g. changing it from `C:\dev` to `C:\dev\`, the `VSMacros80` directory will no longer be created.
I tested it with Visual Studio 2005 SP1, with all windows updates installed. |
HTML parser in Python |
|python|import| |
Using the Python Documentation I found the [HTML parser][1] but I have no idea which library to import to use it, how do I find this out (bearing in mind it doesn't say on the page).
[1]: http://docs.python.org/lib/module-HTMLParser.html |
How to remove Firefox's dotted outline on BUTTONS as well as links? |