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

1:02 PM
@Zoe \o
 
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?
 
GET
 
1:18 PM
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
1:23 PM
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?
 
1:24 PM
@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
@Michael Is there even anything on there?
 
@Zoe Yeah, not really. :/
 
Zoe
1:27 PM
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
lol, that could work
 
1:31 PM
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
1:39 PM
@Michael need any help? :*
 
Oh look, it's unknown. Wait..... :P
 
@Zoe Yes, please! xD
 
Dax
Hi guys! I need some help again :)
 
That cat looks familiar...
 
I demand weddol as meme.
@Zoe Rules.
 
1:41 PM
Hey @Hans!!
 
Zoe
@Michael I'll create a PR
 
Sweet
 
@Hans1984?
 
@geisterfurz007 Excuse me?
 
@Dax yes please.
 
1:42 PM
@rabbitguy He is still banned :c
 
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
 
1:43 PM
02/30/2019
 
what are you talking about guys ?????
 
fail every drug test possible
 
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
I prefer that
please :)
 
1:46 PM
you have data with ","
?
 
Zoe
Streams is fun though :>
 
You create an array for every line.
 
/me punches @zoe for saying that
 
@geisterfurz007 +1
 
Dax
yes, I ahve a text file as my input and it cointains "," like 1,2,3
 
1:48 PM
You already know what you can do to make a stream of String[] to a Stream of String @Dax :)
 
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
Yep
 
1:49 PM
where is WieLOL
 
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.
 
1:51 PM
I will leave that right there as monument of your stupidity.
 
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
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
1:52 PM
ok
 
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
1:53 PM
@geisterfurz007 Basically a blog
@geisterfurz007 for the website
 
oh - post as in post
 
Who writes the stuff?
 
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
But if you want that, I'll need to add some more stuff, so it's nice to know in advance :>
 
1:56 PM
guess I'll try casting upload_yes and upload_total <_<
 
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
tansk!
 
1:58 PM
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 (2045 days later) »