« first day (2895 days earlier)      last day (2270 days later) » 

13:02
@Zoe \o
Zoe
Zoe
@USM I bet a lot of people would, but the source isn't public :*
hi guys
I have a question
Suppose to have this REST OPERATION
GET /books?name="xxx" ; this return all book with name=xxx, I put other parameter
Suppose now that I want create an exel when I click on a button (Crea EXel)
this create exel take the parameters of the last search and put in file the result of the search
my question is
and the url?
13:18
ok GET and the endpoint must be the same?
or i need to pur an another endpoint?
Depends upto you, but HTTP end point should be with GET method.
I just follow the "convention" in the REST CALL
better to keep it another endpoint, even SOLID also suggest that.
@Simmant what endpoint do you suggest? GET /books/exel?.... or GET /exel?--- ?
@JBis This was the old room description:
> Room dedicated to the Java programming language, yummy food, and cats. And no, Android is NOT Java (does not use the Java VM, runtime environment and base SDKs differ, etc). And no, Javascript is NOT Java either. -_-
Zoe
Zoe
13:23
Hiya @Mic
@Doflamingo19 GET /books/excel?
Hey @Zoe
sounds cool and pretty relevant.
ok thanks @Simmant
I thought I would make the room description sound a little more polished. Thoughts?
13:24
@Simmant I need to create excel file in back end are you sure I must use GET operation?
@Michael I like!
@JennaSloan Can you add a link to the JavaChat Github page on that page, Jenna?
@Michael Jenna Sloan is away
Zoe
Zoe
@Michael Is there even anything on there?
@Zoe Yeah, not really. :/
Zoe
Zoe
13:27
What would you put on there?
@Doflamingo19 dude that will be your backend process and there is no such significance I see with POST or PUT, because you just need to trigger your job and with that request you will retrieve details from DB, so for that usally we follow GET end-point.
The room description?
GET -> to get some thing .. XD name it self enough dude :P
@Doflamingo19 ok thanks
@Zoe Maybe a listing of various room-specific memes to fill-in new people. xD
Zoe
Zoe
lol, that could work
13:31
I ahahah @Simmant I use this GET /books/exportsResearchData
@Doflamingo19 lolzzzz that also sound cool, name just bit relevant that will be enough.
@Simmant the last question, i'm not english so after a search I must use exportsResearchData or exportsSearchData?
@Doflamingo19 mee too dude :P, but I think exportSearchData will be good.
aahahhaha @Simmant thanks for your support
@Doflamingo19 any time mate :)
@Wietlol you english ??
Zoe
Zoe
13:39
@Michael need any help? :*
Oh look, it's unknown. Wait..... :P
@Zoe Yes, please! xD
Dax
Dax
Hi guys! I need some help again :)
That cat looks familiar...
I demand weddol as meme.
@Zoe Rules.
13:41
Hey @Hans!!
Zoe
Zoe
@Michael I'll create a PR
Sweet
@Hans1984?
@geisterfurz007 Excuse me?
@Dax yes please.
13:42
@rabbitguy He is still banned :c
Zoe
Zoe
You won't have to deal too much with HTML directly either, so it would be easy to add stuff
@rabbitguy Watch out, cats like to eat rabbits. xD
when is his ban lifted?
94 days left
@Michael bah. If you were to eat this rabbit you'll be messed up for months after that
13:43
02/30/2019
what are you talking about guys ?????
fail every drug test possible
Dax
Dax
I have a file that contains: 1,2,3 (for example). I want to read and convert it to ASCII code using java 8. I do it as paste.ofcode.org/XsgFqY7rsiF7YqdgLMrTcK , the result that I get is [[49,44,50,44,51]]. which is not what I want, because now the inputLengthAscii.get(0) is [49,44,50,44,51]. what I want for index zero is just 49 how shoudl I change my code
you have to use java streams?
Dax
Dax
I prefer that
please :)
13:46
you have data with ","
?
Zoe
Zoe
Streams is fun though :>
You create an array for every line.
/me punches @zoe for saying that
@geisterfurz007 +1
Dax
Dax
yes, I ahve a text file as my input and it cointains "," like 1,2,3
13:48
You already know what you can do to make a stream of String[] to a Stream of String @Dax :)
Zoe
Zoe
/me spawns a portal so @rabbitguy punches themselves :>
@Dax you have to use "split" and prepare array for line.
Greetings to @rabbitguy from Hans. He will be back once his ban is lifted (23rd of December?).
Zoe
Zoe
Yep
13:49
where is WieLOL
Dax
Dax
I did that, I used split, but if I do that I do not get the 44 (ASCII code of ",", and I need that)
//give 20 punches rabbit guy
user8622974
gives punches rabbit guy to 20
Someone delete that, I'm stupid.
13:51
I will leave that right there as monument of your stupidity.
Dax
Dax
Files
.lines(Paths.get(fileName))
//.map(input -> input.split(","))
//.flatMap(Arrays::stream)
.map(s -> s.getBytes(StandardCharsets.US_ASCII))
.map(b -> Arrays.toString(b))
.collect(Collectors.toList())
@Dax :/
Dax
Dax
I had written it like this at the begining
@geis How would you do it though, having a space in his name
let me share sample ;)
Dax
Dax
13:52
ok
Zoe
Zoe
@Michael @geisterfurz007 could also set up a post-based system if you want that
@geisterfurz007 :D :D good to see Hans is not dead. We will see him soon
If you have discord, I can invite you to our mutual server if you want.
Hans is this year's christmas present
@Zoe A what?
For what, what, whaa?
Zoe
Zoe
13:53
@geisterfurz007 Basically a blog
@geisterfurz007 for the website
oh - post as in post
Who writes the stuff?
Zoe
Zoe
@geisterfurz007 /shrug
wtf
is wrong with SQL
CASE
	WHEN upload_total > 0 THEN (upload_yes/upload_total)*100
	ELSE 0.0
	END AS upload_percent,
upload_total = 4
upload_yes = 2
and it gives me 0.0
What the heck am I missing here
Zoe
Zoe
But if you want that, I'll need to add some more stuff, so it's nice to know in advance :>
13:56
guess I'll try casting upload_yes and upload_total <_<
Dax
Dax
@Simmant Did you want to share a sample with me? or you were talking to someone else :)
@Dax with you dude
@Simmant NO! I am Wietlol!
@ballBreaker I never did anything like that with SQL, but maybe (upload_yes/upload_total) does integer devision, which ends up in 0 ? (2/4)
Dax
Dax
tansk!
13:58
Yeah that's what I'm thinking as well
Ah yes
What's the least spoken language in the world?
had to change to:
`WHEN upload_total > 0 THEN (cast(upload_yes AS decimal(9,2))/ CAST (upload_total AS decimal(9,2)))*100`

« first day (2895 days earlier)      last day (2270 days later) »