instruction stringlengths 0 30k ⌀ |
|---|
Is there any good oracle podcasts around? The only ones I've found hard been produced by oracle corp, and as such are little more than advertising pieces pushing their technology of the moment. |
|oracle-database|podcast| |
Seems to me that the logical—and more extensible—approach is to take a page from the `asp:` list controls:
<uc1:mycontrol runat="server">
<uc1:myintparam>1</uc1:myintparam>
<uc1:myintparam>2</uc1:myintparam>
<uc1:myintparam>3</uc1:myintparam>
</uc1:mycontrol> |
here is another potential way:
<pre>
-> saveFd = open("myfile.txt",0x102, 0777 )
-> oldFd = ioGlobalStdGet(1)
-> ioGlobalStdSet(1, saveFd)
-> runmytest()
...
-> ioGlobalStdSet(1, oldFd)
</pre>
this will redirect **all** stdout activity to the file you opened.
You might have to play around with the file name... |
[From wikipedia:][1]
> The Semantic Web is an evolving
> extension of the World Wide Web in
> which the semantics of information and
> services on the web is defined, making
> it possible for the web to understand
> and satisfy the requests of people and
> machines to use the web content. It
> derives from Wo... |
Storing just the hash is a good idea, it has served in the password world for decades.
Adding a salt seems like a fair idea, and indeed makes a brute force attack that much harder for the attacker. But that salt is going to cost you a lot of extra effort when you actually check to ensure that a new CC is unique: Yo... |
**Almost a good idea.**
Storing just the hash is a good idea, it has served in the password world for decades.
Adding a salt *seems* like a fair idea, and indeed makes a brute force attack that much harder for the attacker. But that salt is going to cost you a lot of extra effort when you actually check to ensur... |
**Almost a good idea.**
Storing just the hash is a good idea, it has served in the password world for decades.
Adding a salt *seems* like a fair idea, and indeed makes a brute force attack that much harder for the attacker. But that salt is going to cost you a lot of extra effort when you actually check to ensur... |
From within XSLT I think this will not be possible.
You could pass in all the XML file names to an <xsl:param name="files" /> as a comma separated list and loop over it using recursion and substring-before() and substring-after(). |
MySQL is a [relational database management system][1] while PostgreSQL is an [**object**-relational database management system][2]. PostgreSQL is suited well for C++ or Java developers, as it gives us more control over how queries are written. ORDBMS also gives us Objects and User Defined Types. The SQL queries themsel... |
I found the following link which suggested to have two separate IP addresses so that both could listen on port 80:
[http://www.prismix.com/blog/2006/06/running_apache_and_iis_6_toget.cfm][1]
There was a caveat that you had to make a change in IIS because of socket pooling. Here are the instructions based on the li... |
We never found a solution for the same problems with toad. In the end most people used Enterprise Manager to get around the issues. Sorry I couldn't be more help. |
I'm a big fan of the rails plugin called "BrainBuster". It's a logic-based CAPTCHA which I find preferable over the "type these words" things, because it is annoying to decipher the words sometimes... It's simple to look at "What is 10 minus 3?" and come up with the answer. YMMV:
http://opensource.thinkrelevance.com... |
You could use Q objects for #1:
# Blogs who have either hockey or django tags.
from django.db.models import Q
Blog.objects.filter(
Q(tags__name__iexact='hockey') | Q(tags__name__iexact='django')
)
Unions and intersections, I believe, are a bit outside the scope of the Django ... |
You will need to use different IP addresses. The server, whether Apache or IIS, grabs the traffic based on the IP and Port, which ever they are bound to listen to. Once it starts listening, then it uses the headers, such as the server name to filter and determine what site is being accessed. You can't do it will simp... |
Do a select, if you get a result, update it, if not, create it. |
I think the bigger problem is that you're hiding the type of collection so even if you use a collection that doesn't move elements you may change your mind in the future. Externally that's not visible so I'd say it's not a good idea to do this. |
The [developer versions](http://www.adobe.com/support/coldfusion/downloads.html#proddownloads) of ColdFusion are free so you can install the latest version, install [debugging tools](http://www.adobe.com/support/coldfusion/downloads.html#cfdevtools) into eclipse and run debugging for free.
The other option, if you p... |
Another way to go (maybe not fastest) is to determine if ln(x) / ln(2) is a whole number. |
Did you consider compressing your data ?
As stated above, we lack information about the exact nature of your problem, but compressing the data to transport them could help. |
I'm using 6.9.3.113 (April 29, 2008) of the debugging tools, and I don't get any problems on Vista. If I try running
logger notepad
it works OK (even as a non-admin). The first thing I would check is that if you're running the x64 version of Vista, you'll need to use the [64bit version of the debugging tools][... |
|sql-server|performance|ado.net| |
What platform are you targeting ?. There is [Microsoft Speech APIs](http://www.microsoft.com/speech/speech2007/default.mspx) that you can use if its for windows. |
Dropping a group of tables in SQL Server |
|sql|mssql|db| |
Is there a simple way to drop a group of interrelated tables in SQL Server? Ideally I'd like to avoid having to worry about what order they're being dropped in since I know the entire group will be gone by the end of the process. |
|database|sql|mssql| |
|sql|sql-server|database| |
Does running a SQL Server 2005 database in compatibility level 80 have a negative impact on performance? |
|mssql|databases| |
Our software must be able to run on SQL Server 2000 and 2005. To simplify development, we're running our SQL Server 2005 databases in compatibility level 80. However, database performance seems slower on SQL 2005 than on SQL 2000 in some cases (we have not confirmed this using benchmarks yet). Would upgrading the co... |
|database|mssql| |
|sql-server|database| |
Is "include file" in shtml the best method to keep non-database changing data |
|web-page|shtml|inclue-file| |
We have a website that uses '#include file' command to roll info into some web pages. The authors can access the text files to update things like the occasional class or contact information for the department.
My question is this, I don't *see* anyone using this method and wonder if it is a good idea to keep using ... |
|html|shtml| |
|html|shtml|inclue-file| |
|html|shtml| |
Is there a way to create a MSSQL function to "join" multiple rows from a subquery into a single delimited field? |
|mssql|databases| |
|database|mssql| |
|sql-server|database| |
To illustrate, assume that I have two tables as follows:
VehicleID Name
1 Chuck
2 Larry
LocationID VehicleID City
1 1 New York
2 1 Seattle
3 1 Vancouver
4 2 Los Angeles
5 2 ... |
Right click on "Web sites" in IIS manager. Choose Properties->Home directory->Configuration and you'll see "Cache options" tab.
The trick is to click on "Web sites" as opposed to proceeding to specific web site. |
I recommended trying on of the free distributed version control systems. Most of them are very easy to setup on your personal PC and come with good documentation.
Here are my favourites
1. Bazaar
2. Mercurial
3. Git (only for *nix based systems as far as I know)
See a list here:
http://en.wikipedia.org/w... |
On a very basic level those are just different APIs for the different data sources (i.e. databases). OLE DB is newer and arguably better.
1. <http://en.wikipedia.org/wiki/OLE_DB>
1. <http://en.wikipedia.org/wiki/Open_Database_Connectivity>
I.e. you could connect to the same database using an ODBC driver or OLE D... |
This is a pretty broad question, but here goes:
- If the site is primarily about the content, meaning it's not so much a service you use as it's a publication you read, then I'd try to avoid publishing two sites wherever possible. Concentrate on simple presentation using mature technologies that mobile browsers ca... |
Since you are in a MS shop, I would suggest [PowerShell][1] as a decent scripting language to learn. It plays well with C#.
I'm a big fan of Ruby too.
[1]: http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx |
Check out Subversion (SVN) to start. As suggested in other posts, there's an excellent free [ebook][1] that not only covers how to use SVN but is an excellent start on the concepts.
For an easy to setup server, check out the free server from [VisualSVN][2].
If you use Visual Studio, you can use their add-in (cos... |
I think a good solution as hinted to above, would be to store a hash value of say Card Number, Expiration date, and name. That way you can still do quick comparisons... |
If you mean C# code to do this:
result = 25 + (36 / 60) + (55.57 / 60)
First you'll need to parse the expression with Regex or some other mechanism and split it into the individual parts. Then:
String hour = "25";
String minute = "36";
String second = "55.57";
Double result = (hour) + (minut... |
Do an UPSERT:
<pre>
UPDATE MyTable SET FieldA=@FieldA WHERE Key=@Key
IF @@ROWCOUNT = 0
INSERT INTO MyTable (FieldA) VALUES (@FieldA)
</pre>
http://en.wikipedia.org/wiki/Upsert |
At [this Blogpost][1] is a working example of removing the code behind.
The only problem I'm stuck with is that it is not able to set namespaces on the class.
[1]: http://www.squaredroot.com/post/2008/01/MVC-Strongly-Type-ViewPages-Without-A-Code-Behind.aspx "blog post" |
I don't work with embedded Ruby too much. But how about using `p` (which invokes `inspect`) instead of `<%=` which might be doing something like `print` or `puts`. `p` always prints the string as if it were code wrapped in double quotes:
>> p "String ' \" String"
"String ' \" String"
# => nil
... |
I have also come across some people who use the [Silverfrost Fortran compiler][1]. It covers Fortran 77,90 and 95 and is for Windows only. The website mentions .NET a lot. Never used it myself beyond compiling hello world - the free ['personal'][2] version adds an annoying nag screen to your executables. I guess th... |
Doing an if exists ... else ... involves doing two requests minimum (one to check, one to take action). The following approach requires only one where the record exists, two if an insert is required:
DECLARE @RowExists bit
SET @RowExists = 0
UPDATE MyTable SET DataField1 = 'xxx', @RowExists = 1 WHERE K... |
Here's one way using Framework 2.0. You can make this cleaner by using regular expressions rather than a simple string test. You can also try compiling your XPath expressions if you need to squeeze more for performance.
static void Main(string[] args)
{
string[] myFiles = { @"C:\temp\XMLFile1.xml... |
I usually do what several of the other posters have said with regard to checking for it existing first and then doing whatever the correct path is. One thing you should remember when doing this is that the execution plan cached by sql could be nonoptimal for one path or the other. I believe the best way to do this is... |
You absolutely should throw an exception from a constructor if you're unable to create a valid object. This allows you to provide proper invariants in your class.
In practice, you may have to be very careful. Remember that in C++, the destructor will not be called, so if you throw after allocating your resources, ... |
If you're going from 80 to 90, the differences are minimal. Going from 65 to 70+ can cause severe impact (NULLs are stored differently).
Implications - your SPs can return different results than you'd expect
Likely to break: functions, SPs
Data should survive; nothing in there should affect things.
Moving from... |
I would look at Event.ENTER_FRAME and TimerEvent.TIMER listeners, make sure they're nullified before you remove the object. |
Read <a href="http://www.alistapart.com/articles/holygrail">this ALA article</a>. |
Use <a href="http://matthewjamestaylor.com/blog/perfect-3-column.html">this technique</a>, and simply specify a fixed width for the centre column. |
Use <a href="http://matthewjamestaylor.com/blog/perfect-3-column.htm">this technique</a>, and simply specify a fixed width for the centre column. |
Semantically, the prefix operators ++ and -- in a language like c++ or whatever are equivalent incf/decf in common lisp. If you realize this and, like your (incorrect) macro, are actually looking for a syntactic change then you've already been shown how to do it with backticks like `(incf ,x). You've even been shown ... |
I say it's not a matter of data size, but of data type. If your data is *structured*, use a relational database. If your data is *semi-structured*, use XML or - if the data amounts really grow too large - an XML database. |
I wouldn't use XML for storing RSS items. A feed reader makes constant updates as it receives data.
With XML, you need to load the data from file first, parse it, then store it for easy search/retrieval/update. Sounds like a database...
Also, what happens if your application crashes? if you use XML, what state... |
Collecting profiles of code execution get you 50% of the way there. The other 50% deals with analyzing these reports.
Further, if you use GCC or VisualC++, you can use "profile guided optimization" where the compiler will take info from previous executions and reschedule instructions to make the CPU happier. |
My favorite technique is to use a good profiler. Without a good profile telling you where the bottleneck lies, no tricks and techniques are going to help you. |
- First and foremost, use a better/faster algorithm. There is no point optimizing code that is slow by design.
- When optimizing for speed, trade memory for speed: lookup tables of precomputed values, binary trees, write faster custom implementation of system calls...
- When trading speed for memory: use in-memory... |
Bandwith USRP2 |
|gnuradio| |
What is the maximum bandwith I can handle with an USRP2? |
USRP2 A/D samples at 100MS/s I & Q is decimated to 25MS/s complex. We use 16-bit I & Q.
That works out to ~800Mbit/s on the gigabit ethernet, which the USRP2
can sustain, no problem. |
most common techniques I encountered are:
- loop unrolling
- loop optimization for better cache prefetch
(i.e. do N operations in M cycles instead of NxM singular operations)
- data aligning
- inline functions
- hand-crafted asm snippets |
most common techniques I encountered are:
- loop unrolling
- loop optimization for better cache prefetch
(i.e. do N operations in M cycles instead of NxM singular operations)
- data aligning
- inline functions
- hand-crafted asm snippets
As for general recommendations, most of them are already... |
And here a Delphi version:
procedure LoadFontFromDll(const DllName, FontName: PWideChar);
var
DllHandle: HMODULE;
ResHandle: HRSRC;
ResSize, NbFontAdded: Cardinal;
ResAddr: HGLOBAL;
begin
DllHandle := LoadLibrary(DllName);
if DllHandle = 0 then
RaiseLa... |
Gnuradio Number of A/D Converters |
There is also the [NAG Fortran Compiler][1] - works on Linux, Windows and Mac. It's commercial but free trials are available. It adheres closely to the Fortran standards and comes highly recommended by many people I work with.
[1]: http://www.nag.co.uk/nagware/np/NP_trial.asp |
There is also the [NAG Fortran Compiler][1] - works on Linux, Windows and Mac. It's commercial but free trials are available. It adheres closely to the Fortran standards and comes highly recommended by many people I work with.
It covers Fortran 77,90,95 and most of the 2003 standard. The Linux and Mac OS versions... |
If you use ADO.NET, the DataAdapter handles this.
If you want to handle it yourself, this is the way:
Make sure there is a primary key constraint on your key column.
Then you:
1. Do the update
2. If the update fails because a record with the key already exists, do the insert. If the update does not fail, ... |
Though not perfect, the best I have found for this is AutoIt <http://www.autoitscript.com/autoit3>
"AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting. It uses a combination of simulated keystrokes, mouse movement and window/control manipulation in ord... |
It looks like you already mentioned this in one of your comments, but I think it's your best answer. The JavaMail library contains RFC822 Date header parsing code in `javax.mail.internet.MailDateFormat`. Unfortunately it doesn't expose the TimeZone parsing directly, so you will need to copy the necessary code directl... |
If you mean C# code to do this:
result = 25 + (36 / 60) + (55.57 / 3600)
First you'll need to parse the expression with Regex or some other mechanism and split it into the individual parts. Then:
String hour = "25";
String minute = "36";
String second = "55.57";
Double result = (hour) + (min... |
I'm new to programming on a mac, and I miss being able to launch gui programs from bash...so I have to create functions like this:
function macvim
{
/Applications/MacVim.app/Contents/MacOS/Vim "$@" -gp &
} |
@Cory R. King
SHA 1 isn't broken, per say. What the article shows is that it's possible to generate 2 strings which have the same hash value in less than brute force time. You still aren't able to generate a string that equates to a SPECIFIC hash in a reasonable amount of time. There is a big difference between th... |
Sha1 *broken* is not a problem here.
All broken means is that it's possible to calculate collisions (2 data sets that have the same sha1) more easily than you would expect.
This might be a problem for accepting arbitrary files based on their sha1 but it has no relevence for an internal hashing application.
|
What is the value of your selected variable?
Table.SetLogOnInfo ConnName, DBName, user, pass<br />
**DomainName = selected**<br />
'Set parameter Fields<br />
If it is not a string, then that might be the problem. Crystal expects a string variable and when it doesn't receive what it expects, it throws errors.
... |
You can relatively easily create your own tuple classes, the only thing that potentially gets messy is your equality and hashcode overrides (essential if you're going to use them in dictionaries).
It should be noted that .Net's own `KeyValuePair<TKey,TValue>` struct has [relatively slow equality and hashcode methods... |
You might find XSD4J helpful:
http://dynvocation.selfip.net/xsd4j/
|
If you're about to set up a fresh instance of subversion and continuous integration, starting green from a VSS background, these two free packages will likely save you days (or weeks) of time:
- [Visual SVN Server][1]
Sets up everything needed for a subversion server, including Windows AD auth and an admin GUI. ... |
The EMF XSD model may be helpful:
http://www.eclipse.org/modeling/mdt/?project=xsd |
Are there any online user group meetings? |
|usergroups| |
I must admit that I am incredibly jealous of those developers who happen to live near active user groups (e.g. the ALT.NET guys in Austin). I often read blog posts and listen to podcasts that reference these in-person meetings and find myself wishing that I could sit in and participate as well. But it just isn't real... |
Which language/regexp library? I thought you question was around ASP.NET in which case you can see the "negative lookhead" section of this article:
http://msdn.microsoft.com/en-us/library/ms972966.aspx
Strictly speaking negation of a regular expression, still defines a regular language but there are very few librar... |
IMG SRC tags and JavaScript |
|asp.net|javascript|image| |
Compile the pages at compile time. See Mike Hadlow's post here:
[http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html][1]
[1]: http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html |