Best Java IDE for power consumption [closed] - java

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am a university student that has been working with java now for a few years. I have been using eclipse in that time, but I have started to take a look at intellij idea. One big thing that I am interested in is battery. At most times, I am using my macbookto program. The biggest issue I have with it is trying to get the most out of the battery as using a IDE + testing programs can use quite a bit of power. Does anyone know which IDE (IntelliJ IDEA / Eclipse) would be better on the battery, or do you know any tips that could improve the battery life using either IDE?

This question will result in opinionated answers+this not about programming. There are no definite tests on finding which uses less battery power.
As Daemon said the difference in power consumption is minimal/insignificant.
What you should be asking are the objective differences between either IDE. Many people have asked that on Stackoverflow, so you should look into that. The following link shows some objective differences between the two: Differences between Eclipse and IDEA
However, IDEA does come with a Power Save Mode; not sure if that's relevant to you? From the DOCS: Power Save Mode Select this check box to minimize power consumption of your computer on account of eliminating the background operations. When Power Save Mode is on, no inspections are performed.
I suggest you carry around a battery charger.

Notepad++ makes for a functional code editor without the extra features that add processing overhead (which is likely draining your battery somewhat, but not much).
In all seriousness however, you'll find that the difference between IDE's in terms of power consumption is minuscule, and can safely be ignored. If you want to see real improvement in battery life, consider switching to a less performance-hungry operating system, such as Arch Linux.
If you're still concerned, consider stripping Eclipse or IntelliJ down to the bare minimum feature set required by your work.

Related

Phonegap vs native for ease of developing? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I know it has been asked many times before but I am still confused.
I need to develop an application that works mainly with data, something similar to facebook for example.
I want to target both Android and ios.
I do know some Html/css/javascript though I am not an expert.
I find it very difficult to work with Javascript, difficult to debug etc.
Will it be easier to work with Java/ Objective C?
From my experience .Net is 100 times easier then Javascript. Is it the same with Java/Objective C?
Also I am looking for the long run on how to work in the next projects(which will also be information based), so I am willing to sacrifice time and learn platforms. What will be the learning curve for on against the other, and once you know the platforms, what will be easier?
Another question: do you think there will be a demand for phonegap developers in the future? since I don't think that now it is in demand/use, as the expectations were from this platform.
I'll try to answer some of your questions:
If your app is data-intensive (facebook example, a lot of multi
threads to load a lot of data) you should use native language for
your app because it will be a lot less slow. I develop both in iOS
and Android, the learning curve really depends your own experience.
If you are better at object-oriented languages and have experience
with listeners Android will be easy as pie. But learning to develop
in ObjectiveC requires to have some experience with pointers and
structure/funcion-oriented languages (C,C#,C++). I find Android to be
easier for beginners tho ;)
Phonegap at the moment is a very good choice for small, light apps,
and it's community is growing bigger and bigger (you got Cordova
also, works just like Phonegap) and if you have experience with web
development and design it will be a LOT easier to develop your first
app.
There is a big BUT in using Phonegap/Cordova: the UI is slow at the moment, by that I mean that when you click a button or icon it is somewhat slow to react compared with native...if your app is client-oriented I wouldn't use Phonegap. This "slow" effect worsens with data-heavy apps so take care what you decide.
Hope that I've helped you out, feel free to ask anything ;)
Will it be easier? Not so much when you get the hang of it. I have made a web app using PhoneGap and I still liked writing it in the native enviroment (PhoneGap did not produce the results which I have hoped for).
If you really have time and you're willing to learn then you should go native. That way you will learn more languages which will benefit you more in the long run. Java is going to be easier if you're used to OOP. But don't be scared of anything. Go for it!
In the future? Well JavaScript, HTML5+CSS3 is already popular and might grow even more.
Use PhoneGap for small and light apps and not for "Facebook" type apps:)
Thats just my humble opinion.

Web-Based Screen Recorder Plugin [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I want to start on a new project regarding screen recording from web browsers, probably using a plugin or something similar (if it is possible). Basically I need a web interface from where the user runs something like a plugin, select the area where the screencast should be, press the record button, talk for maximum 5 minutes then the video should be uploaded to my server for further review. (I am doing this for a school project where the students/users use this max 5min videos to tell the teacher about an issue/problem etc.). I've researched (Google it :D) about different methods that I can use. I am a student aswell and I have a limited amount of programming knowledge mostly with python, html, css, javascript, objective c & php but I am more then glad to learn something new if is required. I've found an open-source plugin called ScreenBird
https://github.com/adamhub/screenbird
This is what I need but it requires from what I know a Python Server (correct me if I am wrong) which I don't have from the school. I can work only on a Apache server from where my issue, otherwise the ScreenBord should be enough. I don't want to go so much into programming the plugin because I want to work on the design of the website mostly for a better presentation. I really want to start working on this as soon as possible but now I am stuck on what tool to use and that's why I am writing this question: What is the best web-based screen recorder plugin for my needs?
For the Screen Installation instructions are given here: https://github.com/adamhub/screenbird/blob/master/README.md
I don't think you need a python server. You just need python installed.
You should be able to run it on localhost and local network, if you don't need it on the internet. Buying hosting for a python server might be useful in this case, its not too expensive :http://www.whoishostingthis.com/compare/python/#
You didn't mention what type of server you have access to, default could mean anything (Apache, IIS, TomCat etc)

Increase large Java application performance [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I have a quite large Java application, that I may thinking to do some performance increase, but I am very new at this and wonder where should I start.
I guess I have to first perform some code test and see where most calculation and resource/time spend on which part of code before starting increase performance. Are there any tool that I can use and any general tips where to start and how to increase performance?
You may take a look at this:
Performance profiler for a java application
And find bottleneck of your application.
Without further info, there is not much to say. Some general advice for performance issues:
Do not put if inside loops, if it can be outside
Try avoid extensive use of division operator
Cache data instead of loading them all over again from files / DB
Recursion may be faster if rewritten to loops
If you now sizes of "lists" beforehead, no not use add, but resize your array during initialization
Use threads were possible and where thread could perform large portion (or slow) of code. Do not use threads if you only need to fill array with max of tousands elements.
First, if you have lots of loops, think carefully about whether you need to run through every single loop. Maybe you can combine some of them?
Second, don't create variables unless you have to. If you have a complex mathematical equation, write it out split up into lots of variables to make it easier to debug, but remember to combine it into one or two lines when you're finished.
Finally, use one of the many free open-source Java profilers.

Java obfuscation - ProGuard/yGuard/other? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
This is along similar lines as these recent questions:
Best Java Obfuscation Application For Size Reduction
Creating non-reverse-engineerable Java programs
However, one ends up recommending yGuard and the other ProGuard but neither mention both. I wonder if we could get a comparison of each one and hear peoples experiences from both sides of the fence. Looking at this comparison chart on the ProGuard website its clearly angled towards ProGuard. But what about real-world experience of each - which one produces smaller output? which one is harder to decompile from? what Java versions are supported by each?
Personally I'm particularly interested from a J2ME point of view but please don't limit the discussion to that.
Results for my project.
Obfuscation - both fine.
Optimisation - ProGuard produced 20% faster code (for the measured app bottleneck).
Compactness - ProGuard about 5% smaller.
Configuration / Ant - YGuard is much easier to configure.
So, I'd advise ProGuard - but configuration and ant integration could definitely be improved.
Proguard is a better product; especially if you take the time to go through the settings for J2ME.
Specifically for J2ME there is a far better (commercial) product called mBooster
I've been getting around 25% improvement in size on my application after its been through Proguard. This is mainly to do with the better Zip compression on the Jar file and comprehensive support for class merging and preverification.
My opinion is - ProGuard is better. Output is smaller a bit. Optimizing is better and much faster.
Decompiling is simple in both cases. Well, i mean, if u know Java well and really know business-logic of what you're decompiling, there is no problem to get it back to sources from obfuscated classes.
So, my opinion is ProGuard is better.

Java Open Source Workflow Engines [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
What is the best open source java workflow framework (e.g. OSWorkflow, jBPM, XFlow etc.)?
Here's an article that compares kBPM, OpenWFE, and Enhydra Shark that looks like it has some good, thorough info.
It depends what kind of initial investment you want to make. jBPM is the best in terms of features and flexibility, but OSWorkflow is a more lightweight, easier to get up and running and has with a smaller learning curve.
Drools Flow is the best workflow solution that I came across recently. It has a luxury to be better than other solutions, since it is built and designed recently, and based on lessons learned from other long existing, somewhat over engineered frameworks.
Drools Flow comes as a community project along with an official Drools 5 release that besides Flow includes: Guvnor, Expert and Fusion.
Unfortunately Drools Flow does not have an official Red Hat support contract yet, and that is a stopper for some big corporations to consider it. One might think the support is not there for political reasons due to the jBPM project living under same support roof.
I'll cast a vote for jBPM. We used it on a larg-ish ETL platform in-house and it seemed to work quite well. I don't have anything to compare it to, however.
YAWL - Yet another workflow Language
http://en.wikipedia.org/wiki/YAWL

Categories

Resources