« first day (1 day earlier)      last day (2901 days later) » 
10:00 - 19:0019:00 - 23:00

10:56 AM
@Sam I have pushed an update to github, if you set the api key in ini (SOCVService.properties), then just double click the jar, you should be able to see the json result
 
Sam
Woot
Ok
 
Its only for testing...
 
Sam
k
 
it will create a file in output folder... and then try to open it
check out the json, lets see if everything is ok..
 
Sam
Sure thing.
Just need to pull down your changes
 
11:00 AM
Yeah
Then I have done some refactoring resolving the ParseException : ) and removed some stuff for static instance @Tuna
 
okay
 
now you can run on any tag it will work on max calls not on days...
(you can instance the bot as you like also with api calls to execute) like 10 or 20.
When we have the bot some what functioning we can look into the db issue
 
Sam
ugh
 
?
 
Sam
Dumb question: what tool/package do I need to simply run a jar file via a windows terminal?
 
11:06 AM
Just double click it : )
 
JRE
 
Sam
@PetterFriberg It's not associated with any program atm.
 
install the latest JRE
 
lol, you don't have JRE installed
 
Sam
xD
@Tunaki Thanks
 
11:07 AM
well, you may even install the JDK while you're at it
 
well i send you link to the classes if you don't like to install
 
the difference is that the JDK allows to build and run
the JRE only allows you to run
 
Sam
Meh, may as well install the JDK then
afk breakfast
 
if don't like to install just check the class, it should be easy to understand
but all devs needs at least 1 JDK, I have 8 installed : )
 
lol
 
11:16 AM
I guess also you have some installed 1.4, 1.5 ,1.6, 1.7, 1.8 (32 and 64 bit thats what you need)
 
I have 7 and 8 both 32 and 64 bit I think
I couldn't stand having the older ones on my home machine
But on my work machine I used to have all of them from 1.4 to 1.8 yeah
because... old projects... old JDK
... why update... it works...
 
update what : ), the git? now it works even better any tag any time and maybe also without a tag...
Then we are still waiting for you to gives us some nice commands, we like to speak to the bot......
@Que jasper-reports
 
Sam
11:33 AM
Back
@PetterFriberg Meh, I'll just run it
 
You maybe should check the classes anyway since some tags may not be returned in all results .... :D
 
Sam
Ah...
ok
 
But I agree a JDK for Sam is needed
I have pointed to method
 
Sam
Why would this be null?
 
its related to this line, I guess SO will always answer with tags
so it will never be null
 
Sam
11:38 AM
Ah, right
 
its more software related, since I'm checking if exists in request I need to check in response...
hence where I'm not checking it can not be null since it will throw exception..
 
Sam
Gotcha
 
Use Java 8
:p
 
NEVER
migrating back to 1.4 and Vectors
 
:)
 
11:40 AM
they are already synchronized, you can do what you like, it will never fail : )
 
Sam
Woot, got it running
 
\o/
 
\o/
Sam is a dev now!
 
Sam
D:
Huh, now where's the output file.
 
do you have an output folder : )
 
11:42 AM
Look behind you.
Under the counter.
 
I think it says in the status label?
 
Sam
.... I assumed the program would create the dir itself.
Oh well
 
Did you choose the "send by pigeon" option?
 
but if no output folder, no output file...
 
Sam
Ok got it
 
11:43 AM
it should even open it for you
 
Sam
dammit
That's why VS opened up.
 
everytinh crashed*
maybe I should have removed that cmd : )
 
apartment caught fire
 
Sam
:)
 
Have a look at it, check out if you like something else (I'm not sending if roomba ecc, you need to check it yourself :P, but if you like I can...)
Then just send me the link and key to pass you the json data and what I should expect as response.... (send me the link to page in response.... please)
 
Sam
11:46 AM
Well whatever you send me, I'll serve it.
@PetterFriberg Sure
I'm not sure if you need to send comments.
The user only needs to know if the Q is a possible dupe.
 
I need to check out the expected output on github (the dupe output)
 
Sam
I've got the output here.
 
well its nice to see the dupe target and response...
 
Sam
I'll make a gist
@PetterFriberg True.
 
Yeah you can create the html as well
But as you wish its not fundamental, its just nice...
 
Sam
11:49 AM
Ok, so I'll parse the comments for the dupe target then.
And add that into the html.
 
That should be quick :P
 
Sam
wait a minute
 
minute has passed
 
Sam
{
	"comments": [{
		"score": 1,
		"user_id": 2410379,
		"reputation": 3229,
		"duplicated_target_id": 774587,
		"creation_date": 1462878661,
		"body": "Possible duplicate of <a href=\"http://stackoverflow.com/questions/774587/multi-select-dropdown-list-in-asp-net\">Multi-select dropdown list in ASP.NET<\/a>"
	}],
	"nr": 1,
	"owner_id": 5930761,
	"reputation": 1,
	"creation_date": 1462878605,
	"title": "How to create dropdown with multiple selection check box in asp.net?",
	"answer_count": 0,
	"question_id": 37136831,
You send me the target dupe Q ID.
duplicated_target_id
So I won't need anything else in comments
@Tunaki dun dun dun
 
i don't care
it has passed
i want my waffles
 
Sam
11:54 AM
The waffles are a lie
 
that can't be true
 
I would like to send you also duplicated_target_title and duplicated_ttarget_score
 
Sam
Oh yeah
I missed those fields
 
note: the duplicated_target_id can be 0 if I can't find it...
 
Sam
Ok
 
11:56 AM
I need to implement i, it takes another api call to get them
I have added the two flags if you like them just pull
now time to eat :P
 
Sam
Enjoy
 
bon appétit!
 
Feel free to use what you like then I can remove stuff if we like to save band width...
Grazie, cya
 
Sam
@PetterFriberg Sure thing
I better start work on this API...
 
Sam
12:25 PM
@Tuna where should I put the code for this API?
Or rather, where would be least annoying for you?
 
hmm? hum I don't care really
 
Sam
Alright
 
1:04 PM
@Sam not working, having fun : ), where did you put it?
 
Sam
I haven't committed anything yet.
And there's no server running on the endpoint I gave you.
Yet
@PetterFriberg Just so I know what to build. You want two methods, one for dumping a report (and getting a url to it), and another for deleting the reports?
 
I send you the json in GET or POST, you respond with json url to see it
If you like I can send to delete otherwise you can just batch delete old ones...
 
Sam
Right, ok.
 
send it in POST
 
Sam
Batch deletion server-side will make things easier.
 
1:11 PM
ok then lets do that, it easier for me aswell
 
Sam
\o/
 
we gzip all communications?, correct?
 
Sam
@Tunaki Kinda weird using GET in this case.
@PetterFriberg Yes
 
yeah
GET a whole JSON is bizarre
 
lol : ), we like bizarre stuff...
a nice gzip json in GET
 
Sam
1:14 PM
lol
So when it's all done, you'll be posting to http://socvr.org/api/socv-finder/dump-report where your request's body is the zipped JSON.
 
ok I will setup an test app for you 2 min :P
 
Sam
:p
I haven't even wrote the basic framework yet.
 
1:37 PM
sending call are ya rdy......
 
C# is slow, give the man some slack :)
 
quick and dirty sam.... just regex it all and output it : ), with some replace
 
Sam
:p
Eating lunch atm, give me a min
@PetterFriberg Yeah I know quick and dirty code is awesome, but when it's running on one of my prod servers, I've gotta be a little more careful. :)
 
prod servers?
 
Sam
@Tunaki Yus
 
1:52 PM
@Sam Just joking, no hurry, have fun... I wonder what I can send to bring down the servers
 
@PetterFriberg spam of course
 
Sam
:p
 
DDOSS Sam
 
Sam
You'll get throttled.
 
:(
 
1:53 PM
Throttling is done by ip, hmm maybe I can avoid that...
 
and thus began the war against Sam's server, completely forgetting the initial task
 
Sam
Yep...
 
lol, did we have a task?
@Que wake up
 
She still doesn't have enough rep to talk
I need to look up on the chat websockets now...
the documentation is sparse. I found 1 Stack App question with it.
 
I will edit some questions.. let me just bring down Sam's server first...
 
Sam
1:58 PM
:p
 
She should have 11 rep now
 
Sam
Ok, had me lunch. Back to coding...
 
you didn't eat code?
 
Sam
Only on the weekends.
 
Sam
2:25 PM
@Petter To make things simple report id == question id. So http://socvr.org/socv-finder/{question id} will display the report for that q.
 
hmm no, there is many questions in one report...
lets do it on timestamp then
 
Sam
Ah, yeah
Ugh
@PetterFriberg Ok
 
so you will not respond :P all my gzip code where do I put it? : (
 
Sam
I'm still writing the server. :p
I'll ping ya when I'm done
 
But will you resopnd or not?
 
Sam
2:27 PM
Yes, I'll return a link to the report page
 
only 200 then thats it : )
ok thanks
 
Sam
np
 
thinking about pushing search
 
Sam
:p
Almost there.
Ok
I haven't had time to get all the styles/html ready yet
(Since I'm rushing to get this done asap)
 
lol :)
 
Sam
2:40 PM
Lemme test the server (locally) to make sure it works then I'll deploy it.
 
3:10 PM
going to buy some food.. ping me when you found a way out of the local server labyrinth
afk
 
Sam
ok
Cya
 
Sam
3:22 PM
One final test, and I'm done.
 
its the final count down ...
 
Sam
Pushed my code
Just deploying it now...
 
ready to rock and roll
 
building caught fire
 
Sam
It's nothing pretty atm.
 
3:33 PM
and I have no clue on how to call it... so we are fine :p
maybe like this RESTApiHandler
 
you doing this by hand?
use Jsoup or something
 
Sam
Oh dammit
 
hee?, using json... but not gson (I do not like to map the objects)
no hiberante or stuff like this
 
Sam
gitignore wasn't setup for C# stuff
ugh
one moment
 
it all crashed
the butterflies went blue
 
Sam
3:36 PM
Nah
The repo's just a mess
Well, for my project anyway
 
I mean for the HTTP calls
You can do it in one-line
 
aah no then I need other libraries...
the fewer the better :P and I know whats going on, the old school...
actually I have no idea about what or which libraries, quick and dirty
 
@PetterFriberg true
 
a couple of streams and done... 10s
and I can close em' all!!!!!!!!!
if this was java client.Request.RawUrl != "/api/socv-finder/dump-report" I know a duplicate that would solve it :p
 
lol
 
Sam
3:48 PM
@PetterFriberg "Quick and dirty" you said. :p
 
True , I love it... go go go
 
Sam
sigh
 
java.lang.SamException: git isn't working
 
Sam
hmm
@Tunaki I've fixed the git problems.
Now Mono's being a git.
FINALLY
Freakin' mono sockets
@Petter Try now, but on port 222.
(Yes, ik...)
 
make the port 1337
 
4:02 PM
2 minutes on tfn
 
Sam
ok
 
'http://socvr.org:222/api/socv-finder/dump-report ' like this?
 
Sam
Yeah
 
java.io.IOException: Incorrect response code : HTTP error code : 404
Did you see something arriving?
 
Sam
Hmm
 
4:09 PM
A 404 response doesn't look like it did
 
oops sorry wait
 
Petter made a typo
:)
 
Sam
Ah, I've found a bug
The web server doesn't sync with the new reports coming in.
So the data's on the server, but you'll get a 404 trying to view it.
Lemme fix that.
 
Sending gzipped json
Incorrect respone code : HTTP error code : 500
 
500 = Sam has a bug.
 
4:14 PM
I'm throwing this since I expect 200 :P, maybe you like to respond 500
@Tunaki Check the typo in erro message, that's how you know its me :P
 
lol
 
Sam
Okay, lemme update the server
Ok, got it working
@Petter Try again.
 
4:31 PM
Incorrect response code, HTTP error code : 500
probably my fault but do you get some log?
 
Sam
Are you using deflate or gzip for your compression algo?
@PetterFriberg Yeah, I sent a simple payload to test it, and it works fine: socvr.org:222/socv-finder/1462897837
 
Sam
I guess I better add some logging to see what's happening....
 
I really need to run, I will be on-line later
 
Sam
Ok
 
4:38 PM
what is the git command to override and update?
 
Sam
Uh
What exactly are you trying to do?
Push new code upstream?
 
git reset --hard
 
You have comited the properties file, I have stage stuff and now I can't commit : )
 
wait
@PetterFriberg specific files?
 
1 file?
 
4:40 PM
hmmmmmmm
 
Iìm not using eclipse but the command line
 
I don't know. Eclipse Git plugin does it for me :)
@Sam by "override and update", Petter means discard local changes and pull head revision
 
Sam
Ah right
 
SVN jargon :)
 
: ) yeah
 
Sam
4:41 PM
git checkout <file path>
 
but only for 1 file
 
Sam
meh
then git pull
iirc
 
that's the lovely thing about Git.
Everything is "IIRC"
 
Sam
yup
And if you screw up, just delete and re-clone
 
mmah will try later... I just send you the jar by email : ), if you fixed the .properties with 222 and also create an log folder (to see log you can test)...
 
Sam
4:46 PM
I'm gonna try and replicate your reqs in C# as well
(The 222 port is just temporary btw.)
 
Yeah you can set it....
Need to run cya later
 
Sam
Cya
 
Sam
5:09 PM
Ok, so to fix this socket issue (and thus no longer require port 222) I've setup a subdomain for ya. reports.socvr.org
Now I need to update everything again
 
 
1 hour later…
6:19 PM
@Sam should I try?
 
Sam
Uh
Well it's running
I haven't had a chance to test it all yet
 
What do I need to do...
 
Sam
post to reports.socvr.org/api/dump-report
 
np I need your help on github as well.... so your day is full
 
Sam
If it's working, you'll get back the url
@PetterFriberg Lol, what do you need help with?
 
6:22 PM
my setup is using github for windows, then i do pull and push by using command line (since the sync is not work), who knows why
After you have commited I see all your files in window
 
Sam
What error do you get when you try to sync?
 
Sam
wat
 
I see this (no errors its just syncing forever) but that I solved by command using pull and push
why do I see your files like this?
 
Sam
Have you tried deleting your local repo and re-cloning?
@PetterFriberg no idea
It might be a bug with the client
Actually
What do you get if you run git status
 
6:27 PM
//Dont close as no mcve please post code : )
 
Sam
Ahhhhh
You've diverged.
:)
 
hooly smoke, I want to return on track.... override and update : )
 
Sam
Just pull in the latest changes, commit, and push.
 
Sam
Ok then, commit first
pull and then push
 
6:37 PM
Perfect thanks : ), lol github
 
Sam
\o/
 
what os do you use?
 
Sam
Win10
The server's on ubuntu 15.(something)
 
you have same client as me?
(for github')
 
Sam
Yep
 
6:40 PM
When I press sync it's never doing anything (just throtteling is this normal)
maybe firewall?
 
Sam
Hmm
Do you get any errors?
 
its says synching and then the circle rotates forever
 
Sam
Have you tried restarting your pc?
 
Yeah I installed it a few days ago
Thats why I'm using commands
 
Sam
That's weird
 
6:43 PM
I will search for some log file (thanks anyway), SO only told to do it by commands.... but thts not really a solution... more like a workaround : )
 
Sam
:)
 
Connecting to: http://reports.socvr.org/api/dump-report/
java.net.ConnectException: Connection refused:
 
Sam
Yeah the server's down
I had to check the dns records
I'll start it back up
@Petter It's up again.
Let's see what breaks this time.
(I still haven't tested it yet)
Afk for a bit, I'll leave the server running. Ping me if you run into any more bugs.
 
6:59 PM
YEAH ... but its not json :P
Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
 
10:00 - 19:0019:00 - 23:00

« first day (1 day earlier)      last day (2901 days later) »