Hai,
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
This error is occur while creating a new template in google sites using java programming.
I know that everything we do in programming can be described as design pattern(even abstract method has design pattern called template method)
public class Guicer extends AbstractModule {
private static Injector injector = Guice.createInjector(new Guicer());
public static void setInjector(Injector injector) {
Guicer.injector = injector;
}
public static T getInstance(Class c) {
return injector.getInstance(c);
}
@Override
protected void configure() {
}
}
What design patterns are used in this code?
Which programming language and tools can i use, to develope a complete stand-alone gui-application? This application will be burned on a cd and should run on every windows-pc without any installations.
I want to read a big text file, what i decided to create four threads and read 25% of file by each one.
and then join them.
but its not more impressive.
can any one tell me can i use concurrent programming for the same.
as my file structure have some data as
name contact compnay policyname policynumber uniqueno
and I want to put all data in hashmap at last.
thanks
I noticed a rise in the number of developers (mostly doing web development) using Apple machines.
Does Mac OS offer a better environment for programming or is it because of the hardware?
What are the reasons?
Am a newbie to programming and have seen examples on dragging and dropping items from one list to another list using jQuery. My problem is that my list is populated dynamically and so i cannot predefine the list items. Can anyone provide a solution to this? Am working in Visualforce.Thanks in advance.
Java is not my main programming language so I might be asking the obvious.
But is there a simple file-handling library in Java, like in python?
For example I just want to say:
File f = Open('file.txt', 'w')
for(String line:f){
//do something with the line from file
}
Thanks!
Some programming environments like C++ builder have timer components with a callback function which executes in the same execution contexts as where the timer object is created.
I was wondering how to do something similar in plain c++ with threading.
Or are there any other ways to have a callback which is periodically called to perform some task and runs in the same execution context as the calling thread?
hi friends
I want to pursue my career in programming .Please guide me on which technology I should learn I want to learn a technology in which i can get good salary package quickly and job security will be second priority.
i have basic knowledge
flash /flex as3
c#,.net
sql server
Hi,
I am using C language and Linux as my programming platform.
I am learning how to create a daemon, and I want to create a log file so that I write a debug message in my daemon. My question is where should I put the log file in my system. Should I put it in the var folder?
Please advice.
Many thanks.
I have very little programming knowledge; only a fair bit in Visual Basic.
How do I take a value from a text field, then do some simple math such as divide the value by two, then display it back to the user in the same field?
In Visual Basic you could just do txtBoxOne.text = txtBoxOne.text / 2
I understand this question is more than one question and is very basic stuff, but I need to get my head out of Visual Basic and into where I should be :)
Programming language : VB6
I have a problem to copy region within a picture deteremined by 4 points(p1,p2,p3,p4), and reskew it to a another picture with fixed rectangle (P1,P2,P3,P4), as shown :
thank you so much in advance for your help
I am a c# developer which finds himself having to relearn c++. The last time I programmed in c++ was in school and am looking for good books as a refresher. I want something that assumes previous programming exposure and gets straight to the point. Is there a book similar to K&R for c++? I know the language is bloated so a book that covers a subset of c++ would be ideal.
RubyParser.new.parse "1+1"
s(:call, s(:lit, 1), :+, s(:array, s(:lit, 1)))
Above code is from this link
Why there is array after + in the Sexp. I am just trying to learn ruby parser and the whole AST thing. I have been programming for a while but have no formal education in computer science. So do point to good article which explains AST etc. Please no dragon book. I tried couple of times but couldn't understand much of that book
Not completely a programming question, but its close enough so here goes:
In Mac OS I'll put user-specific files for my app in ~/Library/Application Data/{MyApp}/ and in *nix I'll put them in ~/.{MyApp}/ - where should I put them for Windows?
I'll be using Ruby's File.expand_path to get to this directory, so if there's a windows equivalent of ~ then that's fine.
(Answers for Windows XP, Vista and 7 would be appreciated if they're not the same)
I am programming a snake game using c++ and I first designed an array(grid) adn my question is how can create a character that i can control using arrows on keboard,, if possible can any one give me the exact code, thank you
Many of today's programming languages are based on C; like C++, C#, Java, Objective-C. So could I call a C method from C++ code? Or call C from Java or C#? Or is this goal out of reach and unreasonable? Please include a quick code sample for my and everyone else's understanding.
The Core Data Programming Guide talks a lot about what not to overwrite. So the question is: What is good to overwrite?
Like I see it, I can't overwrite -init or -initWithEntity:insertIntoManagedObjectContext:
So where else would be a good overwrite point to set up some basic stuff? Or is it generally not needed to do custom initialization? Does the whole thing rely only on accessing properties which then start to do fancy things? So no custom initializations?
I have got one project where I need to build a site in site core CMS.
I have never used that CMS.
I want to know that if my programming skills are good because I don't know ASP or ASP.net but do know PHP.
The sites are simple html pages with no logins and processing.
Can I do it few weeks?
I was browsing this thread, which has good recommendation but a bit too general for me.
So, if anyone has a collection of nice game programming feeds,please share them. :)
(both general and specific topics are welcome)
I am interested in understanding object-oriented programming in a more academic and abstract way than I currently do, and want to know if there are any object-oriented concepts Java and C++ fail to implement.
I realise neither of the languages are "pure" OO, but I am interested in what (if anything) they lack, not what they have extra.
What good IDE would you recommend for C++ (GNU) programming, with support for the wxWidget library and a GUI builder/designer all in one? Can be either for windows or linux.
Hi all:
I'm looking for an accurate way to measure memory usage of a C# program under Windows operating system. I'm using Visual Studio for programming my code and I want to know its time consuming for performance. Really, I tried to use the Task Manager, but I do not get an accurate measurment.
Please, if any one know an accurate way to measure the memory consumption, please help me and thanks alot
Which is the best programming language to use for creating a screensaver?
I am thinking of creating a screensaver to showcase projects i have done before for self satisfaction.
How should i go about it?
Thanks