5,727 Posted Topics
Re: Javascript is NOT Java. and oh, try doing a bit of your own research. | |
Re: I'd guess at the very least you should have some restrictions on the times. After all, trains can run over a route for centuries, several times per hour. I seriously doubt you really want to have information on ALL trains that have ever run that route for as long as … | |
Re: even if you're not facing potential SQL injection attacks (and who isn't facing those these days...). | |
Re: http://norvig.com/21-days.html mandatory reading for anyone expecting to learn a programming profession in next to no time. To any professional developer who's spent years or decades learning his craft, the attitude that it should only take a few days and watching some youtube videos to gain the same skills for an … | |
Re: ok, I had this exact problem last week. What you need to do is to remove the anonymous users that the mySQL installer creates. For whatever reason all attempts to log in get mapped to that user, causing their logins to fail as is has no permissions to do anything. … | |
Re: it happens. Just as your code isn't immune from bugs on release, neither is any other code. Last month I ran into a major problem writing some JPA code, whatever we tried we couldn't get it to work properly. Some research into the extremely obscure error messages we got (when … | |
Re: sorry, you're dead wrong. Blobs are the way to store binary data in a relational database. AND audio files are far from unstructured. > the audio files that are stored, i want them to be retrived and play and them when user clicks on them. Take a look at JSF … | |
Re: static is the equivalent of a global variable in Java. You usually want to avoid it, as it violates object oriented principles. Mostly you'll see it used for constants, and sometimes utility functions that effectively exist outside of the context of any class instance. | |
Re: Microsoft can't give you a new license key as they don't know what key was shipped to you in the first place. Samsung might know what key was shipped with the hardware but they can't give you a new one as they have no way of knowing if you have … | |
Re: if you know what DDL and DML stand for you know the difference between them :) | |
Re: it also helps greatly to learn to write correct English (both syntax AND grammar). | |
Re: 160k items is way too many for a dropdown. Indeed use an autocomplete or find some other means to reduce the size of the list before you try to fill it. Something like a master-detail chain, where you select categories, subcategories, etc. etc., all the while building a reduction clause … | |
Re: start your own thread, show some effort, and explain your problem in enough detail that others can make sense of it. | |
Re: that'd depend on who's in charge of changing the law... If those guys and gals think it in their own best interest to change the law they will. And languages do change, usually through being influenced by other languages. And English being a language that's spoken more by non-natives than … | |
Re: the timestamp is stored in UTC, which is normal, especially if the server is running on Unix. It's up to you to do the conversion if needed. | |
Re: the marvels of open source... Microsft should have tested this better of course, but ultimately the flaw is in the open source plugin provided by a third party (who no doubt had to provide detailed test reports before MS would even consider integrating it into their product). And of course … | |
Re: don't know about where you are, but here unions are utterly useless. The ONLY thing they care about is their own power as a union as a political entity (they're all tightly bound to certain political parties). Anything they touch the work environment gets highly politicised, productivity plummets, stress increases … | |
Re: of course, if you do that it's no longer random... | |
Re: 1TB may sound like a lot now, but I still remember buying my first PC in 1992 and people declaring me crazy for opting to get one with a 40MB drive. "You'll never need that much space" was the most common criticism. 10GB these days is nothing. When I spent … | |
Re: and it's done exactly what you told it to: generate a field that's capable of holding an SQL DATE. Which means a field without a time. The correct way of indicating a timestamp using JPA is as follows: /** * Time/date of creation of an entity. */ @Temporal(TemporalType.TIMESTAMP) @Column(name = … | |
Re: 1) no, it automatically detects and verifies your Windows 7 or 8 key and converts it to a Windows 10 key (or maybe it's the same key). 2) no, as long as you upgrade to the same language version Windows as your old version (so English->English, or German->German, if you … | |
Re: and I'd change that into "without an explicit import statement" to be fully correct. | |
Re: more people is a double edged sword. The quality of the average posts in many forums is already at rock bottom (90%+ dumped homework requests in the Java forum for example, with the few actual questions rarely receiving an answer), with very few people contributing anything of value. Seeing the … | |
Re: documentwhat? > Management have some rose-tinted idea that they can replace it in 2,5,8 years or whatever, but once it's in place it's always cheaper to do a "small" fix or upgrade than a complete re-write. or worse. I've had to work many times on systems that would have been … | |
Re: A good book is an excellent source of information. Of course you don't want to invest heavily into books for rapidly developing technology, the latest hype, etc. etc. but for stable things and general information they're far better than unedited (often flawed) blogs. | |
Re: yes, a call to that method with a Map<String, LinkedList> shouldn't even compile unless maybe you're doing some very nasty things like adding annotations to circumvent type checking. | |
Re: An extra thought: if that combination of arguments is common (and especially if they logically make up something) it's often a good idea to make a class to represent the combination. | |
Re: if you have so many exceptions that need logging that it affects performance there's more wrong with the system than just logging performance... Exceptions should be rare, exceptions that need logging a stacktrace of because you don't know how to handle them should be even more rare. | |
Re: sadly many companies still use them (and 'iq tests') to determine whether candidates are "suitable for the field", iow whether the guy/gal has the right personality and iq to work in that line of business at all. Which leads to many programmers being highly surprised that despite 15-20 years of … | |
Re: though I do wonder what he's done that makes his eclipse project's compiling dependent on the order of dependencies in the project settings window :) | |
Re: you're clearly trolling here. He already said what type of information he wants quite clearly. | |
Re: Jim, I work on a government job now. I can tell you at least part of the extra cost is pure overhead, money wasted on procedures and delays caused by those procedures that are set in stone so firmly nothing can shake them loose. For example we're 2 months into … | |
Re: a switch would be appropriate here. And what makes you think chained if statements like that aren't "professional"? Whether something's appropriate to use or not depends entirely on the scenario you're coding, and in this case it's entirely appropriate. p.s. check your conditions. "=" in Java is an assignment, "==" … | |
Re: if you can't open it with powerpoint 10 or later, the file is corrupt and quite possibly impossible to recover. You can open it in a text editor and see if you can make sense of it (pptx files are XML, but hardly human readable). | |
Re: I came from a world without internet, and could go back to it. I'd need to find another job though, as mine depends heavily on creating software that runs through or uses in some other way the internet :) | |
Re: "why I am not worthy of getting a passing grade" is an excellent one for you. With as content: "because I can't be bothered to think and study". | |
Re: actually, storing the images inside the database is a very good idea as it prevents your data from getting corrupted if the location on the filesystem where the images exist changes. Of course there's some added cost in time needed for retrieval and possibly higher storage requirements, but for real … | |
Re: if you have multiple results, the ResultSet will have multiple rows in it. Iterate over those rows, rather than just picking the first one and discarding the rest. so something like while (rs.next()) { //whatever } | |
Re: A class which is far from meaningless. It's used heavily when you use reflection. | |
Re: and did you actually package it in your webapplication? LEARN YOUR TOOLS. | |
Re: 2K records IS very small. You're forcing a full table scan while it's iterating over every record, for every record. That's never going to work. Ensure you have proper indices and foreign keys. | |
Re: you do NOT want to do this. NEVER store passwords in a way that can be decrypted, it's a massive security risk. Rather store a salted, hashed, password, and compare the password the user enters on logging in with that after salting and hashing it using the same machanism. That … | |
Re: good luck. And oh, what you call a "current account" is more generally known as a checking account. | |
Re: > PPS. Two members of the team refuse to use either Google or Microsoft/OneDrive (because they say that those organisations are spying on us all, massively violating our privacy!). well, so do all the others... It's an insanely silly thing to say. If you aren't paying for a product, you … | |
Re: sigh... READ and COMPREHEND, the bridge driver is gone, history, finito, and good riddance. Use another database engine instead, and the driver associated with that. Which means you have to change your code. | |
Re: it's called radio, and it's great :) Or I just plug one of the 1000+ CDs I have in my car CD player. | |
Re: Browsers won't send things like the connection speed of the system they run on to servers, period. You're stuck guessing by analysing the browser type sent by the browser, which may or may not be specific to a type of device that's limited to a certain maximum speed (but of … | |
Re: oh, DLL files can make for nice padding to make your application appear larger to the customer because it takes up more disk space. And we all know larger applications are better applications :) |
The End.