In my C OpenGL app the window style requires WS_SYSMENU to show the close and minimize buttons, but it also brings up a stupid menu everytime I press alt.
How can I disable this?
I've been working on a project that requires that I can go around webpages with different proxies, user-agents, and clear cookies. Now after looking all around the net, it looks like there are some solutions for each of these, but I can never get them working. I was wondering if there was a wrapper for this control that fixed all of these problems or even just a different control I could include. Thanks.
Edit: I tried using HTTPWebRequest, it has everything I need -Javascript
I am working on a project that requires programmatically distributing a compressed file that in a format that is associated with my software. I am writing the software in Python.
I would use .zip, but I don't want to overwrite any previouse filetype associations. ( with zip utilities )
I need to connect to a SAP system, to pull/push data to/from that system?
I downloaded SAP PDK for .NET, build a solution using it, but this requires Portal Runtime for .NET to be installed on server, and this cannot be done, because SAP server is a Solaris one!
Also, I've checked existing solutions, but all of them use VS.NET 2003, to create what is called SAP Connector Proxy?
So, is there a way to connect to SAP system apart from using VS.NET 2003?
What is prefered way of setting html title (in head) for view when using master pages?
One way is by using Page.Title in .aspx file, but that requires in master page which can mess with HTML code. So, lets assume no server side controls, only pure html. Any better ideas?
UPDATE: I would like to set title in view NOT in the controller or model.
I have a dlg box as the main window. After a few searches on the we I tried downloading and running the sample the source here:
http://msdn.microsoft.com/en-us/magazine/cc164067.aspx
I get a compile error:
error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CStaticLink::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)'
1 Cast from base to derived requires dynamic_cast or static_cast
(VS 2008)
The tooltips functionality seems to be a bit of a challenge. Any suggestions on how to get this working are much appreciated.
How can I stub out methods that explicitly implement an interface using Rhino Mocks?
As I understand it, Rhino Mocks requires stubbed out methods to be virtual, and explicitly implemented interface members are not virtual.
Hi,
My rails application requires few values to be specified in the text box.
My web page contains few text boxes .How can i specify the values of these text boxes in the url as query string while using webrick?can any one help, am new to this.
Thanks in advance.
Hi,
I need to find a service that will allow me to send and receive SMS on a server for a project. The project requires that a user will have up to 8 keyword options to send, and will receive a different response back based on the keyword that they enter. Does anyone know of services that I could look into that will allow this?
Thanks.
Now the source code is ready, how can I build it with maven?
Suppose the source file is hw.java
I've googled some time, all the solutions requires me to set the directory in a fixed manner.
But what I want to do is keep hw.java in current directory (.), and then:
vi pom.xml
...
mkdir build
cd build
maven ...
Can I have that kind of freedom with maven?
In Python I have a list of n lists, each with a variable number of elements. How can I create a single list containing all the possible permutations:
For example
[ [ a, b, c], [d], [e, f] ]
I want
[ [a, d, e] , [a, d, f], [b, d, e], [b, d, f], [c, d, e], [c, d, f] ]
Note I don't know n in advance. I thought itertools.product would be the right approach but it requires me to know the number of arguments in advance
I'm designing a gallery application for viewing vehicle pictures and there are two parameters:
Manufacturer
Vehicle type
Right now you can view either, but not both. Urls go like so:
/manufacturer/#
/type/#
Where # is an ID number. How/can I format my URLs so it can accept both? My current solution is to do: /both/#/# but this requires some retooling since the application doesn't know when you want to filter by both. Any insight would be appreciated.
I am using this code in my template file to display a static block in my left sidebar:
<?= $this->getLayout()->createBlock('cms/block')->setBlockId('leftSB1')->toHtml() ?>
I would like to exclude the block from one of my CMS pages. How do I do this?
I think it requires adding code to the 'Layout Update XML' section but I'm not sure what exactly.
I was attempting to install an exe that requires a serial number before the install, which the vendor has not provided to us yet.
This got my wheels turning about whether there is any information that can be gained from viewing an exe using a hex editor/VI/etc?
Using VI to view an exe, I can see some sections of plain text, but it is difficult to determine what it refers to without any context around it.
Is it possible to determine any information by reading an exe?
Thanks
I have the following code inside a method:
var list = new[]
{
new { Name = "Red", IsSelected = true },
new { Name = "Green", IsSelected = false },
new { Name = "Blue", IsSelected = false },
};
I would like to call a function that requires a list of elements with each element implementing an interface (ISelectable). I know how this is done with normal classes, but in this case I am only trying to fill in some demo data.
Is it possible to create an anonymous class implementing an interface?
like this:
new { Name = "Red", IsSelected = true } : ISelectable
I need suggestions on how can I download attachments from my IMAP mails which have attachments and current date in subject line i.e. YYYYMMDD format and save the attachments to a local path. I went through the Perl module 'Mail::IMAPClient' and am able to connect to the IMAP mail server, but need help on other tasks. One more thing to note is that my IMAP sever requires SSL auth.
I'm having trouble running JML2 in Eclipse. I have the foolowing code:
public class MainClass {
public static void main(String[] args) {
System.out.println(-9.0);
}
//@requires x >= 7.0
public static double getSquare(double x) {
return Math.sqrt(x);
}
}
The error I'm getting is:
Is there anything wrong with the syntax I've used?
Thanks
If I have N STA .NET Threads each performing an independent bulk load operation on a different database using the SQLXMLBulkLoad dll (which requires calling threads to be STA), is it possible for all bulk loads to be happening at the same time, or are they implicitly serialized due to the STA COM configuration?
Thanks!
I have two android projects, ProjA requires ProjB (in Eclipse Properties Java Build Path Projects Add ProjB). Every thing compiles ok in Eclipse, but when I run ProjA I get an error:
Could not find method XXX, referenced
from method YYY.
Where XXX - is the method from ProjB.
How can I fix the settings?
I have a table defined by the following SQL:
CREATE TABLE test (
id integer PRIMARY KEY NOT NULL UNIQUE,
status text NOT NULL,
enddate date,
/* Checks */
CHECK (status IN ("Current", "Complete"))
);
I'd like to add a constraint that requires enddate to be non-null if the status is "Complete".
Is this possible? I am using SQLite v3.6.16.
I need to write an app which can observe and manipulate the positions of windows on screen, and I've been told that this requires using Cocoa's Accessibility API.
Unfortunately I'm a Java programmer, and Objective C scares me ;) Is it possible to access this Cocoa API from within Java? I know that back when Apple cared about Java it maintained a "bridge" to cocoa, but I'm not sure if this does what I need.
Oh, and my IDE is Eclipse, in case that is relevant.
As the title sais: How can I use the Restful Authentication Plugin with Ruby on Rails. When I want to create a new user, it requires me a (wrong-named, confusing field) login (= username), email address and password. However, I want, like Facebook does, only require the user to enter an email address and password, not a username. People will also login with this email address.
Can anyone help me?
I have an .NET application which is run with default rights as the current user, then at some point I need to perform an action which requires admin rights.
How can I get admin rights on-demand in a .NET application?
Requiring that the application is run with admin rights from the beginning is not appropriate as it may be that such action may not be called.