« first day (2838 days earlier)      last day (2327 days later) » 

00:00
"Think in terms of opportunities and solutions instead of problems, disappointment, and failure." -Lorii Myers (source)
 
3 hours later…
03:27
reads a book
03:40
@Twissted Because your array is an array of type Object. Object does not have that method. You probably should use an interface that has that method and let your Orders (ie Coffee, Donut, Mug, GiftCard) implement that interface. You can then change the type of the Array to MyInterface[] and you should be able to access that method.
Also: According to the Java naming conventions Products should be products and giftCard should be GiftCard
morning
user8622974
morning
Morning.
 
1 hour later…
05:10
good morning
user8622974
good morning
Good morning.
@Zoe good morning :)
@Alisha morning Alisha
user8622974
@Simmant How can I //help?
@OakBot morning
05:11
o/
user8622974
\o
@Simmant Morning.
\o
o/
\o
morning @geisterfurz007
05:34
I started working with an Open Source version of a commandline in JavaFX under the Apache 2.0 license. Except for the 3 line stylesheet I changed almost everything else and almost nothing is in the state it's been in the OS-project. Do I still need to add license and stuff?
05:54
You have a part of it so I guess, yes
The part is an eleven line css file and maybe 3 lines of code in the constructor.
Those are still part of the project
I'm not sure now
But still, you use their project
06:11
I don't think the code reflects anything of the old project, tbh.
And the css file isn't anything one couldn't come up with.
They did put a license note there sooo...
But I think if it's not really representing the project, it's not really a problem
I should be fine if I leave the license pasted in the css and add a note that I got inspiration from that project in the main code, right?
(it's already pasted in there)
Mmmmmmm! It feels so good to use that thing. As if it is a real commandline. A few drawbacks (like that text that changes within the same line doesn't show up) but other than that it is as good as the real one *-*
Started writing the commit message in one of the 4 commandlines and forgot to open another file but don't want to close everything? No problem! Just use one of the other 3 commandlines remaming :D
06:31
@geisterfurz007 That should be fine
Zoe
Zoe
06:56
@Simmant morning
07:08
\o
user8622974
o/
morn
user8622974
morn
07:08
morn
no morning for psuedohuman
Any creative suggestions why my textarea flickers super heavily when deleting stuff with backspace?
first backspace -> scrolls to the top -> second backspace -> to the bottom
Maybe it's an indicator that you should restart your computer
I already did over the night ._.
Unlike other people here in chat I tend to sleep during the night ;)
Could it be a virus?
07:21
Most certainly, yeah
I better trash my work laptop
windows?
this.textArea.textProperty().addListener((obs, oldValue, newValue) -> this.textArea.setScrollTop(Double.MAX_VALUE));
> sudo rm -rf /
^not in windows
This is the only thing that comes to my mind but it makes no sense that it scrolls to the top and to the bottom...
wondows!!
:D
07:25
@SurajRao well in windows, you'd have to run bash first
It makes no sense >.>
Oh, that might only work on windows 10
just delete System32 folder
Ejecting the hard drive would be faster
07:40
Finally Rob is gone parties
@ItachiUchiha Oh master of JavaFX I summon thee o_o
My wondeful, wonderful commandline works well now in terms of functionality (at least as far as I need it). However for some reason when using backspace it pops to the top. I use `this.textArea.textProperty().addListener((obs) -> this.textArea.setScrollTop(Double.MAX_VALUE));` to have it autoscroll to the bottom and I also tried wrapping the call in Platform#runLater which didn't improve a lot. Any other suggestions? I found that it does not only happen for backspaces but that is where it seems to happen the most.
You're using JavaFX to make a command line?
user8622974
o/
07:47
o/
Derp. Figured it out. I started checking whether the amount of lines are equal or not and if they are not, to the bottom it goes.
@JennaSloan It isn't outstanding and misses support for a lot of stuff, I think but it is enough for my requirements.
The code is horrible though
I would just use AWT or Swing for that
but why?
Because JavaFX is confusing
07:53
Were you not confused a few minutes ago?
I was also confused with Swing if something didn't work like expected
JavaFX itself isn't really confusing once you get the hang of it.
Hmmm. What you you rather use? Buttons that execute commands when clicked or shortcuts in the console directly (ie for example clean becomes gradle clean or gradle clean build)?
Or I could pass a Map<String, String> with shortcut -> command and it generates the buttons and adds the shortcuts...
08:10
@geisterfurz007 both? Anyway why do you need to provide a button when you already have a console?
For commands I need often but that are annoying to type. eg adb shell input keyevent 82 is one of them.
Well, if you already provide a console, a shorthand like you mentioned is good
Good, good. Those can also take arguments if needed. Yeah that's good :) Thanks
The buttons might become a problem once you put a lot of shortcut
Agreed. Although that shouldn't happen because I have a console for each tool mostly (so one for git, one for adb, one for yarn, etc). But the idea of a Shortcut class is good. Also doesn't mess up the UI. Currently I got nice and wonderful black commandlines only divided by the SplitPanes dividers and if now there were buttons the whole thing would be squashed and the background would show, etc.
08:21
@geisterfurz007 Can you add commands to your command line? :P
I thought it was just a logger :D
What do you mean with adding commands to it?
I mean execute commands in your JavaFX TextArea
It forwards anything to the windows cmd.exe
@ItachiUchiha Yes, that was the whole idea behind it ^^
Ok cool
I can cd around, run a batchfile from my desktop that asks for a firefox profile to be run, I put in the number and bang! Firefox opens. It has a history, autocompletion and probably 20.000 bugs
08:25
so the problem with BackSpace. I am sure their must be an event handler in the skin responsible for it but I can't be sure. Can you debug and let me know?
I found a workaround that suits my needs. Checking if there is a new line added with the textProperty change and only scrolling down in that case appears to work just fine.
Btw... What is the reason there is both the control and the skin? I never really understood that.
Controls class is just the API
Skin is the impl
There is behaviour class as well ;)
Especially because it prevents some actions. I cannot determine for example whether the mouse drag event targets the scrollbar of the textarea or the textarea itself because the target is always the according skin. I could probably check the class but that feels hacky :D
Ah, I see...
yo ita
Did you hear anything from le russian lady?
08:30
Skin defines how the control should look where as behaviour defines how it should behave when interacted with.
Ah so the Node essentially manages the communication between the two?
08:47
Those are two great reads! Thanks :)
09:09
@Zoe whats up.
09:25
I saw you Rob......
@ItachiUchiha sup
Zoe
Zoe
09:38
@Simmant not much, eating breakfast and watching Sword Art Online atm. How 'bout you?
user8622974
morno
morno
Zoe
Zoe
morno @wonderb0lt ^w^
09:46
Yoo @wonderb0lt o/
Nice! Shortcuts work. That wasn't too bad actually. Now I just need to create a few of them and I should be at least mostly done with my little RN Toolbox :)
huehue... hue. hurrhurrr.
getGit_View
React Native
If I make my java application connected to an SQL server, do I have to be on my current device to use it?
09:56
Depends where that SQL server is and how you can connect to it, I guess
My server setup failed with Microsoft. I guess I'm never going to be able to do this
I still don't get how any of this shit works. I'm stupid
You shouldn't connect to the database directly unless it's like, a trusted application in a trusted environment and the database contains non-critical data
So, you should connect to it indirectly?
10:02
Yes. Otherwise you'll run into problems: What if the database is in a VPC in the cloud, and you can't reach it? What if someone reads the database credentials from memory? What if someone is proxying your connection to the database (unless you have TLS mode or similar enabled for your database)
So, how would I make it so that a user can access their relevant data without directly connecting to the database?
You use a web server. It serves as a funnel for your database access that has an interface (usually HTTP) that is well-known and there's tons of resources on how to make it secure both on a transport level HTTPS, PFS and on the application leven (OAuth, JWT, ...)
you can connect to a web server with a desktop application then?
Aye!
You do nothing else with your browser ;)
Sweet
If only I knew what this stuff meant
Microsoft SQL management still cannot find my server. I'm doing everything right step by step
10:08
Which stuff exactly
@Zoe boring dude ..feeling dammmm sleepy today :o
@Nathan777 Correct. This also means that your clients (browser, GUI, console application) don't need to speak anything but HTTP
Dangit >.>
I have 6 ConsoleViews...
I hoped I would remain below 5....
@geisterfurz007 ohh boy
What happened to my message?
10:15
Which one? :)
The one that isn't there that I typed
Ooooh that one! Which one?
after you asked which stuff
I explained which stuff
and someone deleted it apparently when all I said was the s word. That evil word
oh, nm, that one is there
My mind is working backwards right now, it appears
Noone deleted anything :) That would show up. A moderator accidentally deleted one of my messages once and it still shows as (deleted).
TITLE: Microsoft SQL Server 2017 Setup
------------------------------

The following error has occurred:

VS Shell installation has failed with exit code 1638.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=0x5B39C8B9%25401434%25403

------------------------------
BUTTONS:

OK
------------------------------
That's the error I get. Online it says it has something to do with Microsoft Visual C++
10:17
Welp, this is not the Microsoft helpdesk, sooooo
I have a web app to receives JSON from a Get rest call. The JSON file has 5 fields. The resulting Pojo has 5 fields to map to. What would happen if the rest service producers add a 6th field to their JSOn file - will be my app fall over?
Fall over? Apps are 3D now?
Everything. Will explode. In a huge fireball.
Just like me, if I don't get food soon :P Cya after lunch o/
@TheCoder Depends on the deserializer and how you configure it. Gson IIRC completely ignores those additional fields
10:20
I'm just uninstalling everything Microsoft Visual C++
and re-installing the latest
Bye, Cement
so, do I create the whole SQL server on the HTTP, or just extract from a server I already created on my device?
@wonderb0lt it's jackson
462
Q: Ignoring new fields on JSON objects using Jackson

Hadi EskandariI'm using Jackson JSON library to convert some JSON objects to POJO classes on an android application. The problem is, the JSON objects might change and have new fields added while the application is published, but currently it will break even when a simple String field is added, which can safely...

It will fall over - the above is the solution
What's the difference between using JSON and just writeObject/readObject?
oh, it says the installation worked this time
let me see if I can get on the damn server now
nope, still can't find it
I'm just going to jump off a cliff. I cannot learn how to create and use SQL databases, because not a single program I found that creates them works.
oh, sweet. I found it
10:47
@Nathan777 the storage format?
So, it is all a matter of storage?
however, one type of format has some features that the other does not have
its all a matter of format, not storage
writeObject/readObject require you to not change the class's internals
or write some massive management of versions
json is simply json, but that has no knowledge of what class it came from
it simply holds some data
10:49
it all depends on what you want to do
in most cases, I'd say, use Protobuf
because it is cool, fast and amazingly well designed
I just did the write and read object. The problem is, when I create an exe of my program, I cannot get it to read the file if I use the open with the exe option on my program
that is a different issue i think
you probably cannot find the file in your exe case
it works if I load it into the program after launching the application
but not if I open up the application directly from the file
you need to find out if there are differences in how you handle them
like how does the open with send the information?
and does your application use them that way?
Not sure
I open it with a JFileChooser
in the application
but you have to already be in the application to open it
10:57
and how do you open it when you use Open With?
I click on my application
in your code*
so it open the application, but none of the saved object
oh
readObject
but that's only if you are inside the application
readObject on what?
and from where?
readObject from type of File
I set the File f equal to the JFileChooser file
and it reads the objects from the file
11:00
I dont have a readobject on file
then what do you have?
usually Files.readAllBytes()
object input stream
and then read object
11:17
Back o/
Zoe
Zoe
Wb @gei
Cheers
omg. That thing is probably the most useful thing I ever wrote.
Want to commit something with a given message? Just write commit "My message"
You can also ommit git for add and push
And you can add shortcuts as much as you want :o
That thing feels so good :D
whatever that's supposed to me
/afk
@Nathan777 Cya later
mean*
11:27
@Nathan777 Welcome back!
How old are you OakBot?
I doubt he will answer.
The initial commit to the OakBot repo was Nov 27th 2014
so OakBot is male?
Yes. Or at least that are his "preferred pronouns".
Whatever you need those for nowadays.
11:31
I created the other option in my cabin assigner program. My camp has kids with no preferred gender identity
and we have gender neutral cabins
yikes.
How old are those kids (if you may disclose that information)?
Zoe
Zoe
Does it matter?
8-18
the gender neutral cabin was only 12 and up this year though, which I'm hoping it stays that way
So, I created the gender neutral option which will allow assigning any gender to a cabin
cabins that are M or F will only display kids of that gender or no gender on the left list to be able to assign
to avoid errors
@Zoe In some sense, yes. At least to me. There are parents nowadays that literally force their kids into that direction so I wondered about whether that applies to the campers as well. While I generally think that anyone can decide themselves, I would be worried if the answer would have been anything less than around 5.
Zoe
Zoe
Oh, forgot about that ^^"
11:35
@Nathan777 good job :)
We don't encourage them to be anything different. We don't encourage coming out parties at camp either.
That I kind of don't like. Some kids just come out and say they're gender neutral on the spot at camp, and then go home from camp when their family doesn't even know about it.
@Nathan777 Which is good. To make sure that came along the way I meant: I wasn't talking about you but the kids parents :)
Er....
My selfbuilt commandline just printed this when the gradle build failed:
FAILURE: Build4  faacitlieodn awbilteh  taans kesx:c e1p teixoenc.ute
d,
 *3  Wuhpa-tt ow-ednatt ewr
ong:
Execution failed for task ':jfxJar'.
> Unable to build JFX JAR for application
Yeah, I generally encourage them to talk to people close to them first and not feel pressured by their friends to come out and change right on the spot.
Because as a parent, I would be upset if my kid went to camp, and when I picked them up they told me they were the opposite gender now, and never even talked to me before just going around telling everyone
Zoe
Zoe
@geisterfurz007 wtf
Good, ain't it?
I think the problem is that I read and forward both stdout and stderr directly which is differently handled in the actual commandline but not from the cmd command :D
Zoe
Zoe
11:42
That doesn't even make sense xD
It doesn't! But if I run the output through a piece of JS that puts every second character in one array and every other character in another one, I get this:
"actionable tasks: 1 execue,* What went "
"failed with an exception.td 3 up-to-date"
which has some hiccup in the middle but then reads "actionable tasks: 1 executed, 3 up-to-date" and "failed with an exception. What went "
So that is the only explanation I can come up with.
Can you have 2 items in a SQL have a different key, but the same name for that key?
same name for 2 different keys I mean
you know what I mean
I have absolutely no idea what you mean, tbh.
My brain is a little slow today in general though.
11:55
Okay, so if the camp creates a new cabin in my program, I want it to add that cabin to the database under that camp, but 2 camps make a cabin the same name. Like 2 camps have a Blue cabin, or a Cabin 1
but they are on the same massive database which each camp only takes from the values that match their camp key
So the database would be Table cabin. Key cabin #, Varchar Cabin Name, Int camp#
You mean something like
ID: 12 | Name: Blue Cabin | Camp: 1
ID: 13 | Name: Blue Cabin | Camp: 2
Yeah that is possible :)
yes, but at 2 different camps
11:57
I wanted to put an authentication screen or something on my desktop program where the user puts a camp code and unique password to access the all the values that match their camp number in the database
Eventually I'm going to make a registration service too that parents register their campers, and there is a parent portal, a counselor portal, and an administration portal
and I'm gonna be rich!
Oh boy, here comes Uni ._.
Uni?
The what?
Programs out there like Camp Minder cost 5 grand to use
The Unihedron. THE Unihedron.
what does that mean?
Eh, I was trying to reach stack overflow, and by typing "st" it autocompleted the chat room, pressed enter by accident instead of deleting the rest of the URL to get to just stack overflow
12:00
The federal tax code was 400 pages in 1913. In 2010 it was 70,000 pages. (source)
@Unihedron Ok, bye.
how did you know uni was here before he/she said anything?
Needs more pings.
@Nathan777 Because I saw the dp flying in on the right side of the chat.
@Nathan777 If you're on the desktop version, the right hand side of your chat window has avatar images for each online user
If you're on mobile, press some button to see the online users list
12:01
Mobile doesn't have the fancy joining animation though :3
Zoe
Zoe
Mobile is shit in general
stack overflow is
hi all. question about log4j. my app depends on a FileAppender being configured properly. I can configure that using a properties file. however, i'm worried that if the user supplies his own logger conf, it will override my conf which is needed. any ideas to solve this?
i've been trying to configure my logger programmatically, however, i bumped into a new problem. i'm interfacing with a lib that takes an SLF4J logger. log4j allows you to configure things at runtime. slf4j does not. :(
 
1 hour later…
13:18
Yeahh.... So... My Commandline thingy just almost killed my laptop :) CPU usage around 70-95% and memory usage at 700+MB :)
I think I might want to limit the number of lines per commandline or else logcat will let this laptop go down in flames :D
Unhappy Tuesday @Michael ._.
The application also doesn't exit if you use the X because apparently there is a buttload of threads running which don't exit.
happy tuesday @Michael :)
So I guess I am not really done :')
@ColdFire Tuesdays are not happy
why not?
Physics.
Zoe
Zoe
13:32
Happy Tuesday @Michael ^w^
@Zoe Free will is an illusion.
LOL
What is a reasonable line limit for a console?
I currently have 530 lines (in one of five consoles) and a memory usage of the application close to 700MB.
Zoe
Zoe
@Michael I have a meme for this owo
Ugh...
The problem really appears to be the reading of the stream O-o
I have logcat running and the CPU usage is 50% (when running from IntelliJ).
Zoe
Zoe
@Michael Right, and i.imgur.com/60eWY3F.png
13:40
I destroy the Process and bang. 0
Is there anything I can do that does not have the CPU usage of my application break out just because I am reading streams?
The thing is that I usually have 1-2 processes running that require constant reading and if that is so expensive that would make most of my project useless.
Zoe
Zoe
Can't you use a blocking call?
A single ms sleep if you don't receive anything could significantly lower CPU use
Zhat, dear Zö... Makes a lots of senze. I will trai zhat out. Zhanks!
@Zoe xD
Zoe
Zoe
@geisterfurz007 No problem ^^
@Michael x3
13:56
Alright now I don't get any output anymore and the process still locks at 50% CPU Usage. Nais! Chances are that I fcuked up somewhere tho
Ah nice!
I have output!!
I also have a CPU Usage of 98%
PARTY!!
Ok... What the actual fuck is happening. I tried destroying that process and do you know what showed up on screen? Thread.sleep(10);
Why is my Javacode in my console when I destroy logcat?!
A'ight. Metro bundler is running and being monitored and only up to 1% CPU Usage...
Logcat running and not even 2-digits...
Thanks @Zoe
Saved my butt there.
Now the next thing to find out is why the heck Process#destroyForcibly does not destroy the process forcibly...
Zoe
Zoe
No problem ^^
14:17
It's so annoying ._.
react-native start runs the metro bundler using node. I call destroyForcibly on the process returned by running that command and bang! bundler still running and blocking the port.
Zoe
Zoe
I tried doing some stuff with Process, but any kind of blocking loop in the process you run can block even destroyForcibly
No clue why
That's so dumb ._.
Zoe
Zoe
Ikr
So a hacky solution it is...
Zoe
Zoe
It's the same with ScriptEngine
I'm not sure why.
14:20
A HackySolution™ it is!
Actually...
Zoe
Zoe
But I'm guessing someone somewhere has made an alternative as a library
That won't work either.
Crap.
I thought about getting the process ID and then run a taskkill from a batchfile against all the process ID's :/
But if I run react-native start, 4 node.exe processes are created.
-.-
Zoe
Zoe
rip
Whatever, I will take a look at the implementation tomorrow and if I am lucky I might get a way to access the PID through reflection.
Later o/
 
6 hours later…
20:30
reads a book
 
2 hours later…
22:35
@geisterfurz007 Why do you have a thread waiting 10 milliseconds?
its alive!
I mean the chat, the chat is alive.

« first day (2838 days earlier)      last day (2327 days later) »