« first day (3377 days earlier)      last day (1575 days later) » 

1:00 PM
so its not working at all ?
;)
why doesnt jack know coffee ?
thats terrible
turrible
 
it actually works really well
 
Jack, commands
oh wait, that's broken too....
 
all Wietbot's components use it
 
Jack is broken
life was too harsh on him
 
Jack is broken when he's lonesome and he don't feel right when you go away
 
1:03 PM
oh
 
Hmm
System.Reflection.TargetException: 'Object does not match target type.'
Object is string and target type is string
 
:+1:
I love C#'s error messages here
why cant they just say System.Reflection.TargetException: 'Object of type System.String does not match target type (System.String).'
in that case, we can at least confirm that C# is silly
:D
 
@Hans1984 ?
 
nice pic
 
1:19 PM
IKR
 
WHY CAN@T YOU DO A SWITCH ON TYPES
 
you can... cant you?
String x = obj switch
{
    String _ => "nvarchar",
    Int32 _ => "integer",
    Boolean _ => "bit",
};
String x;
switch (obj)
{
    case String _:
        x = "nvarchar";
        break;
    case Int32 _:
        x = "integer";
        break;
    case Boolean _:
        x = "bit";
        break;
}
 
1:37 PM
Ew that's cheating
 
Ew that's C#
 
JAVA
\o/
praise the lord
 
I tried to do Int32, Int64 _ => "integer" tho...
but I guess that doesnt work
 
Does reflection complain about the difference between System.String and string because that's the only thing I can think og
 
I sure hope not
only enums should complain about that
and a linter
 
1:38 PM
Because I'm so fucking confused
I know I've done something somewhere which includes some similar code but I can't find it for the life of me
 
omg
try to switch the arguments
 
oh my fucking god
 
your IDE even tells you
> obj: value
value: instance
is that a resharper feature btw?
 
I see... VS still didnt grow up
 
1:42 PM
I think it does in 2019 anyway
 
I see... VS still didnt grow up until at least 2019
wow... just looked how old IntelliJ was... and it appears to be even older than eclipse
only one year older than netbeans
and it will have its 20th anniversary in 12 months
 
i wouldnt be surprised if wiet wrote his own ide
wietbrains
designed for wietlang
 
not yet
I intend to write one, but only if it is written in Wietlang
 
2:00 PM
Of course
 
Hello
 
wow nice one lee
 
I am planning to add permissions on given columns in a table
So one column would be allowed for insert, another would not be
i.e update and delete
yes, only update goes onto column
insert and delete go onto a complete table
What would be the best way to notify the user that he/she doesn't have the privilege to edit/delete/insert data into a given column?
 
before they try to do it or after they've attempted to but been blocked?
 
2:04 PM
I should catch the SQL permission exception and then display a message, or I can somehow with TSQL stored procedure or with C# detect that given column doesn't have permissions ?
I have datepickers which update datetime value in my table on selectedDateChanged() event
 
I don't know if there's anything programmtically wrong with either approach...I suppose whatever is simplest to do that achieves the same result but someone else might have a different view
 
@Harry So I can somehow check with C# that certain column cannot be edited?
Any references?
Any tutorials?
 
none that I know about personally but you would probably find some if you google it well enough
there might be some sort of data annotation you can use to assert it can't be modified
 
@CaptainObvious ok, that beats mine
 
a table of permissions O_o
 
2:14 PM
Hmm, for the moment I thought, just run those TSQL scripts for grant/deny permissions and then update a boolean field in my application, that at the moment that given column cannot be edited
 
while we are at the topic of sql
i tried to connect to a sql db via jdbc and java
 
I thought you gave up on that
 
I was able to connect to the db but whenever i tried to access a table it said "table does not exist"
 
Any1 haz experience with newtonsoft and why it don't parse enum?
 
@Wietlol well I did a workaround , you could say
 
2:18 PM
did you choose the appropriate database for use?
 
so you gave up
 
Im still curious how to solve this issue though..
@Vlad I did, and th ecorrect table
I checked 100 times
 
no, not the table, did you pick the right database
 
and like , I said it does connect to the database with credentials and all
but then it says the table doesnt exist
 
can you see the table (that was created by Java) in workbench?
 
2:19 PM
yes
 
can you see the table (that was created by workbench) in DataGrip?
 
are you working on the right server? do you have a test database and live database server?
 
im using eclipse
theres no such thing
 
I didnt ask what IDE you use
 
@Vlad im running on localhost
 
2:22 PM
what is it, SQL server?
Maybe you are not using the right database object. Is it dbo?
 
its innodb
but i tried other ones
with the same result
 
> can you see the table (that was created by workbench) in DataGrip?
 
what is datagrip?
 
thats MySQL
 
yes mysql
 
2:23 PM
its thé database tool
 
install MySQL Workbench studio
and attach to your db server.
 
i have mysql workbench installed already
 
Well, browse the tables then, and see if the table exists. But you said its there?
 
yes,it is
eevrything is correct
every query,everything
 
then why int it working?
 
2:24 PM
maybe it cant access the table for some reason ?
 
restart servers and apps maybe?
 
maybe you switched the arguments
 
restart Windows?
 
but i have root access
everything should be accesible
 
try DataGrip
le grip will tell you what is truth
 
2:25 PM
Can you use Try/Catch in Java and print the message of the exception you get?
 
I searched for that exceptions for 2 days
no use in that anymore..
and read a ton of posts
 
what is the exception?
 
put the code that connects to your table inside try{ }catch(Exception ex){} block
 
timeout?
 
jdbc4.MySQLSyntaxErrorException: Table doesn't exist in database
 
2:27 PM
hmm
 
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'xy.x' doesn't exist
but it does
 
4
Q: jdbc4.MySQLSyntaxErrorException: Table doesn't exist in database

nbroI'm developing a web app using SpringBoot, and this is my application.properties file to specify the credentials to access to the database: spring.datasource.driverClassName=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/Salamander spring.datasource.username=root spring....

 
following your story, it appears there are two sources that say they are both true
 
I read all of them posts already
 
you need to find out who is right and who is ded
 
2:28 PM
the last few days..
aroudn 10 of them from SO
 
DataGrip can do that for you
 
none solved my problem
 
Maybe your development installation is not configured properly or missing something.
What are you using, Spring MVC?
 
datagrip? it says its jetbeans
 
it is
also, you could create the table with Java and with mysql workbench and then diff the structure
 
2:29 PM
@Vlad plain java
jdbc
no spring
no maven
 
no maven?
do you even java?
 
did you update Java SDK?
 
apache tomcat
 
Maybe the table is not mapped? Did you deploy your latest Jar?
hmm
Am i talking nonsense?
 
anyway thanks for the hints
i ll figure it out oen day
for now I ll move on with the workaround
I'll install this datagrip though
 
2:33 PM
Did you complie the application?
:)
Hmm, jdbc uses some ORM mapping?
 
did you use a mac?
 
no, windows
 
Because if it uses maybe in the mappings your table doesn't exist
but no, jdbc is plain connection to database
Are you using hardcoded queries? :)
 
String sql="query"
so yes
anyway enough of that
 
Maybe you miss some whitespace somewhere ;)
 
2:36 PM
no, i checked a million times
no typos no whitespaces
anyway
its not as important i'll use the workaround for now
its a private project anyway
so no pressure
 
did someone say "PRESSURE"?
we need to fix this ASAP
 
What if you have some hidden uni-code characters that seem like normal characters and are causing problems in your query? ;)
Depressurizing
 
mr5
Does any body here is still playing Diablo III?
 
@mr5 Every once in a while.
 
mr5
2:44 PM
@RoelvanUden what's your Paragon level?
 
@mr5 Unsure. I think it was in the 200s, but I don't continue playing 80s characters very much anymore.
 
mr5
80s what?
 
:) I played Torchlight 2
 
mr5
I just did 200+ paragon level in 3 days lol
 
Maybe character max lvl was 60 instead of 80? Not sure anymore.
 
mr5
2:47 PM
Dude it's 70
when was the last time you played?
 
Eh, whatever. I basically just play D3 with a hardcore character every once in a while. I never reach max.
 
mr5
I'm on Torment 1
 
How do I find the exception number of this exception "the insert permission was denied on the object"?
So, will you play Diablu 4?
 
mr5
@Vlad so I'm skimming through reddit and someone say "diablo III is a dead game just like torchlight"
 
@Vlad Depends on the micro-transaction bullshittery and whether it comes for PS4.
@mr5 ... It is.
 
mr5
2:49 PM
both true?
 
Hmm, they voted yes for micro transactions D:
 
One more game to ignore then.
 
mr5
I just started few days ago only to realize it's almost a dead game.
 
I don't have PS4.
 
mr5
And D3 was released 7 8 years ago holyfuck
I thought it was on 2016
 
2:51 PM
What i know about diablo 3 is that its not a diablo game, mechanically. But Torchlight 2 is a diablo game mechanically and its dead because no Blizzard behind their backs to cover them
 
@mr5 There's no point to D3. It's fun to build a character and defeat the whatever-is-going-on in the story (smash lots of monsters). And then what? There's no point to pushing difficulties or rifts or whatever, it's an endless grind-fest. With all that said, it's fun while your character building lasts and then you need a loooong break.
 
You can play the classical Diablo 2, if you don't have problem with the stone age graphics
 
mr5
@RoelvanUden no PVPs?
 
@mr5 PVP in D3 is very boring.
D2 is infinitely better in all regards, especially PVP.
 
mr5
I have to try that first
D2 seems like it's better because of the nostalgia bias
 
2:53 PM
I highly recommend Torchlight 2 if you like RPG games
 
I want middle age rts games :(
 
I'm a big fan for RPG games, but let's not pretend a top-down monster hack-and-slash is a proper RPG. It's an action game with RPG elements :p
 
mr5
I've played D2 LoD and D2 AR. It's really a fun game. D3 is an improved version with more twists
 
@Wietlol AOE2 is still the king :D
 
nah
AoE doesnt have proper sieges
Stronghold 1 or Crusader still is nice tho
but it lacks some user experience in combat
 
mr5
2:56 PM
I just started into trying out games lately. DOTA2 is very stressful, toxic and time-consuming game but nonetheless, it's interesting.
I think I'd rest my DOTA2 for now
 
I basically want
army control like Cossacks,
Base building like Stronghold 3,
unit composition like Age of Empires,
combat experience like Supreme Commander,
map control like Supreme Commander,
and voice lines like C&C Generals Holland
 
@mr5 I tend to stick to single-player games with a good story.
 
mr5
@Wietlol and graphics like Mario?
 
oh, and it must have super good AIs :D
 
Overwatch is fantastic team game. And also Heroes of the storm
 
2:57 PM
and scripting like Warcraft 3
@mr5 i dont really care much about the graphics, but if I may choose, prolly SupCom 2 or Cossacks 3 graphics
 
Hmm, I recently played Doom 2016. The multiplayer is fun
 
stonghold 3 graphics are also quite nice tho
 
mr5
@RoelvanUden lol now that you mentioned it, I regret a lot of skipping dialogs where I did not follow the story. Fortunately, I pay attention after reaching act5
 
WHY IS THERE NO EASY WAY TO MAKE REGEX
REEEEEEEEEEEEEE
 
@mr5 D3 story is pretty bland
 
2:58 PM
@CaptainSquirrel ofc there is
 
You didn't miss much
 
@Wietlol you lie
 
no, I flex
 
mr5
@Wietlol really? you don't care about graphics? how about ASCII graphics?
 
aHEM
 
2:59 PM
@CaptainSquirrel You can consider regex as its own programming language
 
[r](?=e)..(?<=g)\u0065[^\u0000-\u0077\u0079-\uFFFF]
 
There was a website that looked like it was straight out of the 90's
 
mr5
@CaptainSquirrel sue the regex creator
 
that allowed you to input a string and then select what it was you wanted to get
and it would generate a regex for you
but i can no longer find that site, so i can only assume it has been lost
 
@mr5 if it gives me the user experience that I want, then sure
 

« first day (3377 days earlier)      last day (1575 days later) »