Questions

Committed before 401 No authentication specified

I'm programming using GWT, which includes Jetty. I have defined my own servlet and when I call response.sendError(HttpServletResponse.SC_UNAUTHORIZED, e.getMessage()); It gives me a warning that states: WARNING: Committed before 401 No authentication specified Sep 2, 2009 2:40:36 AM ...

SketchFlow - Merge and Report Multiple users feedback

I'm using Microsoft Elements 3 SketchFlow to get user feedback, but how can I merge them together or at least print them? ...

How to copy a table from one database to other database?

Using VB 6 and Access 2003 I want to copy a table from one database to other database. Database1 Table1 Table2 Database2 Table3 Above, I want to copy the Table3 to Database-1 Expected Output Table1 Table2 Table3 How to write a code? Need VB6 Code Help. ...

How do I get response codes from Authorize.net with Kohana's payment module?

After you call the process() method, I want to get Authorize.net response codes and text. Or is that not included in the library. All I can see are set_field() and process() methods. ...

IE script error with my jQuery plugin

I cannot seem to figure out I am getting the following error in IE 8 (only IE version I've tested so far). The script runs fine in all (chrome, ff, safari) other browsers I've tested. What am I doing wrong? Error: Message: Object doesn't support this property or method Line: 52 Char: ...

find a result from a .doc type that store in a varbinary(max) column

i want to write a query with Full-Text-Search on a column with varbinary(max) type that stored a .doc/.docx(MS-Word) file. my query must returns records that contain a word in stored file. is this possible? if yes,how?(please write an example) if yes,can we write that for other langua ...

Use regex/php to read text inside quotations

I have a text title that reads This User "The Title Of The Post" I want to grab just whats INSIDE of the quotation marks, and store it in a variable. How would i do this with regex and php? ...

When retrieving URL via HttpWebRequest, can I see the IP address of the destination server?

Suppose I am retrieving a url as follows: string url = "http://www.somesite.com/somepage.html" HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url); HttpWebResponse resp = (HttpWebResponse)req.GetResponse(); Is there a way I can see the IP address of the destination url? Does i ...

Problem with moving JSPs under WEB-INF directory

I am facing a problem when I move my JSP files along with CSS and JS files under WEB-INF/web/ directory. The problem is that, when a JSP page loads, it does not load CSS and JS files. Please help if you have any idea about it. Thanks Umar ...

JQuery to enable,disable textbox is not working consistently

I have a DropDownList as a custom control inserted into a subform which is within a popup window on my main page. I have coded unique CssClass identifiers for both the DropDownList and the textbox I am trying to enable/disable. I only want the textbox enabled for DropDownList values 31 ...

How to trigger an event on payment received in magento?

Greetings, in Magento I want to trigger an event, once an order has been set to processing (by gateway confirmation or manually) that, example: If a general customer (id 1) spends over 100$ and the payment has been confirmed, set his group id to 4 (silver VIP, which by promotion rule get ...

NSManagedObject subclass outside of managed object as a normal object

I have an entity object Country with country name and country code. It is a subclass of NSManagedObject and I am using it with core data model to store its value to a persistent store. I have a place where the same Country object will used as a normal object i.e. I will use it to store ...

How to force refresh the DataGridView's content?

I want to make a sorted datagridview input. The following code snippet doesn't quite cut it; even if i put a grd.Refresh, the datagridview doesn't show its updated values. If i press arrow down key and go up again, the grid is refreshing. Is there any other way i can force refresh to d ...

Parsing XML document with XPath, C#

So I'm trying to parse the following XML document with C#, using System.XML: <root xmlns:n="http://www.w3.org/TR/html4/"> <n:node> <n:node> data </n:node> </n:node> <n:node> <n:node> data </n:node> </n:node> </ro ...

Realloc implementation

I'm writing a simple linked list based memory manager in the form: ...Header|Block|Header|Block... with a used and free list. If the realloc() function was asked to reduce the size of a block, is it okay to overwrite some of the trailing bytes with the header for the newly created bloc ...

IBCocoaTouchPlugin on iPhone SDK 3.0

I had upgraded my OS into Snow Leopard, and I'm using Xcode 3.2 with iPhone SDK 3.0 for Snow Leopard. I had cleaned up the existing Developer Tools, uninstall, and I deleted the /Developer directory, and I reinstall. But, the problem is, Interface Builder is showing 3 pop up alerts wit ...

Simple question - no results (ListView Columns)

I'm trying to accomplish what should be a very simple task using the ListView Control. All I am trying to do is add two Items to a ListView Control. One Item goes under the "Title" Column and the other Item goes under the "Status" Column. I have seen many examples for the ListView Contro ...

Game engine development question [closed]

I am thinking of making a simple game engine for my course final year project. I want it to be modular and expandable so that I can add new parts if I have time. For example I would make a graphics engine that would be completely independent of the other systems, once that was finished I ...

Detecting a redirect in Flash/Actionscript?

I have a flash video player which requests a flv file from a central server. That server might redirect the request to a server from the user's country if possible, a lot like a CDN. This video player also reports usage stats. One thing I'd like to report is the true server/location fro ...

How to I configure emacs in java mode so that it doesn't automatically align method parameters

In emacs, when I type: public void foo(String one, String two) { It tabifies like this: public void foo(String one, String two) { I'd rather it didn't, and just aligned parameters like other line continuations. How can I configure it not to do this? ...

Screensavers With XNA and .NET?

I'm fairly sure you can create screensavers with.NET but are there any tutorials on doing so? and how well can you make XNA screensavers? ...

jQuery Validation Plugin remote check for password with Django

I have a "Reset Password" form being validated by the jQuery Validation plugin. Everything works fine except that I can't get the "remote" part to work with Django. What I'm trying to do is to have remote send an ajax request to my Django backend to check that the "Old Password" is corre ...

Diff django model objects with ManyToMany fields

I have a situation where I need to notify some users when something in DB changes. My idea is to catch pre_save and post_save signal and make some kind of diff and mail that. Generally it works good, but I don't know how to get diff for m2m fields. At the moment I have something like t ...

When I am trying to align fields vertically, they aren't behaving what I expected?(Blackberry JDE4.5.0 eclipse)

I am using Eclipse & JDE 4.5.0 plug-in. How to align fields vertically. Can we align fields like LEFT_BOTTOM,RIGHT_BOTTOM, LEFT_VCENTER, RIGHT_VCENTER, CENTER(vertically & horizontally), BOTTOM_CENTER, etc...? ...

MySQL Ruby Gem on OS X Snow Leopard

I've been fighting with getting the MySQL Ruby Gem up and running on Snow Leopard for the past couple of days. I have tried all different sorts of things to get this working, and currently have MySQL 5.1.37 x64 installed. After fighting to even get the Gem installed I believe that I fin ...

Free Compiler for Windows on x86_64

I'm writing a compiler which uses C as an intermediate code which is (Currently) passed out to MinGW for compilation into an EXE file. I'm looking for an x64 compiler that I can include in my releases, so that users of my application can get around Win64's "Windows on Windows" system to ...

Disadvantage of synchronized methods in Java

What are the disadvantages of making a large Java non-static method synchronized? Large method in the sense it will take 1 to 2 mins to complete the execution. ...

.NET developer moving to ubuntu for development

I've been developing in .NET now for about 3 years. I love the visual studio IDE and sadly I won't be able to use it anymore. Could someone save me hours of searching the web and reading reviews, and suggest the 'standard' or most popular IDE/Text editor for linux that will get me up an ...

How to start unit testing or TDD?

I read a lot of posts the convinced me I should start writing unit test, I also started to use dependency injection (Unity) for the mater of easier mocking, but I'm still not quite sure on what stage I should start writing the unit tests and mocks, and how or where to start. Would the p ...

How do I find a date which is three days earlier than a given date in Perl?

How do I find a date which is 3 days earlier than a given date in Perl where the format is YYYY-MM-DD? ...

Hot Tags