« first day (3453 days earlier)      last day (1478 days later) » 

6:19 AM
hello
title=' <a href="javascript: likes(1,"xxx",0)"> '
is there a way to achieve this?
 
6:54 AM
hi, anyone knows reason of this issue?
 
@Energy 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.
@Energy 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
@Energy 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.
1 message moved to Trash can
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
 
	reset(form) {
		form.markAsPristine();

		form= new FormGroup({
			a: new FormControl('', [Validators.required]),
			b: new FormControl('', []),
		})
		for (var vControlName in form.controls) {
			form.get(vControlName).markAsUntouched();
			form.get(vControlName).markAsPristine();
		}

		//sometimes it hit error : Cannot read property 'markAsUntouched' of null
	};
 
7:25 AM
Anyone using logstash here...? Kinda wondering which version of ruby it uses?
 
 
1 hour later…
9:28 AM
Is there any "certified" way to unzip files on the client side? Like in vue/react? My current project has some overhead in the backend, so I was thinking about doing the file decompression and then split my API calls in the front end to help with that
but all I can find are very old js libraries (jquery time) to do that. I understand it is not something most people do in the client side, but is there anything you guys use for this situation?
 
10:19 AM
what are you archiving?
what are you going to do with the extracted content?
 
 
1 hour later…
11:44 AM
Morning everyone o/
 
\o
 
I'm a bit new to typescript and having a circular dependency issue, but only for type definitions. I have class A in one file and Function B in another file. Class A uses function B and function B takes a param with type class A. The only reason there is a circular dependency is because I need to import class A in order to specify a type for the param of function B.
// A.ts
import func from './func'

class A {

}
// func.ts
import A from './A'

function func(param: A){
   // uses param
}

export default func
Any ideas how to solve this?
(Under normal JS I wouldn't need to import A)
 
12:06 PM
hey who has done webrtc + push notifications?
Q: Is this scenario possible?

UserA goes on a Website. And Clicks there a Button: <Call>

UserB has currently not opened the Website. He gets a Web Push Notification that he gets a call.


Question is oh I think its possible.
 
yes its possible, but only supported by some browsers
 
12:48 PM
guys can i post small code here
 
@user13079741 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.
 
//in jsp page

<t:multiselect id=”fruitNames” items=”${allFruits}” itemLabel=”keyValue”
itemValue=”keyValue” multiple=”true” selectedList=”0”/>

//in js page
$(“#fruitNames”).empty().append(‘<t:multiselect id=”fruitNames” items=”${allFruits}”’ +’itemLabel=”keyValue”’
+’itemValue=”keyValue” multiple=”true” selectedList=”0”/>’);

//i am getting : Unterminated &lt;t:multiselect tag
any help will be appreciated
 
1:02 PM
<t:multiselect //this is tag on page jsp (server)
While js find tag element on client page (browser)
 
@MirkoCianfarani sorry I did not get it? is multiselect tag causing this issue?
 
you can have some issue...
first.. the page still not loaded
and <t:multiselect this not work on client page)
I think you want append <option>
 
@MirkoCianfarani I think option dosen't work with multiselect, option works great with select tag.
 
1:19 PM
you see
 
1:58 PM
@JBis which part is only supported by some browsers? WebRTC or the Web Push?
 
both
 
 
3 hours later…
5:09 PM
@KarelG a bunch of json files, they are logs from chats.
I will extract the content and then send it to the server. at the moment it is all done in the server, but there is an overhead in the server, so I was told to try to transfer thi proccess to the client side to see if it helps with the server overhead. (ofc many other things are being done apart from that)
 
 
3 hours later…
Paz
7:43 PM
Ok so I need to create an array with larger length than 2^32 in order to convert it to the 6GB file it represents and download it.

How can I do this? (context: typed arrays larger than 2^32 in length throw RangeError)
 
YAY SO DARK MODE!
 
sweet
im keeping it
how long have we been asking for this?
 
Paz
Let me ask another quesion. Is there an option to create a file out of few arrayBuffers instead of one? (without concating them)
 
years and years
 
wait
aw not for the chat room
 
7:53 PM
I doubt that feature will ever reach chat
until then, user scripts
 
well its still pretty dope
 
Anyone have experience with webrtc? I'm not understanding how clients know whether the server is a TURN server or a STUN server.
 
never used it
are you using rlemon's dark chat?
 
It seems to be very popular. However, i don't use.
 
Paz
I'm just now doing a project using webrtc
that's why I need the file downloading
 
8:08 PM
@Paz Why do you need an array for this?
@Paz Any chance you know how the client knows the difference?
 
Paz
I'm passing a uint8array, which contains my file information
for downloading it I need to concat it and pass it in to a blob, which I can't do if the total length is over 2^32 (which it is for every file over 4.4GB)
 
shouldn't it be a buffer or a stream?
 
Paz
UInt8Array is an instance of ArrayBuffer
it's like
let x = new uint8array(ArrayBuffer)
it works with any file less than that size
@JBis I don't use trickle :\
 
@Paz ?
@Paz my guess is you need to use streams, you can't have something that large stored in memory
 
Paz
You asked about a TURN server and a STUN server, which I know are related to the argument "trickle: true", which I don't use
I may be wrong lol but that was my guess
 
8:15 PM
not sure we are talking about same thing
 
Paz
@JBis I don't know how.. It'd be great if I could dynamically stream file data, but on webrtc I only saw you can stream audio and video, and have a channel for data
 
what do you want to do with the file?
 
Paz
Ok, so let's start off with what I'm doing.
I'm reading a file in chunks (about 1mb each) and sending it to the other peer.
the chunks are represented in uint8arrays.

when the peer has received all the arrays, he concats them in order to send them as an argument to a blob, then downloads the blob
 
theres your problem
You need to start the download as the data comes in
 
Paz
Yeah, I remembered something like that! Do you know how can I do that?
It will also be good memorywise as the peer won't store all the data (gigabytes) in an array
 
Paz
@JBis Does this mean that I do not need to use webrtc and send file fractions?
 
you do use webwrtc but you pipe the data to that thing
 
Paz
So i'm sending fractions, then pipe every fraction?
And, do you have any experience with it? Is it fast?
 
9:05 PM
hey
 
yes
 
I'm starting a side project and thinking an app is the way to go?
With some sort of website you have to pay hosting and may not be as visible
 
publishing an app requires paying the app store
 
So looking at react-native..anyone have any 'for or against' using react native instead of nativescript?
yeah that's true although Google Play is a once off
One pro I see for react native is that it has a lot more stars on Github than nativescript
And the commits are more frequent
 
use nativescript if you don't want to use react
e.g. if you want angular or vue
otherwise use react native
as far as hosting payments, a lot of cloud hosts have a free tier. GCP's free tier is very generous
 
A K
9:17 PM
i'm trying to build an async watterfall logger for my node application
and i'm at a stand still
so i'm using express, when requests come in, i can get the total response time
but i want to capture and record specific performances of functions within the routes
 
9:47 PM
night people o/
 
see ya
 
user12960916
Does anyone use github in here?
 
cya mate
Use github for?
 
user12960916
I have a project open in Android Studio and I want to commit through terminal. I created a new repository which I want to commit to, I followed the steps you get when you make a new repository in the terminal but when I try to commit through there nothing is being committed to the new repository
 
user12960916
Does anyone know what step I could be missing to make sure my project commits to this new repository? I'm literally so confused on why it's not working
 
10:01 PM
You've 'added' the files before commit right? $ git add .
 
user12960916
Also my terminal says bash at the top no idea what that means
 
user12960916
Yes I used git add ., it keeps saying Your branch is up to date with 'origin/master'.
 
user12960916
and nothing to commit, working tree clean. But there nothing in the repository this is my first commit so I don't understand why it says nothing to commit
 
what does git status say
 
user12960916
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
 
10:08 PM
git log ?
 
user12960916
(HEAD -> master, origin/master) and stuff about routing
 
if there are commits in the log then this isn't a brand-new repo
android studio has a very nice git gui, it would probably make this easier for you
 
user12960916
is there a command to change the repository im commit to, to make sure it goes to the new one? i used to commit changed to this project in a old repository which i no longer have
 
your project can only be in one repository, there is no "old" and "new", there is one repo
but there might be multiple remote repositories
which you can see with git remote -v
you should read an intro to git or something
 
user12960916
this isn't the first time ive commit through terminal ive done it before but what im having trouble understanding is if it says
 
user12960916
10:14 PM
origin https://github.com/USERNAME/BookShelfPart2.git (fetch)
origin https://github.com/USERNAME/BookShelfPart2.git (push)
 
user12960916
it has the name of the repository i want to push to, its correct but when i run the commands nothing is being commited
 
nothing is being committed because your working tree is clean
a commit is just a set of file changes
relative to the previous commit
a "clean working tree" means that your files are identical to the previous commit, so there are no file changes to save
to be clear, "pushing" is very different from "committing"
"pushing" is how you send your local commits to a remote repository
 
Paz
@JBis That was very very helpful! thank you very much!!
 
user12960916
got it working now thanks @forresthopkinsa
 
no problem but I still recommend finding an intro to git or something, these concepts are pretty simple but you will have a really really hard time working with them if you don't understand them first
 
 
1 hour later…
11:38 PM
I would like help with a fork that I think merits an improvement
https://github.com/JohnPhillipRobertson/bitcoin-clicker
 
@JohnnyApplesauce 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.
 
Here is the line under scrutiny
else {
      amountDisplay.style.color = "red"
    }
Open "app.js" in the scripts folder and index.html so you can follow along
What I want to do is make the big numbers blink every time
they are clicked but the player doesn't have enough money
Sleep doesn't look right for this?
 
that app is written in jquery
here's a jquery solution: link
 
Ah yes
I want it to blink, but once or twice, then turn its original color
 
I think you can figure it out
 
11:45 PM
(That's parameterizable, right? n times blinking, so I can test how many looks "enough"? And how do I get the original color?)
 
Anyone know if its possible to forward an email using the sendgrid api? They expose a simple send function, but is it possible to add headers to make it look like a forward?
 
Uh...
How do I make only one item of a class blink?
Wait, I'll test first
YES
Okay, how do you make the blinking stop?
 
HAMMERTIME!
 

« first day (3453 days earlier)      last day (1478 days later) »