« first day (3035 days earlier)      last day (2138 days later) » 
01:00 - 21:0021:00 - 00:00

01:20
Yo, I don't understand how to do typescript when I'm working with values of objects... all I want is an array that will contain Numbers, so I try {thing: number[] = []}, that doesn't work, nor does {thing: number[]}, {thing: Array<number> = []}, {thing: Array<number>} or any other wonky configuration I can come up with. I can't find anything on "how to use typescript when working with object values" either...
Man, only thing that's worked is just initializing the array. That's obnoxious. {thing: [1,1,1]} worked. Ugh.
@CalebJay Idk about typescript, but in flow you'd write const a: { foo: Array<number> } = [1] or function(a: { foo: Array<number> })
Make sure you're not accidentally destructuring
@CalebJay { thing: [] }: { thing: number[] } or something like that, I think
01:53
Hi guys, anyone worked with angular?
@KaanTahaKöken 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.
02:05
Let me ask if it is not forbidden. Here comes. I have scenario in my mind. There are two users and they search different two things using the auto complete search box. For example person 1: searched Persian person 2: searched USA. When the right words appear on the search box, they are clicking it. When the clicking event happened both user will redirect to the /search path and the page will fill info about their search
I was wondering when they made the search at the same time, would both users see different page according to their search or the same page ?
i have an app that has inputs with autocomplete. the user can create additional inputs with autocomplete. the items that populate the autocomplete are dynamic. how would you handle this in react?

i'm thinking i need to store an ID for each created input and store the items for each one.
I do not the react, but in angular, when I am storing inputs, I store with user's id. Therefore, I can bring back the saved inputs
 
3 hours later…
user6216537
05:22
Hi, anyone know react native?
Just a simple but wired problem here, this function works here and debug mode but not in release mode. Check the console for the results,
https://stackblitz.com/edit/get-selected-dates-for-the-range
:(
05:46
hi
06:29
Hello
o hai
hey
@KarelG is fish from Germany safe?
How can I know that o.o"
I'm migrating project from Bootstap 3.3.2 to 3.3.7
06:36
someone told me the Baltic sea was polluted
@ri
@Rick so any filter applied ?
@Rick it is hard to find a "clean" sea nowadays. But the pollution level should be lower than on some spots in another oceans.
I bought some canned haring from germany was wondering if I should throw it out.
that would not be produced and exported if it does not comply with the EU food protection laws. And we have one of the most strict ones.
The Baltic Sea is almost totally surrounded by land and therefore more endangered by pollution than other marine areas. The sources of marine pollution are municipal and industrial waste inputs directly into the sea or via rivers, and atmospheric inputs mainly from traffic and agriculture.
06:40
yet don't forget to check the "best before x" (or something like "until x) date.
ya the cans say fished in the Baltic Sea.
fish has to come from somewhere. Some fish (like pangasius) are bred in big aquariums btw.
I have to say, that canned fish I got from Spain seemed like way better quality.
the food protection in USA is a joke from EU's perspective
true
06:46
what is the product you have bought?
(btw, I still find it odd to order food online and ship it across the ocean ... )
polar kipper snack you can order them off amazon. I feel its healthier than nuts
from amazon? lol
right they were going to start with groceries stores.
also nice to have around instead of building a sandwich from scratch
but their flavor reminds me of bar food
I don't know that product. so
you guys have a different taste palette than we have. When I have been in your country, I found the fruits there (apples / oranges) not tasteful
come on. your telling you can taste the growth hormone
most fruits in Europe come from South America.
We are not known for our cuisine. we eat to live. We don't live to eat.
Look at the trash our leader eats. Wienerschnitzel, Wendy's, Burger King, Taco Bell. I don't think he even knows what a vegetable is.
07:07
ya know, such kind of food is more present at low social class
people around/above average income have more attention to healthy food.
that makes it hard for the government to battle the overweight issue because fast food is cheaper than a healthy food with vegetables.
I am sure the poor of Europe do not eat such foods
"more taxes" simply does not work because it has more impact to that group. However there is a plan from my regional government to subsidize meals on schools so that poor children have access to a good and balanced diet.
yet the battle is not done. There are plans to remove all soft drink automats
*from schools
I am conflicted about Europe. sometimes I hear really good things and other times really bad things. You have a lot of rules. But I hear that Rome streets are full of trash. Maybe Northern Europe and Southern Europe are not really the same.
The Northwest seems to be really advanced and the further south and east less so.
@Rick replace Europe there with America, and you'll see how silly that statement seems
that's way too much generalization
@Rick there is good and bad things with EU. You have to see the whole picture. Sure, there are problems, but does USA does not have problems as well?
look at Chicago.
07:19
I might be generalizing, but our most industrious zones are in the southwest and the northeast.
I read that bus drivers in Chicago are paid roughly the same amount as surgeons
that is because of the access to the resources nearby
you have some centralized industry hotspots here as well.
This is because union laws guarantee pay increase when working on the weekend and again during night shifts, and then they're left to decide when they want their shift to be.. guess what.. it'll be on the weekends during night shifts primarily :P
southwest makes sense, cheap labor Mexico, and cheap tech China. North East because that is where the Bureaucracy was founded.
Industrial regions in Europe are Germany (engineering North), France (political West), and previously Britton (management/finance North West)
wth github
I selected a part of a clickable link instead of clicking on it because I was going to test that path on a different domain. When pasting that, I got [full url](full url) in the address bar.
that is a no-no
07:35
just click on it and then copy the link you get :P
I agree that shouldn't happen, but meh
it might happen if someone was masking their chars
look at the text copy paste it into a text file.
they are also copying over the syntax stuff
see if there are any weird escaped characters the browser might interpret differently
if there are escaped characters, I roll it through decodeuricomponent in console to read it :P
some of those quotation sites will change out the text you copy from their site
that irritates me so much
07:49
eh fanatical is running a hourly super deals sale. The game "middle earth: shadow of mordor" GOTY game has 2.99 as price. That is darn cheap
you can do a lot in things in that game
are you going to invest
they smelled money
@Rick No idea yet
The tech sector is suffering from a bit of a dry spell recently. Wanna see where that's going first.
I think it's worth to invest, but not as a long-term thing
as soon as you make a 20% profit, run away
I don't know how fast you can take the money out in these sorts of things
07:58
@towc It's always a bit of a gamble, it's entirely possible for a stock to come out high then drop once people realize it's not that great
It's also possible for the other way around to happen
And I don't know (or use) Slack enough to be confident in its success or failure on the stock market.
Slack is a great product. however, I can't really see the value added, they are also not doing any compelling. They are riding the infrastructure wave of cheap internet hardware infrastructure. Maybe if it was all on one server. But seems like a chat interface to skinned on to a server.
@MadaraUchiha and how long do you think the realization might take?
chances are it will go up before it goes down
but I have no experience with this
other than crypto trading
Hey guys, has anyone successfully installed node-browser-history package?
if slack was doing something with blockchain, I would invest.
08:13
it's going to go up and down quite a bit at first
some investors are just looking to ride that initial peak, and then intend to sell it less than a day later
if that's what you want to ride on as well, you should be ready to sell almost immediately after buying
@Neil I'd think that's what we all should do
if you want to do the long-term thing, then it's probably worth waiting until it stabilizes
Can anyone help me with elasticsearch / mongoosastic integration ?
@Mr.Bhat 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.
Hi guys
I'm new to bower. My project already contains bower.json file in which i have jquery , angular, jquery UI and other packages. Now I want to upgrade jquery version, which I would do manually in .json file. If I run "bower update" command would it automatically upgrade the version (if any) of the dependent packages? or would i have to write it in .json explicitly?
@Sadiq I already told you exactly what you need to do.
13 hours ago, by Madara Uchiha
@Sadiq You should get rid of bower as soon as possible and move everything to npm and package.json.
I didnt see ur reply
actually its a project i have been working on and I'm compelled to stick to it. like i have to live with it until the concerned guys wants to change it.
but every its all so confusing. every one is talking so much
09:00
I mean changing to another package manager
should be an hour of work if you dont know what you are doing
and 15 minutes if you do know
09:11
@Sadiq There is a blog post by Bower from 2017 recommending people to move away
It's really not that big a deal to migrate away.
hi
i have started learning node.js as i wanted to make responsive web apps with progress bar and stuff
it seems there is no straight forward way to implement this
i have tried searching the web ...
could someone please guide me on this
@techno Those are client-side concerns, they have nothing to do with node.js
ahmm
basically i need to upload a file ,do some stuff
i know how to do this using php and html form
but the user interactivity is missing there,so i thought about learning node.js
@MadaraUchiha
@techno You can do an upload progress with PHP as well
Like I said, it's purely a client-side concern, and has nothing to do with which server-side stack you have
132
Q: File upload progress bar with jQuery

Eddard StarkI am trying to implement an AJAX file upload feature in my project. I am using jQuery for this; my code submits the data using AJAX. I also want to implement a file upload progress bar. How can I do this? Is there any way to calculate how much has already been uploaded so that I can calculate the...

This is the first result in Google, I'm sure you can do it without jQuery as well, if you want to.
okay
i dont know jsquery
*jquery
can pure javascript be used to accomplish this task?
09:19
> I'm sure you can do it without jQuery as well, if you want to.
I suggest you look for information on this online. It's a fairly common subject.
okay..
so php can be used to acheive the same,i guess
@KarelG Goat Simulator 2: Revenge of the Bread?
I am still lauching :|
10:07
@KarelG Hi Lauching, I'm dad.
10:49
.. derp wrong chat ..
Comment on FB not here -_-
I thought this was more private than FB
also, I don't want to do the FB thing
This is google indexed
way more invasive than FB
FB is like people who you know will steal your data
well, I'm not going to ask at all then
Google is more like we'll steal your data, we'll find data from your friends and use it to find what we don't know about you, we will make fake things so that we can get even more data from you -------- GIMMME DAT GOD DAMNED DATA!
@towc Basically its transitional for sometime
SO chat google indexed?
10:53
@KarelG the transcript is
SE can solve it easily >.>
@KarelG Yeah but why would they?
@KarelG how?
they don't expect us to go full blown towc/me on here
@towc robots.txt
you can prevent indexing of some pages with robots.txt
10:54
oh, right
well, transcript is explicitly allowed: chat.stackoverflow.com/robots.txt
just discovered it. Why?
nothing that relevant here
or in another chat.
Although a chatroom is only useful for drama queens when they want to google for more drama: the C++ lounge.
@KarelG you're going to say that c++ has more drama than 17?
Yes! Even with Sterling's input.
how?
the lounge always seemed pretty peaceful to me
did something happen I wasn't aware of?
obviously yes, but how about in this context?
11:12
I used to frequent Lounge C++ before coming here
There are trolls of trolls in that room
as in, they're all in essence trolls, so a new breed of troll was created to seem to be susceptible to trolls, just to troll the trolls
it could be that C++ is more calm now since the "SO welcoming" thing
maybe
I haven't been there since then
11:43
C++ lounge can handle higher conceptual topics
they shun how to conversation
for example?
I go there for deep data structure questions, and the rust room
I don't think there is a love for these topics in the js, java, or python rooms. I think it's because c++ is so spartan they might appreciate the topic more.
it's another breed of programmer to be sure
I think if you're using C++, then you probably have a strong appreciation for writing things yourself rather than depend on a third party library
You don't typically deal with data structures in javascript though
hi there i have a problem in my dropzone.js can anybody help me?
@SalmanIqbal 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.
11:54
hi all
I think they are required to conceptualize at a higher level. I think there is so much hand-holding with all these lib in python java and js that you don't develop an intuition for problem-solving at a higher and deeper conceptual level. I find it refreshing, at least for me.
I also find they are closer to the math
ok
and hardware which is also another big plus
right
Hi, I have a question, I have a modal dialog and I want to get the value from the main page behind the modal. However just using the $('#id').val()
doesn't work
the element is undefined when referenced from the modal dialog
is there any other way I can find the element using jquery?
12:08
console.log(whatever);
@Rick because it is natural to C++?
@Euridice01 no. That is the selector. Press F12 and enter in "console" tab $('#id')
it should give a jQuery object. Either empty or non-empty
I don't think it's more natural in C++, just more necessary. I think it can be natural in any language and probably easier
@KarelG no it's undefined
when I try in the console when I have the modal dialog open
when I dismiss it, I get the object
non-empty
seems that when the modal is opened, the said element is being removed
and injected back upon close
12:30
yeah maybe
I'm going to try it with setting the modal property of the dialog to false
seems like setting the modal property = true does something to the elements in the backgroudn
 
4 hours later…
16:09
posted on February 06, 2019 by CommitStrip

user1596138
16:38
Has anyone worked with getPanorama from Google? And had issues getting good street view locations?
user1596138
When I use {preference: 'best'} for business addresses I get really good results tbh
user1596138
But when I use it for residentials... I will get the most ridiculous shit. Like 2 blocks away not even close to the address.
user1596138
I'm thinking "best" may not mean best vantage of said point... Maybe it is Best clarity or something lol
Hey guys, quick question maybe you know. I'm looking for some kind of fade-in on click effect within bootstrap I don't think it exists but maybe I'm worng
16:53
i mean
fading in something is relatively common
as is showing/hiding something on click
you're looking for a combination of the two, have you tried looking for them separately?
Gosh
I think I was so obsess with the word fade
That I forgot what was the main thing I was looking for
You're perfectly right
I'm just tired haha
17:19
user1596138
gtfo @feeds
user1596138
That's not even the good one where Iows says "Bush Lite"
@KendallFrey unfortunately that errors >.<
> elixer
wow
user1596138
@forresthopkinsa LOL
user1596138
17:27
I don't even get it. At all. It's like there's no joke
user1596138
Nobody says any of that.
is that somewhat accurate?
I have no clue
user1596138
Not a single one is accurate no
no it's completely inaccurate
it's mocking those maps of "pop vs soda"
user1596138
Not even "Carbonated beverage"
user1596138
I've been down south and nobody calls Mtn Dew Coke lol. Even that map flops
¯\_(ツ)_/¯
17:43
well ofc
if you're talking about a specific drink you're gonna call it what it is
but soft drinks in general tend to be called "coke" around here
18:41
here in AZ no one calls anything except Coca Cola "coke"
no "pop" either, it's all "soda"
user8729657
I was confused about what map that was for a second.
19:08
wow
@kolzar 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.
@forresthopkinsa I declare a holy war on anyone who calls soda "pop".
@Allenph now that's something I can get behind
Of course you can. God demands it.
19:16
what does God say about pronouncing "gif"
exactly
I'm not asking God stupid questions.
any volunteers
jif is the only correct pronunciation
3
I have the official listing for the job I mentioned in the pinned message: jobs.target.com/job/minneapolis/…
Took them forever to actually post it
jif is the wrongest pronunciation
19:23
> The new experience will offer knowledge, case management, workflow, chat bots, and personalized information.
amazing
Yeah, some of it is not written very well. I think you have my manager to thank for that part, lol
it's to be expected lol
those qualifications are pretty easy man
Yeah, we're not asking for a lot... just competency
But even that is hard to find these days
especially in minneapolis, I'd imagine. lol
I dunno, I guess minneapolis is better than ft wayne hahahah
3 million people, bigger than I'd expected. ¯\_(ツ)_/¯
Minneapolis actually has a really good tech industry. Lots of giants here; just not flashy cool ones, like apple or microsoft
19:27
Neat
So it sounds more like everyone is taken
hmm?
spitballing reasons why it would be challenging to find someone who fits these requirements
Oh, you mean all the good candidates are taken? To some extend, maybe, but the pool is large, and new, potentially good candidates enter the market all the time. It's just hard to find the actual talent among a culture that thinks that everyone can/should program
You end up with a lot of... well, underqualified is the nicest way to put it
Yeah I getcha
there are too many people who think they know everything
user1596138
19:36
I do tho
user1596138
@ndugger lmao I feel it
user1596138
If I didn't hate u I would apply
i don't like target
lol
But if you join my team, you can tell me that you hate me to my face
I love target. I'm not sold on some of their core values, but overall I dig it as a company.
Love it as a place to work as well
Very cushy
user1596138
19:44
I still use my Code With Target bottle opener from MWJS
user1596138
It is the only bottle opener I have
user1596138
Well.. aside from literally everything with a corner
I usually use my coffee table
great way to beat up your coffee table
It was a cheap one from ikea
19:47
> ikea
> cheap
ikea is cheap
guess it depends on your point of reference
Relative to something like SlumberLand, or HOM, or one of those big chains, ikea is very cheap
user1596138
I have a super nice coffee table lol
user1596138
Made of reclaimed walnut
user1596138
19:49
So fuck that
I had beer sitting in my fridge from my ex for like 2 months. I never drink anymore. I had a buddy over, and he drank it for me, lol
user1596138
I buy IBC sodas a lot
user1596138
And forget they have screw tops. And bust the tops off
is there any difference between npm install and npm i ?
@JoeSaad six characters
19:52
that's it?
ok, thanks for the input :)
Get guys, why am I getting, "Uncaught TypeError: Cannot read property 'setState' of null"
  componentDidMount() {
    navigator.geolocation.getCurrentPosition(this.setGeoLocation);
  }

  setGeoLocation(position) {
    const userPosition = `${position.coords.latitude}, ${position.coords.longitude}`
    this.setState({ userPosition })
  }
But if I console log userPosition right before the setState I get the correct output
@Shamaran do you have the state initialized in the constructor?
Because you probably want a lambda
or to explicitly bind
19:54
class App extends Component {
  state = {
    userPosition: ''
  }
When you're passing in this.setGeoLocation, and it's being called by someone else, it looses its original bind to whatever this used to be
Therefore, when you call this.setState, there no longer is a this
so you could solve it by doing
whatever.getCurrentPosition(position => this.setGeoLocation(position))
or simply by whatever.getCurrentPosition(this.setGeoLocation.bind(this))
Ohh, I see
Very nice :) WIll probably never learn all "this" stuff
I mean, that's about it
Yeah when you say it, it all makes sence
19:58
ran into another this problem the other day and solved it with bigArrow, so I shouldnt be here so soon asking this issues again :P
sence is cooler tho
Chart.js looks pretty cool
not as complicated as D3.js to me
plus, the MIT license :)
D3 isn't a charting library; it's a data visualization library, but it does none of the boilerplating to generate actual charts, afaik
I agree
20:17
isn't a chart a data visualization?
> but it does none of the boilerplating to generate actual charts
that's like saying jquery isn't a dom library
considering that it contains more than DOM utilities, you could argue that, yes
@KevinB it isn't. It's a DOM manipulation library. :D
This looks like a bowl of poop with some blades of grass on it i.pinimg.com/originals/3f/3b/db/…
20:31
@ndugger idk what I expected, but it sure as hell wasn't that
pretty sure that's a bowl of poop with some blades of grass on it
lol wow
20:49
When I become rich and famous I am gonna give back by buying an island and creating the .js tld as per
@ozten 2 chars like .js are country level domains: easiest way is to buy an Island and setup a new country. // cc @jensnockert
Feel free to chip in
:meh:
jquery.js
01:00 - 21:0021:00 - 00:00

« first day (3035 days earlier)      last day (2138 days later) »