« first day (3107 days earlier)      last day (1837 days later) » 
03:00 - 18:0018:00 - 23:00

3:50 AM
@Jhawins Dont know if I can do Rust. Pretty frustrating.
 
4:43 AM
I swear firebase is broken everytime I schedule myself to work on projects that use it:
1
Q: Firebase Cloud Functions not logging, do not seem to be deploying

T_R_U_T_HFirebase Cloud Functions have not been logging since approx. 4pm this afternoon. They also do not seem to be deploying properly, but it's hard to tell with no logs. Missing logs on the website, and also when running the cli with "firebase functions:log" Anybody know what's wrong?

and two google developers just chime in on the guy saying "no it's just you" lmao
not saying OP formatted his question right, but still
 
4:54 AM
oof
 
i want to check/uncheck a input when i click in a div, i tried this code: jsfiddle.net/7p804q1L The problem is that when i click on the input the jquery code that should check/uncheck the input doesnot work anymore when i click in the div. Why?
 
o/
to manipulate properties, use the .prop method
checkbox.prop("checked", !checkbox.prop("checked"))
or
checkbox.prop("checked", (_, v) => !v);
 
5:17 AM
@KevinB thanks!
 
5:57 AM
I loved how jQuery still manages to confuse users with .attr and .prop
 
they should have never separated it
and just did the magic behind the scenes
yeah, it'd be less performant... but it's jquery
 
what is jquery?
sike
 
6:12 AM
What is Javascript ?
 
but seriously jquery is dead
and for an ok reason
baroque
 
6:48 AM
@FlyingGambit What is love?!
 
sorry bosque
brand new language ready set go
 
jQuery isn't dead, it has just extended its hooks into strong plugin capabilities
you wouldn't use it on its own, lets say, but you'd use it for jQuery UI or anything else that helps you bring a webpage up quickly
that said, I wouldn't use jQuery if I had an option
 
Hiya people, I've got a React project where I cannot use the JSX import/export statements, instead I need to use the standarn Node.js versions require()/module.exports and I'm getting an error saying module.exports is immutable. how can I get around this?
 
you perform a deep copy to an object I suppose
you generally don't modify the exports though
 
but that's how you export objects in Node?
how do I interact with this file if I can't see anything it exports?
 
6:57 AM
when you import a module, the exports is what you can see
you just can't modify it
it's not a means to communicate with the module via back and forth message passing
if anything, it provides methods you can call for that
 
Yeah I know you can't modify it once you've set it, but I haven't set it. you see, I need to use a file in a react project as well a node process without React/JSX
the file is exporting a function. module.exports = function proxify(headers)
 
it won't let you assign module.exports?
that's weird
 
oh, maybe you simply need to do module.exports.proxify = function proxify(headers)
 
hm
That seems to have done it
 
7:02 AM
good :)
you'll have to call it differently on the other end of course
 
my mistake, it now gives me an error saying cannot set property proxify of undefined
 
hmm, well something doesn't make sense to me then
how are you supposed to export anything?
you can't assign module.exports or add to it..
 
export function proxify()
I might have to be a bit hacky and use ES6 module imports/exports in Node
 
has that changed in node?
from what I see, you can just do exports.proxify = function proxify(headers)..
but exports is the same thing as module.exports
so nothing would change
 
yeah tried that, same thing
I'll have to use the mjs way
with --experimental-modules
 
7:15 AM
I am using sessionStorage.
when I put that into an if condition it's not skipping the condition when it's false but going into the if block...
the code is as below,
sessionStorage.setItem("edit", false);
var check = sessionStorage.getItem("edit");
if(check){
alert("yes");
} else {
alert("no");
}
so session storage will not support boolean logic?
 
@CommonMan could be that it is converting boolean to a string
 
it only accepts a string as item
 
so you'll need to do check === "true"
 
so yours check is just "false"
 
it's datatype is undefined
omg! sorry
you are correct ... it accepts only string and it's string value
 
7:25 AM
you should be sorry. Punishment is death!
you've broken the ancient programmer's code! Thou shalt not err!
 
@Neil - hope you doing good.
thank you @KarelG
 
superman does good. I'm doing well :)
 
I am not a programmer @Neil. I am a coder.
Programmer - who writes algorithm and low level languages... or any language used to communicate with a computer hardware...

Coder - who uses the algorithm or uses the implemented language using another language on top of it.
 
well hello, mr. fancypants
 
Programmer - chip designer
Coder - web application developer...

If any of you disagree... then please put some points and educate me
 
but still we can call ourselves as a programmer too.
 
Nothing about the definition of programmer mentions chip designer
or chip in general
coder is pretty general as well.. not only for web application developers
I'm pretty sure the term "coder" existed long before the internet
 
thank you Neil... you are walking brain...
 
sure thing
I get rather pedantic when people say incorrect things
you did invite someone to correct you though, to be fair
 
 
2 hours later…
9:34 AM
noooo
 
oooon
 
 
3 hours later…
12:39 PM
https://developers.trello.com/reference#boardsidlabelnamesmembersidmember

what does allowBillableGuest mean
Optional param that allows organization admins to add multi-board guests onto a board.

Translate this for me
 
org admins can send invites or not.
 
whatever il put it to true
 
posted on April 19, 2019 by CommitStrip

 
1:04 PM
lol
 
1:15 PM
Hello any ideas how to replace only a single new line - I tried the following but
.replace(/(?:\n)(!\n)/g, "\"")
 
user10021926
anyone can help with put req in redux? i need to add edit functionality
 
@AnArrayOfFunctions Have you tried .replace("\n", "\"")?
 
Yeah but it didn't work frankly IRC
 
Well then I think I'll need more information to be able to help
 
I want to replace all ocurences but only when there is a single new line
Not many
 
1:17 PM
oh
so a\n\nb remains a\n\nb?
 
But also when there are many the first occurence
 
so a\n\nb becomes a"\nb?
 
Is this a regex - \a"\nb\?
 
1:19 PM
no just the string
Is that what you want?
 
What's a?
 
the first letter of the alphabet
If I give you the string a\n\nb, what should the result be?
 
totally confused
 
the letter a with two newlines and then the letter b
 
I know that but how can it help me though
 
1:21 PM
It can help me understand what you want
What do you want to turn that into?
 
replace only the first occurrence in multiple matches of a new line
 
so a"\nb, yes?
 
user10021926
Can anyone help with Redux?
 
or as a literal, "a\"\nb"
 
I think I got it
Nvm thank you
Ok another question this time a bit more bragy - how to extract only strings enclosed in quotation marks - maybe string.filter
 
1:45 PM
OK how to match a string containing white spaces until the quotation mark?
 
While writing some of the stuff I automatically came to the solution
But thanks anyway
I'm using the console on chrome btw to test my strings
 
hey
iv got a question
I have a for loop

for (var i = 0;  i < data.length; i ++)  {
    if(id !== 5) {
    return
}
   some code
}
the return inside of If statement, would it break for loop, or would loop c ontinue with next number
and eventually run some code
 
no, return means you'd exit the method
 
what does return do? damnit Neil, first ask rhetoric questions
 
2:00 PM
i just want to skip to next number
 
continue would jump to the next iteration in the loop
 
right
yeah il just do continue and then else {
 
on a side note... ah, the complex for loops
such nostalgia
 
but you wouldn't skip everything which doesn't have id 5
you'd search for item with id 5, then do something with it outside of the loop
 
@TheGarrus why not flip the if condition?
 
2:01 PM
if anything
 
if (id === 5) {
    ...
}
 
if (id == 5) break;
 
hmm... im not sure if i and id should have been the same variables
 
I don't think so
but my guess is data contains a list of database entities
 
nah my code is a lot different
im just retarded
i forgot about continue
 
2:03 PM
my guess is... wait, iDunno
 
<---
look at my face
Im a mongoloid
 
look at mine
I dont recognize the difference between mongoloid hoomans and non-mongoloid hoomans
 
well now u shood
 
their meat tastes the same anyway
zebra still tastes better
¯\_(ツ)_/¯
 
its just thta i have 2 for loops
its another for loop inside the one i showed
 
2:07 PM
I have 0 for loops
 
so if i put continue
it will skip both of them right
 
it will skip only the deepest one
 
because its inside of their scope
OKAY
THATS GOOD
 
the first parent context that accepts a continue
to be more exact
 
for ( first)

for (second)

if (ass)
continue
should it skip the second
 
2:08 PM
but you might find it easier to use a filter of your source rather than an if-else-continue in the body of a for
 
or the first
i gues il gamble
50/50
 
usually works for me
 
for real tho
let me know
yea its second
 
id still use a filter
but Id also use an interface :D
and a different language
and... everything must be written by me
and... a lot more stuff
 
no i cant use a filter on this one
 
2:12 PM
looks very filtery to me
 
yea it looks but i haven't posted the full code
theres a lot more to it
 
if there is a lot more to it, you should remove a lot from it
 
multiple passes is definitely better than nested loops
 
in würst case scenario, you would use a partition
 
but a single loop is better than multiple passes
 
2:13 PM
passes?
 
multiple conditions?
wat
 
@Neil you wont be iterating over the source multiple times tho
if that is what you meant
 
wat?
multiple passes = multiple loops in sequence
 
no no no
a filter on the source
like... list.filter(it -> it.isSomethingIWant())
no multiple loops
 
ye
I SEE
 
2:17 PM
I don't know what you're talking about. I was being generic
 
I Wietlol
 
Why is

.replace(/\n.*\"/, "\"")

not replacing a new line followed by n amount of characters followed by quotation mark?
 
oops, misread
 
because \" is not a quotation mark?
 
you sure it's a newline there and not a <br /> or something?
or you sure it's not \r\n?
 
2:24 PM
is it possible to have a single get function for all properties?
 
Yes - use proxies
 
Hm okay
 
@Neil here is the pastebin.com/raw/bFGz5kaF
It's bunch of servers
 
@AnArrayOfFunctions not to state the obvious, but where's the quotation mark here?
 
Oops I apply another regex to the string
Here is the final form: pastebin.com/raw/qm7C9cQh
I want to get rid of the initial text so I can copy the quoted servers into my code
 
wietlol

if (Id !== data.data[i].memberships[x].idMember) {
Add to Trello


Right now i do this basically.
how would you filter it out, so if user id is currently not in data.memberships, he gets invited.
 
please note the g and m flags
 
I think filtering it out would be better.
 
you first need to convert to a foreach
so no index based stuff
 
@Neil Have you tried the same thing in console - this is where I'm trying it out is not working
You would need the new literals with `` to copy the string and then .replace
 
2:36 PM
in the end, you would get something like `source.flatMap(it -> it.memberships).filter(it -> it.idMember === Id).forEach(addToTrello)
 
@AnArrayOfFunctions I've got the proxy with a get trap. but the operation is asynchronous, is there a way to await a property?
 
Why it has to be asynchronous
I've only heard of this and recently I've been planning to implement it so don't count on my knowledge
 
2:52 PM
no worries. I'm actually building an stdio wrapper. so retrieving properties has to wait for it to be returned. that's where I resolve the promise
 
3:04 PM
my get trap doesn't allow me to access the original property.
what the fuck???
 
IT'S A TRAP!
 
forEach(board in data.data) {
        board.flatMap(it => it.memberships).filter(it => it.idMember !== appId).forEach(addToTrello);
      }
i think this is wrong
i think it should be something else but board.flatMap
 
try data.data.flatMap()
 
data.data is basically a json containing different board objects
and each board has an array called memberships
 
flatMap basically says "give me all your boards, I will give you one list of all their memberships combined"
 
3:11 PM
in which i need to check if My id is part of that array
i see
 
then you have one big list of memberships
you want to filter the ones with the correct id
then you have a filtered collection of memberships
for those, you want to do something with trello
 
if the id passed is not contained in that particular board, he should get invited
thats why i put !==appId
appId being the id passed
 
anyway, im off
 
ye
ty tho
i think i get it
take care
 
ohhi
 
user8729657
3:29 PM
Dudes, I don't get it what browser does instagram use?
 
wat
 
...
do you mean what browser does it let make posts?
 
user8729657
Like when I click on a link in instagram
 
user8729657
in someones bio
 
instagram is meant to be used on mobile. It's functionality on desktop browsers is limited
 
user8729657
3:31 PM
Yea, but is the browser like internet explorer or something
 
you're not making any sense
 
user8729657
My website looks fine on chrome but when I open it up through instagram it looks weird
 
it's whatever browser you are using
 
user8729657
ok
 
On an iphone for example, if discord opens a url, it's in safari
 
user8729657
3:34 PM
Ok, thanks @KevinB for clearing that up
 
user1596138
@Allenph Either play modded or play in a group. It is the only way unless you have 8 hours a day to spare
 
user1596138
 
user1596138
This design.....
 
user1596138
Fugly
 
meh
i've seen worse
 
3:50 PM
doing stuff with flatmap gives me the same result
i need something like this
for(var i = 0; i < data.length; i++) {
	for(var x = 0; x < data[i].memberships.length; x++) {
  	if(appId == data[i].memberships[x].idMember){
    	forEach(i in data[i].memberships[x].idMember) {
      	continue;
      }
    } else {
    	console.log("add to trello");
    }
  }
}
obviously this forEach inside of If wont work
but if appId = matches someone, i need basically first for loop to continue to next one and not X one
 
4:11 PM
i guess i can i++ but
its fucked
 
user1596138
That's a lot of looping.
 
Is anyone familiar with tippy.js?
 
is that like clippy?
 
Not nearly as nostalgic
 
4:29 PM
Tried this now
    function isNotAppId(current) {
    	return current !== appId;
    }

    for(var i = 0; i < data.length; i++) {
      	if(data[i].memberships.every(isNotAppId)){
        	console.log("add to trello");
        } else {
        	i++;
        }
    }



STILL doesnt work
 
user1596138
What are you trying to do? In english
 
user1596138
Looks too simple
 
Its not
 
user1596138
I mean... The code you posted is absolutely mundane lol
 
If memberships array doesn't contain appId, it should add that appId to trello.
 
user1596138
4:33 PM
I just want to help
 
else just skip to next object and search its memberships
hence i++
 
user1596138
You'd be incrementing i twice.
 
user1596138
i++ happens no matter what.
 
oh now i can do continue i guess
or no
 
user1596138
Just do nothing
 
4:34 PM
ye
alrite
 
user1596138
Remove the else entirely
 
yes i did
im still getting the thing
u can check
if u want
it consoe logs add to trello 3 times no matter what
 
user1596138
Lol
 
user1596138
data[i].memberships.every(isNotAppId) can't work
 
user1596138
memberships isn't an array of strings.
 
user1596138
4:37 PM
It's an array of objects with idMember properties
 
user1596138
    function isNotAppId(({idMember})) {
    	return idMember!== appId;
    }
 
user1596138
You want to compare the idMember value, not the object itself
 
right
 
user1596138
You follow?
 
user1596138
You're comparing the wrong thing.
 
4:38 PM
yes i can see,
i need to get the value
 
user1596138
I just gave you the answer
 
can u change the jsfiddle
and send me the link
k i got it
I didnt think this would work
but i can access the .idMember in function aswell
but yeah it makes sense it got passed as ref
ty man
Works perfectly now
 
user1596138
4:53 PM
Nice
 
5:17 PM
Just wasted 10min on this
 
user1596138
LOL
 
whole 10 mins damn
i never waste that much time on code
How to determine when board on trello changes name?
https://developers.trello.com/reference#actions

There is no action for it.
 
user1596138
8 mins ago, by The Garrus
i never waste that much time on code
 
user1596138
You literally just spent an hour comparing strings in a loop
 
user1596138
lmao
 
user1596138
5:31 PM
I think this is a !!whoosh on my end
 
user1596138
Who is going to run the bot? Come on @Owners
 
5:44 PM
LOL
 
03:00 - 18:0018:00 - 23:00

« first day (3107 days earlier)      last day (1837 days later) »