jwenting 1,905 duckman Team Colleague

Will autopilot make road travel safer?

That depends entirely on the quality and functions of the autopilot equipment and software.
If it's created to the standards used in commercial aviation, yes, but only if by law everyone is required to use it at all times.

If it's created to the standards of most software overall, absolutely not.

jwenting 1,905 duckman Team Colleague

Some tips my doctors gave me when dealing with chronic (and I mean I at times didn't get more than half an hour of sleep out of every 24 for weeks on end) insomnia:

  • Stop using emissive screens at least an hour before going to bed (so TV, computer, tablet, cellphone, etc.)
  • Don't eat or drink during that period
  • Take a short walk outside. Relaxes the mind, refreshes the body
  • Some light reading helps
  • Get rid of the CFL energy saver light bulbs as their flicker overstimulates the brain even if you can't consciously see it.
jwenting 1,905 duckman Team Colleague

According to an old Stackoverflow post (which you could have easily found yourself, it's as simple as running a single PL/SQL statement SELECT * FROM ALL_source WHERE UPPER(text) LIKE '%BLAH%'

Click Here

No need to export it to Excel and drop manually, the stored procedure you write to execute this statement can loop over the results and drop directly (of course you need to make sure to skip the procedure itself in that loop, as it will be one of the returned database objects).

jwenting 1,905 duckman Team Colleague

I am feeling a lot of deja vu here...

You should not use both annotation based and xml based web application configuration in the same web application.
Choose one or the other and stick with it.

jwenting 1,905 duckman Team Colleague

Do you really think it's useful to tag your "gif mi zuh koduz" request to the end of a thread that's been dead for 7 years, rather than doing your own homework?

jwenting 1,905 duckman Team Colleague

I'm not sure if it's the root cause of your problem, but I don't think mixing xml based and annotation based configuration of your web application is a good idea.
I wouldn't be at all surprised if the servlet engine ignores the annotations if an xml based configuration is found.

jwenting 1,905 duckman Team Colleague

When an animal runs into the road my instinctive reaction is to avoid causing it harm at any cost, even if that results in a crash.

I avoid an animal running into the road if I can without causing a more serious accident.
Same with pretty much anything else. If I crash my car into another car in order to avoid hitting a cat or a dog, the damage overall is far more severe than hitting that animal.
Same with avoiding a car if it means hitting a truck or tour bus, not going to do it.

Best of course is to drive consciously and not end up having to make such decisions in the first place...

jwenting 1,905 duckman Team Colleague

tea, earl grey, hot

Reverend Jim commented: Make it so. +14
rproffitt commented: Engage. +12
jwenting 1,905 duckman Team Colleague

ah, doublespace. Loved that software. It was doublespace.bin, and would create doublespace.000, 001, etc. as needed as well.

The slowdown wasn't noticeable as machines back then were so slow the disk wasn't the performance bottleneck it is today.

From personal experience: if a drive fails with hardware errors, don't put a new drive on the connector without first having the disk controller analysed for errors.
Got kinda expensive in dead drives one time before it crossed my mind that maybe the disk controller was causing the drives to fail :)

jwenting 1,905 duckman Team Colleague

The question isn't so much "will it happen" as "will people trust them".

Right now several companies are experimenting with self driving road vehicles, most of them based on small to medium sized cars, and they are performing reasonably well under good and predictable conditions.
But that's the problem, once conditions deteriorate and become more chaotic, the software that governs those vehicles tends to not deal with the problem nearly as well as the human brain.

Which is something that aircraft manufacturers have known for decades, which is why we don't have self flying airliners, but by law each and every one of them requires at least a 2 man crew that has to be trained to extremelyn rigorous standards.

This boils down to self driving cars doing well on the open highway, especially outside of rush hour, but down in the busy city streets their software pretty much gives up.

jwenting 1,905 duckman Team Colleague

well, it's a bit of both. Many of us gave up wading through the platitude of "do my homework for me" questions to find the few worth answering and stopped answering altogether.
We come back once in a while to see if things improve though.

There has to be a balance, a way to educate the homework kiddos as to why they should do their own homework and ask meaningful questions about details rather than dump their entire assignments and wait until someone gives them a prechewed cookie cutter solution they can hand in to their teachers as their own...

jwenting 1,905 duckman Team Colleague

angularjs+rest+ajax+some backend code

jwenting 1,905 duckman Team Colleague

use another mirror, the one you're using is probably down or overloaded.

jwenting 1,905 duckman Team Colleague

can u solve it in oracle plsql method

yes. Question is, can you?

jwenting 1,905 duckman Team Colleague

Why would people PAY for the privilege to help other people? And, even more so, why would they try to outbid each other to pay for the privilege to spend their free time helping others?

That'd only work if the people you want to "answer" questions are spammers and other nefarious types who make money from the "answer".
Which'd inevitably lead to "answers" becoming little more than links to shady websites.

Having people pay to post questions might be a somewhat better idea as it'd at least get rid of most of the "do my homework for me and do it now because I'm more important than all of you combined and all your jobs" type of questions, but it'd also make the site utterly irrelevant for actual real questions as there are free sites like StackOverflow out there already.

Yes, this is something we definitely struggle with.

Nah, we struggle getting to ask meaningful questions, rather than just copy-pasting their homework assignments.

jwenting 1,905 duckman Team Colleague

I seriously doubt you can do this. In fact I sincerely hope you can't, because it'd be extremely easy to write spambots that way, lurking on some innocent looking website that use the gmail account of the person visiting the site to send thousands of phishing emails or other mallicious emails per second.

happygeek commented: what he said! +0
jwenting 1,905 duckman Team Colleague

Mind that this has nothing to do with Java

jwenting 1,905 duckman Team Colleague

Way too broad. What level developer? Development is far more than just knowing the syntax of a language (or many languages, hardly anyone works exclusively in a single language).

There's design, architecture, performance, domain knowledge, database administration, testing, and yes, some sysadmin and management skills.
As a senior dev I spend as much time analysing problems, talking with customers and suppliers, and discussing ideas and plans with team members and managers as I do actually programming and testing the system I'm working on.

jwenting 1,905 duckman Team Colleague

in other words some "student" is trying to plagiarise some system description he found online for some assignment and now tries to get others to implement it for him so he can submit the work done by others as his own...

OP, such systems exist commercially. Find some companies selling such, ask them for a tender, and buy the solution that best meets your requirements.
You're getting a better system cheaper and with better and cheaper support than were you to try building it yourself.

jwenting 1,905 duckman Team Colleague

by learning the language.

jwenting 1,905 duckman Team Colleague

And the reasoning behind setting it up like that includes the idea that your upload is somebody else's download, as most ISPs also are hosting providers.
By limiting upload speeds, they can offer more bandwidth to their customers who rent those servers without having invest in more hardware.

jwenting 1,905 duckman Team Colleague

yes, did that. And that 'bunch of times' ended up being well over a hundred...

jwenting 1,905 duckman Team Colleague

And base your career not on "what is hot" but on what you enjoy doing.
Nothing worse than going to the office every morning with a scowl on your face because it's going to be another agonising day of doing something you hate, and repeating that for 40 years.

jwenting 1,905 duckman Team Colleague

One important part of your graduation project is coming up with an idea that's well researched and with proper arguments for its validity.
If you can't come up with arguments yourself, and/or can find no data to back up your claims, that's usually a good indication that your idea isn't a good one.

jwenting 1,905 duckman Team Colleague

Correct. If you're not already running on an HTTPS (or FTPS or SSH) connection where the encyption is handled for you, don't even bother trying to implement anything yourself because you've failed already.
And if you do, you've covered all your bases, any risks are now procedural rather than technical (though you could add some extra security by requiring client side SSL certificates to be shared with the server).

rproffitt commented: Now in stereo. +11
jwenting 1,905 duckman Team Colleague

Correct. If you're not already running on an HTTPS (or FTPS or SSH) connection where the encyption is handled for you, don't even bother trying to implement anything yourself because you've failed already.
And if you do, you've covered all your bases, any risks are now procedural rather than technical (though you could add some extra security by requiring client side SSL certificates to be shared with the server).

jwenting 1,905 duckman Team Colleague

Same here, getting messages dating back 10+ years crashing over my screen all the time.
Doubt that's the intent...

jwenting 1,905 duckman Team Colleague

the day Alexa disappears with their spyware, malware, and other nasties is a day of joy for the entire internet.

jwenting 1,905 duckman Team Colleague
        if((number % 2) == 0) { // remainder function
            int even;
        } else {
            int odd;
        }

makes no sense anyway...

You probably want

        (number%2==0)?even++:odd++;
ddanbe commented: Indeed +15
jwenting 1,905 duckman Team Colleague

Not knowing what AV product you're using, I'd trust their software more than the "support" department of some piece of software I don't know.

While virus scanners are known to sometimes produce false positives, they do so less often than criminals setting up companies in order to distribute malware that looks legitimate.

jwenting 1,905 duckman Team Colleague

Do NOT try to implement encryption algorithms yourself. You'll fail and your encryption will be dead easy to break by every script kiddie out there.

You simply don't know enough to replicate or improve on the work of the generations of specialists who've done the actual work. If you did you'd not need to ask the questions you're asking, it's that simple.

That's not to say it's not a nice theoretical exercise to want to create an implementation just to see how things work, but if that were your goal you'd not care about performance :)

jwenting 1,905 duckman Team Colleague

Do NOT use VB6. It's dead, no longer supported, nobody uses it except idiot schoolkids who think using a 20 year old product is "kewl".
Use something that actually has market value, something like C#.

As to your excuse for some code, I'd not be surprised at all if "enddoc" executes a page break.

AndreRet commented: If you don't have anything positive to post then DO NOT post! No need to call any person an idiot! -3
jwenting 1,905 duckman Team Colleague
  1. Learn decent English
  2. Use that knowledge to learn Java
  3. Use that knowledge to learn about the Java XML parsing APIs

this is all quite fundamental. You don't even need to learn libraries external to the core API as everything you need is contained within the core API.

jwenting 1,905 duckman Team Colleague

whether you can decipher the information in a pdf in any way depends on how the pdf was created. One can create pdf files as documents with paragraphs and tables of text, in which case it is possible (with the right libraries or a lot of work to write them) to extract data from them.
However many pdf generators are more lazy and create the pdf as a single bitmap image per page in which case you're pretty much buggered.
You might be able to extract the images and then use OCR software to try to find text in them, but it's much less reliablee and much more messy.

jwenting 1,905 duckman Team Colleague

gcj is a linux only tool that isn't Java at all. it recognises only a very small subset of the Java language and core APIs.
Never use it, it's garbage.

And there's never a need to even try to turn Java class files into native executables, as there are JVMs for just about every platform under the sun.

jwenting 1,905 duckman Team Colleague

sure it should be possible to figure that out. Most if not all encryption techniques leave recognisable signatures in the content they encrypt.
If you can manage to write some code that detects those patterns, you can figure out what encryption was used.
Now, in order to find out those patterns, that's the real trick. I don't know about any publicly available libraries that'd help in such a thing.

jwenting 1,905 duckman Team Colleague

And you're going to need a lot of additional classes and enumerations. Things like blood types, resus types, health history??, employees of both the blood bank and hospital (no doubt you need to track who handles the donation, storage, retrieval, etc. etc.), storage containers (multiple freezers?), etc. etc. etc.
And of course users will probably have different access rights. A hospital employee can order a bag of blood but not see donor information for example. A nurse drawing blood can see donor information but can't see receiver information, etc. etc.

jwenting 1,905 duckman Team Colleague

or, much better, ask the people maintaining those sites if they have something like an RSS feed you can get access to and get the data right there in text, uncluttered by tons of advertising, javascript, menus, headers, etc. etc., and of course with their full blessing and no risk of having your script suddenly fail because someone changed the layout of their pages.

jwenting 1,905 duckman Team Colleague

learn about JDBC, or better yet JPA.

And do split your code into multiple classes, makes things so much easier to maintain and debug.
Also, keep class fields and methods separate, fields at the top, then constructors, then methods. Organised code is a lot easier to read.

jwenting 1,905 duckman Team Colleague

Best create a separate handler class per button (unless the buttons have very similar functionality).
As to the counting, traditional mechanism would use a HashMap<String, Integer>

jwenting 1,905 duckman Team Colleague

and oh, 8.1 was released a few days ago :)
https://netbeans.org/downloads/

select either the "Java EE" or "All" version.

jwenting 1,905 duckman Team Colleague

your teacher should be the one to ask. While we can guess what he meant, we can't of course know for sure.

jwenting 1,905 duckman Team Colleague

I must say I prefer Debian myself, it's "cleaner" and tends to install less crud by default.

Try different desktop environments too, there's a lot of difference between them. I like xfce because it's nicely unobtrusive and light weight, unlike the heavy monsters like gnome and kde that eat up a lot of system resources.

jwenting 1,905 duckman Team Colleague

sudo root is wrong.
sudo allows you to enter a command with root privileges.
To become root you issue the command su.

Of course for that you need to know the root password... And on ubuntu at least the root account is disbabled by default, needs to be enabled before you can log in as root or use su to become root. Search for the commands to do that.

Also, if you're renting a server or vps you may not even have root access, depending on your hosting plan (this especially if you are renting a managed server).

TBH most things you can achieve with the root account you can also do with sudo.

jwenting 1,905 duckman Team Colleague

enjoy, have a great family time.

jwenting 1,905 duckman Team Colleague

ok, that's not Java code. It's not even close to being Java code.
Here's something to get you started though, you'll have to think of how to get it to match your requirements but it at least works.

import java.io.File;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Test3 {
    public static void main(String... args) throws Exception {
        Map<Integer, Integer> values = new HashMap<>();
        Scanner scan = new Scanner( new File("d:/tmp/nums.txt"));
        System.out.println("This program will read out a histogram from a file");
        while(scan.hasNextInt()) {
            int i = scan.nextInt();
            if (values.containsKey(i)) {
                int v = values.get(i);
                values.put(i, ++v);
            } else {
                values.put(i, 1);
            }
        }
        for (Map.Entry<Integer, Integer> val: values.entrySet()) {
            System.out.print(val.getKey() + ": ");
            int num = val.getValue();
            for (int i=0;i<num;i++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
jwenting 1,905 duckman Team Colleague

netbeans doesn't need plugins for web development, it's all built in...

jwenting 1,905 duckman Team Colleague

any browser worth its name will throw a hissy fit if you have a page where some components are secured and others are not, which is inevitable if you decide to secure only some pages and not others (unless you plan to also keep copies of all your stylesheets, javascript, and graphics in both secured and unsecured locations, which you shouldn't).

No, secure everything or secure nothing.

rproffitt commented: Spot on. +6
jwenting 1,905 duckman Team Colleague

my hourly rate is $150 with a minimum of 40 hours, payable in advance.
After payment I'll get on it ASAP.

jwenting 1,905 duckman Team Colleague

what traffic? what control? What scope?
A complete traffic management system for any real life scenario is a massively complex piece of software and hardware that requires dozens of people to build over a period of months or years and a similarly large team of full time experts in their fields to maintain.

You're not going to build anything like that as a schoolkid who's too lazy to even copy the text of his homework assignment here :)