« first day (4940 days earlier)      last day (23 days later) » 
02:00 - 14:0016:00 - 00:00

4:48 PM
posted on April 25, 2024 by Daniel Gagnon

The Stable channel is being updated to OS version: 15786.60.0 Browser version: 123.0.6312.134 for most ChromeOS devices. If you find new issues, please let us know one of the following ways File a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific: ChromeOS Beta Help CommunityReport an issue or send feedback on ChromeInterested in swit

 
@BrianVar Presumably, people who work at Reddit can fix Reddit
 
5:20 PM
@ParkingMaster, you being serious?
 
5:46 PM
can i divide by zero yet?
I'm trying to loop through pixels in an image and get the row
so the first pixel is 0
   row = spriteWidth / pixel;
actually that math is wrong but i'd like to know still
 
sure you can
        alert(1/0);
 
infinity? hmm....
i'd think that it would it would be the same value
if width is 100 and i divide it 0 times that would be 100 right?
can i do the opposite? divide 0 by 1?
 
its an interesting way of looking at it, if you had 100 and divided it 0 times you would have done nothing at all
 
hmmm you could say the opposite too. i divide 100 "into" nothing then it would be nothing
 
6:07 PM
in the code sample above, i would make two small prettier improvements
        var replace   = (...input)=>html=>input.reduce((acc,name)=>acc.replaceAll(`{${name}}`,user[name]),html);
        res.end(replace('email','firstName','lastName')(html));
        require('http').createServer(request).listen(3000);
        console.log('http://localhost:3000/');
 
6:20 PM
@ParkingMaster you might want to do this with canvas or absolute positioning. loop through all the items and create them in a grid. you don't say how the circles will be moved but if you move one by 10 pixels then move all the others in that row by ten pixels at the same time. i suggest using something like pixijs pixijs.com/8.x/examples/basic/container
 
6:46 PM
you'd probably want them to slide otherwise they'd just appear in their new positions and that would seem clunky, so absolute positioning would probably be best
<style>

      html,body {
            height:calc(100% - 16px);
            background:rgba(145,145,137,1);
      }

</style>

<div id=root><div>


<script>

        var ox      = 100;
        var oy      = 100;
        var size    = 25;
        var gap     = 10;
        var grid    = [];

        for(var x=0;x<10;x++){
              grid[x]   = [];
              for(var y=0;y<10;y++){
                    create(x,y);
              }//for
        }//for

        function create(x,y){

              var div                   = document.createElement('div');
 
@matt Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. 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.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
Hello, what's up. I wanted to ask something about Typescript but then I saw that the question was already posted in StackOverflow. However, it has no answer. It was posted 3 years ago, so there is no point waiting for a new answer. And I don't want to post a new question to ask the exact same thing because it would be closed as duplicate. Would any of you mind to check it out? Here it is: stackoverflow.com/questions/61689626/…
 
@Adrian 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.
 
7:01 PM
or this
<style>

      html,body {
            height:calc(100% - 16px);
            background:rgba(145,145,137,1);
      }

</style>

<div id=root><div>


<script>

        var ox      = 100;
        var oy      = 100;
        var size    = 25;
        var gap     = 10;
        var grid    = [];


        setTimeout(setup,50);


        function setup(){

              for(var x=0;x<10;x++){
                    grid[x]   = [];
                    for(var y=0;y<10;y++){
                          create(x,y);
 
Ok nervermind, I think I found the answer in another post: stackoverflow.com/questions/17515593/…
I'll mark it as duplicate. It feels odd marking as duplicate a question that was asked 3 years ago because it is identical to another one from 10 years ago. Would that make me a cyberarchaeologist?
 
maybe this would come in handy typescriptlang.org/play/?#code/…
 
8:00 PM
posted on April 25, 2024 by Ben Mason

Hi everyone! We've just released Chrome Dev 126 (126.0.6437.4) for Android. It's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Krishna Govind Google Chrome

 
@1.21gigawatts Anything divided by 0 is Infinity. This is 100% true.
0 Is the opposite of infinity, because it is infinitely small instead of infinitely large.
So, dividing by 0 is basically the exact same thing as multiplying by Infinity.
10 / 0 = Infinity
Imagine this, you're dividing something that's not there an infinitely small amount of times. I like to picture that you're adding "walls" in between values when dividing in math. According to this logic, you'd be adding an Infinite amount of division walls. This makes the value of the number Infinitely big as well when you do so.
10 * Infinity = Infinity
This is basically just a shortcut for the previous example. You're appending an infinitely big value to a finite value, so it's the same thing.
In mathematics, division by zero, division where the divisor (denominator) is zero, is a unique and problematic special case. Using fraction notation, the general example can be written as a 0 {\displaystyle {\tfrac {a}{0}}} , where a {\displaystyle a} is the dividend (numerator). The usual definition of the quotient in elementary arithmetic is the number which yields the dividend when multiplied by the divisor. That is,...
@1.21gigawatts I've tried attempting this with Three.js but it extremely confusing. That's why I'm search for some info on how to do this, and do it the right way.
Then, I tried using just pure HTML elements, some CSS, and JavaScript.
Every method just does the same thing though (not what I expect)
 
8:18 PM
@ParkingMaster, add some code to the example that i posted we'll see if we can do a collab on here?
just 5 mins here and there, crowd source it
for instance the scrolling motion could do with requestanimationframe and then a pixel value to scroll each frame, plus some check to find if the element is outside the grid and put it back in the start
 
9:04 PM
@MicroMachine, text styling wouldd just go in style tags
 
9:18 PM
@matt I cloned my copy here to understand how this can exist with other static text on the same page but I am getting overlap jsbin.com/notaseg/2/edit?html,output
 
@MicroMachine 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.
 
add some content so i can see the overlap
 
I did add code but I can't find how to save edits in jsbin
I clicked "save snapshot" but when I open the jsbin link in a private window it doesn't have my edits
 
did you clone it? i not sure if theres a bug like that, copy all the code, goto jsbin.com and start a completely new one, then click save snapshot
paste the code into a completely new bin
 
@matt ah ok great tip thank u here's the new clone jsbin.com/huxejoy/1/edit?html,output
 
9:27 PM
your style sheet is applying to both divs, if you reference them by id seperately
#sentence {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 480px;
  transform: translate(-50%, -50%);
  color: #FFF;
  font-size: 36px;
  line-height: 1.8em;

  &:before,
  &:after {
    content: '"';
  }
}
 
 
1 hour later…
10:33 PM
@ParkingMaster that could be but the concept of zero didn't exist for much of math history. iiuc it's basically nothing. so 100 divided into 0 pieces would be nothing. or 100 divided 0 times would be 100.
an apple divided by 2 would be two pieces. an apple divided 0 times would be a whole apple. or if you look at it as in multiplying by fractions into smaller and smaller pieces then yes it could sort of be infinitely small - but i'd argue that's not zero. zero is nothing. i think it is based on perspective. maybe there could be multiple interpretations. but i think what happened is the guys that wrote the math class had to decide on something
 
10:50 PM
Nodejs releases version 22:
https://www.infoworld.com/article/3715283/nodejs-22-arrives-backs-ecmascript-modules.html
Can someone explain what the require feature adds?
The release adds require() support for synchronous ECMAScript module graphs under the flag: --experimental-require-module. If this flag is enabled and the ES module meets a couple of requirements, require() will load the requested module. Additionally, Node.js 22 includes an experimental feature for the execution of scripts from package.json with the CLI flag: node --run <script-in-package-json>.
I thought you could require modules already? or maybe you had to pick to use import or require
 
@1.21gigawatts I think you can now import old modules using only require() now. This is good because most good modules require import statements (no pun intended) because they're older.
 
I had so much trouble with imports and requires. i welcome and applaud any updates in this area
 
02:00 - 14:0016:00 - 00:00

« first day (4940 days earlier)      last day (23 days later) »