Janeice DelVecchio

Bartender
+ Follow
since Sep 14, 2009
Janeice likes ...
Eclipse IDE Java Windows
CT, USA
Cows and Likes
Cows
Total received
12
In last 30 days
0
Total given
9
Likes
Total received
90
Received in last 30 days
0
Total given
158
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Janeice DelVecchio

You've been super helpful.

I didn't even know aliases existed! That's neat!
3 months ago
Thank you!

Yes the converting is something I've had to mess with when I was working with spark. I can see where if you have a mix it would be more painful.

Enjoy the rest of the week here for your book promo!
3 months ago

Campbell Ritchie wrote:Good to see you back


Lovely to see you as well.
3 months ago
I see no benefit to python if I know java. All the spark libraries do everything I need, particularly with the spark 2 apis. To me, python is for folks who want to crunch something together without knowing a lot of syntax pomp and circumstance. But that's just my religion.

Is there any detriment to mixing some java classes with scala in an app?
3 months ago
I have used java mostly for big data (spark) development. That said, I know that spark is natively written in scala. Is there any benefit to using one over the other?

Are there ever benefits to using Java over scala?
3 months ago
CattleDrive Hall of Fame




Student NameBasicOOPServletsJDBC
John Ackerman
Terry Broman
Lance Finney
Barry Gaunt
Margaret Gillon
Peter Gragert
Richard Hawkes
Louise Haydu
Kate Head
John Hembree
Manju Jain
Joyce Lee
Pauline McNamara
Carol Murphy
Daniel Olson
Marilyn de Queiroz
Jason Adam
Jon Anslow
P. Mark Beattie
Matt Fry
Greg Harris
John Godfrey
Kelly Loyd
Michael Matola
Jeremy Medford
Greg Neef
Katrina Owen
Michael Pearson
Dirk Schreckmann
John Abong
Pat Barrett
Richard Barton
Ben Beetle
Peter Berquist
Richard Boren
Bill Bozeman
Richard Broersma
Susan Brown
Nick Cabell
Josu? Cede?o
Kenneth Cobbs
Kimberley Coburn
Joel Cochran
Ed Connery
Donald Cossitt
Kenn Cowling
Sherry Cuenco
Janeice DelVecchio
Gerald Dettling
Colm Dickson
Craig Dighton
Wirianto Djunaidi
Terence Doyle
Kurt van Etten
Phil Freihofner
Stuart Goss
Juliane Gross
Dan Jones
Johannes de Jong
Rob Keefer
Elouise Kivineva
Diego Klappenbach
Rory Lynch
Panday Manako
David Mason
Marie Mazerolle
Armando Moncada
David Morisset
Amy Phillips
Matthew Phillips
Slobodan Popovic
Rick Prevett
Adam Price
Sharon Ross
Ronald Schindler
John A Simpson
Justin Simpson
Gillian Smith
Kristin Stromberg
Dick Summerfield
Jeremy Thornton
Sam Tilley
Adam Vinueza
Chuck Wannall
Amber Woods
Christie Xu
Garry Ba 
Kyle Blythin 
Connie Boyd   
Ryan Burgdorfer   
Nick Burgett   
Ashley Bye   
Mark Channer   
Rajan Chhibber   
Eric Christensen   
Bryant Constant   
Sean Davis   
Mark Gandy   
Stephanie Grasson   
Jane Griscti   
Doug Hattrem   
Tom Henner   
Laura Holcombe   
Brian Holsenbeck   
Sam Hume   
David Junta   
Marcus L?ubli   
Joyce Lambert   
Thomas Leak   
Nathan Leniz   
Ian Lubelsky   
Jay Lyche   
Stuart Malloch   
David Malott   
Vince Mansel   
Ian Matthews   
Dav McCartney   
Joe McGuire   
Jack Moore   
Mike Neumann   
Brian Nolan   
Tom Purl   
Paul Ralph   
Robert Richardson   
Fred Rosenberger   
Gabe Schenz    
Nick White 
1 year ago
So I'm taking the free Udacity Hadoop intro here: https://classroom.udacity.com/courses/ud617

There's some test file that has loads of data that looks like this:
date<tab>time<tab>location<tab>category<tab>amount<tab>modeOfPayment<newline>

The question was to get the total count of payments AND the total payment amount over all payments. You're supposed to do this in Python.... I know nothing of python, so I did it in Java.

Here's my mapper:


And my reducer:


Questions:
- After struggling time and again, the only way I found to solve this problem was to write to the context twice in the mapper. I feel like this is hackery. How could it be solved correctly or is this it?
- in my reducer, using count++ was not working. I was getting only 5 payments total. Once I parsed the value and added it, it worked fine. Why?
1 year ago
To solve the assignment and get the instructor solution, your solution may be different than the solution given by the trailboss.

The number of lines is a serving suggestion so folks don't go crazy writing too much code.
2 years ago
I work on a legacy app that's undergoing technology migration.

It's interesting (and case specific) when the choice is made to
- write tests and refactor
- rewrite / rearchitect / test
- try not to touch too much but still get to technology goals. Write as many tests as possible.

Mostly all this has to do with risk / time / money / difficulty - like Junilu said.
Getting repeatable / reusable / readable tests is a big concern because one day if the decision is made to do another thing, you want to be able to understand what effort was put in so far -- and how things work!
Maybe that's why I ended up here asking so many questions!

2 years ago
Yes. That was the text used in my first intro java class.

I found it lacking in some areas (generics). but a good book to cover most topics.
2 years ago
I love Head First Java.

If you want something more textbook-ish Core Java isn't too bad.
2 years ago
Are you using Hibernate?

In hibernate you can turn up Log4J Logging level to see the bound parameters on your query. It might just be a configuration you need to set with package names and level. No custom logger/code needed.

Try this: http://www.mkyong.com/hibernate/how-to-display-hibernate-sql-parameter-values-log4j/


2 years ago
There's nothing that a hundred men on mars could ever do....
3 years ago
I think you can do a partial mock. See notes here: http://easymock.org/user-guide.html

You could do it without a mock too if the method is not private or static. Quick example:



3 years ago