@VisheshMangla you know that you can try it yourself? Write it, verify code and learn something. That is easier to remember than when we give you an answer
@paul23 from Docker's (or K8s) perspective or from Node.js' perspective ?
hmm but a shell script run inside the docker can get he docker's name? That could work as that script could set an environment variable upon running node
Alpine refers to the Alps, a European mountain range, to the Alpine states associated with the mountain range, or relating to any lofty mountain areas.
Alpine may also refer to:
== Sciences ==
Alpine (goat), a breed of domestic goat
Alpine plant, plants that grow at high elevations
Alpine race, a supposed human racial class
Alpine butterfly, or Erebia of the Satyrini, common in the Rocky Mountains of North America
Alpine butterfly, or Parnassius in Eurasia
Alpine fir, or Abies lasiocarpa, also known as "subalpine fir"
Alpine newt
Alpine climate, climate that is typical to higher altitudes
Alpine...
The Société des Automobiles Alpine SAS, commonly known as Alpine (French pronunciation: β[alpin(Ι)]), is a French manufacturer of racing and sports cars established in 1955. The Alpine car marque was created in 1954. Jean Rédélé, the founder of Alpine, was originally a Dieppe garage proprietor who began to achieve success in motorsport with one of the few French cars that were produced just after the Second World War, the Renault 4CV. The company has been closely related to Renault through its history, and was bought by it in 1973. Production of Alpine models ceased in 1995.
The Alpine marque was...
@paul23 Just thinking ... You can set env variable through Docker and use Node.js access to it to figure it out.
look at docker compose: https://docs.docker.com/compose/compose-file/#environment and see if you can get it from your Node.js script :)
@KarelG yeah but that seems a bit error prone, it's our "fallback" but then an update might forget to "change" the environment variable while changing the docker names...
@BIramFiri 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.
@BIramFiri Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
@Botalbania 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.
@BIramFiri Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
Hey guys, I'm not sure if react native is still in scope of this room, but I want to try it: I have a flat list and I want to be able click on an item so show details. However scrolling should still be possible. Does anyone have an hint for me?
@ShrekOverflow there are some containers that are highly optimized when each element has a fixed size. Those containers work much better when amount of items grows large
@Reez0 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.
@KarelG the answer to what I asked was both are wrong. ` let ele = document.querySelector(".button-controls").cloneNode(true) ele.classList.add("question-sub")` is right. My code is 3 files big and MVCE is not possible to make and neither the console error is any verbose
element is none error in a function 20 lines above
@rekire Virtualized scrollers improve performance by basically not rendering elements unless they are visible, since your elements are of a dynamic size
you might have to take a performance hit , unless you can come up with some kind of cell grid size that allows you to not render the rest
> The HyperText Transfer Protocol (HTTP) 422 Unprocessable Entity response status code indicates that the server understands the content type of the request entity, and the syntax of the request entity is correct, but it was unable to process the contained instructions.
The syntax seems to be in-correct in this case, no? Or would you consider a missing column a correct syntax?
@Omid.N 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.
I could explain that it's "correct" - file can be read and it's a detail that's incorrect. At the same time I can also argue that not the file itself is the content, rather the data inside the file describe the content. And as such missing a column is like missing a parameter when doing a request.
if the csv is uploaded with the request, I would say 400 is fine (because I have no clue what else to use) if it is a pre-uploaded csv as configuration for the service, then it should be a 500
@KarelG Well there's also the "line by line" interface option which hence gives an error on missing "data". So that would feel weird that for one flow (by hand) it uses http errors to handle bad user input. And for the other workflow it uses special return values.
@Omid.N My idea was that with say input array: [1, 2, 3, 4] (d=4) the results are for each k:
public static void main(String omkar[]) throws Exception
{
//query based
BufferedReader infile = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(infile.readLine());
int T = Integer.parseInt(st.nextToken());
StringBuilder sb = new StringBuilder();
while(T-->0)
{
st = new StringTokenizer(infile.readLine());
int N = Integer.parseInt(st.nextToken());
long K = Long.parseLong(st.nextToken())%2;
after 1 step always 1 cell is "0" - and one is the "highest", then after 2 steps the highest is 0 and the zero is the highest and it switches between those.
Well I'm not one to talk: I need to brush up my resume and am thinking of doing something like edx/coursera to show I can do things. Having failed my university in the last year (aerospace engineering) I also need somethign to write down.
Still: the "problem" is never problems you can solve. The "problem" is how communicate things to colleagues, how to design a plan of attack for something you cannot do yourself and how to understand when you need to ask others for help.
>Still: the "problem" is never problems you can solve. The "problem" is how communicate things to colleagues, how to design a plan of attack for something you cannot do yourself and how to understand when you need to ask others for help.> that is an "issue"
doesn't look that hard, if you're online tonight I might actually solve it, I just need to figure out if the naive folding might mean you have fewer folds than maximum. (Naive is to just look from both sides to the smallest fold first, then work to the middle)
I'm online. so if you are a "competitive programmer" register for that site and solve problems there. in the last contest (that these two problems were there) you had 2 hours to solve 6 "problems" like that!
Does any of you JS people fancy this? We are hiring a senior full stack engineer, who'll be focussing on the auth0 dashboard, I'm happy to refer you if I know you ... Pay is great, perks are exceptional and we just became 2x Unicorns. auth0.com/careers/job/…
probably @JBis (see job opening a bit higher) might be interested in that. Judging from what I have seen, he's pretty skilled related to JavaScript and security.
I did not have been here often lately as well. Remote work with one screen is less comfortable with *two* like my work setup :P Many of them went away since the SE moderator "event" and did not have been returned after. Some of the regulars do come here, but only for a little moment.
I should look for a better job though, ever since corona crisis came I was due for renewal and only contract I got was "minimum wage since we don't know what happens with corona". Minimum wage really isn't much, and I've been told it's just normal raise you get each year.
working remotely is the norm here. We go to office for meetings or when we need to have access to some protected servers that is not accessible from outside the office.
but if someone wants, they can come work at office.
Not loud or something but like when you work on a problem and some close collegaue knows that after you solve it go to the coffee machine and quietly high five when solve it, while treating yourself on a few minutes of rest.
Quick Question. When pulling through AJAX from Sharepoint lists, Ive seen people will put a file as the URL which confuses the hell out of me. When I visit the page I am pulling from and hit CTRL+U, I find the JSON data that it is pulling from in a variable called WPQ1ListData is there anyway I can use that
@AathikAhamed 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.
I was finally able to get this damn DataTable to append to my landing page, but now when it reads the list item info it doesn't post it to the DataTable it just says Loading...
I have made huge progress, I couldn't even get the DataTable to append to my landing page on SharePoint, but now the DataTable posts but the Items do not populate. In the code I will provide, it is running to one subsite "XDeliverables" and eventually I am going to need it to pull from three list...
Would anyone know why when calling an item from a Sharepoint List that is a choice type, it says "Invalid Date" For every location where the Approved column it is pulling from is.
I try logging it to the console aswell and it doesn't log anything
The beta channel has been updated to 85.0.4183.83 for Mac, Windows and Linux platforms A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn about common issues. Google Ch…