« first day (3413 days earlier)      last day (1752 days later) » 

00:00
Genius is ten percent inspiration and fifty percent capital gains. (source)
 
4 hours later…
03:58
Hey Guys!
@xJames Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
Is it possible for me to put a sound effect on in an else statment,
JFrame frame = new JFrame();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(false);

try {
AudioInputStream audio = AudioSystem.getAudioInputStream(new File("big.wav"));
Clip clip = AudioSystem.getClip();
clip.open(audio);
clip.start();
} catch (UnsupportedAudioFileException e) {
e.printStackTrace();
}
 
5 hours later…
08:35
@xJames ofcourse
but in your code snippet, you dont have an if statement, so also no else
 
3 hours later…
11:24
@xJames Sound effects are only available in the first two lines of an if-statement since Java 11. If you use inline-style though, it should work just fine.
is he trolling?
yes, he is
was that not obvious?
11:41
am having a rough day :/
11:58
@Wietlol Honestly though - what kind of question was that?
I mean maybe he had an actual issue with something, but the question, as stated, doesn't make sense.
Which justifies trolling upon in my opinion.
Hi Guys, the query is working fine in database editor. But telling there is wrong in query when executing.
@PraveenkumarBeedanal Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
@Repository
public interface OrderStatusRepository extends CrudRepository<OrderStatus, String> {

@Query(value = "select * from order_details od inner join dhl_dummy_data dd on od.tracking_id = dd.tracking_id where user_id = ?1", nativeQuery = true)
OrderStatus findByUserId(String userId);
}
12:26
class LRUCache {
    private int capacity;
    private Map<Integer, Node> cache;
why is the last line a map from an Integer to a Node?
12:44
posted on February 26, 2020

archive - contact - sexy exciting merchandise - search - about ← previousFebruary 26th, 2020nextFebruary 26th, 2020: Hey, I've got a mailing list for SECRET PALS! If you'd like to be a SECRET PAL, baby, now is your chance. I only send out a message like once a month!– Ryan

@Permian Because they implemented it so that each Node is a k/v pair, and is stored with an Integer key in the map, which means that your Node, which has a key property, is stored indexed with that same key externally in a map. I don't know why someone would do that, but they did it that way.
They could literally just store the same stuff in an <Int,Int> map, instead of nesting it in a map like this (int0, Node(int0, int1))
In other words, because that was probably weird gramma up there, they stored it in a <Integer, Node> map like map.put(key, new Node(key, val)) - instead of using an <Integer, Integer> map and doing map.put(key, val)
Okay nvm, apparently that "LRUCache" thing is doing weird stuff, so that way of storing things probably makes sense in some way
maybe i need to find another implementation
13:19
If I have two classes with the same name in two seperate packages with the same name, in two other seperate packages with the same name, in two different modules with different names - how would I redirect my import in IntelliJ, to import the class of the other module
you will whack the authors of those modules
Okay I had to shift around dependencies
13:52
what do you think of that implementation?
It doesn't differ from the other one in what I was confused about ^, but I don't know the context anyway.
ok
it is different i think as it maps key to node
compare the put and set methods
They both do pretty much the same thing: map.put(key, new Node(key, val))
14:19
o/
I guess Oak fixed himself. He is becoming more independent! lol
@DevelopperX Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
Anyone knows if there is a apache-camel chat room? :)
14:26
are the "keys" the same of the "node.values"?
Map< thisHereIsMyKeys , thisOneIsMyValue >
so Map<TypeOne, TypeTwo> has keys of type TypeOne while values are of type TypeTwo
the hashmap is a map between a key and a pointer (effectively) to a node
15:14
@Permian * The keys are the same as the node.keys when you set/put them, but I assume they'd change later on, as the output from your first example wouldn't look that way otherwise
You know you can just read the code right?
15:57
i dont get the code
 
3 hours later…
19:34
0
Q: LRU Cache Key, Value, Node.Value Real World Interpretation

PermianI understand how in principle an LRU cache works. For example, see here: https://java2blog.com/lru-cache-implementation-java/ However, I am having great difficulty understanding how this is interpreted in a real world setting. For example, if I want to store objects (which have no natural number...

i asked a question about this now
20:23
Anyone experienced with Spring's Thymeleaf? I'm basically just trying to extend a `<head>` element.
https://stackoverflow.com/questions/60406049/thymeleaf-template-replacing-instead-of-including
20:39
20:56
Good evening, what is a good resource to continue learning Java after finishing Codeacademy? Also, good advice on exporting code and running it outside Eclipse IDE? I'm clueless on how to do that, I currently have 3 completed projects but only inside the program.
@AbrahánDeLabastida Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
21:09
hi All, I am trying to implement the TCP IP server in java.. while reading the data from client, I don't have any end-of-input character defined in client.. so my sever is not able to understand if client and has done with sending the request and start the sever processing on that request..
@mobizen Welcome to the Java Chat, the room for Java enthusiasts! I'm Oak, one of the room's bots. If you want to ask a question, just ask it and someone will respond if they feel like it. But remember that this room is not a help desk or tutoring service! If you want to just hang out, then welcome aboard! Oh, and the room's full list of rules are posted here.
I am using buffered reader to read the input stream .. is there any way where server would be able to identify that client has done with sending the request, start processing the request and return response back to client??
as started in the example on oracle docs for socket programming they are using ctrl + c as the end of input character.. I am not having anything as such to indicate end of input from client
 
1 hour later…
22:17
@AbrahánDeLabastida get used to maven, perhaps learn a bit of spring, and try to get used to Java 8's concepts
perhaps also try IntelliJ IDEA
@mobizen im not sure what you could do... it all sounds too low level for me

« first day (3413 days earlier)      last day (1752 days later) »