5,727 Posted Topics

Member Avatar for pro-tek
Member Avatar for jwenting
-2
78
Member Avatar for Swathi_3

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 …

Member Avatar for jwenting
0
187
Member Avatar for wilsonchama

even if you're not facing potential SQL injection attacks (and who isn't facing those these days...).

Member Avatar for jwenting
0
621
Member Avatar for Saddamkhan

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 …

Member Avatar for jwenting
-2
225
Member Avatar for daisyy

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. …

Member Avatar for Taywin
0
2K
Member Avatar for jkon

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 …

Member Avatar for Slavi
0
547
Member Avatar for daisyy

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 …

Member Avatar for jwenting
0
2K
Member Avatar for yadhu

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.

Member Avatar for jwenting
0
73
Member Avatar for Violet_82

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 …

Member Avatar for happygeek
0
1K
Member Avatar for iharrythomas

if you know what DDL and DML stand for you know the difference between them :)

Member Avatar for jwenting
0
115
Member Avatar for Dili1234

simply put: your trigger performs an operation on your table which triggers your trigger which performs an operation on your table which... And in the end your database engine crashes with a stack overflow error.

Member Avatar for Kuripaner
0
202
Member Avatar for Vipin2020

it also helps greatly to learn to write correct English (both syntax AND grammar).

Member Avatar for jwenting
-1
77
Member Avatar for new_2_java

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 …

Member Avatar for jwenting
0
700
Member Avatar for Caled

start your own thread, show some effort, and explain your problem in enough detail that others can make sense of it.

Member Avatar for jwenting
0
17K
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
7
5K
Member Avatar for samantha2015

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.

Member Avatar for samantha2015
0
279
Member Avatar for pritaeas

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 …

Member Avatar for jwenting
2
232
Member Avatar for Nathaniel10

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 …

Member Avatar for jkon
0
248
Member Avatar for EarhawkPH
Member Avatar for John A

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 …

Member Avatar for mindmergepk
0
491
Member Avatar for samantha2015

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 = …

Member Avatar for jwenting
0
679
Member Avatar for DavidB

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 …

Member Avatar for Mohosia bush
0
247
Member Avatar for Mysquldata

and I'd change that into "without an explicit import statement" to be fully correct.

Member Avatar for jwenting
0
116
Member Avatar for atsproperty

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 …

Member Avatar for Reverend Jim
-3
513
Member Avatar for Ajay Negi

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 …

Member Avatar for stultuske
0
235
Member Avatar for Rashee

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.

Member Avatar for stultuske
0
282
Member Avatar for Kert

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.

Member Avatar for newcoder310
0
357
Member Avatar for samantha2015

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.

Member Avatar for jwenting
0
212
Member Avatar for newcoder310

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.

Member Avatar for JamesCherrill
0
2K
Member Avatar for _avishek

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 …

Member Avatar for jwenting
0
274
Member Avatar for newcoder310

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 :)

Member Avatar for peter_budo
0
265
Member Avatar for Aditya0025

you're clearly trolling here. He already said what type of information he wants quite clearly.

Member Avatar for rproffitt
0
234
Member Avatar for vegaseat

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 …

Member Avatar for Reverend Jim
0
669
Member Avatar for samantha2015

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, "==" …

Member Avatar for samantha2015
0
2K
Member Avatar for danielriqueti

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).

Member Avatar for Slavi
1
409
Member Avatar for ddanbe

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 :)

Member Avatar for webecedarian
0
391
Member Avatar for vegaseat
Member Avatar for ddanbe
3
570
Member Avatar for _ibyang13

"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".

Member Avatar for jkon
0
118
Member Avatar for altjen

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 …

Member Avatar for altjen
0
192
Member Avatar for altjen

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 }

Member Avatar for jwenting
0
248
Member Avatar for Parvathiapril8
Re: Void

A class which is far from meaningless. It's used heavily when you use reflection.

Member Avatar for JamesCherrill
0
242
Member Avatar for hwoarang69
Member Avatar for Mike_25

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.

Member Avatar for Mike_25
0
198
Member Avatar for Christopher_12

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 …

Member Avatar for Reverend Jim
0
322
Member Avatar for അരുൺ

good luck. And oh, what you call a "current account" is more generally known as a checking account.

Member Avatar for JamesCherrill
0
1K
Member Avatar for ship69

> 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 …

Member Avatar for Reverend Jim
0
389
Member Avatar for hwoarang69

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.

Member Avatar for ~s.o.s~
0
662
Member Avatar for asif49

it's called radio, and it's great :) Or I just plug one of the 1000+ CDs I have in my car CD player.

Member Avatar for jwenting
0
188
Member Avatar for Vansh_2

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 …

Member Avatar for Karan_8
0
540
Member Avatar for Aditya0025

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 :)

Member Avatar for jwenting
0
189

The End.