I don't find a CanGrow property on the Textbox control. This is common in some other controls, and what it does is expand the control to acomodate more data. Anyway to get this feature in the TextBox?
I am writing a Codec to process messages sent over TCP using a bespoke wire protocol. During the decode process I create a number of Strings, BigDecimals and dates. The client-server access patterns mean that it is common for the client to issue a request and then decode thousands of response messages, which results in a large number of duplicate Strings, BigDecimals, etc.
Therefore I have created an InternPool<T> class allowing me to intern each class of object. Internally, the pool uses a WeakHashMap<T, WeakReferemce<T>>. For example:
InternPool<BigDecimal> pool = new InternPool<BigDecimal>();
...
// Read BigDecimal from in buffer and then intern.
BigDecimal quantity = pool.intern(readBigDecimal(in));
My question: I am using InternPool for BigDecimal but should I consider also using it for String instead of String's intern() method, which I believe uses PermGen space? What is the advantage of using PermGen space?
I want to develop a module to implement such a feature:
when exchange receive emails in the mailbox : [email protected]
the module will be triggered and modify the email's TO Address to /test/@smb.local and save back to mailbox [email protected].
Thanks in advance!
I want to save and restore the window position of my WPF application. I want to make the code robust to use with multiple monitors who's number and relative location can change (I want to avoid opening my application off-screen when the monitor configuration has changed inbetween invocations).
I know of the Screen class in System.Windows.Forms, but I don't want to take a dependency on that assembly just for this feature.
I'm working on a website where I need to show/hide table rows. I got the feature working, but the CSS gets bad when I do show. I'm providing a working link; click the 'More...' link and see the action for an example. I'm using jQuery's toggle(slow) for hiding and showing
Once I read in a statement that
The language feature that "sealed the
deal" to include references is
operator overloading.
Why are references needed to effectively support operator overloading?? Any good explanation?
arraylist.add(new ListItem("Activity1", "ActivityName1"));
suppose ActivityName1 value store in properties file to provide locale feature.
now how can i access the value of Activity1 key that associate to ActivityName1 value on jsp ( ActivityName1 corresponds to a properties file value) by using Struts.
i want to find the ActivityName1 value that store in properties file by using the Activity1 key in Struts framework.
I have a bezier path library to draw complex bezier paths without problem. Now, I need to know how to read a text or font and extract its path information to draw it as a path instead of as text.
I came across a C applicaiton, FontForge. It does exactly what I need, picks any font and extract its path information. But what I need to know is how it does it to add that feature to my drawing library.
What real world project based on Windows Embedded do you know? Please provide some details such as description, project domain, key feature and why Windows Embedded is used?
is there a way i can cache all required application files on the local computer for speed without any disruption (at least those that can be run locally)?
i want it to be able to start even without connection right from the start, isit possible? is Google Gears what i shld use? i heard theres a HTML5 feature/module for it?
Quoted from this answer:
Cost of tools: JavaME would be
cheapest, followed by Symbian, Android
then iPhone.
I want to get started with mobile phone programing,but I don't see where Symbian does cost, as its SDK is available for free.
Anyone knows?
BTW,many people say Symbian only supports Symbian C++, but after reading its document, it seems it also support Java, is this feature newly added?
Hello,
i already created a table for comments but i want to add the feature of thumb Up and Down for comments like Digg and Youtube, i use php & mysql and i'm wondering What's the best table scheme to implement that so comments with many likes will be on the top.
This is my current comments table : comments(id,user,article,comment,stamp)
Note: Only registred will be able to vote, so there isn't need to restrict the votes by IP
Thanks
I'd looking to emulate the standard google visualization table header row behavior, but have it apply to the first column. This doesn't seem to be a built-in feature, but I'm wondering if it can be accomplished with some custom CSS?
as topic, I want see the inner constructs of a special view on Mac, like the class name,and hierarchy , etc.
as we know, on Windows, we can use Spy app for this purpose, if any the same feature app can be use on Mac ?
thanks for you reply.
Regards
I'm reading the Google Maps API and it states that the:
"callback: The function to call once the script has loaded. If using the Auto-loading feature, this must specify a function name, not a function reference.
What's the difference been a JavaScript function name vs a function reference?
http://code.google.com/apis/ajax/documentation/#GoogleLoad
i am trying to use built-in MS Project feature - sync to sharepoint list. The project size is not very large - yet i almost always get GPFs. Could not find any leads on how to work around this
I would like to use the task-list in Visual Studio but it really lacks almost any useful feature a task-list should provide. So I use Todo-List externally, to keep track of the things I need to get done. Would be nice to have it all in one place.
So does anyone know of a cool replacement Add-On for the tasklist in Visual Studio?
Thanks in advance!
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?
By default, when you apply changes to a Bugzilla entry, the web interface advances to the next bug in your list.
I would like to disable this feature since it is almost never what I desire, planning to make further updates later. Further, I often update the wrong bug subsequently due to its changing the current bug without my noticing.
How do I configure Bugzilla to not advance like this?
I want to use Pivotal Tracker for a new project but I don't know how to use it with Mercurial to make it easy to go from one tool to the other.
What workflow do you use to link user stories/feature in Pivotal Tracker with your DVCS (Mercurial/Git)?
Thanks in advance for your advices.
I'd like to duplicate the find feature (Ctrl-F in Firefox) for my users.
In other words, a text box that as the user types, it finds the first occurrence of that text, and if they press "Next", it highlights the next occurrence and moves the page if necessary.
I'm thinking the search input would have to be in a div that remained fixed, and as it found what it was looking for, would insert a named anchor just before it and then follow the hyperlink.
Do you think this can be done?
I'm looking for any documentation or definitive information on Ableton's warp feature. I understand that it has something to do with finding transients, aligning them with an even rhythm and shifting audio samples accordingly. I'm hoping to find ways to approximate warping with more basic audio editing tools.
I understand that this is ableton's unique device, really any information about how it works would be helpful.
So...does anyone have any 411?
In the case of MSFT SQL Server 08, it is:
odbcCommand = new OdbcCommand("{call " + SP_NAME + " (?,?,?,?,?,?,?) }", odbcConn);
When I try to do the same thing for Oracle, I get:
OdbcException: ERROR [HYC00] [Oracle][ODBC]Optional feature not implemented.
Feel free to ask for clarification, and please help. I am using .Net 3.5, SQL Server 08, and Oracle 11g_home1.
P.S. The Oracle stored procedure does have some 3 more parameters, but I believe I am handling this in my code.
You know the neat text zoom feature in VS2010 where you hold down Ctrl and then use your scroll wheel? Well, this seems to happen by default (and without ever pressing Ctrl) to nearly every file I open.
Usually I open a file and have to scroll to some lower point, but instead it starts zooming the text! I have found that by tapping the Ctrl key VS then realizes that it should scroll instead of zoom, but it's still very annoying.
Any ideas?
Hi all. I have a C++ project that uses a C bison parser. The C parser uses a struct of function pointers to call functions that create proper AST nodes when productions are reduced by bison:
typedef void Node;
struct Actions {
Node *(*newIntLit)(int val);
Node *(*newAsgnExpr)(Node *left, Node *right);
/* ... */
};
Now, in the C++ part of the project, i fill those pointers
class AstNode {
/* ... */
};
class IntLit : public AstNode {
/* ... */
};
extern "C" {
Node *newIntLit(int val) {
return (Node*)new IntLit(val);
}
/* ... */
}
Actions createActions() {
Actions a;
a.newIntLit = &newIntLit;
/* ... */
return a;
}
Now the only reason i put them within extern "C" is because i want them to have C calling conventions. But optimally, i would like their names still be mangled. They are never called by-name from C code, so name mangling isn't an issue. Having them mangled will avoid name conflicts, since some actions are called like error, and the C++ callback function has ugly names like the following just to avoid name clashes with other modules.
extern "C" {
void uglyNameError(char const *str) {
/* ... */
}
/* ... */
}
a.error = &uglyNameError;
I wondered whether it could be possible by merely giving the function type C linkage
extern "C" void fty(char const *str);
namespace {
fty error; /* Declared! But i can i define it with that type!? */
}
Any ideas? I'm looking for Standard-C++ solutions.