hi all,
i'm trying to control some soulseek features from VB6 - the problem is the SysTabControl32 - how can i read out which tab is selected? the api spyer only returns the SysTabcontrol32 but no tab button.
thx
class attrdict(dict):
def __init__(self, *args, **kwargs):
dict.__init__(self, *args, **kwargs)
self.__dict__ = self
a = attrdict(x=1, y=2)
print a.x, a.y
b = attrdict()
b.x, b.y = 1, 2
print b.x, b.y
Could somebody explain the first four lines in words? I read about classes and methods. But here it seems very confusing.
I've read that FxCop is integrated in to Visual Studio 2008 out of the box as "Code Analysis". I can't find how to run the analysis though. Where is the "Run Code Analysis" function?
I am trying to send a mail from my web2py app hosted on GoogleAppEngine. But it is not working. I used the mail function that was given with the web2py. Does anybody how to do this?
I read in the GAE Documentation that python mail library would not work with GAE and GAE mail library has to be used. Does it also applies to web2py mail?
Thanks
I'll let users register their [email protected] ,,, they enter their members area where they can :
1- send emails ( easy to do)
2- receive emails ..
for receiving emails , I'll use a catch all email account , read the email and figure to whom it's sent (username), and then I save it on the database with userid of the username who has registerd !
Do I miss something here ... is it really this simple (if I don't have an email server) ?
Hi!
I have excel file with such contents:
A1: SomeString
A2: 2
All fields are set to String format.
When I read file in java using poi it tells that B1 is numeric cell format.
The problem is that the value in A1 can be 2 or 2.0 so I can't just use .toString().
Can anyone help please?
I have a WinForms app that I recently re-wrote in WPF and I need to release to my end users. I'd like to be able to have the users go to the ClickOnce install point for the WPF application and have their WinForm application removed so they don't have both on their machine
What's the best way (read: easiest for users) of accomplishing this?
I have thought about creating an prereq command line app to detect the old version and uninstall, but would like to avoid having to write an something like that where it only get's run once.
Please help me as I am a newbie using VB.NET.
I have been asked to transfer rows from a DataReader into a Crystal Report dataset.
Here are the coding:
Private Sub BtnTransfer()
dim strsql as string = "Select OrderID, OrderDate from ORDERS"
dim DS as new dataset1 '<---crysal report dataset1.xsd
dim DR as SqlDataReader
dim RW as DataRow = DS.Tables(0).NewRow
sqlconn = new sqlconnection(ConnString)
sqlcmd = new sqlCommand(strSql, sqlconn)
sqlcmd.Connection.open()
DR = sqlcmd.ExecuteReader(CommandBehaviour.CloseConnection)
Do while DR.Read
RW("OrderID") = DR("OrderID")
RW("OrderDate") = DR(OrderDate")
DS.Tables(0).Rows.ADD(RW)
Loop
End sub
hi , i am new to nosql world i know sql and rdbms very well , i want to get start with nosql
so i need to know :
where i can start read about nosql (books , online tutorials )?
what is the most simple nosql engine i can start with (i am using java)?
thanks .
I'm not very keen with OpenGL and I was wondering if someone could give me some insight on this. I'm a 'seasoned' programmer, I've read the redbook about VBOs and the like, but I was wondering from a more experienced person about the best/most efficient way of achieving this.
I've been producing this 2d tile-based game engine to be used in several projects.
I have a class called "ScreenObject" which is mainly composed of a
Dictionary<Point, Tile>
The Point key is to show where to render the Tile on the screen, and the Tile contains one or more textures to be drawn at that point. This ScreenObject is where the tiles will be modified, deleted, added, etc..
My original method of drawing the tiles in the testing I've done was to iterate through the ScreenObject and draw each quad at each location separately. From what I've read, this is a massive waste of resources. It wasn't horribly slow in the testing, but after I've completed the animation classes and effect classes, I'm sure it would be extremely slow.
And one last thing, if you wouldn't mind..
As I said before, the Tile class can contain multiple textures to be drawn at the Point location on the screen.
I recognize possibly two options for me here. Either add a quad at that location for each texture to be drawn, or, somehow.. use a multiple texture for the same quad (if it's possible). Even if each tile contained one texture only, that would be 64 quads to be drawn on the screen. Most of the tiles will contain 2-5 textures, so the number of total quads would increase dramatically with this method. Would it be feasible to add a quad for each new texture, or am I ignoring a better way to do this?
Just need some help understanding this if you don't mind :)
I've tried to be as concise as possible, and I'd greatly appreciate any responses.. and even some criticism. Programming is often a learning process and one who develops seems to never stops learning.
Thanks for your time.
I am trying to send a ctrl-x keystroke to COM2 and I ahve to code to open the port and read and write but when I tried to send Chr(Keys.ControlKey + Keys.X) it did not work. any ideas?
I've read somewhere that ergonomic problems accounts for 70% of injury...
And i don't want to be one of those guys who think, ahh it's just a slight sore, and go on and discover that i have CTS and have to operate on my hands!!!
So are the any good ergo habits that you follow religiously each day?
Or some cool tools that would send any ergo issue to a cold hell and force it to stay there.
So we can program hopefully until we're old and wicked.
Hi!
I want lo learn about Information Retrieval and Machine Learning. Which books do you recommend and in what order do you think is better to read them?
The idea is to reach a good understanding of recommendation systems.
Thanks!
Jonathan
I've got a radiobuttonlist with a bunch of list items, some of them disabled.
The label control beside the radio button turns gray, which can be hard to read.
How do I change the color of the label?
I've tried CSS, changing the forecolor - nothing seems to work:
currentButton.Attributes.Add("class", "disabled");
Any ideas?
Hi folks,
I'm saving contacts (email, mobile phone, ICQ, AIM etc.) for people like this:
class Person {
static hasMany = {
contacts: Contact
}
}
class Contact {
String code
ContactType type
}
class ContactType {
String name
}
In my view, I've written some Templates for displaying each contact with a select-box for the contact-type and a textfield for the code, spiced up with some JavaScript for adding and deleting.
My question is: Is there an easy and elegant way to update the data similar to personInstance.properties = params or do I have to read out all the fields, deleting removed, updating changed and adding new ones?
Greetings.
I am encountering an issue with attachment fu and s3.
Details:
Production server - Ubuntu - imagemagick, rmagick aws-s3 gems are installed .
Error starting app:
vendor/plugins/attachment_fu/lib/technoweenie/attachment_fu/backends/s3_backend.rb:173:in `included': undefined method `symbolize_keys' for nil:NilClass (NoMethodError)
See: http://github.com/technoweenie/attachment_fu/blob/master/lib/technoweenie/attachment_fu/backends/s3_backend.rb
Has anyone encountered this? It seems that even with the config/amazon_s3.yml, the YAML file is not read.
I learned math in a non-English environment, I recently read some books about algorithm analysis, I found some math concepts were confusing, and seemed not the same as what I've learned. What math textbooks would you recommend that covers math concepts from the scratch and suitable for self-learning ?
IE has WinInet API, such as GetUrlCacheEntryInfo, to read and manipulate IE browser cache.
Is there a similar API for non IE browsers such as Firefox or Chrome? If so where can I get more info?
Thanks
Update:
According to following (http://stackoverflow.com/questions/61453/accessing-firefox-cache-from-an-xpcom-component) the WinInet function GetUrlCacheEntryInfo() can be accomplished by nsICacheSession.openCacheEntry() to get nsICacheEntryDescriptor. Is there an equivalent WinInet function CreateUrlCacheEntry() which will create a cache entry?
In my Java code, I start a new process, then obtain its input stream to read it:
BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));
FindBugs reports an error here:
may fail to close stream
Pattern id: OS_OPEN_STREAM, type: OS, category: BAD_PRACTICE
Must I close the InputStream of another process? And what's more, according to its Javadoc, InputStream#close() does nothing. So is this a false positive, or should I really close the input stream of the process when I'm done?
I've just read the What's New in Python 3.1 text (and I like many things). What's your idea of the thing that didn't go there but you would like to see in the future Python versions?
I've already read all available documentation and I cannot find a solution.
I have a calendar outside of the grid which on click returns a date. All I need to do is filter my jqGrid based on that date. Can someone point me to the correct API method?
Thanks!
We are planning to use BDC to read and probably write to a SQL Server content database on external server. I have heard that there are many security issues that you may run into or should be aware of before setting up BDC.
has anyone faced or knows any security issues with BDC. Thanks.
Who knows actively developed XACML Implemtations other than the Sun XACML Implementation and XEngine?
Which vendors provide a PDP? I read something about a WebLogic XACML Privider. What other products support XACML?