Given two sets
a = [5,3,4,1,2,6,7]
b = [1,2,4,9]
c = set(a) - set(b)
# c -> [5,3,6,7]
is it possible to count how many items were removed from set 'a' ?
I am using windows forms and when I use a MenuStrip item, I get something that looks like this:
http://imgkk.com/i/ggn1.png
Is it possible to use menu strips like the ones the system uses, like in Windows Explorer, or Firefox, for example:
http://imgkk.com/i/cxyg.png
with Windows Forms, or C# in general?
For transaction purposes, I need all field validations to run before clean() is done. Is this possible? My thinking is this:
@transaction.commit_on_success
def clean(self):
# Some fun stuff here.
self.full_clean() # I know this isn't correct, but it illustrates my point.
but obviously that's not correct, because it would be recursive. Is there a way to make sure that everything that full_clean() does is done inside clean()?
I'm trying to write a simple tool for monitoring the state of a Queue Manager. One of the things I'd like to monitor is the current queue depth of each queue. I haven't been able to find a way to programmatically enumerate all of the queues on a particular Queue Manager, though. Do any of the MQ APIs provide this functionality? I'd prefer to do this with C, but if it's only possible with another language's bindings, I'd at least like to know that.
Hi,
I'm using the Jquery plugin Address to achieve deep linking.
The generated urls come out in the format www.example.com/#/tab/image, but what I need is www.example.com/#tab/image. The plugin seems to automatically generate the /#/ part.
I wonder does anyone know how to do this? Or even if it's possible?
I would greatly appreciate any help.
Thanks in advance
I want count the same elements of two lists. Lists can have duplicate elements, so I can't convert this to sets and use & operator.
a=[2,2,1,1]
b=[1,1,3,3]
set(a) & set(b) work
a & b don't work
It is possible to do it withoud set and dictonary?
I want to have one party (or more) sends a stream of data via HTTP request(s). Other parties will be able to receive the same stream of data in almost real-time.
The data stream should be accessible across sessions (according to access control list).
How can I do this in Django? If possible I would like to avoid database access and use in memory buffer (along with some synchronization mechanism)
Hi Friends,
I have a html page with 4 iframes out of these 4 one is a static html page and other 3 are html generated by flex. I have a button and list in one of the flex applications and the list will be populated on click of the button. Now what I want is to have a custom busy cursor to appear on the top of the whole html page until the list gets populated.
Please tell me if its possible with an example.
Thanks in advance
Prahsant Dubey
I need to test a feature in a live "asp.net mvc" web site and would want to block access to the site while testing, how would you recommend doing that? Is it possible to block access and still be able to test as an anonymous user? (I need to test the process as a user that's not logged in).
Hi Experts..
Is there any reliable way to check if user has entered Arabic words into a form and tries to submit it? Can Javascript handle this? Or, only server script like .NET can do this?
I'm thinking that if possible the script should directly prevent the user from inputting Arabic words into the form and show an alert pop up.
Please share any examples if you have any idea how to do it.
Thanks
I know this is a strange question but the idea is simple: I prefer C# syntax rather than C++:
-Setters and getters directly inside a property
-interfaces
-foreach statement
-possibility to declare an implicit cast operator
other small things...
What I really don't know is if is possible to import a c++ dll (expecially std libraries) in C# if I don't use any namespace (even System)
The idea is just to write a program using everything that you will normally use in C++ (nothing from CLR so), even printf for example
Thanks for any answer
Hi Geeks,
I put a TCP server and client code in PIC controller. Now just wanted to know, can the same device run both client and server at sametime? And if possible can we use the same socket on a TCP stack for server and for client?
Hey all,
Is it at all possible to add custom key bindings to buttons in SWT? I can't use & in the text of the button to set a mnenomic because my buttons have no text (only an image). Is there a good way to do this using key listeners or is there something like the input/action map in swing?
Thanks in advance.
Hello World!
Is their any way to apply a style resource to customize the Item Border in the Gallery Class with Android?
I'm trying to hide or change the color of the default Grey border but by the looks of things this isn't possible?
Any help or tips you can provide would be fantastic.
Appreciated,
Tom
I want to write a query like this:
For a table that has these columns:
ColA ColB ColC, ColD
select first(ColA, ColB, ColC, ColD)
distinct(ColB, ColC)
from table
order by ColD
The query is supposed to order the table by ColD, then group the results by the combination of ColB and ColC (they may have different data types) and returns the first rows (with all the columns of the table) in the groups.
How is it possible in MS SQL Server 2005?
Is it possible to use a platform builder 5.0 SDK in visual studio 2010 for a C++ project.
I want to compile code for a specific ARM WinCE 5.0 environment and I have VS2010 at the moment.
The Microsoft website recommends visual studio 2005. I'm currently downloading the VS2005 evaluation but I'm also a bit worried about installing this on a machine that already has vs2010 installed.
Any advise would be greatly received.
Is there such a thing? Mac OS X was based on BSD Unix so is it possible? Or from what I have heard, there is a MonoDevelop plugin that has an iPhone sim.
Possible Duplicate:
How do I pronounce “=>” as used in lambda expressions in .Net
=>
as in
Enumerable.Range(0, 100).OrderBy(i => i)
What is it called?
I've taken to calling it "Lambda", was wondering if there is a proper name for it.
I want have have multiple filters on the data. like first i want to filter by date field and then by type field and then by some other field .... as many times as possible. i must pass on the field and value in the url and it must apply the filter and pass the data to the next filter.
Does anyone know if it is possible to use LINQ to query a NETEZZA back-end?
Update: I've tried both the ODBC and OLEDB Netezza drivers, but neither work. Both give a "The selected object(s) use an unsupported data source" error.
Is it possible to generate subclasses at runtime or while an application is running? If so, how is this achieved and what precautions should be taken to prevent a rogue object wreaking havoc inside an application?
Edit: Title modified from "Class generation on the fly".
Hi Guys,
Is it possible to configure HTML Tidy in the following way:
Given the html:
lorem ipsum</em> dolar sit amet.</p>
To have it generate
<p><em>lorem ipsum</em> dolar sit amet.</p>
Instead of just stripping out the closing tags?
Many thanks
Matt
I want to call this method in a user defined function
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
Is it possible ?? if yes,How ?? Pl. guide me.
I have a byte array of some binary data that i need to send over the network using WCF and NetTcpBinding. My problem is that i need to send only the part of the array. Is there any way to do this, other than copying that part to a separate array, and sending that one. This extra copying degrades performance, and i would like to avoid it, if possible.