« first day (3841 days earlier)      last day (1090 days later) » 

2:05 AM
 
 
7 hours later…
8:37 AM
@JBis interesting, normally seen it should not be executed when using it outside async function
I guess the bot command feature is operating from within async?
@paul23 be fortunate. My parents are computer illiterate and guess what they do if there are pc problems? They come to moi
@JBis did not see this one. got my answer now.
 
Hi, I try to map a Card element based on the elements in an array which looks like this
const [topData, setTopData] = useState(["someId", "text1", "text2"]);

I then do the following:

{topData.map((item, index) =>
                    <Card key={index} style={{width: '333px', margin: '0 30px 0 30px'}}>
                        <Card.Body>
                            <Card.Title>{item[0]}</Card.Title>
                            <Card.Subtitle>Hot Theme 1 Subtitle</Card.Subtitle>
                            <Card.Text>
Why do I not get the values I need ? What am I doing wrong ? item[1] returns only the commas, and the item[2] and [3] return other things that I do not need
Never mind I fixed my own problem by splitting the [item] after the ","
 
user13780186
8:56 AM
Hello devs. I would like to ask what are the difference between the echarts and highchart?
 
try both of these out. both have same purposes
AFAIK echarts is open source
 
user13780186
ok hanks
 
hmm with react-scripts/cra is there a variable I can check to see if running through build or npm start?
 
9:11 AM
idk what that is :D
 
@paul23 I think process.env.NODE_ENV may be set to development or production
 
9:26 AM
oh thanks will test that.
I'm thinking I have a "dictionary" class that loads dynamically a dictionary and each string (where wanted) is replaced with a call like dictionaryStore.getTranslation(language, key, default)
Now I notice that there often starts -since it is a pain to constantly update database when writing new code- a mismatch between code "keys" and what is defined in the database. Not directly an issue as it will then show the default text (which is in english).
However I also decided I wish to have easier time "hunting" for missing keys, so I added a console.log("Translation for key " + key + " not found, in language " + languageKey); line to the getTranslation function.
I wonder if putting that line behind a if (process.env.NODE_ENV === 'development') is good or if it is better to also show those logs in production?
 
10:27 AM
missing translations are usual
the translators are mostly behind the actual release cycles
you can report it, but let's say the missing translation is for Poland locale
are you going to do that? maybe use google translator?
it is possible to collect all of them in a log table and have a daily mail about missing translations
 
@KarelG the backend is agnostic to what "keys" a frontend expect though
 
we have some translators that are doing their job in time, but it happens that they left out one. I am not going to nag them for that
@paul23 I just fallback to english :D
or parent locale
like canadian french (yeah we support that locale ๐Ÿ™„) -> France french -> English Intl
 
Me too: but still like to find a way "oh you forgot to insert key XYZ into the database you stupid". Without manually checking every line of text
 
similarly for other locale: belgian french -> France french -> English Inlt
 
But then i guess I should put those checks behind debug mode only
 
10:31 AM
@paul23 are the english message not in the db?
should be the first one. If that is missing, then have it as an info or error. For other locales, just debug yeah.
 
oh no english is not in db, there's no "special" language other than the actual text in code (which isn't a "language" but rather a fallback no-language code)
Why should english be special, if 60% is dutch, 35% is french and the rest various other languages. And the aim is specially for those who have trouble with things like understanding other languages.
 
how do you store english messages?
or even english texts (like paragraphs in FAQ)
is it just in the view?
erh ... if dutch is your default language, use that yeah
english intl is the default at mine
I do not see any point in a table that stores only translation without original messages. How are you tracking changes on the original message?
if that is in db, the update timestamp is used to see if the translation message require another update or not. That all gets notified through our CRM
 
10:54 AM
@KarelG can't, we did that and it made about 10% of persons quit. Even though dutch is majority the french part quits over noticing dutch is prefered if nothing is found.
@KarelG in db there are simply entryes with "language_key (like fr-fr)" "key (like tos-paragraph-1)" and then the translation. Upon loading the default (in code) version is shown, and after the user data has loaded an async call will send the desired language to the backend which then reports back a simple dictionary containing all strings. Front end attaches those.
 
"tos-paragraph"
TOS... everyone hates a TOS
 
11:32 AM
guys does anyone know
 
@MohammedHamdoon 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.
 
what is USES in scala
and how to connect two classes in scala using uses ?
 
JamesBot codebase is all over the place, could use a refractor but I am lazy
Is there anyway to duck type in TS?
 
0
Q: Manipulate vertices on the go in AFrame?

SuisseI have a custom plane: JS: AFRAME.registerGeometry('example', { schema: { vertices: { default: ['-10 10 0', '-10 -10 0', '10 -10 0', '10 -10 0'], } }, init: function (data) { var geometry = new THREE.Geometry(); geometry.vertices = data...

 
12:14 PM
@JBis By design not.
typescript by design adheres "strong typed" languages and ducktyping is something that works when specifically have "weak typing".
 
@paul23 that could work but I do not like it ๐Ÿ˜
huh, TMK duck typing is supported in TS as it tries to ensure type check in javascript, of which already allows duck typing natively
so ... I believe that TS is only checking at compile time wenether a type is valid
let's say this
class Foo {
  action = 'foo action';
}

class Bar {
  action = 'bar action';
  customMethod() { return 'custom'; }
}

const foo : Foo = new Foo(); // ok
const bar : Bar = new Bar(); // ok

const barAsFoo : Foo = new Bar(); // ok
const fooAsBar : Bar = new Foo(); // will error on compilation TMK
doing barAsFoo.action will give 'bar action'
 
That's not really ductyping since the actual type is changed: it's more like automatic, implicit type casting
 
12:56 PM
ain't it duct typing? ๐Ÿคจ
IMHO it is
@DeadlyPointer you're so dangerous for us. You're probably going to lead us to null D:
RUN AWAY
(disclaimer: I am not serious atm)
 
Ductyping (from "duck") means you do not actually ever state the "type", you just care about the functionality and that it has at least the things you want it to be.
 
1:36 PM
exhale finished attempt #3 for my cryptographical protocol
 
oo/
 
 
2 hours later…
3:22 PM
!!chicken or chicken
 
||alive
 
Anyone use any themes other than the default themes provided by VSC?
 
||> "Hello world"
hes dead... RIP
@JBis
 
|| info
yeah
too bad for you :D
 
guess i'll just have chicken then
 
3:26 PM
is there any difference, Kevin?
 
yes
one tastes better, the other comes with icecream
 
and I was thinking the difference may be that one is a left-handed one and other one is a right-handed one.
correction: left-winged and right-winged
 
ima go with the one that tastes better, leave the icecream for friday
 
gotcha be a tough choice: decide which one is more tastier by sight only
 
i mean
the result would be the same in this case
 
3:29 PM
uh uh
 
i'm comparing zacks and dairyqueen
 
one chicken ain't the other chicken
those names does not mean something to me
ok googled it
pfft
 
I don't mind DQ's chicken compared to some other fast-food places
 
i prefer it, with ranch dressing, over sonic, but they're below kfc/popeyes/cains/zacks
i haven't actually tried popeyes chicken tenders, but i do prefer their regular chicken over the rest
 
I get it with ranch too. I agree with popeyes, and I think Harveys has better chicken than DQ too
 
 
1 hour later…
4:44 PM
|| status
 
I am currently alive!
 
James will be moving in a couple weeks!
 
 
1 hour later…
6:02 PM
Hi I have a question about .clone()
Anyone in the chat use it
 
?
!!mdn clone
 
that?
 
var row = $("[id='ddRow_" + count + "']").clone();
 
so, jquery clone
what about it
 
6:05 PM
So its looking for a div that I want to clone with the controls inside
and it never add the div to the end
$("[id='ddRow_" + count + "']").after(row);
 
i don't understand
.clone creates and returns a copy of the selected elements (and their children)
 
with that clone I want to add it after the selected row
 
ok
still not seeing a problem
 
I am not getting that data on the screen
Any idea?
 
|| mcve
 
6:15 PM
If you would like assistance, please create a Minimal, Complete, and Verifiable Example
 
Hey, just curious if someone could help me with with a small debugging feature... My game draws known paths the snake / user has taken, and strokes them using canvas paths.

The issue is, its connecting the paths to the start for whatever reason, anyone got any ideas? https://replit.com/@MisterSirCode/ECMASnake#script.js
 
6:31 PM
posted on April 22, 2021 by Prudhvikumar Bommana

 The Chrome team is excited to announce the promotion of Chrome 91 to the Beta channel for Windows, Mac and Linux. Chrome 91.0.4472.19 contains our usual under-the-hood performance and stability tweaks, but there are also some cool new features to explore - please head to the Chromium blog to learn more! A full list of changes in this build is available in the log. Interested in switch

 
 
1 hour later…
7:37 PM
posted on April 22, 2021 by Kevin Bleicher

The Beta channel has been updated to 91.0.4472.19 (Platform version: 13904.10.0) for most Chrome OS devices. This build contains a number of bug fixes and security updates. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels? Find out how. You can submit feedback using โ€˜Report an issue...โ€™ in the C

 
Hello guys
How does google search display information about the website like in the highlighted picture?
Which information it picks up from the HTML page or from the website?
 
it reads the website
it tracks what users click in search results
 
eh
google doesn't use meta descriptions as... consistently as they have in the past
 
Thank you so much. Appreciate it
What about the intellisense that comes up in the google search box when we enter something?
 
7:42 PM
it's more likely now to show copy that is related to the term you searched for
 
@KevinB isn't that only in their "smart results"
 
wdym
if you search for a site, you'll likely get the site's meta description but if you're searching for something that site just so happens to have, you'll get copy from the page it was on rather than a meta description and title from meta tags
 
yeah, that ^ is not from the description but the search result ones are i think
 
just depends on whether or not the meta description is "relevant" to the term
in that case it is
 
7:50 PM
hmm, never noticed
anyway @ILoveStackoverflow google has many tools for SEO, they can show you what it'll pick up and how your site will look
 
8:08 PM
My datatable is using rowGroup to create a parent row, followed by a child row, then the rest of the data is expandable/collapsible under the child. It goes Capability as the parent, then Title/Company as the child, and all the other columns drop down below that.
rowGroup: {
                        dataSrc: [
                            'Capabilities',
                            'Title'
                        ],
 
@BeerusDev 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.
 
Issue I am facing is there are way more Titles than Capabilities in the SP List, so if there is only a title and no other columns, I don't want it to post to the table. I tried manipulating my success function to do such and now it just posts "No data in the datatable"
success: function (data) {
                  if (data.Title !== null && data.Capabilities == null && data.Customer == null && data.SEStatus == null && data.ContractVehicles == null){

                  } else {
                  var table = $('#myTable').DataTable();
                  table.rows.add( data.value ).draw();
                }
                }
 
 
2 hours later…
10:30 PM
@JBis Can you please name any one free tool where I can check?
 
posted on April 22, 2021 by Ben Mason

Hi everyone! We've just released Chrome Beta 91 (91.0.4472.16) for Android: it's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 

« first day (3841 days earlier)      last day (1090 days later) »