« first day (2824 days earlier)      last day (2111 days later) » 

12:00 AM
"Don’t count the days; make the days count." -Mohamad Ali (source)
 
 
1 hour later…
1:12 AM
@geisterfurz007 I'd rather not implement because last time i tried that, it didn't work at al
 
1:42 AM
morn
 
morn
 
Hi guys, Is there a way that I can create a "callback" function, kinda like JS's anonymous function that can be bassed via function parameters?
I tried Java's Lambdas but I can't figure out how to work them
public void btnClicked(Function callback) {
    callback()
}
 
2:41 AM
/javadoc Consumer
 
/javadoc Method
2
 
3:17 AM
 
 
3 hours later…
6:06 AM
@Zoe Nope! How is vacation?
Morning all o/
 
morning d0d
 
Zoe
6:17 AM
@geisterfurz007 I'm sure you're missing them ;) And good :D
 
Maybe a little bit. But not too much.
What are you even doing here? Shouldn't you be at a pool or something?
 
Zoe
@Mulliganaceous ?
@geisterfurz007 just woke up
 
And the first thing you do is to go to SO chat? Daaaaaaaaamn :D
Enjoy your breakfast and the pool 'n' stuff!
(Once you get there. That was no command because I think it can be read that way)
awkward silence
 
6:34 AM
@geisterfurz007 Water is dangerous! There's like sharks and Portuguese man o' war!
 
In pools O-o
 
Don't underestimate humanity
 
I forgot that you are more of a land type of person :D
 
Portuguese man o' war have a habit of washing up onto beaches
 
How dare them!
 
Zoe
6:52 AM
@geisterfurz007 cough
 
@geisterfurz007 I pretty sure they don't have eyes and can't control what direction they're floating on the surface of the water
And I think they have less brains than a jellyfish
 
hello every1
 
Hey Nathan o/
 
sup?
 
Nothin'.
Watching the game. Havin' a bud.
 
7:07 AM
Wait, there's a stackoverflow.blog ?
 
You didn't see anything from the Meta drama?
It feels like every other week there is a new blogpost about people being not nice which then gets ranted into the ground by some people on Meta :')
 
Hello
Could anyone assist me with an Sqlite problem I'm facing?
 
I thought the blog was at blog.stackoverflow.com
 
Thought so too. You just get redirected there.
 
Here is my code. https://pastebin.com/iCjp7Ds6
I'm trying to read from a database that is already on the device.
I can't get the two values I want. It just returns the columns
 
7:15 AM
I'm hungry
 
@xZ4FiRx That's because that's what you told it to get
 
@JennaSloan I'm telling it where the two values are located, which only get me with an empty cursor.

When I make "selection", and "selectionArgs" null I get back something
 
7:32 AM
Hey guys, is it possible to map class from two different sources using Orika?
 
@Hades Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
@xZ4FiRx Well, it was getting the values where Balance = "Balance" and VoucherBalance = "VoucherBalance"
 
7:46 AM
@Nathan777 I'm Wietlol
@Hades I am not sure what Orika is, but I suppose you could try it
 
Hi Wietlol. Thanks for telling me your name
 
you are welcome, hungry
 
@Wietlol LoL
 
8:26 AM
This is so weird. My method wasn't working for some reason. Without making any changes, it started working. Either that or my changes were so little that I didn't notice making any
 
Don't worry 'bout it. I have that stuff happen form time to time as well. I am just happy that it works :D
 
Zoe
boop
 
Instead of referencing a method in the action handler, I had to nest the entire method in the action handler, because it was referencing an object in the previous method.
 
git status
tells you all the files you've changed
 
I haven't added my Eclipse projects to my GitHub yet. I haven't figured it out
 
8:37 AM
Lols :'(
 
Zoe
Git isn't GitHub
Git is a VCS, Github isn't
 
I didn't say it was
I was changing the subject
because I'm an attention whore
 
DW Nathan; I didn't use git for quite a while either. And it took me a long time until I really understood it.
 
DW?
@geisterfurz007 Are you talking about Git, or GitHub? I was talking about GitHub. They were talking about Git.
 
Zoe
8:49 AM
GitHub isn't a VCS.
 
Don't worry*
Git.
If you use git, ignore me :)
 
Zoe
What about SVN?
 
SVN is the PHP of version control systems
3
it works, but it is still stupid
 
Zoe
But... SVN has tortoises! :p
 
I don't know wth anyone is talking about
 
8:56 AM
Goood, good! All according to plan >:)
Haha! Crap! I messed up my app. I don't know what I did, but I only get a white screen without components :D
Hah! Got'em! TIL: Don't remove flex: 1. Ever.
 
9:27 AM
morn
 
morn
 
@Zoe Git has Tortoises too
@geisterfurz007 that TIL comes to late. The correct TIL would have been: Don't include flex: 1. Ever
 
I am working with react native. It fully relies on a flexbox sort of layout so I have to include flex: 1 to display a container at all.
 
Zoe
@Nicktar I know, lol
 
why would you use a GUI O-o
I really start to get behind Uni's attitude that commandline stuff is great. Ofc I use a lot of GUI stuff still but there are some daaamn good commandline tools.
 
9:41 AM
Here is my GitHub. I just added my first project to it. I'm not sure if I did it right. github.com/Granta-Omega
 
10:12 AM
Ok now the app showed something, I disconnected and reconnected my device aaaaaaaand it's gone
I have tried turning it off and on again. It works now.
@Nathan777 Nice! I guess there will be more components to the Summer Camp project?
 
Isn't my src there?
 
It is but it is in the folder of Cabin Assigner.
Usually you don't push the folder but the contents of the folder (which makes no insane difference to be honest; it just saves one click :D )
 
I'm trying to push changes I made to it, but it is being rejected for some reason
I deleted the repository. I'm gonna try again from scratch. I messed some stuff up
 
10:34 AM
Well everything is still there. I don't know if that means people can download and run my code or what. First time I've used this
 
11:01 AM
Hey
 
@user3467240 Welcome to the Java Chat, the room for Java enthusiasts! Please use a code snippet tool when posting code snippets. If you have an Android question, you're in the wrong place! And remember: this is not tech support! Thanks for visiting and have fun! :D
 
Can Anyone help me to solve this problem ?
Plane reservation processing, N rows of seats,
each row with seats labeled A to K, some seats are reserved,
a 3 person family want seats next to each other (seats across aisle not allowed),
return available options
int func (int N, String S)
S= "1A 2B 40G" reserved seats
N number of rows
 
How much you pay?
 
:O
I'm a beginner, At least give me some pointers ?
 
What's your java question ?
 
11:14 AM
That doesn't look like java to me
Also, you didn't state what the question is specifically.
 
That pretty much looks like a task dump indeed
 
task dump?
 
@Nathan777 Yeah you have a task and you dump it here or on the main site
 
@Nathan777 someone dumping their tasks into a group ;)
 
11:17 AM
you mean someone asking someone to do their homework?
 
same principles yes
 
For example but not limited to
 
user, you gotta state what the problem you're having actually is and how it relates to java. Not just how do you do an assignment.
 
@Nathan777 Yes that is correct. I could download and run your code from github currently. To delete it from github you would have to go to your repository (on github) -> Settings (right most tab) -> scroll all the way to the bottom (Danger Zone) and then select Delete Repository.
 
I deleted and re-added it, because for some reason it wasn't letting me put in any of my changes. It is working now
GitHub will compile and run the code?
 
11:19 AM
No.
Github is a service for you to use git on a server which allows for group project or simply an additional backup of your code. There are tools that can be used together with github that will for example check if a build succeeds and reject stuff that causes it to fail.
 
I was learning new stuff in Java as I was doing that project. So, you'll notice some of it looks like hell, and other parts of it make more sense
 
There are a lot of other things github can do but that would probably go a little far for the beginning
 
I want to put some of my projects in there so when I start submitting my resume, it looks like I know what I'm doing
 
I'm working on a Plane Reservation System in Java, Tha plane has 5 Rows. Each Row has 10 seats. There is a Aisle after 5th seat.
In my case, The 1st & last seats are already booked.

Consider a person has to book 3 seats next to each other (seats across aisle not allowed). Now I need to return the available seats like (2,3,4 & 3,4,5 & 6,7,8 & 7,8,9)
 
What's the question relating to java?
We can't create an algorithm for you, only help you to put it into java language
it seems like there would be a creation of for loops and if/else statements here
Here's a tip. Write a pseudo code first in English language of what you're doing and what you want the code to accomplish. Then, ask for help after you know what it is you're trying to do. It doesn't seem like you've done any planning or tried to implement anything yet.
I still write pseudocode first for a lot of my methods so I know what I'm trying to do with it before i start
 
11:39 AM
Please take a look at the sample code. I have worked on gist.github.com/drmkraja/0ffc7dcf226f4828016dd63c08c4dff1
 
you would have to put the seats in a table (2 dimensional list)
each seat would have a flag that tells if the seat is reserved
you then have to find a row in the table where it has 3 consecutive seats that are not reserved
izi pizi
 
12:00 PM
The Pohutukawa tree is New Zealand's Christmas tree. It blooms crimson red flowers for several weeks each December. (source)
 
12:23 PM
@user3467240 that is not a table of seats, that is a table of integers
you should wrap the number and flag in a class
 
Got it!
 
USM
12:57 PM
I dont know there was a boolean arrays, never used it.
 
> I dont know there was a boolean arrays
/facepalm
 
USM
Hello Wiet Lol
 
@Michael can I request a slight improvement of the /facepalm command?
if it is being used multiple times in a certain timespan, it should escalate to... lets say Naked Gun facepalm gif or something
with a few in between
 
I second that idea.
 
1:01 PM
profiling apllication shutdown sucks.
 
the shutdown of your profiling application?
 
no, the shutdown of our product
 
USM
@Wietlol I said hello... :(
 
you want to profile the application shutdown when it sucks?
@USM I noticed
 
Troll detected
 
USM
1:05 PM
@Nicktar If you want stars, post interesting messages. Don't grovel. - 17h ago by Kendall Frey
I hope u understood
 
@USM I give stars, I don't need any
 
USM
Every one needs, dont lie.
 
I dont need stars
 
USM
U r Exception
 
but then again, I am a Majestic Green Lion, is there anything I do need?
 
1:08 PM
Red paint.
 
@USM No, I am Wietlol
@geisterfurz007 what for?
 
To become a Majestic Red Lion.
 
there is a Majestic Blue Lion though
 
USM
Why lion is green?
 
@USM because is Majestic Green Lion
 
Zoe
1:09 PM
For reasons of wiettrolling
 
USM
i found ur website thegreenlion.net
:)
 
inconceivable!
 
1:35 PM
@Wietlol It's a learned command at the moment. However, I could turn it into something like /fatcat where it randomly chooses from a list of predefined images.
 
2:23 PM
Hello
 
Zoe
o/
 
\o
 
2:39 PM
by checking if 3 consecutive elements in an array satisfy a particular condition
 
Sorry @user3467240. This is not a help desk or tutoring service.
 
 
1 hour later…
3:55 PM
Hmm this site looks promising. tenor.com/search/face-palm-gifs
 
4:24 PM
@Michael bookmarked
 
 
6 hours later…
10:24 PM
reads a book
 
Hello
Guys there is a table many to many user user_role role and other table called electionBoard
that electionBoard manage with some roles what can i see in my application
it's like permission
 
10:57 PM
@EduardoHerrera What do you mean?
 
okay user user_role role another table is many to one electionBoard linked with user_role
 
I do not understand
 
But this is the Java room, not the SQL room
 
11:07 PM
Also, I am not sure what the question is, or if there even is a question.
 
that is the reason how can i do in jpa or domain
because there are three relation
 
If your able to assist
 

« first day (2824 days earlier)      last day (2111 days later) »