Mike Blaszczak

Greenhorn
+ Follow
since Sep 02, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mike Blaszczak

I'm not running in a container. AS I mention, I'm executing a stand-alone server.

For the time being, I'm using Oracle's own Universal Connection Pool
Why do the Java Runtime Environment installations offer to install extra software, such as McAfee anti-virus and the ASK Toolbar? This seems imposing on end users, annoying for IT departments, and devalues the platform.
9 years ago


I'm working a project that implements a long-running stand-alone server with DropWizard and Java 8. We're using Oracle database in the back-end, and connect to it with JDBC.

I'm very confused about connection pooling. It seems like there's no connection pooling support built-in to JDBC. Is that correct? This JavaRanch article seems to confirm that JDBC doesn't do its own connection pooling implementation, but that article is more than eight years old. Has anything changed since?

I've found OracleConnectionPoolDataSource, but I can't find much documentation on how to use it. (What's the difference between a connection cache and a connection pool? What's the difference between an explicit cache and an implicit cache?)

I've found some posts on StackOverflow which say there's no JDBC pooling, but recommend other open-source libraries. This CodeRanch article does the same. However, those libraries don't seem to have much active development which makes me wary of using them.

What's the most stable approach?
Or, the forum doesn't get much traffic. Since ti's here in the "Architect Certification" section, I assumed it was a question for one of the architect exams ... and that would make it very important. Was I wrong to make such an assumption?
Why do you want to pursue a certification? Doesn't your experience stand alone?
... just like everything else in the world. You'd figure a better answer would be available after twelve years.
Can't say I've ever heard of a depth-first search being called "recursive travel technique". In what literature did you find that term?
10 years ago

Ulf Dittmer wrote:Allowing JavaScript to access the clipboard means that a malicious web site can get at your credit card information - if you happen to access that site right after you had that in your clipboard. Unless you keep track of what you have on clipboard any time you surf the web, I'd suggest it's a good idea to leave that turned off.

That seems to be an issue about reading the clipboard; this feature writes to the clipboard.
10 years ago
What's the security issue?
10 years ago
I don't think you're getting this error while executing a C program; it looks more like you're getting the error while trying to build the program. The error message means what it says; "mingw32-gcc-4.7.2" is not found. mingw is a particular version of a specific compiler; either you don't have it installed or it's not on the path used to find it.
10 years ago
Hopefully, you're not planning on using "_" as a variable name.

Paramters to functions can't accept "auto" or "static" as modifiers. You can solve your problem by not using those modifiers. This code is correct:




... though it still uses that terrible variable name.
10 years ago
The "Copy to clipboard" link on CODE blocks doesn't appear to work in Firefox 23, but works fine in IE 10. When I try to use the feature in FireFox 23, I get a popup saying that "the code is in your clipboard now", but my clipboard is unchanged. Is there some setting I must change in order to have this feature work correctly?
10 years ago

It's possible for a DLL to display a UI, but it's not easy particularly given your requirement that the UI has to appear "before the DLL can start its functions".

When a DLL loads, its DllMain() entry point is called. That function is guaranteed to be called before any other function in the DLL is called. However, DllMain is not an appropriate place to implement any kind of UI. There are architectural ramifications in Windows to doing so and they're not pleasant. Plus, you'll present your UI each time your DLL is loaded from each application that references it. It will be very difficult your your user to understand why the UI keeps reappearing, and your UI will have a hard time giving the user any context for their interaction as it doesn't know what application loaded it or why.

There's probably a better way to solve your problem, so you should investigate alternative approaches.
10 years ago

The combined operators, like += and *=, can always be thought of as treating their right hand operator as a grouped expression. That is, "a *= 10 + 2" is equivalent to "a = a * ( 10 + 2 )", and is not equivalent to "a = a * 10 + 2".

10 years ago

aaka jain wrote:
main()
{
printf(3+ "proskills "+4);
}


can anyone tell me how this printf statement works in detail ,i am getting output as ls ,please explain how this statement is evaluated thanks






A string literal in C or C++ is really just a pointer that's intialized to the string provided as the string literal. In other words, your program:



is equivalent to this one:



Once we know that the string is really just a pointer, we're enabled to understand how the addition operator applies to it. The string literal, being a pointer to characters, is just an address. When we add an integer n to a pointer, we create a new pointer that's at an address n elements adhead of the pointer. Characters are single bytes in these languages, so we move 3 characters forward in the string because we added 3. Then, we add 4 more to that pointer, so we move a total of 7 characters into the string.

Really, we're just looking into the string as if it was an array of characters:



We skip to the 7th character in the string (the second ell), get the address of that character, and pass it along to printf(). printf() prints the character it finds there, then moves to the next character and prints that one too, until it encounters a character that is the nul termination byte; '\0'. The nul terminator appears after the "s" at the end of the string, implicitly placed there by the language.

Hope that helps!
10 years ago