« first day (3110 days earlier)      last day (1842 days later) » 

user8729657
12:18 AM
@Aj96, I started writing real applications after 1 or two months
 
user8729657
it really depends on what you want to do
 
Hi, is that a good place to ask a little question ? :)
 
sure
 
I'm wondering if anything exists in Js to make real-time comparisons. For example, checking in real time what time is it, and when the time is in accordance with the comparison : make an action.
 
so just a proposition based on time?
yeah, definitely easy, just look up basic JS control structures
 
12:28 AM
Thank you.I have to say than i don't want to refresh page
*this is why i saw "real-time". Always easy ?
 
maybe an interval?
 
I need to try that but there are a lot of animations inside my conditions, then everything loops with intervals.
 
 
2 hours later…
user8729657
2:12 AM
@DavidKamer, everytime I tell my dad I want to work in the warehouse he tells me to stfu and go sit on the computer Jesus lol
 
3:32 AM
morn!
 
Can someone please look at this code and tell me why the texture isn't rendering/loading (webgl)?
Also, the code is in the folder "client".
 
@OvieAdese heh, that's the best type of problem to have.
 
user8729657
3:54 AM
No brainer computers all the way
 
hi everyone
i want to ask a question about best practice in one of my js code
so i just started working with IndexedDB lately and i want to store fetched data from multiple urls into different tables in the IndexedDB. I've been able to do that by using multiple if conditions for each url but is there any other best way to implement this without using multiple ifs. I tried switch case didn't work. Here is my code: codepen.io/easy-pbnl/pen/qwyBza?editors=0010#0
 
4:47 AM
@IsraelObanijesu What I would do is I would prep an object with keys being the url and values being the function
urlObject[event.request.url]()
 
@iAmRoot Please can you modify my code to demonstrate your explanation. I can't fathom how your solution eliminates multiple ifs.
 
Shall sensitive informations (like passwords, credit cards) still need to encrypted in API level when SSL TLS1.2 is used over in transport level?
 
const urlMethods = {
posts: function(event) {
event.respondWith(
fetch(event.request)
.then(res => {
})
);
},
tweet: function(event) {

}
}
assume this is your objects that contains all the functions to execute for various url
Now what you need to do is you need to split the url by a '/' and simply pass that value to the obj. Meaning: lets say the url is : "/posts".
After splitting = you will get two elements in an array: let splitValues = ['/', 'posts']
now do this urlMethods[splitValues[1]]()
@nyconing I am not clear with the question but if youre asking do you need to store password anywhere in your application code then the answer is NO. It should be stored in environment variables
 
5:09 AM
@iAmRoot ok, i get it now but in the url split, it doesn't return two values and i don't want to statically determine how many values the url split will return. I just want to know if the url contains "/posts" or not.
Is there a way to address that?
 
I dont know how your url looks like, so you gotta figure that our
*out
 
ok, thanks for the help anyway.
 
6:13 AM
Youre welcome
 
 
1 hour later…
7:29 AM
If there is people familiar with TypeOrm and GraphQL Resolver I'll gladly have some help on this one :
0
Q: Cant manage to get relation query from TypeORM in resolver

BaldrániSo I'm trying to retrieve elements out of a join relation in an Apolo resolver. I've got a User table, a Notification table. And a Relation table named: notification_recipients_user defined by a ManyToMany relation on bot entity but hosted on Notification : //entity/Notification.ts @ManyToMa...

 
 
3 hours later…
10:30 AM
How can i do setTimeout in nodejs in order to change variable after few hours
right now if i do set time out and change var, page just keeps loading, until set time out is done then route finishes request
 
for (let left = count, i = 0; i < count; i += 1) {
do you know why if I decrese the variable left
withing the loop
it doesn't get carried to next iteration
by doint
left = left - 1;
it gets decrsed by one and then it gets back to the initial value
count = files.length
only if I define left outside the loop works
 
@Aurelius Each iteration gets its own version of left.
And it gets assigned to count in each iteration.
 
11:22 AM
@TheGarrus move your route function out of settimeout function
 
 
3 hours later…
2:14 PM
Someone please help me, I’m doing something wrong with texturing in we go but I don’t know what it is. My code is here, in the folder “client”.
 
 
1 hour later…
3:20 PM
Took a week vacation last week
Went to NYC, had a great time
Back to work
 
 
2 hours later…
5:29 PM
 
@Feeds I like it
 
user8729657
6:07 PM
 
Trying to figure out why correct answer here stackoverflow.com/questions/34322418/… is stripping out anchor tags and its content. Created a pen codepen.io/SuperFuentes/pen/bJRXYQ. Any thoughts would be much appreciated.
 
var parent = txt.parentNode; // Save parent before replacing child
// Replace contents of parent with text before first number
parent.textContent = numbers[0];
parent.textContent = numbers[0]
parent is the paragraph tag
so.. even if this isn't the place where the link is removed.. it will remove the link aspect of it
 
To avoid removing the links, it needs to dig deeper
act on the text nodes themselves
 
@rlemon
@KevinB thank you both
 
There might be some logic in here you can steal: jsfiddle.net/8aphngv5
or... just use as-is with your own regexp
 
7:10 PM
@OvieAdese excellent
 
 
2 hours later…
9:17 PM
@forresthopkinsa are you still around?
 
 
2 hours later…
11:01 PM
@DavidKamer yes
lol
 

« first day (3110 days earlier)      last day (1842 days later) »