« first day (3619 days earlier)      last day (1343 days later) » 
08:00 - 11:0011:00 - 23:00

11:00 AM
so, i have to understand that you do not want to test it
because i am not going to wait for the others to do the right tool i needed to have 6 years ago
even less to let me use it for free, as i am doing
so, ok
but like, if i do not test every tool, i have to understand that you do not neither
even if you had the creator asking you explicitly for it
 
if you can convince me that testing your tool will help me...
 
wietlol
 
but you would require quite the skill of persuasion to do so
 
you put a mysql database
 
which I doubt
 
11:04 AM
you just need to put a mysql database
the whole project is generated for you
 
I dont even have to put a mysql database
I just write the code and say that the data must be stored
and it generates a database for me
 
mongodb?
 
my own stuff
 
woah till that level
 
used to be jetbrains.exposed, but they proved to lack certain features
 
11:06 AM
woah, you r a big fish
well, my requirements are to have a mysql database
just to have structured data, which in the end i think it is good to have in order to automate things
so, you give a mysql design, and i create a whole project
that is the deal
for free
the creator has lost 2 hours here
xD
you win
nobody else but you, come on
 
uhm...
I would lose 2 hours at best
as I said, I have my database stuff pretty much automated anyway
 
true, it sounds very interesting, but i guess you close that info to others
i still have to document all the project, the test would be like some weeks after
 
if I allow other people to use it, I'd have to document it
which I probably wont
 
it takes a lot of time and it is very annoying
 
also, I'd have to convince other people that it is good... which I have no reason to do so
 
11:14 AM
yeah, touched
where do you pick customers from?
freelancer maybe
okay
let's continue
will you share with me your github profile?
 
not sure what you are hoping to find there though
as for customers, I am my own customer
 
idk
i dont have a fucking clue, it is so discouraging to see how near from utility, and how far from dollars one can be
all at the same time
and they will not give you money for herb
damn
 
perhaps you should reconsider the reasons why you make this stuff
 
i make it for big projects!
i want to create a blog where people can create their own laws
i want to create a social network where people learn about plants by making photos of them
i want to create things
useful things, but i need money to live
money to thrive
i cannot be a smeagol all my life
 
oh, I believe you could do those things, but I dont believe that the way to avoid those things is to spend more time and money into this cms project
 
11:25 AM
every time i get into a job, they ask me exactly for this
this cms is for me to not stay all my life pressing buttons for doing things that could be done automatically
but they do not want to hire me
because i am not psychologically the person they want to feed
psychological racism, have anyone of you ever felt that?
not only that, the universities are taken by money too
everything depends on money
and the doors to money have people that always kicks you out
this is the game where i am set, a place where liers steal and workers rogue for job
shit
 
@CarlGentleman it is not racism, nor discrimination
it is a business call
when a company hires you, they gamble on how profitable you are for the company
 
hehehe yes, the business dutty
 
if the company sees any reason for it to not be profitable, they probably wont hire you
it sounds like you need help, but of a type I cannot give you
 
i have mental problems, i really cannoy contain my anger, i have thrown shit of dog, literally, to the public television here
i do not fit in companies, no matter which
but i still deserve
i still deserve!
my place
respect
rights
i dont fucking care about money a shit
or i'll do craziness
and i'll do it, because nobody is going to save me
i am fed up
of seeing these stories in the street
fucking system of rats
 
if you have problems, solve them
and there is no shame in letting people help you, or ask for them to do so
 
11:43 AM
my problem is running out of weed, basically
and it is because i run out of money, basically
my anger protects my rights
 
your problem is either being blind to your problems, or refusing to acknowledge them
 
weed is not negotiable
 
not here, it aint
 
true
my problem is to create useful things?
idk
i think they dont want me to be useful
they just want me to be stupid, ignorant and obedient
and silent
and i wont
so, no deal
 
I cannot tell you what your deep problems are, I am not trained to find out nor have experience with it
but you should visit someone who is
 
11:47 AM
moreover, we are saturated with covid in hospitals
 
where do you come from?
 
i dont really want to take their drugs
from a place where hospitals are free
but now, they r ful
my problem is not in my mind
is in my fucking pocket
if i was rich, they would not be doubting about my mental health
they would simply obey
the asshole here is not me
but i am the poor
jus the poor
i dont really feel that i need help, i feel that i am giving the help humans need
 
@CarlGentleman I'd have to disagree
and I stand by my earlier recommendation
 
0
Q: HTML, JS - Contact form checkboxes text display problem

Lubo MasuraI have 4 checkboxes in my contact form. They have implemented functionality of radio buttons, so when you click on other checkbox the first checkbox gets unchecked. My problem is when you click on checkbox 1, it displays text which is right. But when you click on checkbox number 2 or 3 or 4 the t...

 
@LuboMasura Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
11:51 AM
i know, that is the game, to repeat that the one who is sane, it is simply not because of minority
 
If someone is free just take a look, maybe you could have some ideas thx :)
 
so, nothing, world keeps moving
conclusion
i am insane
as usual
 
I never said you are insane
and I dont mean to
or at least... not more than the others
to me, everyone is insane, but if everyone is, then perhaps no one is
 
thank you, i mean, i have logic
i know why i do most of the things
welll,
i mean that i can demonstrate a reasoning about what i do
idk, i dont see the doors of money, and i get nervous
or i see that the doors of money are by obedience, and i quit
thank you wietlol
 
np
 
12:43 PM
In React, when setting the state, I often see that the previous state is passed into the state with a spread operator before setting the actual values (...prevState), why is that so? I remember reading an article that talked about it but can't find it again.
 
it is about purity
the new state is formed from the old state and your adjustments
in the react I use (which is not react-js, so it might be different for that) the state is not altered, it is replaced
 
 
1 hour later…
1:54 PM
how come the regex /a/i returns -1 for Apple?
I was doing
const searchResult = name.search(regex)
 
!!> (/a/i).exec('Apple')
 
@Neil ["A"] Logged: `` Took: 1ms
 
-1 is the result of search when nothing can be found
 
!!> 'Apple'.search(/a/i)
 
1:57 PM
@Wietlol 0 Logged: `` Took: 0ms
 
maybe check your inputs
 
it also wërks ^ there
 
searching for 'a' case-insensitive in Apple shouldn't return -1
 
i tried
const regex = `/${searchString}/i`
 
maybe the regex is literally /${searchString}/i ?
 
1:58 PM
so its like dynamic regex
 
did you check to verify that it's substituting correctly searchString?
 
it outputs a string
not a regex
/${searchString}/i ? nope
ill try const regex =new RegExp(/${searchString}/i)
 
ye, that wont work (the new RegExp would prolly work though)
 
seems like a simple problem
 
/a/ is a literal, defined in the syntax rules
`a` is also a literal, defined in the syntax rules
but the first will always form a regex, the second will always form a string
 
2:03 PM
        const regex = new RegExp(`${searchString}`, "i")
works
 
 
4 hours later…
6:28 PM
Other then games what can react do that native web can not?
I’m thinking react for Android
 
let messages = {
  1: {
    id: '1',
    text: 'Hello World',
    userId: '1',
  },
  2: {
    id: '2',
    text: 'By World',
    userId: '2',
  },
};
var {
    ["1"]: message,
    ...otherMessages
  } = messages;
wow what a magic
now we "deleted" the first message "1" and have the rest in otherMessages
what black magic
wow
 
7:14 PM
@Votech Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
    Hi, i have question about Jest i have this function X
const X = async () => {
try {
const one = await num();

}catch(e) {
console.error(e)
}

how i can call from test in Jest that const one = await num() reject error ?
 
7:32 PM
holy shit, people trying to help people and then giving completely wrong information is so frustrating
 
!!!
 
'ok'
 
 
2 hours later…
10:05 PM
Hi guys, readAsBinaryString retunrs the error - not a type of Blob for input.files[0] var input = document.getElementById("customFile");
var reader = new FileReader();
reader.readAsBinaryString(input.files[0]);
reader.onloadend = function(){
var count = reader.result.match(/\/Type[\s]*\/Page[^s]/g).length;
console.log('Number of Pages:',count );
}
 
@GeorgeTiganila Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
@GeorgeTiganila Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
 
Hi , readAsBinaryString returns not a type of Blob for input.files[0]. I think it shouldn't. Any ideas?
var input = document.getElementById("customFile");
    var reader = new FileReader();
    reader.readAsBinaryString(input.files[0]);
    reader.onloadend = function(){
<html>
<body>
 <input type="file" class="custom-file-input" id="customFile" name="filename" accept=".pdf" required>
</body>
</html>
 
10:29 PM
is discord a curse word in here?
 
@LordReptilia Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
08:00 - 11:0011:00 - 23:00

« first day (3619 days earlier)      last day (1343 days later) »