Community
Chat Logs
Thursday, September 17, 2026
- cheeserexcept there are no bots allowed here.
- cheeserbut yeah. it looks like the web part is busted.
- * javabot joined #java
- * javabot joined #java
- * cheeser joined #java
- * javabot joined #java
- * ferdna joined #java
- NeXeNone could have their client message a bot that's in no channel, the entire time, to keep a log then
- * NeXeN shrugs. not difficult technically. i dunno about the bot tho, probably some cloudflareups
- cheeseror just have your client log it like i have for decades.
- NeXeNhey i need to do some research
- cheeserthe bot's web interface is fucked because it uses an old dropwizard and the logging libraries don't work with it. i don't wanna fix because i'm actively (as in, in another tab in my terminal) replacing that UI as we speak.
- NeXeNcool, i wanna see it
- cheeserthe UI itself is "done." i just have to fix the oauth stuff that's there.
- cheeserthen probably the UI could use a new skin
- NeXeNwhat is the fe? vaadin or react/vue/angular ?
- NeXeNor just vanilla cheese(r)
- * NeXeN suddenly gets a craving for cheese cake
- dreamrealThere ARE logs for #java, just not through javabot for now
- cheeserfreemarker. 0ld sk00l
- cheeserit's going to be quarkus/qute, though.
- * arkadio joined #java
- sbalmoscheeser: What was it before Freemarker? I forget what it was called, and I used to work with it too.
- sbalmosWicket! It just came to me
- jreichercheeser: do you prefer freemarker over mustache? Or did mustache just not do enough?
- NeXeNcheeser: hey you know.....if something works it works....if you're confident in it then it's a good target
- cheeserjreicher: this UI code is *old* :)
- * hwpplayer1 joined #java
- * five618480339176 joined #java
- NeXeNlegacy isn't a four letter word, it's a track record
- * michele joined #java
- NeXeNi will have to say i have used vaadin and it's pretty good. it's not the best in the world for everything but it makes dashboards, consoles, and various apps that fit a standard format (content sites) that makes it easy to spin up stuff knowing nothing but java. it's a little like swing/javafx so those skills kinda port over
- NeXeNno need to know any front end or js, and you can get typesafe all the way up and down
- * Zapek joined #java
- * sa02irc joined #java
- * iusr joined #java
- * Ragnor joined #java
- * PyR3X joined #java
- * tux100 joined #java
- * computelabs_in joined #java
- * iusr joined #java
- * iusr joined #java
- * sa02irc joined #java
- * MikeBux joined #java
- * metalmaniac joined #java
- * stfstfm joined #java
- * Wbooze joined #java
- * computelabs_in joined #java
- * Inline joined #java
- * five618480339176 joined #java
- * stfstfm_ joined #java
- * TechDev99 joined #java
- * TechDev99 joined #java
- * redj joined #java
- * Adrian35 joined #java
- * computelabs_in joined #java
- * jreicher joined #java
- * mwnaylor joined #java
- * grogu1 joined #java
- * computelabs_in joined #java
- * iwtga joined #java
- * Maxdamantus joined #java
- * Inline joined #java
- * Wbooze joined #java
- * stfstfm joined #java
- * mwnaylor joined #java
- * simon816 joined #java
- hassoon'morning
- jreicherI hope not. I'm on my third glass of wine.
- * onu joined #java
- * jamezp joined #java
- * acidsys joined #java
- ParaYou can get your daily dose of natrium by drinking 45,5 kilograms of wine.
- * stfstfm_ joined #java
- nimajeBut you would overshoot your daily dose of sugar by a factor of 4 or something, I don't think thats a good idea
- jreicherI'll try it and let you know
- ParaHmm, maybe do lots of cardio to offset the carbs?
- ParaI think something like 160 hours should do it.
- jreicherThere's carbs in wine?!
- * GreenResponse joined #java
- ParaWell it sure ain't protein.
- jreicherI know. I drink white russians for that.
- * ramontjunior joined #java
- * ramontjunior joined #java
- * ChaiTRex joined #java
- * ramontjunior1 joined #java
- * jamezp joined #java
- * stfstfm joined #java
- * computelabs_in joined #java
- * jamezp joined #java
- * MikeBux joined #java
- * tronexte joined #java
- * stfstfm joined #java
- * stfstfm joined #java
- dreamreal~69
- javabotdreamreal, 69 is the expected class file format version number of class files emitted when compiling targeting Java 25, which is expected to be released in September 2025. Nice!
- ernimrilhmmm, a bit out of date
- * stfstfm joined #java
- * dostoyevsky2 joined #java
- * xeno joined #java
- * five618480339176 joined #java
- * stfstfm_ joined #java
- * stfstfm joined #java
- * stfstfm_ joined #java
- * hwpplayer1 joined #java
- * Adrian35 joined #java
- * m2 joined #java
- * ferdna joined #java
- * stfstfm joined #java
- * Fiji joined #java
- * computelabs_in joined #java
- * Joel joined #java
- * ferdna joined #java
- * iusr joined #java
- * iusr joined #java
- * metalmaniac joined #java
- * hwpplayer1 joined #java
- * mwnaylor joined #java
- * ChaiTRex joined #java
- * stfstfm joined #java
- * ChaiTRex joined #java
- * iusr joined #java
- * ChaiTRex joined #java
- * iusr joined #java
- * Adrian35 joined #java
- * Adrian35 joined #java
- * kathadris joined #java
- * Gaz7051122720067 joined #java
- * mwnaylor joined #java
- * BadboyKAS joined #java
- * jreicher joined #java
- * pr070cal joined #java
- pr070calhi guys i need some help
- pr070calive made an arraylist that take an array of objects
- pr070cali write the objects into the array ("", "", "", "", "")
- pr070calthen i add the array to the arraylist arrList.add(values)
- pr070calwhen i print value[0] after ive written to it i can see it has the correct value
- pr070calif i print this System.out.println((((Object[])arrlist.get(i))[0]));
- pr070calthe value is always the same the last element i set it to for all 991 of them ?
- pr070calhttps://www.irccloud.com/pastebin/4J0RxuUB/
- nevetSnippet | IRCCloud
- pr070calit prints
- pr070calMLK-USDT
- pr070calMLK-USDT
- pr070calMLK-USDT
- pr070calMLK-USDT
- pr070calMLK-USDT
- pr070calMLK-USDT
- pr070cal900 times
- pr070calbut System.out.println(values[0]);
- pr070caloutputs
- NeXeNok, first off. use a pastebin if you're going to paste
- pr070calhttps://www.irccloud.com/pastebin/9nWmL9dO/
- nevetSnippet | IRCCloud
- NeXeNi look up and you've posted 50 lines
- pr070caldo you know what is going wrong here
- jreicherpr070cal: to begin with I would recommend not using casts, as a general rule. It stops the compiler telling you about your mistakes.
- jreicherWhat happens if you remove the cast?
- pr070calit says it must be resolved as an object
- pr070calthey are all stings though
- jreicherExact error please
- pr070calthe last one is just repeated over and over again
- jreicherI think we need to talk about precisely what the error means, which depends on knowing its exact wording, so if you could provide that...
- pr070cali added after this arrlist.add(i, values);
- pr070cal System.out.println((((Object[])arrlist.get(i))[0]));
- pr070caland it prints al the correct variables
- jreicherThe error please
- jreicherAfter you've removed the cast
- jreicherYou should not use casts
- * marcel1 joined #java
- * lord4163 joined #java
- NeXeNok the values array look
- NeXeNwhere is it defined? somewhere outside the loop?
- NeXeNyou don't need toString() on a getString() btw since it's already string. but now look at this line, arrlist.add(i, values); ?
- NeXeNyou're adding the exact same values array refrence to the list on every iteration
- NeXeNat the end of the loop, every single index in arrlist points to the same memory address
- NeXeNlike jreicher pointed out the complex and unsafe casting
- pr070calbut i increments
- pr070cali just added that in to make sure it iterates
- pr070cali was using add()
- pr070calit all works if i print the value straight after i set it
- pr070calits only after the for loop when i check the array
- nimajeand where do you *set* values? (set not modify)
- * lord4163_ joined #java
- NeXeNif you instantiate values inside the loop it will work
- jreicherpr070cal: have you removed the cast, and if you have an error, what is it?
- NeXeNString[] values = new String[1]; or something
- jreicherThere might still be other problems, but a compiler error is the easiest one to solve, because the compiler is helping.
- NeXeNSystem.out.println(((String[]) arrlist.get(i))[0]) then i think, is what you will ...hold on did i miss a parens?
- nimaje(but why would you even have that as an array if you only care about one element from it?)
- NeXeNyeah, but my point is that's why it's printing the same thing 900 times
- NeXeNyou're simply just assigning the same reference over and over
- NeXeNpr070cal: what is this for, what are you trying to accomplish? are you avoiding using an ArrayList ?
- * mwnaylor joined #java
- * lord4163 joined #java
- pr070cali had to add this inside the loop Object[] values = {"","","","","","","","","",""};
- pr070calthanks guys
- pr070cali would have never have thought it a reference to the array[]
- * iwtga4 joined #java
- NeXeNyeah but you can do better
- nimajewhere would you have expected the copy? And why Object[] when all you store in there are Strings?
- pr070cali have doubles too
- pr070caland integers
- pr070calwhy doesnt it store the values into the arraylist
- pr070cali mean if it has to set a pointer
- pr070calwhy doesnt it just add the value in there
- nimajethe value is a reference to the array `values` you pass it
- nimajeand you probably want to write a record or a class instead of hammering your data into an Object[]
- NeXeNyeah a custom record would save you headaches
- NeXeNyou can group mixed types in a record
- NeXeNok, so this is how i would build a record if i had those various data types and i wanted to decompose a json object and create a record for type safe use, which is what you seem to be trying to do: https://paste.linux.chat/?cdc263ea989c545c#GtRBn6EfmKM3bENmW6ux7WUR88hsv79V2US3kiKC6dYD
- javabotNeXeN's title: "Linux.Chat PrivateBin"