« first day (1531 days earlier)      last day (3403 days later) » 

8:00 PM
I have this (simple) combination of fxml/css and java. The combobox in question (operationSelector) is indeed disabled, but it's opacity is 0.4 (the default for disabled nodes instead of 1.0). Printing this.operationSelector.getStyleClass() shows that the singleton-combo-box class is indeed part of its style class. I tried disabling all style classes but singleton-combo-box and STILL the opacity is 0.4 when disabled. Does anything obviously wrong jump out? pastebin.com/hbTrkAZd
 
@brcolow: you should start by asking this as a question on the stackoverflow site, not in chat.
 
oh, okay, will do
 
@brcolow: This way you can give all the details of the specifics of your problem, and give it decent tags to attract the appropriate experts on the subject. Much luck!
 
@HovercraftFullOfEels Well, you're an expert, and you are in chat.
And it did attract you
 
@Charlie: nope, I know nothing or less about css or fxml.
 
8:04 PM
Ah
 
@Charlie: and I'm wrong about most other topics as well. Just ask Ms. Hovercraft.
 
@HovercraftFullOfEels Pascal?!
You.. You're kidding... pukes blood; dies
 
@Unihedro: Careful please. That's my first programming language, and so it holds a very special place in my heart.
 
@Unihedro Can I take your reputation if you die :)
 
8:08 PM
@HovercraftFullOfEels It is a great programming language.
 
fge
Bwaahahaahaaa cough cough gasp cough
 
I've never seen a language with syntax as sophisticated and... I can't do it.
 
@Unihedro: it was for its time. And when TurboPascal came out, it was one of the most affordable decent compilers around, I believe written initially by the great Anders Hejlsberg.
 
Yes, then there's FPC (free pascal compiler) which ultimately felt like a joke, but my limited grasp of Pascal was sufficient to feel how powerful the thing is.
 
Hi huys, what do you mean about nio used without buffer ? Here an example:
FileChannel channel = new FileOutputStream(file).getChannel();
channel.transferFrom(Channels.newChannel(file, 0, 199552);
channel.close();
 
8:12 PM
{$IFDEF windows}
write('Please use a proper operating system.');
{$ENDIF}
 
Oh cool, hipster windows jokes.
 
@Charlie still debugging it, have to restart my device to see the images that have been stored in the gallery, bit of a pain
 
Umm... windows is a bad operating system because it comes with all the drivers, runs programs like office and photoshop and it doesn't have kernel panic
 
It deserves a mention at bjorn.tipling.com/if-programming-languages-were-weapons for its greatness in its time.
 
Windows is bad because IOCP is not a good abstraction at all! Everything (like processes) is a file!
 
fge
8:15 PM
@Romain-p first things first, you should use a more modern FileChannel method to open the file
=javadoc FileChannel#open(*)
 
Which one do you mean? (type the number)
1. #open(Path, Set, FileAttribute[])
2. #open(Path, OpenOption[])
@fge FileChannel open(Path path, OpenOption[] options): Opens or creates a file, returning a file channel to access the file. (1/4)
 
fge
2
 
Windows is bad because... Well, it's super vulnerable. And... Microsoft made it, so all the Microsoft sucks at marketing microsoft ruins skype rant applies.
 
@Charlie for some reason now the captured images aren't showing in the gallery..I'll try rebooting
 
fge
@Romain-p then you should use a try-with-resources statement as well
But then, this is 2015 and since 2011 there's even easier
=javadoc Files#copy(Path, Path, CopyOption[])
 
8:18 PM
Which one do you mean? (type the number)
1. com.google.common.io.Files
2. java.nio.file.Files
 
fge
2
 
@fge java.nio.file.Files: This class consists exclusively of static methods that operate on files, directories, or other types of files. (1/2)
 
fge
=javadoc java.nio.file.Files#copy(Path, Path, CopyOption[])
 
fge
Aah, that's been a long time
File sucks (#29)
 
8:19 PM
^^^
 
@Hovercraft Full Of Eels did you up vote my question?
 
Can't believe Winterbash is going to end so soon :(
 
@Unihedro Which hats don't you have yet ?
 
fge
So, assertj will have assertions for Path
(starting with version 2.0; and I'm the one writing them :p)
assertThat(path).reallyExists().hasPermissions(0644);
 
:D
The bounty, the pizza, red baron, a secret hat, apple app usage, and answering on saturdays @Charlie
 
fge
8:27 PM
assertThat(path).isSymbolicLink().hasExistingTarget();
 
Oh, and first post on a site :/
and naruto (accepted answer with no vote)
 
@Charlie the captured images weren't saving, so i deleted the album, now I get an error as there is no album present this line of code "File newestFile = files[files.length-1];" throws a "java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1
" .How can I prevent this condition from being met?
 
@Unihedro The bounty is doable, if you give me your credentials I can use the Apple app for you, red baron is doable, which secret hat ? And this saturday is before the 5th of January
@BrianJ if(files.length>0) { File newestFile ...
@Unihedro And if you give me your question, I can answer in 30 minutes, you just need another 4 persons
 
@Unihedro why do you keep qoting that?
 
8:31 PM
in Tavern on the Meta on Meta Stack Exchange Chat, 55 secs ago, by SmokeDetector
@Unihedro HATS ARE AWESOME. Winter Bash will end in 3 days, 3 hours, 30 minutes and 14 seconds. :(
@Gemtastic I can't pull Smokey in here, so.
 
@Unihedro "BTW, while I'm working on the mail forwarding server, anyone want a free username@javaroom.website email?" Does this still count ?
 
@Charlie else? assign a default name>
?
 
@BrianJ Else, there are no pictures, so just return null
 
@Unihedro you still don't have to quote your command :P
 
!!/hats What command ?
 
8:32 PM
@Charlie Sure, send me a mail at asdfghjkl@javaroom.website, I'll deal with the MC when I wake up
It only works in the MSE Tavern because the bot lives there.
MX not MC
 
Also, that countdown is worse than a procrastinator's guilty conscience. "Deadline in 3 days. 2 hours, 30 min and 4 seconds" I KNOW! taps away at keyboard cursing yourself for not starting when you should've
 
@Charlie Okay I'll give that a go
 
@Gemtastic Made me laugh
 
:P
 
@Gemtastic :p
 
8:35 PM
@Charlie should the else,go after the declaration of the new file?
 
Edit your question, I'll edit my answer
 
@Charlie will do
 
@BrianJ Could you upvote my answer for all the hard work I put in it please :D
 
@Charlie also if I edit my question, will that make your answer void? what if I just ask a question under your answer?
 
Oh gawd, I wanna do that for my next birthday:
 
8:40 PM
@BrianJ Just edit your question, my answer will stay
 
Candles in binary ♥
 
@Gemtastic 31 years ?
Oh wait, 2 are out
21 ?
 
Yep
 
@Charlie Okay
 
Though that's not my cake, I just found it on the net :P
 
8:41 PM
I'm turning 0001 0000 next year
Just one burning candle
 
@Charlie updated question
 
My mom's turning 50; 0011 0010, something better
@BrianJ I see, now accept my answer >:)
My dad's turning 43; 0001 1011
 
isn't 16 1000?
 
Yeah
No
16 8 4 2 1
1 0 0 0 0
 
@Charlie haven't figured out if it works yet, need to add the null check and see if the image added has it's exif data updated.
 
8:45 PM
@BrianJ Just let me know
 
@Charlie okay can you update your answer to show the null check?
 
@BrianJ It already has :)
 
@Charlie with this code will an intial image ever get added?
 
@BrianJ No, it doesn't*
It just adds tags to the latest added picture
=about
 
OakBot v0.0.2 by Michael | source code | built: Today at 6:50 PM | started up: Today at 6:50 PM
 
8:49 PM
Yeah, still online
How does one make a bot though ?
 
@Charlie I'll test it now, should the return type be "directory"? as when I use just "return" it gives me the error, "This method must return a result of type File"
 
@BrianJ return null
 
@Charlie I get a null pointer exception this time
 
@BrianJ return new File("")
@BrianJ Accept my answer if it answers your question please :)
I really want some rep
 
me too
 
8:58 PM
@Charlie so new File("sample") would this work?
It hasn't worked so far still debugging it
 
I want 10k rep! I want to deleteeeee!!!
 
@Unihedro Chilllllll, you'll once get it
@BrianJ No, you can in fact not return anything, so I return an empty file
@Unihedro You're just over 50%
 
@Charlie so what exactly do I return? this: "return new File("");"
 
@BrianJ A file called "" (nothing) -> An empty file
 
@charlie
@Charlie just testing it now
 
9:01 PM
@BrianJ You should handle empty files in the function that calls that function, you can't do anything in this function
@BrianJ Go ahead, I'll wait
 
holy cow it's java
 
@DemCodeLines Holy cow it's DemCodeLines
 
Aayyyyyy
 
@Charlie it just freezes up when I take a picture, won't let me accept it, only cancel
 
@BrianJ Send me your complete code, including your "take a picture" thingy
 
9:03 PM
@Charlie coming up
@Charlie haste bin link okay?
 
@BrianJ gist.github.com is better
@BrianJ But Hastebin is okay too
 
@BrianJ But again, I haven't made an Android app before, but I check the Java behind it
 
@Charlie replaced my code with yours and now the camera intent doesn't start, just shows a toast
 
@BrianJ Edited gist
Should work now
@BrianJ THIS version should work
 
9:18 PM
@Charlie should the second exifvar be changed to a new name? its a duplicate?
 
@BrianJ That is what I just edited
Otherwise, remove File before it
 
@Charlie testing..testing
 
@BrianJ You know what, I'm installing Android's SDK so I can test on my own
 
@Charlie that worked anyways, just gotta check if the exif attributes were saved correctly
@Charlie this package is the most convenient, rather than installing: developer.android.com/sdk/index.html
 
@BrianJ That's exactly what I'm installing atm
 
9:26 PM
@Charlie nope, exif data still not being written to the image
 
@BrianJ Be patient, installing Android SDK atm
 
@Charlie what Android device are you going to run it on?
 
@BrianJ Either a simulator or my phone
 
@Charlie I gonna get some food, be back on later, thanks for the help
 
@BrianJ Sure
 
9:57 PM
Hi
Anyone have experience with using genetic algorithms on timetables?
 
@monsterbasher not me
 
 
1 hour later…
11:15 PM
Hmm a lot of people in here I haven't met before
 
new year new friends ayyy
 
Well, welcoming the new year with new friends is nice :)
 

« first day (1531 days earlier)      last day (3403 days later) »