shooter27
-
Posts
84 -
Joined
-
Last visited
Content Type
Forums
Status Updates
Blogs
Events
Gallery
Downloads
Store Home
Posts posted by shooter27
-
-
42 minutes ago, elpiop said:
You need to set logging level to trace to see the query parameters.
log4j.logger.org.hibernate.type=trace
This is for log4j, change org.hibernate.type to trace for whatever logging library you're using
I found my error actually, in the console, hibernete doesn't show the inserted value, it maks parameters as "?". It was working all along, I just did not know it.
-
Hi, I'm having trouble saving objects in my in memory h2 database (using hibernate)
I checked and my entityManager is correct, it starts the transaction, tries to persist the object, commit the transaction (or rollback if an exception is throws)
Now, I dont understant why, when I look in the console, as soon as I persist the object, I get this:
Entity:
In repository:
Content of object to persist:
I've been trying to figure this out for a couple hours but nothing seems to fix it, what dis I do wrong?
-
1 hour ago, shooter27 said:
Hi,
We're doing a java api and need to return the path to the get of an object we just created in a post request.
The header location should be /reservations/{reservationNumber}
but It is http://localhost:8181/reservations/{reservationNumber}We can't figure out how to remove the authority part of the uri (http://localhost:8181) since the .build() add's it automatically...
Any help is appreciated
solved using
config.property(ServerProperties.LOCATION_HEADER_RELATIVE_URI_RESOLUTION_DISABLED, true);
-
Hi,
We're doing a java api and need to return the path to the get of an object we just created in a post request.
The header location should be /reservations/{reservationNumber}
but It is http://localhost:8181/reservations/{reservationNumber}We can't figure out how to remove the authority part of the uri (http://localhost:8181) since the .build() add's it automatically...
Any help is appreciated
-
5 minutes ago, dizmo said:
If she works in accounting I'd almost say go Intel. They generally have stronger single core performance and that's what Excel tends to enjoy.
Saying it's for work is useless if you're not going to tell us what programs she uses.
I actually don't know which program she uses, but for the budget, I think the 10400 will be better since its a 6 core while the r5 3400g is only 4 cores
-
12 minutes ago, TempestCatto said:
In regards to CPUs, the current market has offerings from both sides that are very compelling. I would just go with whatever CPU will work best for you in your workloads and that also fits within your budget. And as previously mentioned, you're thinking of AMD graphics cards, which do have pretty bad drivers whenever a new card launches. After some time though, they usually have most of the bad things ironed out. My Radeon VII would through a hissy fit every time I used more than one monitor during gaming. After a few driver updates, it no longer cares.
Anywho. What's your budget and use case? What kind of software(s) will be in use?
she works in accounting, so I was thinking either a r5 3400g or a i5 10400, she won't need a gpu
-
Hi,
I'm building a computer for my mom, its for her work and if it follows her old pc's trend its going to be in use for 6-8 years.
She is not a tech person at all so I want something very reliable.
If it was for me I'd obviously go with ryzen but I think their drivers are less stable than intel, am I wrong?
Which one would you go for in this situation?
thanks
-
24 minutes ago, Lurick said:
Maybe open up the packets and look at the payload?
well I'm tying but I dont see anything different than the other that would suggest one packet is sending a password file...
-
Hi,
So I've got a homework to do. They gave me a pcapng file (constains wireshark packets)
The question is : Knowing that port 80 is usually used for the http protocol, show that this protocol was used to send sensible informations regarding a file containing passwords from machine 192.168.1.119 to a distant serverSo I filtered my packets : tcp.port == 80 && ip.addr == 192.168.1.119 && http
But now I still don't get how to show which packets contain those informationsI'm looking at the info column to try and figure out something but I don't get it...
Doing the homework on a kali linux vm if that helps
Any help is appreciated. -
-
1 hour ago, Mnky313 said:
yes, I know that it should mean the same thing but I've always manually entered paths.
It did not work
-
1 minute ago, Mnky313 said:
would manually add both
C:\Program Files\Java\jdk-11\bin
and
C:\maven\bin
to path as well just to be sure, the 'mvn not recognized as an internal or external command' just means it can't find the executable.
you mean instead of the %...% variables ?
-
Hi,
I have this error “mvn not recognized as an internal or external command”
(on windows 10)
I have correct environment variablesJAVA_HOME = C:\Program Files\Java\jdk-11
MAVEN_HOME = C:\mavenThey are added to the path
%JAVA_HOME%\bin
%MAVEN_HOME%\bin
I restarted my machine
But I still get the error message when trying "mvn -version"
I need help, thanks -
Hi,
So I've gotten this monitor at the begining of summer. I've used it on hdmi 2.0 since then. now from time to time (about 3-5 times a day) the picture off for 2-3 seconds then comes back. The display is still open but the picture is not showing up when that arrives.
I tried another hdmi port both on the display and on my gpu but it doesn't fix anything. I also tried the displayport, it almost always never works
Any tricks I could try or I'd better rma it?
-
On 7/25/2020 at 3:07 AM, Wiebenor said:
I'm looking for a chair too, but if you want more information on the ergochair, I think JayzTwoCents has a video about them within the last year or two, up on YouTube... He does have a video on his favorite chair anyways, if it's not that one... I know it's not much help, but I'm looking too, so we both know about the same amount about these chairs...
I just pulled the trigger on the ergochair 2, with tax it came up at 516$ CAD but with Honey I got someone's referral code and got a 33$ rebate, it costed 478$ in the end. Though I'd let you know
-
Hi, hope you're having a good day.
So I'm looking for a new ergonomic chair. Problem is: not much is available in canada since shipping from the us is often 100$+
I'd like to know of any good sites in canada to buy ergonomic chairs.
I'd also like to get some recommendations around the 400$ range (330 USD)
I'm 5ft10 150lb if that helps. I will sit in that chair for 12-16 hours a day (study computer science and I'm a programmer)
If possible I would like full mesh, a headrest, 45 degree reclining with multiple locking angles, lumbar support and adjustable armrests.
I'm coming from 4 years in a Serta High back leather Executive office chair (comfortable but not very supportive of the body)
So far I've seen plenty of good options that dont exist in canada. There's no refurbrished herman miller/steelcase available anywhere and nobody is selling them used in my city (dont have a car)
My top choices right now:
Autonomous ergochair 2 (450 cad), this one seems to have pretty much everything I'd want except for a mesh seat. Also many reviews say the seat isn't that comfortable.
Staples Hyken (300 CAD) doesnt look like the mesh is going to last very long
Upllift pursuit (450 CAD + expensive shipping)
Any help is appreciated
-
Hi, I got free time so I started to learn Angular, now I want to do the backend to communicate with my database in C# and saw that visual studio has a project template for exactly that BUT I already started a Angular project, so I'm wondering if just moving the files over on a c# existing project will create conflicts and if so I'll start an angular-c# template project. Not sure if that makes sense..? Thanks anyway
-
Hi, hope you're all doing well
So I'm planning on buying this monitor https://www.asus.com/ca-en/Monitors/TUF-Gaming-VG27AQ/overview/
It is gsync compatible and has elmb sync. Basically I just want to confirm my understanding of the gsync situation in 2020.
So this monitor support 48-165 hz when using displayport. This means that, since its gsync compatible, its going to be the exact same as true gsync for this range, the benefit oftrue gsync would be for dips below 48hz, right?
I have an 8700 and a 1080ti so I'm not too concerned about going below 48hz...
thanks!
-
Hi,
So I'm in university and right now I have to do an algorithm to solve a problem using dynamic programming. My teacher showed us the knapsack problem for two dimensional arrays and gave us our problem to solve.
I cant send it since its in french, but basically I have to find the best possible team from a list of hockey players by maximizing their expected points (the value) and where their weight are their salaries.
Now, that not complicated at all but I also have to take into consideration that the team needs a certain number of attack, defense and goalkeepers players. Hence why I now have 5 dimensions. down below is the code I have right now. It does not work. How would you go about solving this problem?int i, j, k, l, m; int nbGardiens, nbDefenseurs, nbAttaquants = 0; int K[joueurs.size()+1][budget+1][nb_gardiens+1][nb_defenseurs+1][nb_attaquants+1]; for (i = 0; i <= joueurs.size(); i++) { for (j = 0; j <= budget; j++) { for (k = 0; k <= nb_gardiens; k++) { for (l = 0; l <= nb_defenseurs; l++) { for (m = 0; m <= nb_attaquants; m++) { if(i == 0 || j == 0){ K[i][j][k][l][m] = 0; } else if (joueurs.at(i-1).salaire() <= j) { unsigned int position = joueurs.at(i-1).position(); if(position == Joueur::GARDIEN && nbGardiens < nb_gardiens){ K[i][j][k][l][m] = max(joueurs.at(i-1).points() + K[i-1][j-joueurs.at(i-1).salaire()][k][l][m], K[i-1][j][k][l][m]); nbGardiens++; } else if (position == Joueur::GARDIEN) { K[i][j][k][l][m] = max(joueurs.at(i-1).points() + K[i-1][j-joueurs.at(i-1).salaire()][k-1][l][m], K[i-1][j][k][l][m]); } if (position == Joueur::DEFENSEUR && nbDefenseurs < nb_defenseurs) { K[i][j][k][l][m] = max(joueurs.at(i-1).points() + K[i-1][j-joueurs.at(i-1).salaire()][k][l][m], K[i-1][j][k][l][m]); nbDefenseurs++; } else if (position == Joueur::DEFENSEUR) { K[i][j][k][l][m] = max(joueurs.at(i-1).points() + K[i-1][j-joueurs.at(i-1).salaire()][k][l-1][m], K[i-1][j][k][l][m]); } if (position == Joueur::ATTAQUANT && nbAttaquants < nb_attaquants) { K[i][j][k][l][m] = max(joueurs.at(i-1).points() + K[i-1][j-joueurs.at(i-1).salaire()][k][l][m], K[i-1][j][k][l][m]); nbAttaquants++; }else if (position == Joueur::ATTAQUANT) { K[i][j][k][l][m] = max(joueurs.at(i-1).points() + K[i-1][j-joueurs.at(i-1).salaire()][k][l][m-1], K[i-1][j][k][l][m]); } }else { K[i][j][k][l][m] = K[i-1][j][k][l][m]; } } } } } }
-
1 minute ago, Metallus97 said:
So you're on Android?
Idd recommend Sennheiser momentum true wireless. Best sound in class
1 minute ago, KaminKevCrew said:I thought pretty much all truly wireless earbuds have one master and one slave bud - I'm not sure there are any that will actually let you run just the slave. Though at the same time, I'm pretty sure all will let you use the master side alone. (someone please correct me if I'm wrong - I'm genuinely curious.)
yeah I forgot, i've got a note 9 and both earbuds mentionned above can be used independently
-
Hi,
I'm trying to choose which to get but can't decide
my top choices right now would be the galaxy buds and the jaybird vista
I wear earbuds all day while i'm working and on/off when i'm at school
I like the ipx7 of the jabra's (I dont do sports but its a peace of mind if it starts raining) while the galaxy buds are only ipx2
I haven't tried the vista's but I like the fit of the galaxy buds
Price is not much of a concern since in the end I'll wear them everyday for 4-10 hours so I want a quality product
I'm open to any other suggestions, I need good battery life, not "airpods style", can use both independently (that killed the jabra elite 75t for me)
thanks ! -
11 minutes ago, Maxb89 said:
@rice guru recommended the beyerdynamics dt990. Should I get it and why should I get it?
I bought them 2 years ago and returned immediately as they were not comfortable at all imo, instead I bought the akg k7xx from massdrop
-
Hi, So I need a laptop for university and came up on this, its the perfect laptop for my needs when you configure it with the r7 3750u, 16gb ram and 512gb ssd and 1080p screen. the only thing that worries me is the battery, Do you think it'll be enough? https://www.lenovo.com/ca/en/laptops/thinkpad/thinkpad-e-series/E595/p/22TP2TEE595 Its going to be used for computer science class: taking notes and programming. any meaningfull comment is appreciated
-
31 minutes ago, CUDAcores89 said:
he was talking about ninite.
Also ninite can only be used to get common programs like chrome, steam, ect and not drivers.
Yeah I know about ninite... well thanks anyway, guess I'll just delay the updates till I got time for it
[JAVA] "?" values when .persist(object) in H2 in memory database
in Programming
Posted
would you by any chance know how I can map an entity property to a non-entity property (which is the column value) without creating join tables?
I need the appointmentNumber (which is a string (varchar in DB)) to be mapped to this
here's the non-entoty that I want to map with on the number property
I got it working with @Embeddable and @Embedded annotations but it creates a join table which I can't have