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' ?
Hi
i had created table with primarykey{groupname} in google app engine datastore as follows,
//---------------coding-----------//
@Entity
@Table(name="Groups", schema="PUBLIC")
public class Creategroup {
@Id
private String groupname;
@Basic
private String groupid;
.
.
.
}
My doubt is I wnat to set groupname and groupid both as primary key is it possible.how ?
Guide me
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 have a complex build system involving many ant scripts, some targets of which invoke the javac task.
These ant scripts do not provide for a way to request a debug build from javac, i.e. neither debug nor debuglevel parameters of the javac task are specified.
Is it still possible to instruct javac to build with debugging support without changing the build scripts themselves?
The scripts are invoked from console.
In Excel 2007 it is possible to scale a pictureLink object (created with the Camera Tool) using the following VBA code.
With ActiveWorkbook.Sheets(sht).Pictures(name)
.ShapeRange.ScaleWidth scaleValue, msoTrue
.ShapeRange.ScaleHeight scaleValue, msoTrue
.top = top
.left = left
End With
This code places the picture correctly in 2010, but the scaleValue is ignored. The 2010 Excel documentation is patchy on this subject. The same code works fine in Excel 2007.
I have a bunch of module tests written in CPPunit with some mocks created by hand. I am looking for a way to migrate them to GoogleTest as smoothly as possible.
Have you tried such an operation?
What was the effort needed?
Hi,
I am developing online video streaming website on PHP.
I need two functionalities:
Need to add title/text at bottom of the video dynamically.
Need to add background music to video dynamically.
Is it possible with PHP or any available open source library?
Can anyone guide me or provide links to this type of library ?
Thanks.
I'd like to be able to do something like this:
from dotDict import dotdictify
life = {'bigBang':
{'stars':
{'planets': []
}
}
}
dotdictify(life)
#this would be the regular way:
life['bigBang']['stars']['planets'] = {'earth': {'singleCellLife': {} }}
#But how can we make this work?
life.bigBang.stars.planets.earth = {'singleCellLife': {} }
#Also creating new child objects if none exist, using the following syntax
life.bigBang.stars.planets.earth.multiCellLife = {'reptiles':{},'mammals':{}}
My motivations are to improve the succinctness of the code, and if possible use similar syntax to Javascript for accessing JSON objects for efficient cross platform development.(I also use Py2JS and similar.)
It looks like you can host native code on Azure: http://msdn.microsoft.com/en-us/library/dd573362.aspx. Is it possible to run a socket server (listening tcp/udp) here? And even hosting a CLR on top?
Hi All
I have a MainMenu in my app and I would like to have little icons relevant to the Item in each menu. But the MainMenu control does not support this.
I would use the MenuStrip control, though that is a pretty ugly option in my opinion.
Does anybody have any suggestions? Are there any free/open source alt's out there, or would it be easy/possible to implement that feature into the existing MainMenu control?
Thanks
hi together,
how can i import other external libraries in web2py? is it possible to
load up libs in the static file?
can somebody give me an example?
thanks
peter
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".
Is it possible to list the contents of a LZMA file (.7zip) without uncompressing the whole file? Also, can I extract a single file from the LZMA file?
My problem: I have a 30GB .7z file that uncompresses to 5TB. I would like to manipulate the original .7z file without needing to do a full uncompress.
Hi, does anyone know if it's possible to do a thesaurus search
together with NEAR or AND/OR keywords.
Here is an example of the type of query I want to run:
SELECT Title, RANK
FROM Item INNER JOIN
CONTAINSTABLE(Item, Title, 'FORMSOF(Thesaurus, "red" NEAR "wine")') AS KEY_TBL
ON Item.ItemID = KEY_TBL.[KEY]
ORDER BY RANK DESC
....But I get the error message:
Syntax error near 'NEAR' in the full-text search condition 'FORMSOF(Thesaurus, "red" NEAR "wine")'.
Hi,
Would it be theoretically possible to make BackgroundWorker in a class to periodically refresh existing splash screen form, or is that impossible? (I know that it's probably bad design, but currently I do not see any better way.)
Please keep in mind that:
I do not want the background worker to do the loading as it would be terribly hard to implement.
I can't use the inbuilt splash screen support
I'm aware of DoEvents alternative but I do not want to go this path, it would very hard to implement as well, and not reliable.
Is it possible to bundle Play! web application to executable jar instead of war?
Could it just be run on localhost at some port just like when using "play run" command? (without the need of installing play into system)
Is it possible to authenticate to google calendar (when you know the username/password) using its JavaScript API?
I tried calendarService.setUserCredentials(username, password); but it didn't work
Hi all,
I'm working on a simple TODO list app based on localStorage HTML5 feature:
http://hamen.github.com/webnotes/
I'm wondering if it's possible to import/export data in some way. How could I provide an "Export note/Import note" feature to make users being able to save their note on their HD and import them in another browser profile?
Thanks
How to bind "OnDataBound" event of "DropDownList" in declarative syntax to a static method in some other class ?
e.g
<asp:DropDownList runat="server" id="d1" OnDataBound="SomeOtherClassThanThisPage.StaticMethod"></asp:DropDownList>
This will give the error, "Page does not contain a definition for SomeOtherClassThanThisPage.
Is this possible to do it like this or it be done in the Code Behind only ?
Say i have the following class:
class Person {
@BeanProperty
var firstName: String = _
}
Is it possible to get the String representation of "firstName" in a type-safe way, by reflection or something? Or the String representation of the generated "getFirstName"-Function?
I have a query that selects some fields to display from a table
SELECT Field1, Field2, Field3, Field4 FROM table1
I want instead of returning :
To return:
How could I modify my SQL statement to return the second figure ?
Or at least how to change the gridview properties of .Net to do so (if this is possible) ?
Hello,
Is it possible to add a live function on a plugin?
The jPikcer plugin wont work I create it from a .live('click', function(e)
Example:
$('.Multiple').jPicker();
Thanks,
Gino
I'm trying to load some data to an Oracle database using SQL Loader. Is it possible to invoke it with specifying the server to load the data into using a DSN instead of a TNS?
Right now my command line looks like this: sqlldr uesr/password@tns_id..., I'd like to replace tns_id with a DSN that points to tns_id. Can SQL Loader figure out the TNS from the DSN by itself?