instruction
stringlengths
0
30k
[NodeBox](http://nodebox.net/code/index.php/Library) is awesome for raw graphics creation.
although i dont have any experience with it, i hear that navicat would be the tool to use: [http://mysql.navicat.com/][1] also toad for mysql i hear isnt bad: [http://www.quest.com/toad-for-mysql/][2] [1]: http://mysql.navicat.com/ [2]: http://www.quest.com/toad-for-mysql/
SQL Server 2005 x64 certainly doesn't need, or use, AWE; AWE is only to allow it to use > 4GB on 32 bit systems. You *can* use the old lock-pages-in-memory trick, but as this KB shows (http://support.microsoft.com/kb/918483): "Note For 64-bit editions of SQL Server 2005, only SQL Server 2005 Enterprise Edition can u...
You are missing the <UpdateParameters> sections of your DataSources. [LinqDataSource.UpdateParameters][1] [SqlDataSource.UpdateParameters][2] [1]: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linqdatasource.updateparameters.aspx [2]: http://msdn.microsoft.com/en-us/library/sys...
In some languages programmers have access to ***"direct byte arrays"*** or ***"[memory maps][2]"***, which are provided by the OS. In java we have **[java.nio.MappedByteBuffer][1]**. This allows one to work with the data as if it were a byte array in memory, when in fact it is on the disk. The size of the file one c...
I've put (cd "c:/cvsroot/") in my .emacs and it did the job
As you're on Windows you can do it with a shortcut. Create a shortcut to `C:\emacs\emacs-21.3\bin\runemacs.exe`. Edit the properties of the shortcut and change the value of `Start In:` to be whatever you want your default directory to be.
What's the best way to write JavaScript/Ruby applications on Windows Mobile device?
|javascript|ruby|windows-mobile|pocketpc|wm|
I recently bought a Windows Mobile device and since I'm a developer I want to use it as a development platform. Yes, it's not supposed to be used like that but it's always with me and my laptop isn't. I know [cke][1] is a good editor for code but how can I run JavaScript/Ruby code without too much of a headache? I p...
The best introduction I have read is the [RESTful Web Services book][1], which goes beyond explaining the model and principles and actually shows you how to design a RESTful web service. Most useful is its checklist for how to write/specify an REST API: 0. Figure out the data set [i.e. specify the data model]. ...
Best way to determine the number of servers needed
|asp.net|webserver|
How much traffic can one web server handle? What's the best way to see if we're beyond that? I have an ASP.Net application that has a couple hundred users. Aspects of it are fairly processor intensive, but thus far we have done fine with only one server to run both SqlServer and the site. It's running Windows Server...
Pre-Pending a file to all .cs file in directory and subdirectory using PowerShell
|powershell|
How can I pre pend (insert at beginning of file) a file to all files of a type in folder and sub-folders using Powershell? I need to add a standard header file to all .cs and was trying to use Powershell to do so, but while I was able to append it in a few lines of code I was stuck when trying to pre-pend it.
Are you familiar with log4j? Spring puts a lot of often-useful information into the logs created via log4j. When I have a SpringMVC application that won't startup correctly or otherwise isn't running I check my log4j and potentially turn up the Spring log level to INFO or even DEBUG.
.NET Managed C++ is like a train wreck. But have you looked into C++ CLI? I think Microsoft did a great job in this field to make C++ a first class .NET citizen. http://msdn.microsoft.com/en-us/magazine/cc163852.aspx
Delphi Component Serialization
|delphi|
Has anyone run into issues serializing components into a file and reading them back, specifically in the area where the component vendor upgrades the VCL components. For example a file serialized with DelphiX and then years later read back with delphiY. Do the serialization formats change and if so what can be done t...
I agree with the previous suggestions. However if you really want to, you can look into [PAR][1] and/or [Filter::Crypto][2] CPAN modules. You can also use them together. I used the latter (Filter::Crypto) as a really lightweight form of "protection" when we were shipping our product on optical media. It doesn't "...
DUAL is necessary in PL/SQL development for using functions that are only available in SQL e.g. DECLARE x XMLTYPE; BEGIN SELECT xmlelement("hhh", 'stuff') INTO x FROM dual; END;
Sub CheckValues1() Dim rwIndex As Integer Dim colIndex As Integer For rwIndex = 1 To 10 For colIndex = 1 To 5 If Cells(rwIndex, colIndex).Value <> 0 Then _ Cells(rwIndex, colIndex).Value = 0 Next colIndex ...
On an Intel based Mac you can run Windows within a virtual machine. You will need one virtual machine for each version of IE you want to test against. 1. Download some virtual machine software. The developer disk images we're going to use are will work with either [VMWare Fusion](http://www.vmware.com/products/fusio...
From what I can see JavaFX is a whole new runtime and compiler so is not a subset of Java. Sun will support it on mobile phones and on the desktop. OS-wise it is currently released for Windows/Mac but Solaris/Linux are in the works.
If you're using Oracle you might be interested in [Transparent Data Encryption][1]. Only available with an Enterprise license though. Oracle also has utilities for encryption - decryption, for example the [DBMS_OBFUSCATION_TOOLKIT][2]. As for "Standards", the proper standard you are interested in is the [PCI DSS]...
Let me just say that Jifty doesn't have terrible documentation. However, most of included documentation is API documentation, but there is very low-noise mailing list which has useful tips and links to applications. Wiki at http://jifty.org/ is another resource which has useful bits. If your goal is to make video...
Let me just say that Jifty doesn't have terrible documentation. However, most of included documentation is API documentation, but there is very low-noise mailing list which has useful tips and links to applications. Wiki at http://jifty.org/ is another resource which has useful bits. If your goal is to make video...
Doing select count(j1.job_number), j1.job_number, j1.id, j2.id from jobs j1 join jobs j2 on (j1.job_numer = j2.job_number) where j1.id != j2.id group by j1.job_number will give you the duplicated rows' ids.
jQuery ajax $.post successfull ?
|jquery|post|success|xmlhttprequest|
I'm trying to figure the result of this call if it was successful or not. The successFunction doesn't get called so i'm assuming it was not. How do i know what went wrong? xmlRequest = $.post("/url/file/", { 'id' : object.id }, successFunction, 'json'); Do i use the xmlRequest object?
|jquery|ajax|post|
Why you need a GUI runner? Can't you just run the tests from the IDE itself? In .Net we have [TestDriven.net][1], in Java there must be something equivalent. You can check out [IntelliJ IDEA][2], it has the unit testing support built-in. [1]: http://testdriven.net/ [2]: http://en.wikipedia.org/wiki/Intell...
I'd symmetrically encrypt (AES) a secure salted hash (SHA-256 + salt). The salted hash would be enough with a big salt, but the encryption adds a bit extra in case the database and not the code leaks and there are rainbow tables for salted hashes by then or some other means. Store the key in the code, not in the databa...
I ended up needing something similar awhile back. To get the HTML to line up side to side, you could use two iFrames, but you'd then have to tie their scrolling together via javascript as you scroll (if you allow scrolling). To see the diff, however, you will more than likely want to use someone else's library. I us...
It depends (TM) on what exactly you want to achieve. Just want to display a "random" image? Maybe this javascript snippet will get you started: var date = new Date(); var day = date.getDate(); // thats the day of month, use getDays() for day of week document.getElementById('someImage').src = '/im...
The rendering layer of games is usually a fairly well isolated/abstracted part of the whole application. As far as the game engine is concerned, each frame you are simply building up a list of conceptual objects (trees, characters, etc.). If the game engine chooses to render a particular object, then it's up to the ren...
If you decide to go with WPF, considering pros and cons already explained in the above answers, I highly recommend going through this [dnrTV episode with Billy Hollis][1] [1]: http://www.dnrtv.com/default.aspx?showNum=115
There are faster algorithms for exp depending on what your'e trying to accomplish. Is the problem space restricted to a certain range, do you only need a certain resolution, precision, or accuracy, etc. If you define your problem very well, you may find that you can use a table with interpolation, for instance, whi...
When would I use Server.TransferURL over PostBackURL?
|asp.net|
Or vice versa.
When would I use Server.Transfer over PostBackURL?
Or vice versa. Update: Hmm, let's assume I have a shopping cart app, the user clicks on the Checkout button. The next thing I want to do is send the user to a Invoice.aspx page (or similar). When the user hits checkout, I could <code> Button.PostBackURL = "Invoice.aspx" <code> or I could do <code> Server.T...
You are missing the &lt;UpdateParameters&gt; sections of your DataSources. [LinqDataSource.UpdateParameters][1] [SqlDataSource.UpdateParameters][2] [1]: http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.linqdatasource.updateparameters.aspx [2]: http://msdn.microsoft.com/en-us/library/sys...
[Quickstart][1] gives a good overview of all features. [1]: http://quickstarts.asp.net/3-5-extensions/mvc/MVCOverview.aspx
Simplest way to reverse the order of strings in a make variable
|makefile|
Let's say you have a variable in a makefile fragment like the following: MY_LIST=a b c d How do I then reverse the order of that list? I need: $(warning MY_LIST=${MY_LIST}) to show MY_LIST=d c b a Edit: the real problem is that ld -r some_object.o ${MY_LIST} produces an `a.ou...
Best Practice: Legitimate Cross-Site Scripting
|javascript|php|xss|
While cross-site scripting is generally regarded as negative, I've run into several situations where it's necessary. I was recently working within the confines of a very limiting content management system. I needed to include database code within the page, but the hosting server didn't have anything usable availabl...
What is the key component of web accessibility?
I understand that some countries have laws regarding website accessibility. In general, what single most important requirement that a website must meet to be accessible, regardless of country?
What are the key components of web accessibility?
I understand that some countries have laws regarding website accessibility. In general, what are the minimum requirements that a website must meet to be accessible, regardless of country?
|accessibility|
I understand that some countries have laws regarding website accessibility. In general, what are the minimum requirements that a website must meet to be accessible, regardless of country? Or, in lieu of minimum requirements, what are some specific things that websites should have to make the accessible?
Two things that will greatly improve your vi skills: 1. Practice, practice, practice 2. Nethack
> C++ is a standard, there shouldn't be any hidden features... C++ is a multi-paradigm language, you can bet your last money on there being hidden features. One example out of many: [template metaprogramming](http://en.wikipedia.org/wiki/Template_metaprogramming). Nobody in the standards committee intended there to ...
It's perhaps worth double-clarifying mislav's point that mod_rails isn't actually limited to Rails code at all. The new name, mod_rack, is way better. Trivially small apps can be rackable -- their example being: class HelloWorld def call(env) [200, {"Content-Type" => "text/plain"}, ["Hello world!...
How do you quickly find the URL for a Win32 API on MSDN?
|winapi|windows|productivity|
How do you quickly find the URL for a Win32 API on MSDN? It's easy for .NET methods -- just add the method name (for example, System.Byte.ToString) to http://msdn.microsoft.com/library/. However, for Win32 APIs (say GetLongPathName), this doesn't work: [http://msdn.microsoft.com/en-us/library/GetLongPathName][1]. ...
|windows|winapi|productivity|
How do you quickly find the URL for a Win32 API on MSDN? It's easy for .NET methods -- just add the method name (for example, System.Byte.ToString) to http://msdn.microsoft.com/library/. However, for Win32 APIs (say GetLongPathName), this doesn't work: [http://msdn.microsoft.com/en-us/library/GetLongPathName][1]. ...
I'd give a test-drive to the new runtime optimizers in ASP.Net published on http://www.codeplex.com/NCOptimizer
java.net.SocketException: Connection reset
|connection|java.net.socketexception|reset|
I am getting the following error trying to read from a socket. I'm doing a readInt() on that InputStream, and I am getting this error. Perusing the documentation this suggests that the client part of the connection closed the connection. In this scenario, I am the server. I have access to the client log files and it...
|networking|sockets|connection|
You may consider to use attributes instead of fields. [Command("HELP")] class HelpCommand : ICommand { }
It doesn't even have to be in cron: <?php // starting date for rotation $startDate = '2008-09-15'; // array of image filenames $images = array('file1.jpg','file2.jpg',...); $stamp = strtotime($startDate); $days = (time() - $stamp) / (60*60*24); $imageFilename = $images[$d...
*Edit: I totally misread this question as "**without** using javascript/PHP". So disregard this response. I'm not deleting it, just in case anyone was crazy enough to want to use this method.* Doing it without Javascript, PHP, or any other form of scripting language could be difficult. Well actually, it would just...
textBox.SelectionStart - textBox.GetFirstCharIndexFromLine(textBox.GetLineFromCharIndex(textBox.SelectionStart))
The main issue is the public IP address is not necessarily correlated to the local computer running the application. It is translated from the internal network through the firewall. To truly obtain the public IP without interrogating the local network is to make a request to an internet page and return the result. I...
There's tons of tech podcasts. <br> <br> Some that I've subscribed to: <br> Daily shows - [WebbAlert](https://miroguide.com/channels/3066) - [Loaded](https://www.miroguide.com/channels/5651) Non-Dailys - [Cranky Geeks](https://www.miroguide.com/channels/1014) - [DL.TV](https://www.miroguide.com/...
@_l0ser > I also use VS for most of my coding needs, but use Notepad++ for all other plain text files. I was disappointed by VS one time when it failed to open a 500 meg text file that I was hoping to change a few characters in. Seeing as it has support for viewing files in hex (ie. binary data) I was hoping that it w...
@Derek Park I also use VS for most of my coding needs, but use Notepad++ for all other plain text files. I was disappointed by VS one time when it failed to open a 500 meg text file that I was hoping to change a few characters in. Seeing as it has support for viewing files in hex (ie. binary data) I was hoping that ...
@Derek Park I also use VS for most of my coding needs, but use Notepad++ for all other plain text files. I was disappointed by VS one time when it failed to open a 500 meg text file that I was hoping to change a few characters in. Seeing as it has support for viewing files in hex (ie. binary data) I was hoping that ...
Oracle XE or SQL Server Express
|c#|sql|server|oracle|dbms|xe|
I'm starting a new project here (Windows Forms) and was wondering what's the best option today for a small (free as in beer) dbms. I've used SQL Server Express on the past projects, but time and time again I hear people saying that the product from Oracle is faster and more powerful. It will be used in a small co...
|sql-server|oracle|database|
|sql-server|oracle|database|free|
Child spans of the same width
|html|css|
I am trying to create a horizontal menu with the elements represented by &lt;span&gt;s. The menu itself (parent &lt;div&gt;) has a fixed width, but the elements number is always different. I would like to have child spans of the same width, independently of how many of them are there. What I've done so far: added...
I created a simple query similar to the ones in the question on MSSQL2005 and the explain plans were different. The first query appears to be faster. I am not a SQL expert but the estimated explain plan had 37% for query 1 and 63% for the query 2. It appears that the biggest cost for query 2 is the join. Both queries h...
Remove the formatting from your question, and you'll see part of the answer: http://stackoverflow.com/questions/47427/ vs http://stackoverflow.com/questions/47427/why-do-some-websites-add-slugs-to-the-end-of-urls. With no markup, the second is self-descriptive.
Thanks to jodonnel and everyone else who answered. I'm accepting his answer because it was about 95% complete. Here's the final code that I got to work (with comments where I needed to make changes). You'd only have to change the from, pass, and to fields to make it work. String host = "smtp.gmail.com"; ...
While cross-site scripting is generally regarded as negative, I've run into several situations where it's necessary. I was recently working within the confines of a very limiting content management system. I needed to include database code within the page, but the hosting server didn't have anything usable availabl...
Have you looked at <a href="http://www.codeplex.com/mvcsamples">MVC Samples</a> on CodePlex? Rob Conery has some screencasts that go along with the creation of the site at <a href="http://blog.wekeroad.com/mvc-storefront/">http://blog.wekeroad.com/mvc-storefront/</a>.
We use SQL Compare from redgate (http://www.red-gate.com/). We have a production database, a development database and each developer has their own database. The development database is synchronised with the changes a developer has made to their database when they check in their changes. The developer also che...
+1 to writing your own exp() implementation. That is, if this is *really* a bottle-neck in your application. If you can deal with a little inaccuracy, there are a number of extremely efficient exponent estimation algorithms out there, some of them dating back centuries. As I understand it, Java's exp() implementatio...
have you looked at the tightVNC source? It is fairly terse http://www.tightvnc.com/download.html
Xdebug and the DBGp plugin for Notepad++ for heavy duty bug hunting, FirePHP for lightweight stuff. Quick and dirty? Nothing beats [dBug][1]. [1]: http://dbug.ospinto.com/