instruction
stringlengths
0
30k
Where to find Java 6 JSSE/JCE Source Code?
|java|source|jce|jsse|
Where can I download the JSSE and JCE source code for the latest release of Java? The source build available at https://jdk6.dev.java.net/ does not include the javax.crypto (JCE) packages nor the com.sun.net.ssl.internal (JSSE) packages. Not being able to debug these classes makes solving SSL issues incredibly diff...
|java|source-code|jsse|jce|
You could use a case to sort by: order by case when title like '%text%' then 0 else 1 end
`netstat -b -a` lists the ports in use and gives you the executable that's using each one. I believe you need to be in the administrator group to do this, and I don't know what security implications there are on Vista. I usually add `-n` as well to make it a little faster, but adding `-b` can make it quite slow.
`netstat -b -a` lists the ports in use and gives you the executable that's using each one. I believe you need to be in the administrator group to do this, and I don't know what security implications there are on Vista. I usually add `-n` as well to make it a little faster, but adding `-b` can make it quite slow. ...
I'm assuming that you also want Saturday and Sunday to shift forward to the following Monday. If that is not the case, take the 1 out of (1,2,3,4,5) and remove the last when clause. case<br> --Sunday thru Thursday are shifted forward 1 day<br> when datepart(weekday, [Date]) in (1,2,3,4,5) then dateadd(day, 1...
I'm assuming that you also want Saturday and Sunday to shift forward to the following Monday. If that is not the case, take the 1 out of (1,2,3,4,5) and remove the last when clause. case<br> --Sunday thru Thursday are shifted forward 1 day<br> when datepart(weekday, [Date]) in (1,2,3,4,5) then dateadd(day, 1...
I'm assuming that you also want Saturday and Sunday to shift forward to the following Monday. If that is not the case, take the 1 out of (1,2,3,4,5) and remove the last when clause. >case<br> > --Sunday thru Thursday are shifted forward 1 day<br> > when datepart(weekday, [Date]) in (1,2,3,4,5) then dateadd(day...
I'm assuming that you also want Saturday and Sunday to shift forward to the following Monday. If that is not the case, take the 1 out of (1,2,3,4,5) and remove the last when clause. case --Sunday thru Thursday are shifted forward 1 day when datepart(weekday, [Date]) in (1,2,3,4,5) then dateadd(da...
It's more of an anti-pattern, but I've seen what I call the "Keep it all in one place" pattern. It was a large application, where all variables that were not local, for every class, EVERY class, were stored in a single class called P (for parameters). As an aside, all static variables were kept in a class called... wai...
Open the file for appending (<code>a+</code>) $file=fopen(date("Y-m-d").".txt","a+") or exit("Unable to open file!"); if ($_POST["lastname"] <> "") { fwrite($file,$_POST["lastname"]."\n"); } fclose($file);
I'm not entirely sure of your question - do you want to write data and not have it over-write the beginning of an existing file, or write new data to the start of an existing file, keeping the existing content after it? **To insert text without over-writing the beginning of the file**, you'll have to open it for app...
I'm not entirely sure of your question - do you want to write data and not have it over-write the beginning of an existing file, or write new data to the start of an existing file, keeping the existing content after it? **To insert text without over-writing the beginning of the file**, you'll have to open it for app...
I'm not entirely sure of your question - do you want to write data and not have it over-write the beginning of an existing file, or write new data to the start of an existing file, keeping the existing content after it? **To insert text without over-writing the beginning of the file**, you'll have to open it for app...
Take a look at section 6.1.3.4 of TR1, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf get is defined for both const and non-const qualified tuples and returns the appropriate reference type. If the argument to your function is a non-const tuple then get should allow you to make the necessary assi...
Take a look at section 6.1.3.4 of TR1, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf get is defined for both const and non-const qualified tuples and returns the appropriate reference type. If you change your function declaration to the following: <pre><code>template <typename... Types> void...
On my [site](http://www.bowlsk.com), I detect user agent, and for known mobile browsers I server a different stylesheet, with some larger/less necessary items left off some pages. The backend doesn't really change.
On my [site](http://www.bowlsk.com), I detect user agent, and for known mobile browsers I serve a different stylesheet, with some larger/less necessary items left off some pages. The backend doesn't really change.
profile your queries, not the obvious ones, but the complex that access different tables, views, etc and/or the ones that return many rows from different tables That will tell you exactly where you should focus
Has "do something intensive" changed at all? As Daniel has mentioned SIGPIPE is not a magic "your pipe went away" signal but rather a "nice try, you can no longer read/write that pipe" signal. If you have control of "do something intensive" you could change it to write out some "progress indicator" output as it s...
It is not possible with the default Link List web part, but there are resources describing how to extend Sharepoint server-side to add this functionality. [Share Point Links Open in New Window][1]<br/> [Changing Link Lists in Sharepoint 2007][2] [1]: http://www.andrewconnell.com/blog/articles/SharepointLinks...
Visual Source Safe (VSS) is fine for a beginner, because you won't know what you're missing. When you need something more complicated, then worry about getting some other product.
Before lambda comes into play, its anonymous delegate. That could be used for blanket code similar to ruby's blockgiven. I haven't tested how lambda works though because I want to stick with .net 2.0 so far. For example when you want to make sure you remember to close your html tag: MyHtmlWriter writer=new My...
Nope. It's not possible, at least not in all browsers. You can do something like this instead: <img src="blank.png" id="image" alt="just nothing"> <script type="text/javascript"> document.getElementById('image').src = "yourpicture.png"; </script> Your favourite JavaScript framework will p...
Are you looking for this.src ?` <img src='images/test.jpg' onmouseover="alert(this.src);">
There's a significant performance benefit to using generics -- you do away with [boxing and unboxing][1]. Compared with developing your own classes, it's a coin toss (with one side of the coin weighted more than the other). Roll your own only if you think you can out-perform the authors of the framework. [1]: ht...
Has anybody compared WCF and ZeroC ICE?
|wcf|callback|ice|
ZeroC's ICE (www.zeroc.com) looks interesting and I am interested in looking at it and comparing it to our existing software that uses WCF. In particular, our WCF app uses server callbacks (via HTTP). Anybody who's compared them? How did it go? I'm particularly interested in the performance aspect, since interoperab...
|wcf|callback|ice|
The Meta-Language (ML), of course: http://cs.anu.edu.au/student/comp8033/ml.html
Is there a quality, file-size, or other benefit to JPEG sizes being multiples of 8px or 16px?
|jpeg|compression|lossy|image|
The JPEG compression encoding process splits a given image into blocks of 8x8 pixels, working with these blocks in future lossy and lossless compressions. <a href="http://en.wikipedia.org/wiki/Jpeg#JPEG_codec_example">[source]</a> It is also mentioned that if the image is a multiple 1MCU block (defined as a Minimum ...
|image|compression|jpeg|lossy|
The JPEG compression encoding process splits a given image into blocks of 8x8 pixels, working with these blocks in future lossy and lossless compressions. <a href="http://en.wikipedia.org/wiki/Jpeg#JPEG_codec_example">[source]</a> It is also mentioned that if the image is a multiple 1MCU block (defined as a Minimum ...
I'm not entirely sure of your question - do you want to write data and not have it over-write the beginning of an existing file, or write new data to the start of an existing file, keeping the existing content after it? **To insert text without over-writing the beginning of the file**, you'll have to open it for app...
You can read and write cookies (Local Shared Object) from flash. Flash cookies are stored on your PC within a directory with the name of your domain. Those directories are located at: [Root drive]:\Documents and Settings\[username]\Application Data\Macromedia\Flash Player\#SharedObjects\ This [article][1] f...
How about this? [SourceForge.net: Berkeley DB for .NET][1] [1]: http://sourceforge.net/projects/libdb-dotnet
You could run the UNIX command "strings" on the program to see whether it has embedded sql strings: [http://en.wikipedia.org/wiki/Strings_(Unix)][1] [1]: http://en.wikipedia.org/wiki/Strings_(Unix)
MarkR's right, you're not supposed to do this. The easiest way is to call iptables from the script or to write the iptables config and 'restore' it. Still, if you want to, read the source of iptables. iptables uses matches and tables as shared objects. You can use the source or them. The Linux netfilter also has ...
MarkR's right, you're not supposed to do this. The easiest way is to call iptables from the script or to write the iptables config and 'restore' it. Still, if you want to, read the source of iptables. iptables uses matches and tables as shared objects. You can use the source or them. The Linux netfilter also has ...
Not discussing the technical value of optimize yourself your code, in a C++ code, choosing between a POD struct or a full object is mostly a point of encapsulation. Inlining the code will let the compiler optimize (or not) the constructors/accessors used. There will be no loss of performance. ##First, set a const...
I think it depends on the size of the site as to whether you need to step up from using SQLite, I've successfully used SQLite on several smaller live sites and it runs great.
Recently I had to answer very similar question and these are the reason why I decided to use IIS 7.0 and WAS instead of Windows Service infrastructure. 1. IIS 7.0 is much more robust host and it comes with numerous features that make debugging easy. Failed requests tracing, worker process recycling, process orphani...
Recently I had to answer very similar question and these are the reasons why I decided to use IIS 7.0 and WAS instead of Windows Service infrastructure. 1. IIS 7.0 is much more robust host and it comes with numerous features that make debugging easy. Failed requests tracing, worker process recycling, process orphan...
You could just make it do a log out if the user doesn't change pages after so long. That's what the Angel Learning Courseware system seems to do. The other problem you'll face, though, is that some users disable JavaScript.
How can I check to make sure a window is being actively used, and if not alert the end user that they are about to be logged out?
|javascript|session|
Working on a new back end system for my company, and one of their requests is for a window to become locked down and for the user to be sent to the login screen if they leave it idle for to long. I figure I'd do this with JavaScript by attaching listeners to clicks, mouse moves and keyups but I worry about messing w...
|javascript|session|
You could create a custom visualiser Check this out: <http://www.virtualdub.org/blog/pivot/entry.php?id=120>
Find and use some kind of template library, if possible. This will make each email a template will then be much easier to maintain than the hardcoded form.
Find and use some kind of template library, if possible. This will make each email a template which will then be much easier to maintain than the hardcoded form.
Check out the following: 1. [http://www.codeproject.com/KB/cs/Managed_BITS.aspx][1] 2. [http://www.simple-talk.com/dotnet/.net-tools/using-bits-to-upload-files-with-.net/][2] [1]: http://www.codeproject.com/KB/cs/Managed_BITS.aspx [2]: http://www.simple-talk.com/dotnet/.net-tools/using-bits-to-upload-...
The funny thing is that it depends on the language your are working with. In [Lua](http://www.lua.org) is true == zero internal for performance.. Same for many syscalls in C.
The answer varies depending on what storage engine you're using. The ideal scenario is if you're using InnoDB. In that case you can use the --single-transaction flag, which will give you a coherent snapshot of the database at the time that the dump begins.
It varies, depending on how you want to treat existing data and how extensive the schema changes are, but even in Management Studio, before you commit changes, you can generate a script of all the changes. For a lot of data or where there are constraints or foreign keys, even simple ALTER operations can take a signi...
What is the purpose of testing? The majority of the answers so far are saying that private methods are implementation details which don't (or at least shouldn't) matter so long as the public interface is well-tested and working. That's absolutely correct *if your only purpose for testing is to guarantee that the pu...
To view the exceptions make sure the Java Console is turned on; Control Panel->Java Control Panel->Advanced-> Java Console.
This is a known problem with early versions of XP SP2, the ShellExecute function stopped accepting URIs; bring the XP machines patches up to date. To view the exceptions make sure the Java Console is turned on: Control Panel->Java Control Panel->Advanced->Java Console.
Sorry, I still don't understand. You're trying to get the Print Screen key to work on all four applications? Or you're trying to get the WindowtoDIB() function to work, which takes a 'screenshot' (from within your own application) of the application itself, so that it can be saved as an image file? Also, what do you...
Using the `@Override` annotation acts as a compile-time safeguard against a common programming mistake. It will throw a compilation error if you have the annotation on a method you're not actually overriding the superclass method. The most common case where this is useful is when you are changing a method in the bas...
If you find yourself overriding (non-abstract) methods very often, you probably want to take a look at your design. It is very useful when the compiler would not otherwise catch the error. For instance trying to override initValue() in ThreadLocal, which I have done. Using @Override when implementing interface metho...
The best practive is to always use it (or have the IDE fill them for you) @Override usefulness is to detect changes in parent classes which has not been reported down the hierarchy. Without it, you can change a method signature and forget to alter its overrides, with @Override, the compiler will catch it for you. ...
new Date().time returns the time in milliseconds. var nStart:Number = new Date().time; // Some time passes var nMillisElapsed:Number = new Date().time - nStart; var strTime:String = Math.floor(nMillisElapsed / (1000 * 60 * 60)) + "::" + (Math.floor(nMillisElapsed / (1000 * 60)) % 60...
How to handle errors loading with the Flex Sound class
|apache-flex|
I am seeing strange behaviour with the flash.media.Sound class in Flex 3. var sound:Sound = new Sound(); try{ sound.load(new URLRequest("directory/file.mp3")) } catch(e:IOError){ ... } However this isn't helping. I'm getting a stream error, and it actually sees to be in the Sound con...
If you're really serious about it and are willing to put in some time to actually learn what you need to know, the way I would do it would be a combination of reading all the stuff Apple has to offer along with a couple good books both for reference and more conceptual big picture/getting into the Cocoa mindset stuff. ...
If you're really serious about it and are willing to put in some time to actually learn to program in Cocoa, the way I would do it would be a combination of reading all the stuff Apple has to offer along with a couple good books both for reference and more conceptual big picture/getting into the Cocoa mindset stuff. ...
Recently I had to answer very similar question and these are the reasons why I decided to use IIS 7.0 and WAS instead of Windows Service infrastructure. 1. IIS 7.0 is much more robust host and it comes with numerous features that make debugging easy. Failed requests tracing, worker process recycling, process orphan...
[Pure CSS Popups2][1], from the same site that brings us Complexspiral. The basic technique is to stick each image inside a link tag with an actual href (Otherwise some IE versions will neglect :hover) <a href="#">Text <img class="popup" src="pic.gif" /></a> position it cleverly using absolute position. H...
[Pure CSS Popups2][1], from the same site that brings us Complexspiral. Note that this example is using actual navigational links as the rolled-over element. If you don't want that, it may cause some stickiness regarding versions of IE. The basic technique is to stick each image inside a link tag with an actual href...
In SQL 2008 you can use the MERGE statement
You'd have to draw the cells yourself to achieve this, using OwnerDraw.
RSA encryption library for c++
|c++|winapi|encryption|rsa|
The JPEG compression encoding process splits a given image into blocks of 8x8 pixels, working with these blocks in future lossy and lossless compressions. <a href="http://en.wikipedia.org/wiki/Jpeg#JPEG_codec_example">[source]</a> It is also mentioned that if the image is a multiple 1MCU block (defined as a Minimum ...
Since you're using .NET, you could add the `runat="server"` attribute and set the `src` in your codebehind.
I simply explain the requirements back in my own language, supplying my assumptions and adding in limitations. The requirement may be "Button turns green when clicked" I would ask "Ok, so when the user clicks on the button, the background color of the button turns green, but the text stays the same color?" Ba...
There's a [.NET usergroup][1] in SecondLife. Of course this depends how you feel about second life. [1]: http://www.sldnug.net/
One reason might be that the other 5 cookies are HTTPONLY: > <http://msdn.microsoft.com/en-us/library/ms533046.aspx> > > If the HttpOnly attribute is included > in the response header, the cookie is > still sent when the user browses to a > Web site in the valid domain. The > cookie cannot be accessed through...
And if you set the time it also appears to leap forward to the running programs. Nothing special either.
It isn't (quite) true that there is no equivalent in C#. There is no static equivalent that you can use as a type, or call methods on, true enough. For that, use [Jorge's answer](http://stackoverflow.com/questions/116830/is-there-an-anonymous-generic-tag-in-c-like-in-java#116881). On the other hand, sometimes you ne...
If you have access to either a unix machine, or can install the cygwin utilities ([http://www.cygwin.com/][1]), there is a command called 'strings' which will search through any file type and print out any contiguous sequence of character data (might just be ascii). That tool should help you identify the sql queries e...
XQuery is similar to SQL in that it allows you to retrieve specific portions of data from a large data repository. SQL is used for relational databases (MS SQL Server, Oracle, Sybase, MySQL, PostreSQL, SQLite, etc...) and XQuery is used for XML databases (MARKLogic, Sedena, Qexo, Qizx/db, etc...). MARKLogic gives yo...
Some Googling shows that it can be done by using [query strings][1]: > For web applications, you can pass > values to swf by url parameters, and > (with action script inside swf) save > them to the sandbox. [1]: http://forums.asp.net/t/1315014.aspx
I found what the problem was. The class in question wasn't the main class used in the project, but rather a secondary class. I've moved the code to the main class to get the parameters and after I got them, I sent them to the class constructor function.
Very good video introduction course by Stanford university (no prior knowledge required): [Programming Methodology](http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111) Will teach you good "methodologies" every programmer should know and some Java programming.
Look for SQL Profiler, which (depending on which version you have) is normally available from the tools menu in query analyzer (isqlw.exe) or management studio (in later versions). With SQL profiler you can run a trace on the server which can show you which queries are being requested by the application.
I think I tried and failed in the past myself, but I did just come across this on the gmail site: http://mail.google.com/support/bin/answer.py?ctx=gmail&hl=en&answer=22370 Looks like you can specify a custom "From" address within gmail, and perhaps at that point, see if setting @from will work (now that gmail knows ...
How would you achieve this table based layout using CSS instead of HTML tables?
|html|css|
I want the following layout to appear on the screen: FieldName 1 [Field input 1] FieldName 2 is longer [Field input 2] . . . . FieldName N [Field input N] Requirements: - Field names and field inputs mus...
selected is a string variable input taken from a form with a drop down select box. I previously put a message box there to ensure there the variable is passing through right before the Report.Printout and it does come up. DomainName variable is also declared as a string type.
Identify the host from a Windows user mode dump file
|windows|debugging|dumpfile|