« first day (2760 days earlier)      last day (2410 days later) » 

user9674579
11:00
@MadaraUchiha I just wanted to make my own "typeof" statement, but as I can't make JS keywords I thought of making a function "Typeof"
user9674579
@DenysSéguret :(
@MasterDarkNight Why?
For what purpose?
yes, why do you want your own typeof
user9674579
@MadaraUchiha Just to test my skills ? No , Just for fun
that's not funny
@IPutuYogaPermana Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
var resultDataNBC = ["Delivery Method", "Atlanta Tape", "DG", "MCDS", "ER", "Local Ingest", "Promo Feed", "HULA", "EZ Spots", "CAD", "CADLT", "Yangaroo"];
                    $.each(resultDataNBC, function (i, item) {
                        $('#ddlDeliveryMethod_add').append($('<option>', {
                            value: resultDataNBC.value,
                            text: resultDataNBC.text
                        }));
                    });
I am getting empty values
why?
user9674579
@CapricaSix I have read this 7 times today
!!tell MasterDarkNight bot
@MasterDarkNight open her profile page
11:01
@MasterDarkNight I'm actually a bot, so don't reply to me.
@Neoares how are you reading that file? And that's not the end of the reading, right?
@AndrasDeak pd.read_csv
user9674579
@Neoares whose ?
@Breathing you probably want item instead of resultDataNBC in the last lines of this code
@MasterDarkNight the Caprica Six' one
11:02
@Neoares There can be a lot of overhead especially for weird types, so the end result shouldn't be that much. Let me guess: you have a lot of strings?
Note that forEach has been in JS from a long time now
user9674579
Hi, I have a JS function which returns the type of the "Input" variable,
It works nice in most cases but in two cases it fails to work properly,

Typeof = function Typeof ( Input ) {
Type = ""
Type = ( Input == undefined ) ? "Undefined" : Type
Type = ( Input === null ) ? "None" : Type
Type = ( ( "" + Input ) [ 0 ] == "[" && !Input.length ) ? "Object" : Type
Type = ( Input === true || Input === false ) ? "Logic" : Type
Type = ( Type == "" ) ? ( ( Input+1 === ( ( Input/2 )*2+1 ) ) ? "Number" : Type ) : Type
uuuuuh
user9674579
any solutions ?
11:03
seriously?
user9674579
@Neoares what's this for ?
@Breathing
$('#ddlDeliveryMethod_add').append(resultDataNBC.map(item=>
	$('<option>', {
	    value: item.value,
	    text: item.text
	})
));
what should I write?
never used .map
@AndrasDeak 5 columns are strings, the rest (7 or 8) are floats and ints
11:04
are those strings all sorts of strings are only a handful of labels?
user9674579
?
they're names, weapon names, and some kind of hash ID
user9674579
@DenysSéguret This is good
does't work
@Breathing well... you should learn the basics of the language
11:05
the ID is quite large, actually
I don't get your point... it's because strings use more memory in python than in hard disk?
I still get empty values
user9674579
@Neoares Is the code in python or JS
Possibly, don't know about that. But parsing strings with pandas definitely needs more overhead. Part of the reason is probably that numpy/pandas objects have fixed-width string fields, so at the very least you need to figure out the longest string in your data to be able to create your final dataframe (or array with numpy)
if there are only a handful of values you can try to use pd.Categorical to cut down on memory, which might affect parsing as well
you mean that all the strings in a column will take the same amount of memory as the longest one?
11:08
yeah, I'll use categorical at least for one of them, since it only has 2 possibilities
don't want to spam here but look at pd.DataFrame({'a':['abc','d','asdfgh']})
but can't use it for usernames
ok
wait, that might even be worse; it says the type is object :) And object is even worse than a fixed string, it's the worst thing to have in an array-like when it comes to memory
dude
stop spamming that question
USM
USM
Guys I am getting this "exception": "org.springframework.http.converter.HttpMessageNotReadableException" The entity name must immediately follow the '&' in the entity reference.]", when i passing "&" in XML attribute to parse into model
thanks
@MasterDarkNight please write an MCVE and post it on StackOverflow.com
user9674579
@BenjaminGruenbaum what is it ?
Oh, a friendly bin. Shouldn't it be called an "friendly inclusive bin" ?
it's been friendly for years
USM
USM
11:11
@XmlAttribute anyone?
user9674579
@AndrasDeak ummm .... ?
it seems that all strings are objects in pandas
@MasterDarkNight Why are you even pinging me? Why would you think I'm talking to you? :D
user9674579
@BenjaminGruenbaum What is it ?
@Neoares yeah, hence trying to fit that into anything else (categorical I guess)
11:12
@MasterDarkNight you are being disruptive in the room right now. Please refer to the rules in order to contribute more constructively.
there are probably tips out there to load large stuff, I know I've seen a few posts like that on main
user9674579
Okay , sorry for that
@Neoares that is same in other languages like java lol
but I'll stop offing here myself :)
@MasterDarkNight I already pointed you to the error. Just redefine it.
11:13
@KarelG I guess? xD
what is java? :P
user9674579
@Neoares name of programming language
so that it detects ['', 'foo'] as array
user9674579
yeah
@Neoares everything is an object in Python
same for ['']
11:14
Numbers are objects, strings are objects, etc
user9674579
no
Which is unlike JavaScript or Java which have primitives
that should not lead to that large data mass
@BenjaminGruenbaum well, type(2) gives me type int
Basically, this is a point where JavaScript and Java are wrong and C# and Python (and Ruby) are correct.
11:14
your code is probably creating too many heap memory
@Neoares which is an object
user9674579
@KarelG telling me ?
= flaky script
that was for Neoares
no, but in pandas numbers are giving me "int64", and strings are giving me "obj"
C++ is interesting since (almost) everything can have either reference or value semantics.
user9674579
11:15
ok
@BenjaminGruenbaum yes but there's a difference between an object-valued numpy array and an int-valued numpy array, in that the latter can reside in a contiguous block of memory
Neoares is just a victim of re-typing :P
same for length-6-unicode-strings as type
@AndrasDeak yeah definitely, you don't want an object valued numpy array almost never :D
I wouldn't contradict a snek when he's talking about python
11:16
I don't think I've ever stored anything other than numbers in an ndarray
@BenjaminGruenbaum and that's what we're talking about: strings in pandas seem to be stored as dtype=object
that ^
hence the categorization conversation, etc
and pd.Categorical would essentially turn it into an enum, which would be A Good Thing
since we're offing anyway: @Neoares take a look at the chunksize kwarg if all else fails to read using multiple blocks
hm.. ok
After copy pasting the rule in meta multiple times, noticed a couple of typos in there. Submitted a pull github.com/JavaScriptRoom/rules/pull/1 let me know..
11:19
@AndrasDeak ah, why are you loading strings into an ndarray in the first place?
I'm not, Neoares is, because pandas dataframes handle those a bit better and they've got strings in their csv so not much chance for anything else
user9674579
what are pandas ?
!!giphy pandas
that's a panda
11:20
They asked for plural though
@Neoares No, that's a pan'dawwww
user9674579
@CapricaSix not good example
@MasterDarkNight pandas.pydata.org
user9674579
@ivarni this is good
@MasterDarkNight she is a bot.
user9674579
11:23
Is @CapricaSix really a "BOT"
we already told him
!!are you a bot?
@Neoares All signs point to yes
lol, they think Caprica is a bot
user9674579
But, still don't get it, "BOT" really ?
bee-oh-tee? Probably not
user9674579
11:25
@AndrasDeak You can also say "be-oh-tea"
just be glad Andras' not a RO here
I am (glad, that is)
user9674579
@Neoares What's RO
room owner
user9674579
Here can anyone help me solve this ?
11:27
so glad
@MasterDarkNight typeof
@Cerbrus he doesnt wanna
user9674579
read it fully till end
that's a torture
I'd rather see twilight 10 times
@KamilSolecki Tbh, I don't care.
user9674579
11:28
@Neoares Why ?
Neoares leaves the chat
user9674579
Master Dark Night leaves the chat
@MasterDarkNight: you'll need to use typeof and instanceof. The code you pasted there is rather... hacky.
user9674579
@Cerbrus Still I want to impliment my own function
Why?
user9674579
11:30
@Cerbrus To test my skills ? No , just for fun ? Yes
@Cerbrus you dont know how to have fun, killjoy!
@MasterDarkNight Okay, say, just for fun, I want to build a skyscraper out of paper. Then the proper answer would be: "That will never work."
user9674579
that will if you try hard
Your approach is a paper sky scraper.
user9674579
no, just a "Typeof" function in JS
11:32
@Cerbrus metaphors are hard
where's the fun on coding an immense if/else block?
@Neil We saw that on meta comments not too long ago
user9674579
@Neoares that's the fun
What are some benefits of dynamic typing in Javascript compared to static typing?
@MasterDarkNight If you want some help, I can provide test cases for you to test
11:34
@Olehi if(myObject) { }
user9674579
@Olehi what are dynamic and staic
advantages of dynamic typing
user9674579
@Cerbrus what's this
@Olehi var value = passedValue || defaultValue;
@MasterDarkNight JavaScript.
user9674579
@KendallFrey how many bots are there ?
@KendallFrey is our second bot
but his AI is even more improved than Caprica's one
it's still experimental, though
user9674579
@Cerbrus what is difference between dynamic and static
@MasterDarkNight That's a question better googled than discussed in a chat room
@Cerbrus I'd argue that's due to type coercion, not dynamic typing
@KendallFrey Hm, you'd be right.
user9674579
11:37
@Cerbrus Okay, thanks, I'll google it
@Cerbrus And that one also works with static typing
(Well that was easy)
@KendallFrey I guess I'm bad at this :D
user9674579
@Cerbrus Why ?
@MasterDarkNight Well, to answer that, can I ask you a personal question?
user9674579
@Cerbrus personal question ? really ?
11:39
@MasterDarkNight Yea, really
user9674579
ok
What year were you born?
this is gonna be fun
user9674579
@Cerbrus why ?
one more why and im kicking you, seriously.
11:40
@MasterDarkNight because my answer depends on your ansxwer to that question
user9674579
ok , sorry
user9674579
@Cerbrus 2002
Dynamic typing is like a car without a seat belt. Advantages: You don't have to waste time clicking the belt every time. Disadvantages: If something goes wrong, it goes really wrong.
@MasterDarkNight Right, as I expected, there's a significant age difference between the two of us.
I notice that results in a communication barrier
user9674579
@KendallFrey interesting , "BOT" is good
user9674579
11:42
@Cerbrus which
... My point exactly
@KamilSolecki Why questions are the most important questions.
@KendallFrey why?
user9674579
@KamilSolecki kick your self out ? just jocking :)
Because understanding the world is better than simply following guidelines in the long run.
user9674579
11:43
@KendallFrey If you'r really a "BOT" then say "HELLO" to all, can you ?
@MasterDarkNight That's not how bots work.
@MasterDarkNight Hi
user9674579
I aksed :"HELLO" not "Hi"
user9674579
@Cerbrus why did he say "Hi" then ?
11:44
So I guess it's not a bot
I'm a pretty anarchistic bot
skynet has become self aware
I have? Oh, snap, so I have.
user9674579
@SurajRao Cool, I didn't get it
11:45
@Cerbrus hip hop is leaking
user9674579
@Cerbrus "LET ME AXE YOU A QUESTION" : "AXE" really ?
@MasterDarkNight They were sending memos to everyone.. you didn't get the one about skynet becoming self-aware?
@MasterDarkNight You started it...
@MasterDarkNight its because this discussion is an edge case.
@KendallFrey 0.999999... === 1 ?
11:47
@Cerbrus I wondered exactly that
that would be conforming
then you aren't anarchistic
@Neoares Was the answer surprising? :P
11:48
You can't break the laws of physics, Kam
He just changed his answer, and is therefore indeterministic.. seems anarchistic enough for me
@KendallFrey sure I, Ken
You can break it kendall. That is why we have imagination
@KamilSolecki ._.
@Cerbrus yes, I was thinking of 2010
@KamilSolecki LOL
Kendall's short name is KEN HAHAHAHA
11:49
@Neoares That'd be impressive, actually
@Neoares the joke is in "sure I can" ...
sure I ken
SORYUKEN!
@KarelG U no can, u human (supposedly)
sure u can sounds more like soryuken, though
actually, I made that joke here many years ago
whatever joke may have been is now guaranteed to be dead
11:50
me human? A man maybe. Not sure about that hu.
@AndrasDeak true that, specially in the first 24h... people don't stop spamming it until it gets starred
and I can't blame them
Right, why are we starting a new sprint? I could swear we've only had 1 week at this one
who reads the whole chat after the first daily login?
*Tumbleweed*
ohhh shit I forgot I lost a week to that one task
man time flies when you make no progress
11:53
@KendallFrey ikr. Shit, it's 17:00 already?!
Also when you're making a lot of progress...
@Cerbrus More like, I forgot about an entire week of work because I didn't get anything done.
@BenjaminGruenbaum This video is great, thank you
I always found "Hadoop" to be a funny name.
not nearly as weird as kubernetes though
@KendallFrey Really? My cousin's named Kubernetes.. I didn't think it was that weird
so, stack overflow for teams is a thing now
half-surprised it doesn't have private chats
@towc apparently they gave up in favor of slack
12:17
I can't imagine too many changes needed to the current chat system to add private chats
You mean the current half-broken and completely orphaned chat system?
a property that doesn't allow the chat to be listed to non-members might just be enough
AndrasDeak no, I mean the chat that I'm using every day to quite meaningfully communicate with the international javascript community
must be a great place :P
wouldn't you want your team chat set up for $$$ to properly render a damn code block without blood sacrifices?
what is love baby dont hurt me dont hurt me no moreee.js
@AndrasDeak just call it "experimental private chat" and list it as a feature
12:20
@hellzone might actually give you up, might actually let you down. Might actually run around and desert you.
If they gave chat for money they'd have to start supporting it
nobody can really complain about it
@Cerbrus you wouldn't
I think the last chat improvement was the "timeout" feature extended to room owners (mods already had it I think). And I think that took a long while to get. And it was a while ago.
It would conceivably be quite easy of them to create a private chatroom for each team
@towc Wanna bet?
12:21
@Cerbrus I'm too fabulous to let you do that
You've got a good point there
You are too fabulous :D
@Frondor sure, you can do run postcss in the browser
btw, I finally got registered this morning
it may need a little playing around
turns out I wasn't even in a grey zone. As a EU citizen, I didn't need a residence permit, and I didn't earn any money 3 months after coming here
12:23
yay you are legal now!
@KamilSolecki this calls for a celebration
where's "here"?
Slovakia
ah, I wasn't sure if their location in the profile was the old or the new one, thanks
on the other hand, after waking up at 6 to get to the place in time and beat the queue, and not being done until about 11, and given that my lunch was gorgonzola with sweet potatoes, with no breakfast, I didn't have the mental capacity to go back to work
well, I got there, and a colleague offered to go for lunch, so I had lunch, tried to work for 10 minutes, but boy did I feel the need to lay down
12:27
gorgonzola with sweet potatoes, wow
No sauage and heavy cream?
wow.. heavy meal, man
it feels so lazy. I know a lot of you wake up earlier than 6am, and might work more than 8hrs/day
actually, who wakes up earlier than 6am here?
I usually end up waking up at 6:30, and not because of any alarms
I go to bed earlier than 6 AM if that counts
it doesn't
:D
I don't offend easily
12:29
@towc wait you just started working and you left at 11
@KamilSolecki I told them I wouldn't be in, in the morning
I got there at 11 didn't even stop at the apt, and everyone was on their lunch break
except one of them, so we ate until 12
and 10 mins after that I left, saying I might be back in 2 hours
also, on my first day at the job, I was about to leave early to meet a friend, and everyone seemed perfectly fine with it
the culture here is that everyone trusts everyone else to work 160hrs/month
how you distribute that is up to you
preferrably done at the office, but they don't mind if you do it at your place
the devs seem like nice guys who find some pleasure in their work (me too), so it seems to work out
I like this aspect of the workplace culture here
we have a google docs spreadsheet, in which everyone puts in when they think they'll be on holiday, or only work half a day, so the other devs know when they are available for asking questions about some code they wrote or similar
also so the people on top can keep tabs on us, but in this case, that's fine. Much better than the alternative of "you need to be at the office every day"
the office has a kitchen and a foosball table in separate rooms. And a 3d printer
I think the term for it is a "scale up". A succesfull startup who is now in the process of scaling up?
The atmosphere at my workplace is fairly relaxed on work hours too. Only two big no-nos, and one is that you can't skip lunch break and two, you can't work overtime without asking permission.
uhm, interesting
I doubt if they care about my well-being, the first is because the government would come down on them if they found out employees entered sooner than the one-hour minimum
The second is because they don't want to ever give overtime
wait, there's a one-hour minimum?
12:38
in Italy there is
I've tried to keep my lunchbreak at 20min, so I can leave slightly sooner
It's mostly just a pain in the ass for me
I'd gladly take a 30 minute lunch break most days
and just leave sooner
if you have
    observe(this.lastStatusesStore.lastStatuses, change => console.log(change));
where last statuses is an observable object
Whoa, where'd that wall of text come from
12:40
and you reassign lastStatuses
to another object
Do you lose the observability? because it's not triggering that observe
is the store some proxy or get/set magic?
oops, I meant it's an array, not an object
still
mayeb I need to use the replace function
user9674579
Yes
@towc would you like if it is the case ?
* like it
@KarelG well, it means more debugging needs to be done, but at least i'd know a probable cause...?
I hate NVIDIA Octopus
@littlepootis I read their main website and I still don't know what the heck it does

« first day (2760 days earlier)      last day (2410 days later) »