« first day (3903 days earlier)      last day (1039 days later) » 

3:03 AM
@lovgrandma React has had SSR for a very long time. Next just uses Reacts SSR.
 
 
1 hour later…
user13780186
4:08 AM
How to remove the last . from the value 92.182.1938
 
7:48 AM
@ArdalanNahavandi i'm glad you got it solved.
@BeginnerCoder use lastIndexOf ?
 
 
1 hour later…
9:18 AM
@JBis that dude with that flex rules thing (that I was going to tease) was speechless for a moment 😂
CSS is not really my terrain...
 
 
2 hours later…
user13780186
11:06 AM
@KarelG ok thanks
 
user13780186
11:23 AM
How to build a react project using yarn build with prod & deployurl

in angular ```ng build --prod --deployurl```
 
11:36 AM
@BeginnerCoder react doesn't come with a toolchain or cli tool like angular so it depends on your setup
 
user13780186
@makadev ok thanks
 
11:55 AM
Also, deployurl isn't needed for react/react-dom since it doesn't handle any routing/History modifications, so current url is easy to get. It's another story with f.e. react-router thought.
 
> new RegExp('^[\dA-Za-z]+$').test('asdas2d')
false

why? is it not suppose to be true?
 
o.o
 
@entithat new RegExp('^[\\dA-Za-z]+$').test('asdas2d')
 
you should have simply used the / notation ...
 
or guess.. use regex expression like /^[\dA-Za-z]+$/.test('asdas2d')
 
12:03 PM
||> /^[\dA-Za-z]+$/.test('asdas2d')
 
@KarelG true Logged: `` Took: 0ms
 
new RegExp is only useful if you want to have a dynamic regex
 
12:22 PM
yeah yeah, I forgot to escape \. Thanks!
 
12:39 PM
You spoke about RegExp
Let me share one of my worst experiences with you.
My react app always renderred a blank white screen in ios apps
so i started from above and commented all my code, and then started uncommenting every component one by one to see where the problem comes from.
 
hello all, I have a enum enum Foo { one = 'hello' } (just an example). Now I receive a string "hello" and want to know which Enum to use. Anyone has a clue how I can do that?
So for example: Foo[stringValue]. But this doens't work as that one will be mapped to "one" instead of "hello".
 
I found 10 components responsible for error in ios
The only common thing between them was a RegExp
The Regex was something like below:
/\B(?<!\.\d*)(?=(\d{3})+(?!\d))/g
I removed that RegExp and everything worked fine
 
12:58 PM
posted on June 23, 2021 by Ben Mason

Hi, everyone! We've released Chrome Beta 92 (92.0.4515.70) for iOS: it'll become available on App Store in next few days. You can see a partial list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 
 
1 hour later…
2:22 PM
!!regexp
 
curious Kevin?
 
@JeroenE AFAIK it's not possible without hacks like converting (non const) Enum to Object/Map (or respective reverse Lookup Table), since there is no reverse mapping for const enum and string members
 
2:47 PM
o/
 
3:03 PM
@JeroenE if those enums aren't declared with const, you can loop through it and get the enum by its content
 
3:20 PM
not sure if TS has solved that, ability to loop through const enums
(or that they will ... )
off I go
 
Can anyone help me understand why my "footerCallback" is not getting any data? jsfiddle.net/BeerusDev/vzehsqn8/106
I am trying to get a count of all Statuses for the current day, and then display them in the table foot by the Total:
 
3:55 PM
@BeerusDev there are 2-3 problems, 1. use var data = this.data(); in rows().every(function(...){}), there is no "data" parameter, see docs
2. if (table.MondayStatus === "P"){ should probably be if (data.MondayStatus === "P"){
3. totalCount object does not belong in the rows().every(...) visitor function
 
So move it outside of the table.rows().every(function))
I don't know why this is kicking my ass
 
hmm.. doesn't seem to work correctly either
"footerCallback": function( tfoot, data, start, end, display ) {
	var api = this.api();
	var totalCount = {
                      P: 0,
        };
	api.rows().every(function (rowIdx, tableLoop, rowLoop){
		var data = this.data();
		if (data.MondayStatus === "P"){
			totalCount.P++;
		}
		console.log(data, totalCount.P);
	});
}
ah
copy and paste error cough
@BeerusDev this f.e. calculates totalCount.P=1
 
4:51 PM
Shit it should be 3
Need it to read through the whole table
table.rows().every(), rows().every(), only loops through the rowGroup
 
5:22 PM
I figured it out
 
6:14 PM
@makadev ping
 
6:26 PM
@BeerusDev hm?
 
Sorry I had to step away
405 to 433 I figured it out, but can't get it to append to the tfoot
It is counting the table rows as a whole and not the rowGroup, can I just append the JSON object as a string to the tfoot?
 
@BeerusDev $( api.column( 11 ).footer() ).html(JSON.stringify(totalCount)); works for me
 
It works but posts like so to the footer: {"P":3,"TW":0,"TRV":0,"NR":0,"PTO":0,"H":0}
I guess I could manually add each totalCount.val
 
ye
 
While your here, are you familiar with datatables.net/reference/type/selector-modifier
 
6:40 PM
posted on June 23, 2021 by Srinivas Sista

 The Beta channel has been updated to 92.0.4515.70 for Windows and linux and 92.0.4515.69 for Mac. A full list of changes in this build is available in the log. Interested in switching release channels?  Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues.

 
@BeerusDev nope, also looks confusing
 
Figured, need to use it somehow to have my filter work fully
It works, until I search outside of it and it counts all rows even the hidden ones, just not the visible ones like it should
 
 
2 hours later…
8:26 PM
i hate editor keybinds on mac
or livecode, whichever is making "end" go to the end of the page rather than the end of the line
 
 
 
3 hours later…
11:34 PM
posted on June 23, 2021 by Krishna Govind

Hi everyone! We've just released Chrome Beta 92 (92.0.4515.70) 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. Krishna Govind Google Chrome

 

« first day (3903 days earlier)      last day (1039 days later) »