instruction stringlengths 0 30k ⌀ |
|---|
With a bit of luck your graphic adapter already has a analog video output. You could hook up a dvd recorder and just digitze the video signal on a stand alone hardware box.
That won't give you 1920x1080 though.
If you really need to get captures higher than dvd resolution you need professional (and *incredible* ... |
Make part of your product an online component which requires connection and authentication. Here are some examples:
- Online Games
- Virus Protection
- Spam Protection
- Laptop tracking software
This paradigm only goes so far though and can turn some consumers off.
|
I realize this isn't exactly answering your question but if you want to use Linux, maybe you want to look into using [Mono][1]. .Net on Linux.
[1]: http://www.mono-project.com/Main_Page |
How about something as simple as creating the file from sqlplus...
set echo off heading off feedback off colsep ,;
spool file.csv;
select owner, table_name
from all_tables;
spool off; |
This really is an OT question. In any case, there is nothing easier than **contacting your local MS distributor**. As stackoverflow is by nature an international site, asking a question like that, where the answer is most likely to vary by location (**MS license prices really are highly variable and country-specific**)... |
Best way to stamp an image with another image to create a watermark in ASP.NET? |
|asp.net|graphics|watermark|stamp| |
Anyone know? Want to be able to on the fly stamp an image with another image as a watermark, also to do large batches. Any type of existing library or a technique you know of would be great. |
GitHub now has a feature to [import from an SVN repository][1]. I never tried it, though.
[1]: http://github.com/blog/156-subversion-importing |
This will answer your question:
http://www.codeproject.com/KB/GDI-plus/watermark.aspx
Good luck! |
If your interested in protecting software that you intend to sell to consumers I would recommend any of a variety of license key generating libraries (Google search on license key generation). Usually the user has to give you some sort of seed like their email address or name and they get back the registration code.
... |
Mount TrueCrypt volume on login in Ubuntu |
|ubuntu|authentication|truecrypt| |
Is it possible to automount a TrueCrypt volume when logging in to Ubuntu 8.04? It's already storing the wireless network keys using the Seahorse password manager. Could TrueCrypt be made to fetch its volume password from the same keyring? Currently this would seem like the most convenient way to store my source code on... |
Or simply just set up a gmail account and mail it to yourself :) Unless you're a bit paranoid about google knowing about your stuff since you said research. It doesn't help you much with structure and stuff but it's free, big storage and off-site so quite safe. |
I've eventually found the answer to this. The problem is that the FLVPlayback component is now using the stage.fullScreenSourceRect property to enter a hardware-scaled full screen mode. When it does that, it stretches the rendered area given by stage.fullScreenSourceRect to fill the screen, rather than increasing the... |
Date to timestamp (PHP)? |
|php| |
How do I get timestamp from,for example : 22-09-2008 |
Aye, in my opinion its a joke. God knows why they've left it like this since 1.0.
On my first ever CF project I assumed it was available and spent an age implementing a read-write one cause i'd put it in the agreed spec.... :(
I learnt a very important lesson that day : Don't expect anything from the FF to be in CF... |
Aye, in my opinion its a joke. God knows why they've left it like this since 1.0.
On my first ever CF project I assumed it was available and spent an age implementing a read-write one cause i'd put it in the agreed spec.... :(
I learnt a very important lesson that day : Don't expect anything from the FF to be in CF... |
Well, certainly
frames / sec = 1 / (sec / frame)
But, as you point out, there's a lot of variation in the time it takes to render a single frame, and from a UI perspective updating the fps value at the frame rate is not usable at all (unless the number is very stable).
What you want is probably a moving a... |
How are you verifying the results?
If you need to query the DB (and it sounds like you probably do) for results then I agree with Kris K, except I would endeavor to rebuild the DB after every test case, not just every suite.
This helps avoid dangerous [interacting tests][1]
As for tools, I would recommend [Cp... |
The best you can do in c# is:
Bitmap newImage = new Bitmap(newWidth, newHeight);
using (Graphics gr = Graphics.FromImage(newImage))
{
gr.SmoothingMode = SmoothingMode.AntiAlias;
gr.InterpolationMode = InterpolationMode.HighQualityBicubic;
gr.PixelOffsetMode = PixelOffsetMode.... |
As [rcar][1] says, you can't without losing some quality, the best you can do in c# is:
Bitmap newImage = new Bitmap(newWidth, newHeight);
using (Graphics gr = Graphics.FromImage(newImage))
{
gr.SmoothingMode = SmoothingMode.AntiAlias;
gr.InterpolationMode = InterpolationMode.HighQual... |
I have had good luck with [ImageMagick][1]. It has an [API for .NET][2] too.
[1]: http://www.imagemagick.org/script/index.php
[2]: http://midimick.com/magicknet/ |
My personal favourite undefined behaviour is that if a non-empty source file doesn't end in a newline, behaviour is undefined.
I suspect it's true though that no compiler I will ever see has treated a source file differently according to whether or not it is newline terminated, other than to emit a warning. So it's ... |
My personal favourite undefined behaviour is that if a non-empty source file doesn't end in a newline, behaviour is undefined.
I suspect it's true though that no compiler I will ever see has treated a source file differently according to whether or not it is newline terminated, other than to emit a warning. So it's ... |
|javascript|css|browser|cross-browser|client-side| |
Grails is written for Groovy, not Java. AppFuse merely reduces the setup time required to get any number of Webapp frameworks started, rather than promoting any one of them.
I'd suggest Spring MVC. After following the well-written tutorials, you'll have a simple, easy model auto-wired (with no XML configuration!) in... |
If you want to manage rights to an internet facing git repo, I suggest you look at [Gitosis][1] rather than whipping up your own. Identity is provided by private/public key pairs.
Read me [pimping it here][2], too.
[1]: http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
[2]: htt... |
I'm a big fan of using [TableLayout][1] instead of GridBagLayout. Everything just makes sense, whereas every time I try to use GridBagLayout it crushes my soul.
[1]: https://tablelayout.dev.java.net/ |
You cant get a decimal value by dividing one integer with another, you'll allways get an integer that way (result truncated to integer). You need at least one value to be a decimal number. |
Simple bash script
#!/bin/bash
while [true]; do
if ! pidof -x script.php;
then
php script.php &
fi
done |
You could look at integrating the Enterprise Library's Exception Handling component for one idea of how to handle unhandled exceptions.
If this is for ASP.Net applications, there is a function in the Global.asax called, "Application_Error" that gets called in most cases with catastrophic failure being the other case... |
Check http://dev.rubyonrails.org/ticket/4403 which shows a workaround. Could that be the problem you are encountering? |
"HOME" is the only variable supported by the IDE. When deploying a custom application using the Netbeans Platform, "APPNAME" is also supported out of the box. |
In this case, I'm not sure if you can easily refactor the class to introduce polymorphism as Bradley suggests, since it's a Cocoa-native class. Instead, the Objective-C way to do it is to use a class category to add an `elementNameCode` method to NSSting:
typedef enum {
companyName = 0... |
Game Engine Scripting Languages |
|lua|scripting-language|ogre3d|squirrel| |
I am trying to build out a useful 3d game engine out of the Ogre3d rendering engine for mocking up some of the ideas i have come up with and have come to a bit of a crossroads. There are a number of scripting languages that are available and i was wondering if there were one or two that were vetted and had a proper fol... |
I'm betting you're a student, so see if you can make this work: Do it word by word, and use bit shifts. Think up the most efficient solution. Beware of the sign bit. |
What is the status of POSIX asynchronous I/O (AIO)? |
|linux|asynchronous|posix|bsd|aio| |
There are pages scattered around the web that describe POSIX AIO facilities in varying amounts of detail. None of them are terribly recent. It's not clear what, exactly, they're describing. For example, the "official" (?) [web site for Linux kernel asynchronous I/O support here][1] says that sockets don't work, but ... |
You need to pass in an IDictionary when you ask the container for the instance.
You'd use this Resolve overload of the IWindsorContainer:
T Resolve<T>(IDictionary arguments)
or the non generic one:
object Resolve(Type service, IDictionary arguments)
So, for example: (assuming container is an IWin... |
I doubt there is better solution than calculating the distance between the red one and every blue one and sorting these by length.
Regarding sorting, usually QuickSort is hard to beat in performance (an optimized one, that cuts off recursion if size goes below 7 items and switches to something like InsertionSort, ma... |
My personal favourite undefined behaviour is that if a non-empty source file doesn't end in a newline, behaviour is undefined.
I suspect it's true though that no compiler I will ever see has treated a source file differently according to whether or not it is newline terminated, other than to emit a warning. So it's ... |
My personal favourite undefined behaviour is that if a non-empty source file doesn't end in a newline, behaviour is undefined.
I suspect it's true though that no compiler I will ever see has treated a source file differently according to whether or not it is newline terminated, other than to emit a warning. So it's ... |
Should be enabled by default. There are some situations where wrong permissions on the MySQL lib folder cause InnoDB to bark. Check your MySQL error log for permission errors. |
It all depends on what you plan to do with the array. If all you're doing is creating arrays of simple data types and doing I/O, the [array][1] module will do just fine.
If, on the other hand, you want to do any kind of numerical calculations, the array module doesn't provide any help with that. NumPy (and SciPy) gi... |
It all depends on what you plan to do with the array. If all you're doing is creating arrays of simple data types and doing I/O, the [array][1] module will do just fine.
If, on the other hand, you want to do any kind of numerical calculations, the array module doesn't provide any help with that. [NumPy][2] (and [Sci... |
I do have the following innodb options in my.ini. It is a very minimal configuration, so dont' use this values if you would like mysql to have a good performance. Please restart mysql after a change of my.ini.
#*** INNODB Specific options ***
innodb_data_home_dir="C:/mysqldata/"
#skip-innodb
innod... |
A major one is down time for migrations... users will not expect the application to be down, ever, but realistically it will have to be down for major upgrades. When doing this with a desktop application, the user (or end-user systems admin) is in control of when upgrades happen; with an online app, they're not.
For... |
What is the best way to improve ASP.NET/C# compilation speed? |
|c#|asp.net|.net| |
What hardware/tools/add-in are you using to improve ASP.NET compilation and first execution speed? We are looking at solid state hard drives to speed things up, but the prices are really high right now.
I have two 7200rpm harddrives in RAID 0 right now and I'm not satisfied with the performance anymore.
So my ma... |
Various professional products support full HD capture:
http://www.decklink.com/products/hd/
http://www.aja.com/
There are others. Capturing the full, uncompressed digital or analog stream is a pretty heavy requirement.
-Adam |
The reason this is more common in PHP than other similar languages has to do with PHP's history. Early versions of PHP had the "register_globals" setting on as a default (in fact, it may not have even been a setting in really early versions). Register_globals tells PHP to define global variables according to the query ... |
Check out http://www.bsalsa.com/downloads.html. This is a series of Delphi components (free source code, you can see an example of this here: http://staruml.cvs.sourceforge.net/staruml/staruml/staruml/components/plastic-components/src/embeddedwb.pas?revision=1.1&view=markup - it's the starUML projects code) and they ha... |
VisualStudio using BootCamp/VMWare on OS X |
|.net|visual-studio|macos|configuration|vmware| |
Just bought a 2.4GHz Intel Core 2 Duo iMac with 2GB of memory and a 320GB hard drive. I plan on doing some .net development on it using a BootCamp/VMWare combo since VMWare grants access to the bootcamp partition.
What is a recommended size for a BootCamp partition and how much memory should I give VMWare? Any pitfa... |
Given a little time your software will always be cracked. You can search for cracked versions of any well known piece of software in order to confirm this. But it is still well worth adding some form of protection to your software.
Remember that dishonest people will never pay for your software and always find/use ... |
In this case, I'm not sure if you can easily refactor the class to introduce polymorphism as Bradley suggests, since it's a Cocoa-native class. Instead, the Objective-C way to do it is to use a class category to add an `elementNameCode` method to NSSting:
typedef enum {
companyName = 0... |
In this case, I'm not sure if you can easily refactor the class to introduce polymorphism as Bradley suggests, since it's a Cocoa-native class. Instead, the Objective-C way to do it is to use a class category to add an `elementNameCode` method to NSSting:
typedef enum {
companyName = 0... |
Hilite line, choose 'Surround with' try/catch. That avoids the copying pasting you mentioned. |
Hilite each line, one at a time, 'Surround with' try/catch. That avoids the copying pasting you mentioned |
I know it isnt scripting, but have you tried ShareEnum? http://technet.microsoft.com/en-us/sysinternals/bb897442.aspx and then export it out? You can also compare to older runs. I don't think there is a cmd line interface (which sucks), but it will get you the info you need |
As part of your schema rebuild, why not drop and recreate the sequence? |
Instead of doing a lookup just try inserting the value. If the table is designed to refuse duplicate records, i.e. it has a primary key or unique index, then the insert will error. Simply trap for the insert error and if it is received then grab the id as you normally would.
I agree that the lookup should not be tak... |
I doubt there is better solution than calculating the distance between the red one and every blue one and sorting these by length.
Regarding sorting, usually QuickSort is hard to beat in performance (an optimized one, that cuts off recursion if size goes below 7 items and switches to something like InsertionSort, ma... |
SVN has a feature called "externals" which basically works the same way a symbolic UNIX link works (you point a certain directory that's one place in your repository to some other directory elsewhere in your repository).
For further info on how to setup externals, see this:
http://svnbook.red-bean.com/en/1.0/ch07s0... |
Assuming you're the administrator of the wiki and are willing display this on mouseover instead of on click, you don't need javascript at all -- you can use straight CSS. Here's an example of the styles and markup:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"... |
SELECT sys.objects.name as table_name, sys.columns.name as column_name
FROM sys.columns JOIN sys.objects ON sys.columns.object_id=sys.objects.object_id
WHERE
sys.columns.is_identity=1
AND
sys.objects.type in (N'U') |
Elements work if you want them to have access to the same data that the calling view has access to.
If you want your embedded view to have access to its own set of data, you might want to use something like [requestAction()][1]. This allows you to embed a full-fledged view that would otherwise be stand-alone.
... |
Skipping the reasoning of the task itself, the only algorithm that
- will give you an ID not in the table
- that will be used to insert a new line in the table
- will result in a table still having random unique IDs
is generating a random number and then checking if it's already used |
Depends on what that function does, it would fall 2nd on your list if it were doing logic with objects in memory. Further down the list if it included disk/network access. |
Compared to a simple memory access - slightly more, negligible really.
Compared to every thing else listed - orders of magnitude less.
This should hold true for just about any language on any OS. |
I personally don't like it. I think email allows you to take a little time to compose your thoughts.
IM seems to work for other people though. Whatever works!
|
You can change a system property using System.setProperty(), but whether or not this has an effect really depends on that system property. Some properties are read statically, i.e. at class loading time, and others might cache the value in some object field. |
That is to say, viewstate is loaded between the OnInit() and OnLoad() events of the page.
My favorite article on dealing with viewstate, which answers every question I have every time: http://weblogs.asp.net/infinitiesloop/archive/2006/08/03/Truly-Understanding-Viewstate.aspx |
Check out the Limp plug-in:
http://www.vim.org/scripts/script.php?script_id=2219
|
You cannot get the password. You need to use Impersonation to pass on the identity to the server that you are trying to connect to. |
It seems like you've answered your own question. If the gadgets send an asynch request and it times out, don't update them. If enough of them do so, display the "page is offline" message. |
You won't be able to use their password to a basic login unless the user provides it to your application. You'll have to do some sort impersonation or delegate authority based on the locally logged in user. |
Have you tried launching Eclipse with the -clean option? This may resolve the issue if it's somehow related to a configuration problem or the registry cache. |
Would you require your HTML developers to use DreamWeaver?
All good WPF coders should know XAML by hand and only use tools like Blend for quick mockups, for doing animations or tweening, or for doing complicated gradients, etc.
Coding XAML by hand is a requirement for good WPF developers - Blend is a tool, not ... |
This query seems to do the trick:
SELECT
sys.objects.name AS table_name,
sys.columns.name AS column_name
FROM sys.columns JOIN sys.objects
ON sys.columns.object_id=sys.objects.object_id
WHERE
sys.columns.is_identity=1
AND
sys.objects.type in (N'... |
You are looking for the "svn:externals" property. See [this](http://svnbook.red-bean.com/en/1.5/svn.advanced.externals.html) section of svnbook:
Under the project that you want to use the shared project in, and then set a property on that directory named "svn:externals". This property contains the name of the dire... |
It's really simple to write your own date API which sits on top of the raw Java classes, Date and Calendar. Basically both date and Calendar suffer from the fact that they are trying to cram two concepts into one class:
1. Date (i.e. Year-Month-Day)
2. Instant (i.e. currentTimeMillis)
When you understand this, i... |
I think you must use a number, and so, it seems does Allen Browne, Access MVP, in a response dated 17-Apr-07 10:16:35.
<http://www.eggheadcafe.com/software/aspnet/29743570/yesno-data-types.aspx>
|
Desperately Need a Regex |
|regex| |
I am trying to validate user id's matching the example:
smith.jack or smith.jack.s
In other words, any number of non-whitespace characters (except dot), followed by exactly one dot, followed by any number of non-whitespace characters (except dot), optionally followed by exactly one dot followed by any number ... |
When would you use a User Control over a Web Control? |
|controls|client-side| |
Can someone explain when to use each of these? They almost seem interchangable in many cases. The WebControl gets added to the toolbar, where the user control (ascx) can not. The webControl does not get rendered in the Designer where the user control does. Beyond that, how do you choose which is the right one to us... |
|controls|client-side|asp.net| |
|asp.net|controls|web-user-controls|client-side| |