I know there is a standard behind all C compiler implementations, so there should be no hidden features. Despite that, I am sure all C developers have hidden/secret tricks they use all the time.
After using Git from the command line for a while, I am ready for the convenience a GUI plugin (for Eclipse) can offer.
However, I prefer a Git plugin similar to to MS Visual Studio's Git Source Control Provider which is only a wrapper around the already installed msysgit. I really don't want two different Git implementations accessing the same repository.
EGit sounds perfect - if it can use the already installed msysgit in my PC.
But can it?
Hi,
How do we do safe JSON parsing with GWT? It looks like the json parser GWT offers uses eval() - is there a different option which uses the native implementations when available?
Thanks
I am using eclipse , when I use shortcut to generate override implementations , there is an override annotation up there , I am using JDK 6 , this is all right , but under JDK 5 this annotation will cause an error, so I want to ask , if this annotation is completely useless ? Will compiler do some kind of optimization using this annotation ?
As some of you may know in python2.7/3.2 we'll get OrderedDict with PEP372 however one of the reason the PEP existed was because everyone did their own implementation and they were all sightly incompatible.
So which one of the 8 current implementations link text is backwards compatible with the 2.7 odict from python 2.7 in a way we can start using that now and depend on 2.7 in a couple of months?
I have an application that I want to represent a users session (just small pieces of data here and there) within a GUID. Its a 16 HEX characters (so 16^16 possible values) string and I want to 'encode' some data within that GUID.
How can I achieve this? I am really after any ideas and implementations here, Ive not yet decided on the best mechanism for it yet.
I would also like encryption to be involved if possible...
Thanks a lot
Mark
I have an interface named PropertyFilter which used to take a Propertyand decide if accepts it or not. And the world was good.
But now the interface changed, so that implementations may choose to add additional Propertys. For example a Customer property might get expanded into Name and Address properties.
I think it is obvious this is not a Filter anymore, but how would you call such a thing?
According to Wikipedia NoSQL article, there are a lot of NoSQL implementations.
What's the difference between document-oriented and key-value storages (as people mention them most often)?
I often find the following type of incremental definition useful:
(define (foo) (display "bar"))
(foo)
;prints bar
(define foo (let ((bar foo))
(lambda ()
(display "foo")
(bar))))
(foo)
;prints foobar
How do I preform this type of incremental definition with macros?
I could not get let-syntax to provide the same functionality.
Currently I use plt scheme, but would like to see answers in different lisp implementations as well.
Reading about both Linq to SQL and Entity Framework I have developed the impression that EF is more suitable for apps that get data from multiple data sources.
But as I am reading about MVC2 models I see an example where EF is more loosely coupled with your data model.
If I have to add or remove some columns from a table then what is involved in updating my model or DAL with each of these implementations?
From what I gather, there are two major methods to perform alignment on point clouds, Iterative Closest Point (ICP) and Particle Filtering. What are the advantages of each method? And can someone point me some good tutorials.
For what I am currently doing, I think ICP would be easier, I can't seem to find any simple reference implementations online for 2d point sets. Has anyone seen (psuedo)code for ICP with details on the transformation step?
Thanks in advance.
OK, I know how to create a class extension, using something like that:
on .h
@interface UIButton (myExtensionName)
// my extended methods
@end
and then on .m
@implementation UIButton (myExtensionName)
// my implementations
@end
But how do I declare the extended delegates I may create?
If this was a normal class I would do
@protocol myExtensionName <NSObject>
// my delegate declarations
@end
but how do I do that on a class extension?
thanks
I often find the following type of incremental definition useful:
(define (foo) (display "bar"))
(foo)
;prints bar
(define foo (let ((bar foo))
(lambda ()
(display "foo")
(bar))))
(foo)
;prints foobar
How do I preform this type of incremental definition with macros?
I could not get let-syntax to provide the same functionality.
Currently I use plt scheme, but would like to see answers in different lisp implementations as well.
The default generated hashCode and equals implementations are ugly at best.
Is it possible to make eclipse generate ones from HashCodeBuilder and EqualsBuilder, and perhaps even a toString with ToStringBuilder?
I'm looking for implementations of lock-free containers:
Blocking Queue
Blocking Stack
Hash Map
etc...
Are there any good libraries out there? I would like to refrain from writing these data structures... I would much rather use something that has been tested by the community.
Is it correct practice to add Javadoc comments in Interface and add non Javadoc comments in the implementation?
Most IDEs generate non JavaDoc comments for implementations when you auto generate comments. Shouldn't the concrete method have the description?
Why Methode LinkedList.contains() runs quickly than such implementation:
for (String s : list)
if (s.equals(element))
return true;
return false;
I don't see great difference between this to implementations(i consider that search objects aren't nulls), same iterator and equals operation
These days, generally when someone references BASIC they are asking about a Microsoft implementation - either VB.NET or VB6. Are there any dialects/versions of BASIC still actively used outside of the Microsoft implementations?
I've heard a few places that one of the main ways distributed version control systems shine, is much better merging than traditional tools like SVN.
Is this actually due to inherent differences in how the two systems work, or do specific DVCS implementations like GIT/Mercurial just have cleverer merging algorithms than SVN?
I am looking at this question from someone with a Microsoft background. If I wanted to get to know the EJB world, who are the leading players in terms of implementations?
public class Testing extends JDialog {
public MyClass myClass;
public Testing() {
}
}
given the above code, is it possible to override a method in myClass in Testing class?
say myClass has a method named computeCode(), will it be possible for me to override it's implementations in Testing? sorry it's been a long time since I've coded.
Hi,
I have an interface for logging the exceptions, i.e. IExceptionLogger.
This interface has 3 implementations: DBExceptionLogger, XMLExceptionLogger, CSVExceptionLogger.
I have an application that will make a use of DBExceptionLogger.
The application references only IExceptionLogger. How do I create an instance of DBExceptionLogger within the application.
I can't reference the DBExceptionLogger directly since it will break the purpose of having IExceptionLogger interface.
Thanks
Are there any good database abstraction layers/object relational mappers/ActiveRecord implementations/whatever they are called for Android? I'm aware that db4o is officially supported, but it has quite a large footprint and I'd rather use a more conventional database (SQLite).
Today i listened a lecture about fenwick trees (binary indexed trees) and the teacher says than this tree is a generalization of interval and segment trees, but my implementations of this three data structures are different.
Is this afirmation true? and Why?
What does this mean and why am I getting this error. Any suggestions on how to fix it?
"Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations."