« first day (3895 days earlier)      last day (1036 days later) » 

DRP
2:56 AM
you are on angular instead, plain js vanilla, typescript?
 
 
7 hours later…
9:33 AM
Hey guys I wonder does anyone know a library to draw wind speeds on maps? And then not as simple arrows but those "moving particles".
theoceanrace.com/en/europe/racing/tracker if you select here the button left, 4th from bottom you can see the effect (called wind)
 
hi guys
got something in the middle of grabbing hold on next.js
i couldn't add title to my demo project html page's title
      <Head>
        <title>{postData.title}</title>
      </Head>
this is throwing and error
Unhandled Runtime Error
ReferenceError: Head is not defined
if I change the head tag from
      <Head>
      <head>
to
it's working without error but at the same time, the title is not being rendered.
got something in the middle of grabbing hold on next.js
 
10:00 AM
Or a map like: hint.fm/wind
 
10:16 AM
@CommonMan did you try to import Head as documented? Also, Head is a component (React components are commonly starting with a capital letter), head is the intrinsic element which corresponds to an HTML element
 
@makadev- Yes it's done in index.js
import Head from 'next/head'
I am reading the code in
to see if there are any differences
 
Hey guys, have any body used slack api to invite a new user to your workspace (free version)
 
@KaushikManoharan 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.
 
but when i reload thepage i can see the title
`title`
[id].js
the above file is missing in git
whereas in documentation walkthrough ... the pages are dynamically routed thru this file
import Layout from '../../components/layout'
import { getAllPostIds, getPostData } from '../../lib/posts'
import Date from '../../components/date'
import utilStyles from '../../styles/utils.module.css'

export async function getStaticProps({ params }) {
  const postData = await getPostData(params.id)
  return {
    props: {
      postData
    }
  }
}

export async function getStaticPaths() {
  const paths = getAllPostIds()
  return {
    paths,
    fallback: false
  }
}

export default function Post({ postData }) {
the Head is causing issue
 
10:43 AM
@CommonMan You aren't importing Head in that snippet
 
@Ben Fortune - If i mention
import Head from 'next/head'
again it's throwing some other error
in [id].js file
 
Which is?
 
well
now I pasted the below line at the top of the code
import Head from 'next/head'
and I got it working
seems it's respective and sequential
sorry guys for being stupid
declarative languages are interpreted languages by execution
 
11:05 AM
Question: what's a good clientside gzip or zlib library, suitable for dropping into a single page project? I'm particularly interested in decompressing, rather than compressing. I'm looking at pako, which says it's browserify-friendly, but I wonder if there are alternatives.
 
11:27 AM
anyone in this community have any hands on in scala.js... i find it so interesting...
 
11:52 AM
@FabioR. 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.
@FabioR. 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.
1 message moved to Trash can
@FabioR. 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.
1 message moved to Trash can
 
Hi guys, i'm new here. I'm currently having a problem with node express api. Whenever I curl something both server and client just stand there without doing nothing, not even an error, forcing me to ctrl+c both processes. I also tried to write the simplest api possible, a get that responds with ok, but still the same result:
CURL: curl -XGET 'localhost:3000/get-device'
CODE:
app.get('/get-device', (req, res) => {
res.send("ok");
})

I don't even know what to look up on google: I tried some "node express api does nothing" and rewordings, but no avail
 
12:06 PM
after completing the start up course in next.js
i have few fundamental doubts araised out of my understandings.
 
1:01 PM
posted on June 15, 2021 by Michaël Zasso

Notable Changes [6035492c8f] - deps: update ICU to 69.1 (Michaël Zasso) #38178 [9417fd0bc8] - errors: align source-map stacks with spec (Benjamin Coe) #37252 Commits [87fa636953] - assert: refactor to use more primordials (Antoine du Hamel) #36234 [cfff3b4462] - assert: refactor to avoid unsafe array iteration (Antoine du Hamel) #37344 [dd18def7db] - async_hooks: refactor to avoid unsafe arr

 
1:24 PM
I somehwat figured out the checkboxes, how to I append to the item though?

For normal text inputs (every other question on form except for 6), I append like so with jQuery: "Q2": $("#q2").val(),
For my one value that is using a checkbox, I have:
var selectedValues = [];

  $('input[type="checkbox"]').each(function (){
      if($(this).is(':checked')){
          selectedValues.push($(this).attr('value'));
      }
  });

  var q6 = selectedValues.join(',');
 
2:24 PM
How do I make an object to an array then back into an object?
 
!!magic
 
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
 
objects and arrays hold different kinds of data.
you can't just make one the other and back without deciding on a data format for arrays that would adequately represent the data your object holds
 
2:39 PM
Okay well i'm trying to update my ng repeat dynamically after the index of a value is moved.
it starts as an object and i converted to an array to access the Order property and assign the new index to it, but its not updating after going through the function. I have to refresh the page in order to display the new index of the values
 
2:59 PM
not sure i'm following
got some code?
 
 
1 hour later…
4:14 PM
hi i installed font awesome using this link (using node cli)
npm install --save @fortawesome/fontawesome-free
but I cannot find font awesome in node modules
the folder font awesome is empty
 
 
2 hours later…
6:04 PM
posted on June 15, 2021 by Prudhvikumar Bommana

 The Dev channel has been updated to 93.0.4542.2 for Windows,Linux and Mac. A partial list of changes is available in the log. Interested in switching release channels? Find out how. 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. Prudhvikumar Bommana Google Chrome

 
6:58 PM
Heyo
 
7:09 PM
Are there any code analysis tools for desktop that can identify which browsers my code would be incompatible with? I'm sure such a tool couldn't detect 100% of problems, but it would be valuable even if it could only pick out obvious syntactical things like "arrow notation is incompatible with IE"
 
not that i'm aware of
there's very few things in the dom api that are incompatible with current modern browsers
even fewer if you only look at javascript features
 
@Kevin yesish
 
Maybe I'm in luck then. The project I'm planning out only interacts with the DOM in one place, by updating a textbox.
 
eslint + babel/caniuse could probably do that
 
if you need to support IE, there's definitely some
but... IMO just babel down to ES5 if you need IE
 
7:13 PM
for IE, a function that always returns false will probably be around 90% accurate
 
poly-fill when needed
 
I'm making the requirements up as I go, so I only need to support IE if I really want to squeeze an extra 1% out of my potential user base
Ok, eslint, babel, caniuse. I feel better prepared for the task now. Thanks guys :-)
 
7:26 PM
the biggest issue with supporting IE is you have to dumb down the code for every other browser being used for the 1% (probably less than 1%, but yea)
 
mm hmm I am quite familiar with that scenario ;_;
 
7:38 PM
how can i get access to properties from an object inside an object?
cars{}
for example, cars{cost, models{chevy, dodge}, year}
i would like to make an object of models
 
foo.bar.foobar
if you need the key names of an object, use Object.keys(theObject)
or Object.keys(foo.bar.foobar), etc
 
7:55 PM
Yea i tried doing vm.Models = cars.models; but it comes back as undefined
 
is cars an object?
 
yes it is
 
is it an array?
 
no its an Object
 
i guess would be the better question
since arrays are objects
lol
then you aren't adequately describing what cars is for me to give you a suggestion
if cars is {cost: 5, models: [...]} then that woulda worked
cars{cost, models{chevy, dodge}, year} doesn't really tell me a whole lot
it isn't valid object notation
 
7:59 PM
it works if i add it to an ngrepeat (key, value) in cars.Models but i want to make it into its own object so i can convert it into an array later.
sorry not car.models but the value of Cars since cars its in its own ng repeat a couple lines above
 
models or Models
 
so something like this ng-repeat(key, value) in Cars and then ng-repeat(foo, bar) in value.Models
 
Since when can you open any repo in VSC without cloning or download?
 
wdym
 
I found a remote repositories extension but this is the first day I have seen it
 
8:12 PM
i'd guess you have an extension that adds that functionality
 
Must be new
 
?
it's an extension
 
I want to update a JSON file, i want to get the best performance, is it better to use exec() function with a bash program like "sed/grep/jq" or it will be the same if i just open the file to update the content inside the js script? The JSON file is around 2-10MB, and my script will need to update the JSON file each some seconds.
 
I know
 
that's like saying since when did google allow blocking ads
 
8:13 PM
hahaha
when ad-block any alternative was made. I couldn't find anything relevant to that so I have been cloning/downloading for a while
check out nickle-block on google, super essential
 

« first day (3895 days earlier)      last day (1036 days later) »