« first day (123 days earlier)      last day (3012 days later) » 
00:00 - 20:0020:00 - 00:00

20:03
[ Heat Detector ] SCORE: 6 ★★★☆☆ (Regex:false NaiveBayes:1.00 OpenNLP:1.00) comment cc: @PetterFriberg
20:14
@BhargavRao back, lot of chatting I bought some houses so she as all these plans now : )
what are ya up to?
How many did ya buy?
3
rich petter
bought a km of land
Haha, That's nice. Congrats @petter
: ), yeah
but now lots of work, wife with lot of ideas.... puuuh...
@petter I'm working on a NATO bot that fetches NATO posts for me :)
20:17
nice
why comments
@PetterFriberg Some extras, Trying to find tuna and your comments :D
20:18
aah ok a bot that shows NATO to low rep would be great...
Lolol, I am printing the question URL instead of the answer URL :D
it's crazy you need 10K for that
not for me then :(
and on Nato there is to much work for the few 10K
@ColdFire if BR makes a bot you can use it to...
There are so much stuff there
i see
20:20
more then a BOT you would need a web interface...
Oh, I haven't thought of making a public bot.
what is your idea BR
Might need to use tunaexchange for that :D
@BhargavRao why not?
@BhargavRao lol
20:20
Your deving in java?
My main idea is to filter the NATO based on rep. Find all posts by users below 50 rep.
@PetterFriberg atm, Nope. But I can change the code to Java. It's not that difficult.
and new answer on old questions...
a new answer to old question <50 probably will give 25% NAA : )
Yeah, That's the reason.
meeh maybe even a chat bot.... just shot link to answer in chat : )
Wait, How long should we back off between requests?
20:23
[ Heat Detector ] SCORE: 4 ★★☆☆☆ (Regex:false NaiveBayes:1.00 OpenNLP:0.87) comment cc: @PetterFriberg
@BhargavRao it send in the param
if you get backoff you also get the time
@Queen tp
('ERROR: ', u'{"error_id":502,"error_message":"too many requests from this IP, more requests available in 71274 seconds","error_name":"throttle_violation"}')
Haha, I guess I need to register and get 10000 reqs :D
You are doing it from broswer or bot, Yeah go and get yourself an api key
Py code
20:28
it's easy to get api-key
wait that I fetch link
Then check the back-off param if you do not respect it they will send you that ugly message
@PetterFriberg Ah, Thanks
@BhargavRao You only need to fill name and description the rest is optional
Gotcha
In the meanwhile, if anyone wanna try, this's the original piece of code to get all the NATO answers dpaste.com/2B1QS8R
(that I wrote a couple of months ago)
@BhargavRao that's not java : )
@petter What's "Enable Client Side OAuth Flow"?
20:33
you don't care you don't need it to use api
@PetterFriberg "that I wrote a couple of months ago"
only if you need to flag and stuff like that
queen is not enabled, since she does not do actions only reads data
Bah, What's this OAuth Domain?
leave blank or put google.com : )
I put a space and it worked :D
20:36
I can't even remeber what I put maybe jdd.it
Italy can make a lot of money with that CCTLD
@petter, Now just pass that as a get parameter named "key" ?
yeah
put it in the get param...
&key=
Awesome, It's working. Thanks :)
@BhargavRao you have seen that you can set filter as you like to get the info you like?
Also, I dunno if I can get it running as a bot. :/
@PetterFriberg Nope.
20:41
I can only help you if you do java : ), just download Tuna's lib (it easy)
@BhargavRao Go to this page api.stackexchange.com/docs/…
Okie, I will change to java :D
You see in the corner the filer, if you click it you can check the attributes you like
Then just copy and past the filter text to the param @filter=
[ Heat Detector ] SCORE: 5 ★★☆☆☆ (Regex:true NaiveBayes:0.00 OpenNLP:1.00) comment cc: @PetterFriberg
[ Heat Detector ] SCORE: 6 ★★★☆☆ (Regex:false NaiveBayes:1.00 OpenNLP:1.00) comment cc: @PetterFriberg
Ah, Yeah. I did that once, But did not find any other useful info so left it.
I remember now.
20:45
Its good since you can get answer link in full format, answer text in plain and html etcc.
+ user info ++++
[ Heat Detector ] SCORE: 5 ★★☆☆☆ (Regex:false NaiveBayes:0.99 OpenNLP:0.99) comment cc: @PetterFriberg
Hmm, @petter. I just saw the java web Hello World program.
That's about 15 lines
My whole NATO program was 14 lines :/
Yeah that's true : ), but the IDE will write 14 lines, you just need to fill in last
Wow, The Apache thingy looks easy
20:56
Maybe you can ask ArtOfCode he probably has a nice chat lib in python
@petter Whatd'ya recommend?
@PetterFriberg Nah, I will learn Java :) It might be hard and I might falter, But I'm sure I'm in safe hands :D
@BhargavRao not following you?, on what?
If you use Tuna's lib you will be in room quick
@PetterFriberg For http get request.
aah I go brute force so don't ask me : )
[ Heat Detector ] SCORE: 4 ★★☆☆☆ (Regex:true NaiveBayes:0.00 OpenNLP:0.94) comment cc: @PetterFriberg
20:58
URLConnection connection = new URL(url).openConnection();
connection.setRequestProperty("Accept-Encoding", "gzip");
GZIPInputStream gis = new GZIPInputStream(connection.getInputStream());
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
byte[] buffer = new byte[1024];
int len;
while ((len = gis.read(buffer)) != -1) {
bos.write(buffer, 0, len);
}

String jsonText = bos.toString("UTF-8");
// uncompress
if (logger.isDebugEnabled()) {
logger.debug("getJSONObject - JSON response\n" + jsonText);
: )
@PetterFriberg put 4 spaces there, I can directly copy :D
no libs, I hate libs
@BhargavRao just copy in eclips and press alt+f
its ugly but I understand better without libs... with libs I need to study : )
@BhargavRao I think it's better that you use gson not json like I did
Okie, where's that JSONObject function from?
@BhargavRao That's the standard json lib... but switch to gson
that's google's json lib it should be better, I was just not aware of it when I wrote the code...
Oh I forgot the bug I was supposed to look at
Wait
You guys are talking Java here.
21:03
Ah, Officer @tuna reporting to work
Yeah
hide all my code
I was working in python and @petter snatched me away
Tuna is probably using some fancy lib to do same stuff : )
JSON?
Depends. With Spring, I prefer Jackson. But otherwise Gson. That's the most simple.
21:05
Yeah I think BR should use Gson, not the basic json lib I used
I need to get the json returned from SE API.
In python I do it in one line
requests.get(url).text
new JSONObject(jsonText);
that gives you the json as an object,
Now I'm reading bout GSON .
If you're using Jsoup + Gson, that's one line also
@tuna Burnaki's done using that?
21:07
Yes
Okie, I will read that code then :)
Tl;Dr for @tuna - I'm almost fed up of refreshing NATO, so I've written some 30 lines of py code for me to get NATO posts from users < 50 rep. Petter asked me to get it out in public and help <10k rep users also. I decided to use Java coz, I can learn Java :)
watch out for all the java8 stuff : )
21:09
Java8 FTW
[ Heat Detector ] SCORE: 6 ★★★☆☆ (Regex:false NaiveBayes:1.00 OpenNLP:1.00) comment cc: @PetterFriberg
@BhargavRao Yeah get up a bot lets run it here : ), load of fun
v--------- Bot fun \o/
Hiya o/
@Burn Welcome to you boring bot
21:13
Unknown command: welcome. Use commands to have a list of commands.
It's nice to listen to edits, eh? :)
Your bot is a bit boring Tuna, but true edits are nice
Unknown command: welcome to you. Use commands to have a list of commands.
Unknown command: welcome to you boring bot. Use commands to have a list of commands.
:-(
21:14
: )
@Burn Hiya
Unknown command: waffle. Use commands to have a list of commands.
hmm needs to be some backdoor
Unknown command: plop. Use commands to have a list of commands.
@tuna, The chatexchange lib is on maven repository?
wow
Unknown command: hiya. Use commands to have a list of commands.
21:15
@BhargavRao Not currently. You need to build it yourself.
Hmm, I need to learn a lot then.
:/
But it's quite easy, check out the GitHub, Java 8, and it's done
in SOCVR finder the is a jar already built
Should I have struck with python?
nooooooo, of course not :D
30 lines to nearly 3000 lines :D
chatexchange-1.0.0-SNAPSHOT.jar
@PetterFriberg Ah, You're the savior
Tuna and his darn maven : )
That's the power of Maven projects. Building is easy :)
Checkout, mvn clean install, poof, you're done :)
21:19
git hell, clean, re clean, build, install (hmm what to choose), clean, intall, install, ok there it is the that darn lib : )
@burn Checkout, mvn clean install
Unknown command: checkout, mvn clean install. Use commands to have a list of commands.
I knew it!, just like maven
haha
[ Heat Detector ] SCORE: 4 ★★☆☆☆ (Regex:true NaiveBayes:0.00 OpenNLP:0.77) comment cc: @PetterFriberg
@Queen tp
21:24
        <dependency>
            <groupId>fr.tunaki.stackoverflow</groupId>
            <artifactId>chatexchange</artifactId>
            <version>1.0.0-SNAPSHOT</version>
            <systemPath>${project.basedir}/src/main/resources/lib/chatexchange-1.0.0-SNAPSHOT.jar</systemPath>
        </dependency>
If it's stupid and it works, It ain't stupid
arrg I use classpath in IDE and manifest in executable jar..
@Tunaki fixed (cc @Petter)
@BhargavRao NOOO NO NO NO NO NOOOOOOOOOO
PLEASE
:D
I knew that
NOOOOOOOO ARRRRRGHH AAAAAAA NO DONT DO THAT
21:34
Just for testing
NON ON
not even for testing
your computer will catch fire!
LOOK DO YOU SEE IT? I CAN SEE IT THE FIRE IS STARTING
Let the fire subside, I will do the mvn clean way
:P
What's the issue with that though? (I react the same way when someone uses global variables :D)
@Tunaki Thanks pulled, will deploy soon
24
A: Having a 3rd party jar included in Maven shaded jar without adding it to local repository

Pascal Thivent But, when I use the Maven Shade Plugin to create a JAR that includes all the dependencies of the project as well, the 3rd party JAR is not included automatically. Yes, because the system scoped dependencies are assumed to be always present (this is exactly what the system scope is about) so ...

lets dv all the answers and leave it like that @BhargavRao
21:37
that answer, with all the links in it, explain why :)
@PetterFriberg Sounds better :D
> People actually don't understand what system scope dependencies are, they just keep abusing them (yes, this is abuse), and then get side effects and wonder why (as Brian pointed out in his answer).
:D
@que test People actually don't understand what system scope dependencies are, they just keep abusing them (yes, this is abuse), and then get side effects and wonder why (as Brian pointed out in his answer).
@PetterFriberg [ Heat Detector ] SCORE: 4 ★★☆☆☆ (Regex:true NaiveBayes:0.00 OpenNLP:0.81)
Yeah I knew that was offensive... so lets flag it all : )
21:38
haha
Using Java is like treading on enemy's territory. You neva know where there's a mine that can blow you up.
That's the fun BR...
3:11AM on a Friday night and I am sitting and coding :/
but true all these darn libs are mess... I often end up doing without'em, quicker then to read and search how they work
Too much libs is a pain around the corner yeah
21:42
TBH, I'm thinking of forking Burnaki and changing the BLU :D
sounds like a plan : )
copy and past!
> Full Stack Overflow github.com/tunaki developer
But yeah @BhargavRao, don't use system scope. Just install the dependency to your local repo with mvn install:install-file -Dfile=chatexchange-1.0.0-SNAPSHOT.jar -DpomFile=chatexchange-1.0.0-SNAPSHOT.pom. Download the POM here
you'll even get transitive dependencies this way
[ Heat Detector ] SCORE: 6 ★★★☆☆ (Regex:false NaiveBayes:1.00 OpenNLP:0.99) comment cc: @PetterFriberg
@Queen tp
sigh
21:46
yeah like 10 a day... wonders if undo notified
@Tunaki That worked out faster. :)
BTW, Do I still need to have the source file?
Nope
But I'll try to make a release this week-end
This way, you'll have the javadoc and the source code
Can't you upload it to the maven central repo? That way it'll be helpful for a lot of other users.
22:01
I'll upload to GitHub
that works, I've done it before
Central is a pain -- lots of process and paperwork
I've done it for compressito, a project of mine that compresses images
"Compress It O"
What's mathunaki?
something I've been wanting to do for a very long time, but didn't get around to starting it
and probably won't start now...
This NATOBot stuff started on 3rd July. Today is the second dev day. :/
it can be nice a first try would just to pass new answer link in chat and let chat one-box it
Haha, I will try that :)
How do I send a message from the tunalib?
22:14
room.send("Hiya") : )
@BhargavRao the main issue is however you need a bot account : )
I'll try to send from my account :/
name it NATO : )
NATOBot
NATOBoto
or CruiseBot something that hits hard...
How do you set the roomId and stuff?
22:21
NatoRao
Didn't tuna make a docs for this?
when you create the room
@PetterFriberg Haha, Nope.
I actually wrapped the whole goddam room class
^ good thing :D
22:22
but it should be something like Room room = client.joinRoom(domain, roomId)
@BhargavRao Hum. Not really :)
There's the Javadoc for now...
Should've atleast written a README with a hello world program
hehe it is planned
I'll do it now actually
lets do it on docs, @BhargavRao add the tag and I will do the introduction : )
Yeah, I will ask a question on SO now. gimmetehcodez
22:27
[ Heat Detector ] SCORE: 6 ★★★☆☆ (Regex:false NaiveBayes:0.99 OpenNLP:0.99) comment cc: @PetterFriberg
@BhargavRao StackExchangeClient client = new StackExchangeClient("email", "password"); Room room = client.joinRoom(domain, roomId); room.send("Hello world")
domain = "stackoverflow.com" roomId=111347
What's properties?
: )
just set your email and password there...
Ha, Okie
@BhargavRao it's was if you use an external properties file to keep your credentials
hence avoid having them in code
Properties properties = new Properties();
properties.load(new FileInputStream("ini/MyBot.properties"));
and in that file you have like [email protected] etc--
22:34
Uh Oh, I don't use OpenID to login.
I use Gmail OAuth
Sigh, Can't test :(
go to slack
Hiya
Howyadoin @petter
22:38
Haha, @tuna's chat lib works :D
ooh yeah
Haha, All's well then.
@que alive
Sure thing buzzing around
hmm she did not even log out : )
22:40
I'll get going. Let me learn some json/gson stuff tomo.
Monday is a holiday, So I can work on this. :)
Yeah and create an SO account, you will need to edit some posts for 20 repz
Yup, I'll edit exactly 10 posts :)
like me 21 rep : )
bots are lot of fun : )
Haha yeah.
we need to rename room soon to SOBotics
22:42
Another important point is that I'll learn a bit of java also :)
Yeah that's fun... lots of code : )
I'm not that keen on Spring like tuna's done. I wanna get my basic Java correct atm.
Yeah seems wise... @Tuna is to advanced all with fancy libs, lambdas and other black magic
@BhargavRao I wanted to try it out :)
Oh, I totally love Java 8. I've used a lot of streams in my normal code.
@Tunaki I saw Spring Boot and I was like "No, Thanks". :D
22:45
:D
Spring ain't that hard. I'm a bit wary just coz it's complicated compared to the normal Java stuff.
I'll try to integrate Python and Java :D
ooh I did some Jython long time ago
I had analist writting in python and need to bring there stuff in to appl.
Fine then, I've got the stuff ready. Lemme see if tomo's the 3rd day of dev :)
@PetterFriberg Then ya can help me \o/
Your already up and running, now just load api (use Gson) then chat away
Bedtime for me cya all
Bedtime for me too
4:30AM here
;_;
Bye all
22:48
Bye : )
22:59
@Burn stop
Bye.
Hiya o/
23:28
due
die
00:00 - 20:0020:00 - 00:00

« first day (123 days earlier)      last day (3012 days later) »