« first day (3012 days earlier)      last day (2153 days later) » 
00:00 - 14:0014:00 - 23:00

dbl
dbl
google search engine saved my career :scared_car:
@Zoe the code works, just not how you would want it to
so the code doesn't work as you would want it to
so the code doesn't work as you would want
so the code doesn't work
dbl
dbl
code doesn't work
cc @Zoe
Zoe
Zoe
14:17
@Michael oh.
@Neil code never works
can't argue that
even code that works doesnt work
it just takes a bit longer to realize it
maybe jon skeet's code works
BREAKING: Council has failed to find an agreement on its #copyright position today. This doesn’t mean that #Article11 and #Article13 are dead, but their adoption has just become a lot less likely. Let’s keep up the pressure now! https://twitter.com/LauKaya/status/1086334889438384128 #SaveYourInternet
dbl
dbl
14:25
don't worry the dark net will save the light for us xD
why is sql weird?
SELECT *
FROM Product
WHERE ProductId NOT IN (4, 6, 12, 13, 14, 15, null, null)
(the set of ids is generated by a sub query)
but if it contains nulls, the NOT IN stops working
dbl
dbl
so the fix is altering the subquery to filter out all the null ids xD
Zoe
Zoe
@Neil Jon Skeet doesn't code, code Jon Skeets
7
@Wietlol Maybe IN does not accept null as a value?
Also, why is null there twice?
14:40
because its there twice
Thank you captain obvious. xD
dbl
dbl
now the question lads and ladies is if null is countable
you are welcome
the real question I should ask myself is, why the hell do I use sql?
dbl
dbl
"As a return I've received a piece of null..."
Because there is no alternative.
dbl
dbl
14:42
hmm maybe it's countable Q.Q
@Michael I use an alternative
i just dont use it for the company i work for
piece of null?
How else can you query a relational database?
that's worse than a whole null
FragmentedNullPointerException was thrown
dbl
dbl
yeah yeah but are all Null pointers referencing the same null @Neil that's the question xD
14:45
why would I use a relational database?
I prefer object stores
@dbl you can find out, but you risk a segmentation fault
@dbl null pointers dont reference nulls
the pointers themselves are null
dbl
dbl
I know lol just kidding...
I prefer having someone to write down every piece of data, and enter it back into the computer whenever needed. That is basically how things work in German authorities I feel
@Wietlol that query does not contain any subquery
14:46
@KarelG I think he was omitting the subquery
he shouldn't then
dbl
dbl
what he said was that the list represents the output of a nested query
a simple fix is to exclude null results in the subquery
where field is not null
@KarelG I know how to fix it, I am just making the conclusion that SQL is weird with nulls
14:48
I'd have assumed NOT IN (null) is a legitimate sql clause
just another way of writing is not null
I've never tried it though
it is a legitimate clause
it just doesnt match any value
if that "breaks" it, then it means all the values you want to select have null for that field
WHERE ProductId IN (3, NULL) returns one record (with id 3)
by removing null, it means you're no longer selecting records who have null for that field
Define "breaks it". Does your query return 0 records?
14:50
WHERE ProductId NOT IN (3, NULL) returns 0 records
as I would expect
so how is this broken?
if you wrote where productid NOT IN (3), does it still return 0 records?
how is this as expected?
WHERE ProductId NOT IN (3) returns all (-1) records
@Wietlol as expected, no?
which are... about 60
I think that not in (null) won't work for you
null checks have to be done with is not null
WHERE ProductId IS NOT NULL AND ProductId NOT IN (3)
14:52
i wasnt specifically looking to filter nulls
that is odd
then you're right, it isn't behaving as I would have assumed
none of the records have an id of null
when doing not in against an unknown value (null), it returns with 0 records
but i think the not in should still work
if none of the productids are null, "NOT IN (3, NULL)" should perform the same as "NOT IN (3)"
at least that's what I would have expected
14:53
I believe that it is documented
@Neil It would if checking null using in would have worked
NULL is like NaN, it's weird.
is ProductId a nullable field?
That's why it has its own checks.
> Any null values returned by subquery or expression that are compared to test_expression using IN or NOT IN return UNKNOWN.
ah see, that's a behavior I didn't expect
well is it an error?
14:54
I just want to query in a normal programming language :(
it happened to me once to compare a rowid (generated by oracle) to a value, and it gave me an error to check it to a value which didn't exist (as opposed to simply not performing the update)
if the rowid existed, it would work fine
another example of unexpected behavior for me
@Wietlol SQL is far from a "programming language"
i know
use frameworks lol
that is why I want to query in a normal programming language
14:56
difficult to achieve (if you want to keep the same performance and speed) :P
not really
I made it for my own database engine in groovy and kotlin
every attempt to replace SQL in a language I've found to be ugly and still resembling heavily SQL
don't get me started on hibernate
i dont mean on the client side tho
i mean inside the database
so what, like a python script you can use to get data from the database?
like stored procedures...
but then not in sql
them being stored procedures because I dont want to query with the source code
not having to parse and compile and shit
14:59
i've always thought pl/sql could use a spitshine
the whole system of declaring variables you'll use is just kind of archaic
it's like an extension of sql to be able to run scripts
but again, it needs a nice cleansing. the syntax is outdated
i still think a replacement is a better option ;)
15:15
Hello, is org.apache.commons.lang.time.StopWatch equivalent to Stopwatch() in .net?
in the sense that you can use them for the same purpose?
I think so, yeah
/javadoc Stopwatch
mkay
you could probably just make do with java.time.*
15:19
7
i use guava's stopwatch usually
@Neil you could probably try to avoid doing it with java.time.*
how do I add it to my project? ( Apache Commons Lang library)
maven?
@Wietlol is there a particular reason?
or because you like guava?
because people fail at doing things they dont understand?
time is one thing
15:29
whats maven?
@erotavlas A bit like NuGet
> java.util.Date has some serious design flows
download libraries you need and puts them in a position to be used in your project
does it come with eclipse by default or do I have to add it?
@Wietlol strawman.. I didn't even mention java.util.Date
15:30
that java util date quote is from the link dbl sent
@erotavlas the more recent versions should have it I think, but you don't automatically use it until your project is converted to a "Maven" project
java.time is quite a decent library
but still, people often dont understand time
I hate Excel
so, it might be a good choice to let other people make the things you need
Zoe
Zoe
15:35
@geisterfurz007 Use LibreOffice Calc instead
after I converted to Maven project, then I right click the project and under Maven menu, I hit add dependency?
I hate spreadsheets.
Zoe
Zoe
Use LibreOffice Writer instead
🤦‍♂️🤦
Zoe
Zoe
Problem?
Use Java instead then
15:36
@Zoe Has some mostly red and yellow profile picture.
Zoe
Zoe
Oooh, you mean you?
Questionable.
Zoe
Zoe
yeah, definitely you :p
do you guys know how to add this to my project? mvnrepository.com/artifact/commons-lang/commons-lang
add a dependency, no? Also there is a hint that a more recent version is somewhere else if you want the most recent one.
dbl
dbl
15:39
131
Q: Add a dependency in Maven

MilhousHow do I take a jar file that I have and add it to the dependency system in maven 2? I will be the maintainer of this dependency and my code needs this jar in the class path so that it will compile.

lol adding a dependency is maybe the most basic thing you should know about maven :)
maven is so simple, you dont need special ui to add dependencies
(coming from a person that cant even use git in command prompt)
pfft how do I know what those are - group id artefact is etc I have to enter those manually?
you go to google and say java maven <insert library here>
then you click the first link and you copy the maven xml
ok found it
I add the xml to my pom.xml?
dbl
dbl
15:42
y
Yeah in the dependencies section.
sniped.
dbl
dbl
@geisterfurz007 fu xD
mhmmm! Removing evidence, I see :D
dbl
dbl
i'm busy right now I can't pay u any attention c(:
there is no such section
15:44
could you paste your pom.xml on a paste site and link it here?
its short I can paste it here
dbl
dbl
man if there is no such section it means that your project doesn't have any dependencies so far
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 maven.apache.org/xsd/maven-4.0.0.xsd">;
  <modelVersion>4.0.0</modelVersion>
  <groupId>HelloWorld</groupId>
  <artifactId>HelloWorld</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.5.1</version>
dbl
dbl
so you should add the section + the dependency itself
If it's more than 10 lines, please use a paste site.
15:45
@dbl good work sherlock
he just converted to a maven project
@Wietlol so rude.
dbl
dbl
or maybe I am rude sry
I'm out :P
i miss nuget
TIMES ARE CHANGINNG!
15:45
@erotavlas inside project add a node <dependencies></dependencies>
@dbl Byeeee! Please come back tho :)
inside that, you can paste the deps
you only miss nuget because you use eclipse
ok done, then I clean and rebuild and it should find the dependency?
15:47
iDunno
dbl
dbl
y
in my IDE, I just have to paste it and it is already included
not even needing to build
or clean
or clean and rebuild
dbl
dbl
just because you have enabled the auto imports...
they are off by default in the IntelliJ
:)
just because I use an IDE
dbl
dbl
not IDEA?
:scared:
15:48
eclipse is an ide
dbl
dbl
eclipse sux xD
correction, just because I use a self-respecting IDE
what alternative is there? I thought eclipse the best for java dev
IntelliJ is prolly the best
if it doesnt fit your style, Netbeans will do fine
dbl
dbl
make sure that you are referring to a particular version of the library u r going to include
15:49
Eclipse is for rebels
dbl
dbl
because on update of the library there is a chance for non backward compatability and then u r screwed
hmmm none of the above worked, org.apache.commons.lang is still underlined
i think I'll just download the jar file and reference it manually
dbl
dbl
wait wait...
don't quit so fast
what's wrong there, how do you build the app?
i didn't its set to build automatically
I'm looking at the IntelliJ site :)
downloading IntelliJ.... lol
impressive, they have a dark theme out of the box
dbl
dbl
xD I'm in love with the darkness <3
16:06
I am the darkness
takes note
You are aware that that statement could lead to a lot of other statements that would end up as really, really inappropriate, right? @JennaSloan :)
@geisterfurz007 like what?
Yeah that was some kind of self-goal I played myself there, wasn't it?
Hello, my name is Jenna my username for most websites contains the word "darkness"
dbl
dbl
Hello, I'm definitely not in love with Jenna Sloan... just saying!
i mean I do not know her ^^
that's all folks, cya tomorrow
16:14
Does a quick background check on @dbl
do I stil have to keep the maven XML in my pom.xml if I'm using intellij?
I removed it
nevermind I got it working now...
farewell eclipse
3
16:34
posted on January 21, 2019 by CommitStrip

hi guys,
in e-commerce websites, when a customer cancels the order, how is the refund initiated back to customer's account?
is it done manually by their customer representatives?
Zoe
Zoe
17:08
Ugh, I tried looking into some Tizen stuff .-.
The IDE is built on top of Eclipse xd
Can't even port it to a different IDE
18:01
@Zoe I'm pretty sure Eclipse is open source
Eclipse IDE for Eclipse Committers: eclipse.org/downloads/packages/release/2018-12/r/…
18:20
Meow!
Have your local MCD selling twisty fries?
It was sweet compared to regular MCD fries.
Zoe
Zoe
@JennaSloan it is
But I don't want to write more code in Eclipse than I have to xd
@nyconing Crispy Curls are better
@JennaSloan Isnt it same?
@nyconing No
Curly fries are also different
I think they everyone should just call them "seasoned deep-fried potato spirals" instead
18:49
I was looking for a groovy specific chat room and couldn't find one - so, I am hoping I can find some groovy masters here
 
1 hour later…
20:05
anyone has knowledge in ML?
@ChristianBongiorno im no groovy master, ut I used pretty much all of the more famous JVM languages
Zoe
Zoe
20:26
xd
404: answer not found
@Wietlol thanks for mentioning IntelliJ so far I'm liking it a lot
21:21
I actually am having a hell of a time with intellij and this groovy project I am working with - IJ won't actually expand directories in the navigation bar. Copy & paste doesn't work. I am ready to cut them a ticket
Zoe
Zoe
21:53
That's called a bug
You can't fix that
you can bypass it with double-shift
22:20
IntelliJ has bugs? ...whaaat?
00:00 - 14:0014:00 - 23:00

« first day (3012 days earlier)      last day (2153 days later) »