Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

03-17-2014 , 11:50 AM
Quote:
Originally Posted by jjshabado
Here's a list of libraries used by an Open Source Project I work on.

Code:
./accumulo-core-1.5.0.jar
./accumulo-fate-1.5.0.jar
./accumulo-minicluster-1.5.0.jar
./accumulo-server-1.5.0.jar
./accumulo-start-1.5.0.jar
./accumulo-trace-1.5.0.jar
./ant-1.6.5.jar
./antlr-2.7.7.jar
./antlr-3.4.jar
./antlr-runtime-3.4.jar
./asm-3.3.1.jar
./automaton-1.11-8.jar
./avro-1.7.5.jar
./avro-ipc-1.7.5-tests.jar
./avro-mapred-1.7.5.jar
./avro-tools-1.7.5-nodeps.jar
./commons-beanutils-1.7.0.jar
./commons-beanutils-core-1.8.0.jar
./commons-cli-1.2.jar
./commons-codec-1.4.jar
./commons-collections-3.2.1.jar
./commons-compress-1.4.1.jar
./commons-configuration-1.6.jar
./commons-digester-1.8.jar
./commons-el-1.0.jar
./commons-httpclient-3.0.1.jar
./commons-io-2.3.jar
./commons-lang-2.4.jar
./commons-logging-1.1.1.jar
./commons-math-2.1.jar
./commons-net-1.4.1.jar
./commons-vfs2-2.0.jar
./core-3.1.1.jar
./ftplet-api-1.0.0.jar
./ftpserver-core-1.0.0.jar
./ftpserver-deprecated-1.0.0-M2.jar
./groovy-all-1.8.6.jar
./gson-2.2.2.jar
./guava-11.0.jar
./hadoop-core-1.0.4.jar
./hadoop-test-1.0.4.jar
./hamcrest-core-1.3.jar
./hbase-0.94.1-tests.jar
./hbase-0.94.1.jar
./high-scale-lib-1.1.1.jar
./hive-exec-0.8.0.jar
./hsqldb-1.8.0.10.jar
./httpclient-4.1.3.jar
./httpcore-4.1.3.jar
./jackson-core-asl-1.8.8.jar
./jackson-mapper-asl-1.8.8.jar
./jansi-1.9.jar
./jasper-compiler-5.5.12.jar
./jasper-runtime-5.5.12.jar
./javacc-4.2.jar
./javacc.jar
./jcommander-1.30.jar
./jdeb-0.8.jar
./jersey-core-1.8.jar
./jets3t-0.7.1.jar
./jetty-6.1.26.jar
./jetty-util-6.1.26.jar
./jline-1.0.jar
./joda-time-2.1.jar
./jopt-simple-4.1.jar
./jruby-complete-1.6.7.jar
./js-1.7R2.jar
./json-simple-1.1.jar
./jsp-2.1-6.1.14.jar
./jsp-api-2.1-6.1.14.jar
./junit-3.8.1.jar
./junit-4.11.jar
./jython-standalone-2.5.3.jar
./kfs-0.3.jar
./libthrift-0.9.0.jar
./log4j-1.2.16.jar
./maven-scm-api-1.4.jar
./maven-scm-provider-svn-commons-1.4.jar
./maven-scm-provider-svnexe-1.4.jar
./metrics-core-2.1.2.jar
./mina-core-2.0.0-M5.jar
./mockito-all-1.8.4.jar
./netty-3.2.2.Final.jar
./netty-3.4.0.Final.jar
./oro-2.0.8.jar
./paranamer-2.3.jar
./parquet-pig-bundle-1.2.3.jar
./plexus-utils-1.5.6.jar
./protobuf-java-2.4.0a.jar
./regexp-1.3.jar
./serializer-2.7.1.jar
./servlet-api-2.5-20081211.jar
./servlet-api-2.5-6.1.14.jar
./slf4j-api-1.6.4.jar
./slf4j-log4j12-1.6.1.jar
./snappy-java-1.0.5.jar
./ST4-4.0.4.jar
./stringtemplate-3.2.1.jar
./trevni-avro-1.7.5-tests.jar
./trevni-avro-1.7.5.jar
./trevni-core-1.7.5-tests.jar
./trevni-core-1.7.5.jar
./velocity-1.7.jar
./xalan-2.7.1.jar
./xercesImpl-2.10.0.jar
./xml-apis-1.4.01.jar
./xmlenc-0.52.jar
./xz-1.0.jar
./zookeeper-3.4.5.jar
Let me know when you understand what is actually happening with all of the libraries.

Edit: I should also point out that a bunch of libraries (guava, commons-*, log4j, ...) are also being used by a bunch of the libraries in that list.

Oh, and the grand total is 91M in size.
Yah I know a majority of those you listed but just curious if you can write anything to my first post. I'm not using anywhere close to what you listed for the record. Idk if I'm coming off as a jerk in my posts but I just disagree and don't see any evidence other than lol no with no example which I asked for.

Edit: at the most 10

Last edited by iosys; 03-17-2014 at 12:00 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 12:08 PM
What's your first post? I thought I already answered your first post where you were all whiny about me not saying what I meant by being messy.

As for no evidence, wtf? There's >100 libraries there. Are you honestly saying you can understand all of their inter dependencies? That that's practical?

Explain how you go about upgrading guava in your world where there's just a bunch of jars sitting around in a directory? Do you manually look at each library you use and figure out if it supports the latest version?

Or if you need to use a new library like httpcore do you add the jar and then just run your program a bunch until you get an exception saying Java can't find a class implementation, then track down the jar that has that class, add it, and rinse and repeat?

If you're still not really sure what you're missing, read something like this: http://chimera.labs.oreilly.com/book...1741/ch04.html or google for other dependency management resources.

Edit: I've had to do the "run a bunch and see what jars I'm missing" before in a totally separate context. It's ****ty, frustrating, and not at all comprehensive. Advocating that its a good approach for people to take just shows that you're inexperienced.

Edit2: Also, just for the record, I don't believe at all that you're familiar with the majority of those jars. No way to prove it one way or the other I guess.

Last edited by jjshabado; 03-17-2014 at 12:16 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 01:45 PM
So are you advocating something similar to npm install to be a standard that should be incorporated with something that handles changes on the backend?

edit: I think you seem to be whiny about the discussion for some odd reason.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:03 PM
i think he's just saying in general you should use a package manager for anything but trivial projects. package managers solve a real, well-defined, recurring problem and solve it well, and claiming that you don't need them if you are careful and diligent is just kind of silly
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:03 PM
Quote:
Originally Posted by Nchabazam
Probably something simple, but I can't seem to find any blog posts/SO posts about having multiple ajax mocks.
use this,

http://docs.angularjs.org/api/ngMock/service/$httpBackend

nevermind looks like you did this

@http = _$httpBackend_

Last edited by e i pi; 03-17-2014 at 02:07 PM. Reason: nevermind
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:07 PM
Quote:
Originally Posted by iosys
edit: I think you seem to be whiny about the discussion for some odd reason.
Meh. You don't really seem to be worth my time. Good luck.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:08 PM
Quote:
Originally Posted by e i pi
use this,

http://docs.angularjs.org/api/ngMock/service/$httpBackend

nevermind looks like you did this

@http = _$httpBackend_
Ya turned out the problem was passing in the exact time as a parameter. I didn't get great feedback from the spec runner, so I was confused. I got it to work once I formatted the date so it would be consistent.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:22 PM
Pretty easy fix, just creating the date like

Code:
$scope.dt = $filter('date')(new Date(), "yyyy-MM-dd")
Now back to trying to test drive stuff.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:25 PM
Quote:
Originally Posted by Nchabazam
Ya turned out the problem was passing in the exact time as a parameter. I didn't get great feedback from the spec runner, so I was confused. I got it to work once I formatted the date so it would be consistent.
I looked into this a bit and it seems like you can pass in a regex to the $httpBackend.whenGet method

http://stackoverflow.com/questions/1...-one-parameter

Looking at the docs it looks like theres some css mistake which makes the text color of 'Regex' in the type column the same color as the background, hiding it. lol
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:42 PM
Quote:
Originally Posted by e i pi
I looked into this a bit and it seems like you can pass in a regex to the $httpBackend.whenGet method

http://stackoverflow.com/questions/1...-one-parameter

Looking at the docs it looks like theres some css mistake which makes the text color of 'Regex' in the type column the same color as the background, hiding it. lol
It's interesting to look at this stuff. I started working with angular a year ago, and haven't written any tests until recently. The framework/community support has come a long way in that time... but searching for stuff about testing, it's pretty apparent people are skimping.

$httpBackend with parameters only has two stackoverflow responses!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:52 PM
Quote:
Originally Posted by jjshabado
Meh. You don't really seem to be worth my time. Good luck.
LOL ok
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 02:59 PM
Come to think of it, I hit a problem with testing a directives parent scope like two months ago and tracked down the answer to a week old issue on the angular github. They changed the name of a method or something and it wasn't in the documentation yet.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 05:27 PM
I don't even understand (as in have looked at the implementation of) most of Java's standard library. But heeeeeya Java 8 has functional stuff so time to use it a bit more.

Quote:
Originally Posted by gaming_mouse
i think he's just saying in general you should use a package manager for anything but trivial projects. package managers solve a real, well-defined, recurring problem and solve it well, and claiming that you don't need them if you are careful and diligent is just kind of silly
You don't need package managers.
Well people use them a lot in real world scenarios.
Well you don't need them if you are diligent and careful.
[freely reconstructed by me]

That subpart of the debate makes me wonder if Scotsmen or possibly even true Scotsmen are involved in the debate :P

Last edited by clowntable; 03-17-2014 at 05:32 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 05:38 PM
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 05:48 PM
I cannot believe it took me this long to get into Tampermonkey. So freaking great.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-17-2014 , 09:51 PM
Quote:
Originally Posted by clowntable
I don't even understand (as in have looked at the implementation of) most of Java's standard library. But heeeeeya Java 8 has functional stuff so time to use it a bit more.


You don't need package managers.
Well people use them a lot in real world scenarios.
Well you don't need them if you are diligent and careful.
[freely reconstructed by me]

That subpart of the debate makes me wonder if Scotsmen or possibly even true Scotsmen are involved in the debate :P
Sort of like the option of using an IDE or instead a text editor
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2014 , 09:36 AM
Finally figured out how to veil the clunkiness of the initial page load on an angular app using a gmail style loading bar (to be fair, I wasn't looking that hard).

I like figuring out the small stuff.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2014 , 01:59 PM
Pretty neat imo (March Madness bracked that you can fill by providing a JS function):
https://www.codersbracket.com/code_bracket

I'll play around with that (and some historical data) if I find the time tonight...I think the first games are Thursday?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2014 , 02:06 PM
Thats awesome. I wish I cared about basketball.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2014 , 02:14 PM
Quote:
Originally Posted by clowntable
Pretty neat imo (March Madness bracked that you can fill by providing a JS function):
https://www.codersbracket.com/code_bracket

I'll play around with that (and some historical data) if I find the time tonight...I think the first games are Thursday?
If you figure out who is going to win, let me know. I'll be in Vegas hemorrhaging money on games I know nothing about.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2014 , 04:25 PM
Quote:
Originally Posted by clowntable
Pretty neat imo (March Madness bracked that you can fill by providing a JS function):
https://www.codersbracket.com/code_bracket

I'll play around with that (and some historical data) if I find the time tonight...I think the first games are Thursday?
Is there a way to use vegas odds to generate a random bracket?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-18-2014 , 09:40 PM
You could probably generate a bracket pretty easy using the interactive bracket on fivethirtyeight.com
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2014 , 10:56 AM
It's unfortunate that coder's bracket didn't allow access to kenpom's ranking or something similar, you could whip up something reasonably close to vegas odds in no time if that was available.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2014 , 12:55 PM
I used this to generate my Billion$ bracket.
[PHP]
function (game, team1, team2) {

var rand1 = Math.random();
var rand2 = Math.random();
var rpi_adj = 3*(team1.rpi - team2.rpi);

if (rand1+rpi_adj > rand2-rpi_adj) {
team1.winsGame();
} else {
team2.winsGame();
}

}[/PHP]
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
03-19-2014 , 01:09 PM
In case you're curious what the odds of winning your billion actually is, I wrote some code last night to figure it out. Keep your fingers crossed imo

http://www.devinshelly.com/so-what-a...llion-dollars/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m