« first day (2445 days earlier)      last day (2726 days later) » 

22:00
and I'm still doing research on what to do about receiving money
maybe try a freelance facebook group, subreddit, forum
there's an overbias of assumed XY in almost every answer to what I ask
I'm just steaming off at this point, sorry @Loktar
meh no need to apologize
what I'm writing will achieve very little in terms of what people will think or say
I came off harsh too but I'm not too invested in the whole thing just looking at it from the outside.
22:02
a few people were really amazing and gave very good advice
haha that goes back to my point about real friends and meaningful relationships :p
I'm mostly very sorry for sterling
he was being awesome to me, then it all degenerated
@Loktar I'm fucked up in my own little way. I do mean it when I say people here are more real than the ones I meet
these connections mean a lot more to me than hugging a friend
and in a way it's important people don't know that
or they'll be less real
but in this case I guess it helps explain why you might think of me as irrational right now
I'm really snapping
hopefully see you tomorrow
see ya man, good luck
Still. It's stupid. Just get a bank account. Problem solved.
user1596138
user1596138
22:09
@SterlingArcher @rlemon @everyone hahahah
@Jhoverit SterlingArcher is afk: good luck chat
user1596138
Looks like he didn't have the arm strength to bounce off the poles at the other side lmao gravity wins
hahah
anyone know if this question is acceptable for webapps?
I assume so.
@towc blaming me for your nonsense derailing is you deferring responsibility. If you want to be successful, you need to take responsibility
22:17
@towc Sure, me too. That's because the people I meet here care about the same things that I care about. The people I meet IRL are people that live near me, which I couldn't give a toss about.
@Jhoverit SterlingArcher is afk: good luck chat
Cap pls
@towc I'm not mad at you, I just saw the topic going nowhere so I left
:goldfish drop:
2
user7627726
@KamilSolecki no. don't ask
user7627726
22:27
@SterlingArcher You're a good person.
Am I a good person? The answer is yes
user7627726
@Jhoverit we've all had moments like these...
i'm having an object A ={a:1,b:2,c:3}that i can see in the console. When I try to do console.log(A.a) or console.log(A.b) it is telling me cannot read property a of undefined
what is going on?
user7627726
idk
console wizardry
user7627726
22:28
@ndugger no
you're being bitten by an asynchronous logic bug
user7627726
@JoeSaad a lot of things
error and the whole thing breaks
@Tommy pft, you're wrong, bucko
user7627726
@JoeSaad You were run over by a bus.
22:29
what am i doing wrong.. i can see object A coming the console right, but accessing any of its properties is throwing that error
@JoeSaad My guess is you're logging the object before creating it, or something to do with the fact that the console shows the object as it is, not as it was at the time of logging
ha ha ha.. i guess so
user7627726
gtg bye!
When you console.log a whole object, and then click on that object to expand it in the console, the values aren't inspected until after that click happens.
it's likely something is changing the object between the log and you clicking.
😃   that's where you're wrong, bucko
 👉
  👉
22:29
oh
Try logging JSON.stringify(A)
ok, i'll try that
it's coming out right
i can see the entire object
in a string format
Then my guess is my guess was wrong
My new guess is you're doing something that you didn't tell us about
22:33
show us some code
$($)
ok, i rewrote the whole object again and it seems working now
but i have no idea why it didn't work before
end of the day confusion :-/
i'm sorry
I forgive you
nope, it's doing this everytime i'm trying to access any property.. cannot read property of undefined
are Sets faster than Maps?
@Arrow they're completely different data structures for different purposes...
22:45
but are they faster
nice I wanted to structure some data didn't know if should use Sets or a Map
Apples vs oranges
are apples faster than oranges?
Well Sets are like 1:{} and Maps are like [1,[]]
i see in the console an array.. i try to do console.log(myArr[0].a), i get this Uncaught TypeError: Cannot read property '0' of undefined
22:48
then myArr is not defined.
Node is running on 80 but not 443 :|
y tho
show me the code where you listen on a port
app.listen(PORT, function() {
        console.log('chart-tms-server running on port:' + PORT);
});
PORT = 443
@Arrow that's not an accurate representation. Maps can have anything as their keys. You'd have to set it to 1 manually
and is pm2 in cluster mode?
22:52
I'm not even using pm2 now
that was just sudo node main.js
then.. that doesn't add up. hm..
it appears [object] in the console
RIGHT?
It's driving me nuts
the security groups in AWS are verified
> AARR! It's drivin' me nuts!
shit I even opened up every port
22:53
@ndugger how about if I put the question this way. considering all things being equal which data structure would be preferred for a tree like structure?
not to beat a dead horse, but the needing to run node as root is one reason to have something like nginx in the middle.
are you sure it's just not connecting?
Mornin'
g'day m8
@Arrow Things aren't equal. you either need a flat head or phillips screwdriver
22:54
I think chrome doesn't connect to non-https on 443 anymore by default
@Luggage I know, still not my call :(
Shit be cold down here
@towc it is https though
run a netstat or nmap and see if 443 is even responding to anything
oh
!!weather melbourne
22:55
@rlemon [object Event]
IKR, object and Event!
There is an event in Melbourne
ouch
is it winter there or something?
22:55
makes sense
1
/ \
2 3
/ / \
4 6 5
/
7
expanding it i can see the list of array elements but when i try to write console.log(myArr[0]) , it says Cannot read property '0' of undefined
show me.
it might work better then repeating yourself
> something[0]
cannot read property 0 of undefined
something is not defined
We told him that.
22:57
try just logging myArr
Wait.. do I need to use the TLS module in my node program?
@SterlingArcher unless something already does that for you. It would make sense
https runs on top of tls
@towc tried and it shows an array
it looks good
just accessing any element inside or any property, it gets messy
can you print what exactly it shows?
also, try using the JSON.stringify version again
23:00
@JoeSaad Show us.
stop just saying "it shows an array" when you obviously can't understand out response.
take a screenshot of the console if you have to.
ok
const {form_meta_data} = this.props;
    const formFields = form_meta_data.formDictionaries;

    console.log('=========')
    console.dir(formFields[0])
    console.log('=========')
and which line "shows the array on the console"?
discard my prev message.. i'll show it now
console.log('====Array=====')
    console.dir(formFields)
    console.log('=========')
that's the input. What's the output?
the contents of the console
    console.log('=====First Element====')
console.dir(formFields[0])
console.log('=========')
23:05
now, open it up
does it show 0: something?
if console.dir(formFields[0]) is the line that gives "can not read property 0 of undefined" then something doesn't add up.
note that a length of 1 doesn't necessarily mean 0 is filled, I think
yes it does show the first element
!!> var arr = []; arr[1] = '2'; arr.length
23:07
@towc 2
but when i try to access that element directly as formFields[0], i get the above error
and even the array gets messed up
i bet it's in a different function
ok, what exactly does it show?
string please
or a different function, yeah
if i put the two consoles together, here's what i get..
change the code to:
23:07
console.log('====Array=====')
console.dir(formFields)
console.log('=========')

console.log('=====First Element====')
console.dir(formFields[0])
console.log('=========')
console.log('=====First Element====');
debugger;
console.dir(formFields[0])
console.log('=========')
then once the debugger kicks in, type formFields and see what happens
if it's ok, put the debugger after the console.log and see if it ever kicks in
There you go. it's undefined, like we've been telling you
23:10
yes it gets undefined when i write the two consoles.. but
if i try to log the array alone, it comes fine.
if i try to access first element, it renders undefined for the array.
FUCKING. GOT. IT.
i believed you but just couldn't find a reasoning
That makes no sense that accessing [0] goes back in time and makes the array undefined
you are obviously doing this in two places
we're going to need screens of that
@Luggage so the guy who said 443 was working didn't even write express over https.. so it wasn't even reading the certs...
23:12
two places? it's all in only one file
two functions, then
@SterlingArcher not sure how that explains the wrong port, but ok. glad you found it
only one function
@Luggage well, it was the right port.
It just couldn't supply as HTTPS because there was no TLS layer (certs) to authenticate
23:14
i see.
I'm going to be having a word with my contractor tomorrow.. -_-
Get a cert then
rendering issue?
something is going back in time?
JoeSaad there is no way that adding console.dir(formFields[0]) made it undefined. you are not showing us your real complete code
@ndugger we supplied the certs
I just.. read them in..
23:15
@JoeSaad the only way for that to happen is if you had weird getters that intentionally threw errors. The chances that your code is that weird are very very low
can you show us the whole code
i just commented first element and it's back showing the array
or bring the code to the minimum case in which you still get an error
first 'element'?
yeah i mean this:
console.log('=====First Element====')
console.dir(formFields[0])
console.log('=========')
just commenting this shows the previous console fine
which is the array
the only problem is trying to access an element, it gets the whole array undefined
that makes no sense unless form_meta_data.formDictionaries has some fucked p code
even then..
formFields[0]; // it is IMPOSSIBLE for this to unset formFields by itself
23:19
is this relevant to redux by any chance? the myArr[0] gets accessed before the myArr ?
is myArr related to formFields?
sorry i meant formFields
i don't know redux, but I am pretty sure it doesn't change the behavior of arrays and JS
yeah, it makes no sense.. the array shows in the console but getting any of its items messes things up
not possible.
either show me your code or I can't help.
23:21
ok sure
-2
Q: How and where is synchronized keyword used?

Hari LallaaanWhat is the keyword "synchronized"? How does it work? Where do we use it? Can someone provide me some instances of use of this keyword with code?

oof
@SterlingArcher ohh, javascript AND java :)
java(script)
!!> arr = []; arr.__defineGetter__( 0, () => { arr = undefined; throw new Error }); console.log( arr[0] ); // and arr is also undefined now
@towc "Error"
@Luggage ^
it is possible it could be custom errors. Still, very very very very unlikely
but it is possible
23:23
yea...
only with a closure is it possible
since the code I saw has formFields as a standalone varible..
Gosh, HTTPS is SO MUCH EASIER in nodejs than meteor.
Maybe.. 5 extra lines of code in node.. meteor required an entire build process created around it
Like 100 extra lines of code
am I a dick if I point out that's it's also slightly easier in sails?
@monners where is that?
23:26
Do you think that's helpful?
SC, USA
@William Where is what?
the flooding video?
it could be
Ah, just around the corner from where I work, in South Melbourne
(Australia)
23:27
@Luggage are you asking me?
I can't see the definition for form_meta_data but your code still have no possible JS way to unset your local const formFields from accessing formFields[0].
not possible. you must have changed something else.
ill be honest sails doesn't look all that different than what I wrote
It's just an ssl config object
i haven't changed anything here.. i can see the array if i consoled it alone but if i try to access the first, it breaks.. what might i have changed..
23:30
step through it.
use the debugger
@SterlingArcher oh, you actually went ahead and checked it out. Thanks <3
oh
it goes through this function twice
Well yeah, do you disagree with something without researching it? ;)
@Luggage that should be it
@Luggage @towc looks like this is relevant.. i'm reading through this stackoverflow.com/questions/34347481/…
@SterlingArcher yeah
23:46
No religious affiliation now majority group in Australia
@monners \o/
ヽ(´ー`)ノ
i really wish they'll just get the same sex marriage passed
Heh, me too
same sex marriage isn't a thing in australia?
23:48
then the nation's attention can be focused on more interesting thigns
Been with my partner for 11 years. Still can't get married
i think its a de facto relationship so it gets all of the legal protections?
but its not official official
@derp No, and it's a source of embarrassment for a lot of us
Yeah, de facto. Same legal standing, just no title
@KendallFrey it was only a thing in the US recently. Not sure about Canadistan
23:50
I'm pretty sure it has been for a while
That wasn't supposed to be a reply to you, derp.
yup
for 12 years
Canadistan. I like it.
@monners Canuckistan
23:51
Cantucky
Maplesyrupsilvania
51st state of america
(don't ban me)
god i hope not
I thought that was Mexico?
puerto rico first
23:52
I'd rather not get dragged down with them
Do Puerto Rico even want to be a state?
@monners They're everything but
they voted for it recently, but it's non-binding
Something about cultural heritage?
A referendum on the political status of Puerto Rico was held in Puerto Rico on June 11, 2017. The referendum had three options: becoming a state of the United States, independence/free association, or maintaining the current territorial status. Those who voted overwhelmingly chose statehood by 97%; turnout, however, was 23%, a historically low figure. This figure is attributed to a boycott led by the pro-status quo PPD party. Four previous referendums have been held on the island to decide on its political status, the most recent in 2012. Puerto Rico has been an unincorporated territory of the...
23:53
oh, just two weeks ago
they voted for it 97% but congress is anti immigrant
hmm only a fifth of the population voted
well closer to a quarter
voter turnout keeps going down
@Luggage But, they wouldn't be immigrants if they were already in the country
@KendallFrey that's the joke
23:54
maybe they don't care?
Isn't that how the Christians justified the Crusades?
tbh I'd be mostly interested in how badly it fucks up the flag layout
like life wouldn't change significantly one way or the other
They are US citizens already, but get no (real) representation in government
Oh yeah I guess that makes sense
23:55
@derp when your vote doesn't actually change anything turnout always goes down
They also get no representation in geography class
other territories like american samoa have it worse.
they aren't even full citizens, even though we get a lot of soldiers from there
Am I the only one who knows exactly where this is going?
DUDE
O.O
too dark?
23:57
:37827820 ( ͡° ͜ʖ ͡°)
3 mins ago, by Luggage
@KendallFrey that's the joke

« first day (2445 days earlier)      last day (2726 days later) »