« first day (3462 days earlier)      last day (1469 days later) » 

mr5
2:36 AM
@Hypersapien is it a pull or a pull request? cuz that's completely different thing in git
@Permian I believe it's representing a multilayer modules
 
3:28 AM
@Permian indicates it can be multiple
example the payment gateway have 2 load balancer to do payload balancing on 15 api servers
and can be extended or shrink to only 1 server, depends on management policy
 
mr5
3:43 AM
dev1: I'm having a problem with the API, here's what I did (explains it further backing up with inputs at outputs)
dev2: Can you send again the request?
dev1: ok
dev1: done!
dev2: did you make any logs?
dev1: yes
...few more minutes later
dev1: do you need the data?
dev2: yes
dev1: proceeds to give the same data
dev2: ok, here's the problem...
 
 
2 hours later…
5:29 AM
Buenos dias
@Shad Sorry for letting you hang there. I had weak knees all my live, but I usually did sports anyway because it wasn't a problem. First event happened playing sqash, which is especially hard on the knees. One time I wanted to get a particularly far ball, went really deep, and just...fell down. My knee just decided to stop. So since then, my doctor said basically I can't do fun sports anymore like football, basketball, sqash...all the stuff where you do sudden movements.
@Shad That was when i was 15. So natrurally, I still did these things sometimes, just a bit carefully and I'd stop after some time when my knees started to hurt. So 4 years ago in job school, we played dodgeball. I decided to join for a few rounds. Turns out: not a good idea. I'm the last one in the field, dodging balls from the enemy. Once dodge I see like in slowmotion that my knee is going in a wrong direction - it budges horizontally. That was the day I ruptured ligament.
Since then, I can't even start playing things where I make sudden movements.
Also I still can't fully bend my left knee.
That day, SquirrelInTraining and me formed a bond. Since he was the one who immediately tried to help me, put something under my head to I don't just lie on the ground, and actually went to the hospital to check on me.
 
mr5
6:04 AM
<3
That's why you become a programmer
I am physically able but my childhood is not really awesome. I was also eager to play basketball and football but I got distracted by computer games that time and get very addicted to it.
 
morning
 
mr5
morning
are you in Spain Hector?
 
I am. Why?
 
6:26 AM
the numbers in spain have surpassed italy
 
mr5
You two
You're from Italy and Spain
 
yep
 
mr5
omg
how is Italy now Neil?
 
everyone is in lockdown
they have lines preventing too many people to be inside the supermarkets at a time
only essential businesses can stay open
that includes mine though fortunately. banks are kind of important :)
 
Buenos días / morning :-P
 
6:41 AM
guten tag and hola
 
In Spain there are regions that are facing poorly the covid 19 and regions that face it better. Madrid is managing pretty bad both its hospitals and morgues (and the regional government is lying about it) but generally it is slowly going down the increase of daily deaths. So like Monthy Python said.... "Always look on the bright side of life"
Unfortunaly it was translated as "Mira al lado brillante de la vida" and oh boy, that is an awful translation
They translated it bright/shiny and should have done bright/positive
 
Always look on the shiny side of life
 
My sister is in Madrid, I am kinda worried if she gets the virus
 
if she stays home she's fine
don't let her be tempted to visit her parents
we haven't seen my in-laws for about a month and a half
 
Her husband's father got the covid, her husband got in close contact with him, but he was not allower to be tested because of lack of sympthoms
In other regions in that case you get tested
 
6:56 AM
well all they can do now is just isolate and pray no symptoms start to show
I know how scary that can be
I went to the supermarket and someone next to me at the self-checkout started coughing and it scared me the fuck out
had to count the days after that before I started feeling okay again that I don't have it
 
mr5
just always keep ventilated indoors especially when there are a lot of people.
this is to make the microbes produced from talking and sneezing go away.
if this is true, covid-19 should be considered as airborne
 
7:14 AM
@mr5 Oh I was developing software before that, but only some apps for my own use (also tried building a game...only finished the engine). This happened during my software developer apprenticeship.
 
@mr5 most viruses spread this way, it's not considered to be airborne though
it rides in the droplets. airborne would be like spore seeds, meaning they carry much farther than the droplets would go
 
7:29 AM
yo yo yo
thank god that cups of coffee, cartoon characters, and animals can't get this virus
 
> The World Health Organization has announced that dogs cannot contract Covid-19. Dogs previously held in quarantine can now be released. To be clear, WHO let the dogs out.
 
Ruff! Ruff! Ruff ruff ruff!
reality is stranger than fiction
 
it's a dog eat dog world
 
mr5
7:54 AM
@Wietlol how about tigers?
there was a report in US about a tiger having covid
 
iDunno
but it is a report from the US...
so, it is probably fake news
 
I thought there were reports of like a dog and a couple of cats having COVID19?
 
mr5
@Neil yeah but the droplets stays and spreads in air. it spreads about 2m
 
@mr5 if it's in your saliva and you sneeze, then every such disease is airborne
I think airborne is reserved to those which can travel a little farther than 2m
 
covid virus are long life, it stay infectable stat on surface 2hours-6days
basicaslly you touched anything that is public, wash hand.
 
8:16 AM
ahoy o/
 
yo ho
 
and a bottle o' rum
 
nope, just a cup of coffee
 
everytime I go outside to throw away the trash, I have my wife open the door for me
first time she's opened the door for me for a change :P
 
how progressive
XD
 
8:30 AM
Ahoy Caption O7
Wanna see progressive? Yesterday in the company-wide GoToMeeting speech, our CEO/founder allowed us, with prior consultation with our Manager, to come into the office for up to two days if we want!
It's like Home Office a few years ago but reversed.
 
hahaha
not a chance
 
8:47 AM
hi
 
o/ Shad
 
Can I have a column just apart from pk that points to pk?
hey @bradbury9 :)
like
 
Like PersonId (PK) and ParentId (referencing PersonId)?
Yup, you can
 
Id PrimaryKeyId
1 1
no like this ^ lol
 
@Shad sure you can
 
8:50 AM
computed columns?
 
hey @Neil long time :)
 
wouldn't be very useful if PrimaryKeyId were the same as Id though
 
yeah it always will
 
could be useful to link records in the same table
can I ask why?
 
I actually have table like this
 
8:50 AM
but why?
 
Id SubRef1 SubRef2 SubRef3
now any record can have number of subReference. But the last one points to the same id
 
why would this be beneficial?
 
@bradbury9 Spain is an old average country, a lot of old people, life expectancy is among the greatest, so it's not hard to see a lot of them die. This disease goes hard on people with other health issues
 
kind like
 
I can see that
 
8:52 AM
I know, soy de Bilbao
 
it will be shown in UI
to get the structure of table
 
I once made a category table with parent categories, and the highest category had its id referencing itself
 
to kind of get the idea
yes!
@Nie
 
I think it's better if it were null in retrospect
 
@Shad and... why is it beneficial?
 
8:52 AM
It is useful to store a hierarchy
 
I think I am doin the same thing
 
but I see the reasoning
 
@Neil our account table is based on an n-tree
 
@Wietlol it will show the structure of data in the UI
 
where each account is a sub of another account
except for the root account ofcourse
 
8:53 AM
like
 
It takes a pandemic to get cops in my home village , they haven't been around for ages, since this place is really quiet and peaceful. Yesterday they got a lot of fines going left and right because old people would keep attending their daily strolls.
 
its parent is null
 
yeah, same concept I'd say
 
@bradbury9 Hostia Patxi xD
 
you could make its parent itself... just to avoid null
 
8:53 AM
JK I always make that joke.
 
well I'd prefer null because it's a special case
 
@Shad that doesnt make it beneficial
 
otherwise you'd need to check that an account's parent is itself
 
@HéctorÁlvarez Same here. Small village, rarely any police. It was necessary due to a pandemic for them to show up.
 
but the data isn't incorrect, just not representative of what you're trying to convey
 
8:54 AM
@Neil which is why I hate Java's exceptions
 
ID              subRef1      SubRef2           SubRef3
002-001         001           002                 002-001
Like this
 
That one, and the one about either being from Bilbao, or a southern from Alava
 
In those hierarchy structures I like top level one to get NULL, not referencing itself
 
we get the idea in UI that this has 3 levels
 
You can detect them at a first glance
 
8:55 AM
if subref3 always has the value of id and if you don't think it'll have a different value in the future, it makes no sense to have subref3
 
Java's exception's inner exception is either another exception or itself, it is never supposed to be null
 
The latter seems to get people from Bilbao really triggered.
 
and avoid infinite loops if doing a recursive CTE
 
@Neil
not always
 
@Wietlol says who?
 
8:56 AM
ofcourse, a field referencing itself is a great idea, I am sure every json or xml serializer in Java agrees with me
 
I could just have 2levels
then SubRef2 Will have the value of Id
*will be same as ID
do you get it?
 
@Shad if you do it like id parentId, then you have an n-tree
you don't need more than one column for that
use another column if there's another "organization" completely separate
 
> private Throwable cause = this;
hmm... reading the javadoc, it is supposed to be null
 
I don;t know how many parents there could be
 
@Wietlol that's what I had understood anyway
 
8:57 AM
and a self reference is meant to say "it is not yet initialized"
 
having an inner exception same as the outer just strikes me as a troll
 
@Shad in that case, you dont have a table with a set amount of columns
 
"how to make java programmers create an infinite loop.. step #1.. self referencing exceptions.."
 
I mean I have fixed columns
but some values could be null then
 
then just make the last one null
ID              subRef1      SubRef2           SubRef3
002-001         001           002               null
 
8:59 AM
but I need to show in UI
 
and you never make your database depend on your ui
except when your database is your ui
or when your business is ui
 
hmm
 
other than that, your database and user interface are 2 independent pieces of software
and between them, you have a mapper that converts whatever it gets from the database to however you want it to be shown in the user interface
 
^ That's why you have a database model and a view model.
 
I think that is the core behavior of MVVM
but the same should be for MVC
 
9:02 AM
so your advice is I make the last one (Whose value will be same as Id) to be null?
 
or any other user interface design pattern
yes, there is no point in making it the id itself
at least... not derivable from the current context
 
databases use ids and organizational tricks which are important, but there's a layer above that for the gui
at least in my mind, you should never identify records to a user via ids
 
hmm
 
you get the user to name it whatever he wants, and you create a column for "user-named values" with a unique constraint on it
if there are collisions, it won't let you insert it
 
we use 2 ids
1 database private id (auto increment integer, starting at 1)
to be used by the database and the database only
1 public indentifier (uuid which can be used to uniquely identify the record in the database with an identifier that can be used in links and shit)
 
9:08 AM
no need for two unique identifiers unless you're mapping from another system
 
that one often can be shared with the user... but they don't have to use it for anything
 
and I wouldn't give user a uuid
 
there is definitely the need for 2 unique identifiers
a database primary key should be auto incrementing
and something that a user is allowed to see (and can use in stuff) should never be predictable
 
I can see the logic there, but you shouldn't show the database id to the user in any case
 
those two conflict pretty hard
the database id is hidden, not even the web services know it
only the database knows
 
9:10 AM
well that's no good to anyone
 
the uuid is used for urls for example
so, yes, a user might click on a link and it contains a uuid
 
the usefulness of an id is so you can handle it without worrying about collisions in your program
even if you don't show said id to the user
 
the uuid identifier also acts as a collision avoiding thing
 
if I felt I had to show a unique identifier to a user, a uuid works
just that nobody can legit do anything except copy and paste that uuid
no way you could memorize it
 
mr5
if you click File Explorer from minimize state while having MS SQL Server Studio running in minimize state, it would also f**** open that thing.
while having a response time of ~3seconds
f*** this RDP
 
9:17 AM
@mr5 cant reproduce in my win10 1909
weed laughing out loudly
 
I have more heresy to spread around today, that's to say more JS.
 
mr5
if you open Sublime Text 3 at NotePad ++ it would always prompt that annoying shit!!
god I hate this stupid softwares!!!
 
I have a string like this ["1","2","3"],["10","11","12"], is it possible to parse that anyhow so I can use it as parameter for another JSON?
The result should be {"myData":["1","2","3"],["10","11","12"]} or something along those lines
I can try to assign everything as a string, and then JSON.parse() but IDK if that would work.
 
invalid format
 
Right, but I have to work with this...
Maybe I can persuade the other part to send a better format
 
9:26 AM
use string based post processing
assign guid or something unique to myData, and then replace it by string based processor outside json
 
Can you give me an example? Because I didn't understand.
 
surround it with []
 
!~={
 static object Main(){ return Foo(); }
 static object Foo(){
  var guid = Guid.NewGuid();
  return JsonConvert.SerializeObject(new Vm{ myData = guid.ToString() }).Replace("\""+guid.ToString()+"\"", "[\"1\",\"2\",\"3\"],[\"10\",\"11\",\"12\"]");
 }
 class Vm{ public string myData; }
}
!=={"myData":"["1","2","3"],["10","11","12"]"}
 
"[[\"1\",\"2\",\"3\"],[\"10\",\"11\",\"12\"]]"
 
!=={"myData":["1","2","3"],["10","11","12"]}
 
9:33 AM
{"myData":["1","2","3"],["10","11","12"]}
is still invalid json
 
8 mins ago, by Héctor Álvarez
Right, but I have to work with this...
snack time, 88
 
> or something along those lines
@HéctorÁlvarez if you dont know what you want, then perhaps find out first?
 
Yeah but I think I forgot to wrap in curly braces
 
ye... no
 
I want exactly that, but I am pretty limited on my side, so I can't really make a full design from my end
Normally what I do is I build a JSON and then stringify it, encode to Base64 to send it (that's a communication policy), and do the opposite on the receiving end.
so after all I work with JSON every minute I can.
Main issue here for context. I am trying to avoid scriptlets because they are clumsy black boxes when debugging, but scriptlets are my only way to work with JSON. However I can perform concatenations and other stuff from standard operations.
What was wietbot's cue?
!@ping
@@ping
@wietbot evalnode
var data = "1|2|3@4|5|6";
data.split("@").split("|");
@Wietlol is your bot dead?
 
9:45 AM
@HéctorÁlvarez TypeError: data.split(...).split is not a function
 
Damn, so arrays can't be split.
 
obviously...
 
I was expecting it would be applied recursively to each string in the array
 
I mean... they theoretically could, but the splitting pattern would be an array itself
 
I am trying to be lazy here
 
9:47 AM
the main issue you have is that you have no format of data
if you do communications between applications, you need a solid data format
json, xml, csv, frigging yml, etc
what you have here, is none of the above
 
Correct
 
so, fix the problem, not the symptoms
 
I can only pass strings over though, even json has to move stringified.
 
well... in most cases you can only pass bytes over
a http request's body is just an array of bytes
 
What I'm going to do is fix it by passing it with separators
Yes but this has to be readable on every step
 
9:49 AM
many people will put a utf8 string in there representing some json object
but it is not limited to such
 
What would you do in my case
literally only strings can be passed over
 
I would argue an utf8 string of json format is probably the most readable
I would whack someone
and then ask if they want to do json instead
 
Let me see if I can convince them
 
if they refuse, I repeat the process
it works quite well
 
convince, them?
I will file a complaint to my company instead if they dont want to use standard json format
 
9:55 AM
We all have to be reasonable here
 
hence the complaint
 
Can't file a complaint for such a trifling matter
 
ofcourse you can
in data communication, you use a data format to format the data within the available set which the communication protocol supports
which data format you use is quite irrelevant
but you use a data format
not just a toString of some object
and you dont invent data formats
that is my job
 
:)
 
You are so kind, I will be angry if my colleague give me that format and do not fix
If I cant complaint, I may revenge by creating my own format too
 
10:00 AM
could this code be made better?
 
dont break on each level
 
@Shad if you can do something like currentTaskRecord.SubTaskId[0] then you can simplify that greatly
 
OK so step 2, if I decide to set a format like row1|row2|row3@row1|row2|row3@... because it's more convenient than converting back and forth JSON, how would you then convert this into an array of arrays?
Google says replace by hardcoded strings... so bloaty
 
@nyconing I need to? that switch method is inside a forloop
so I will get one level at a time
@Neil hmm
 
also the first line in all of your switch cases can be pulled out
 
10:04 AM
that SubTaskId1,... are my columns in database
 
@nyconing Heh well, I try to understand the other person. This tool has a lot of issues.
 
assuming that taskLevel must always be between 0 and 4
 
yeah it is
 
@Shad ok, but you can make a wrapper for that database entity
 
never made one
 
10:04 AM
which can do this for you
ideally you'd just modify the database entity itself, but that may not be possible, don't know
wrapper class is just a class which uses its inner instance to do all the things
 
oh
 
lets you add small convenient things like what i mentioned
 
can try this in my free time
 
then you can clean up that switch statement in your free time as well :P
heck, you could just write a method in your wrapper which does all this for you
like currentTaskRecord.AssignTaskLevel(taskLevelGuidDictionary, taskLevel)
 
yup that redundant statement can be removed. Agree :)
:o
how have you been btw?
 
10:12 AM
@nyconing in a switch case, always break
there are no exceptions
there is no waterfall
only breaks
 
haha
 
OpenJDK eating 3GB RAM without anything running, gotta love Javo.
 
then learn how and when to not use break in switch
 
But roman to arabic numerals is so much simpler with fallthrough
 
aka, never
 
10:16 AM
Unfortunately we don't have case fallthrough in C#, so I did that one with goto's instead.
 
we have case fallthrough in C# tho
at least last time i checked
 
AFAIK we don't, that's why i had to put gotos instead of <no break>
 
Uses GoTo in C# REEEEEEEEE
 
No fall through, but you can stack cases to run the same code block.
case 1:
case 2:
case 3:
    break;
 
10:20 AM
hmm... not using breaks is a syntax error
 
Yeah but if one case has to do A/B/C and another case just B/C, then usually you'd put case 1: A; case 2: B; C; break;
But without case fallthrough, you have to copy the B;C;
 
I think you can use any breaking statement, just not end without break. Not sure though, but I think continue; also works.
 
Yeah but I can't not break.
 
and if you want one case to do A/B/C and another just A/C, then you are messed up anyway
so fallthrough is NOT a solution
it just isnt
 
Then i jsut make another case that goes case 3: A; C; break;
It could also avoid nested ifs
if(condition1) { doStuff(); if(condition1-1) doOtherStuff(); }
No wait it can't
I think
Well maybe
Fuck it I got real work to do
 
10:28 AM
haha
love you people! <3
 
<3
 
hey Hans! :)
 
@Wietlol You could do A/C and then D/C and wind up with a rockin' band
 
hey Shad
 
10:55 AM
Hey everyone
 

« first day (3462 days earlier)      last day (1469 days later) »