« first day (4120 days earlier)      last day (828 days later) » 

3:55 AM
posted on January 26, 2022 by Matt

The Beta channel is being updated to 98.0.4758.67 (Platform version: 14388.37.0) for most Chrome OS devices. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels Find out how. You can submit feedback using ‘Report an issue...’ in the Chrome menu (3 vertical dots in the upper right corner of the browser). &nbs

 
4:20 AM
Not sure if this is the right place, but upon reading the room rules I don't think this would be considered spam.
Also, I just lost The Game, so must you all.
I would like to call some attention to my un-answered question. I believe the answer is simple, but I can't figure it out. Any advice is welcome; stackoverflow.com/questions/70843361/…
 
 
1 hour later…
5:41 AM
the fact this has 63 upvotes
63
Q: reading from stdin in c++

krisdigitxI am trying to read from stdin using C++, using this code #include <iostream> using namespace std; int main() { while(cin) { getline(cin, input_line); cout << input_line << endl; }; return 0; } when i compile, i get this error.. [root@proxy-001 krisdigitx]# g++ -o...

> capture.cpp:6: error: âinput_lineâ was not declared in this scope
somehow they managed to get the encoding wrong too
 
 
2 hours later…
7:14 AM
@JBis What the fuck is this answer? And why does it have two upvotes?
 
 
5 hours later…
11:58 AM
hi! that's my first time I come here, is it ok to ask something here? or it's just for vibin?
 
@FLAW 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 hour later…
1:09 PM
@FLAW It is ok. Go on!
 
 
2 hours later…
2:43 PM
Anyone got a recommendation for a tree-library similar to jstree.com/demo or filer.vregistry.com/jsfiler but just without jquery? Should have drag and drop of nodes and leaves, create, remove, etc..
 
3:29 PM
When using JS to apply a styling to an element, I have my normal current week styling getting applied, but when I search and outside date, it applies the correct count and my code is correct to apply the styling, but it doesn't apply it correctly. Do I need to clear the previous styling before applying a new styling?
 
how are you applying styling?
styling can be applied in two ways: inline styles, aka styles directly on the element, and page styles applied via selectors
inline styles don't get wiped out just because you changed one of them
 
4:35 PM
Is there a special way how Windows handles TCP connections?
I can create a node Server on Port 8888 while I have a random application also listening on Port 8888; I can start an arbitrary amount of Haskell http servers all on the same server without any error whatsoever, (I can only start one node server and one random application on the same port though but I can start them on the same port)
PS C:\WINDOWS\system32> Get-Process -Id (Get-NetTCPConnection -LocalPort 8888).OwningProcess

Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
-------  ------    -----      -----     ------     --  -- -----------
     62       6      736       4584       0,02  10640   1 ConsoleApplication1
    221      18    39180      60708      15,11  20904   1 snap
 
5:04 PM
selectors @KevinB
 
so a stylesheet?
 
@iLuvLogix Try this: jsfiddle.net/Wijmo5/1duLq6t2
 
5:38 PM
@Alex Thanks for the suggestion - looks like what I was looking for ;)
 
YW :)
 
5:58 PM
 
 
1 hour later…
7:04 PM
Do you mean "I can start an arbitrary amount of Haskell http servers on the same port"?

https://docs.microsoft.com/en-us/windows/win32/winsock/using-so-reuseaddr-and-so-exclusiveaddruse

The above article seems to indicate that your Haskell http server is using the SO_REUSEADDR flag. You are indeed correct in assuming that this is bad. So tell Mr. Haskell to quit it yo.
 
@peanutbatterballs 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.
 
Realized what I was doing was dumb. Instead of just applying a background color to the element via ID, I was applying a class which was assigned a color, so that class was staying with that element.

Replaced $("#under_txtWPerc").addClass();
with $("#under_txtWPerc").css({"background-color":"#ff6666"});
 
7:20 PM
Hi all. I need to recursively add values toInsert into alphabet at positions specified in insertPosition. It's possible to do this in a horrible loop whereby I keep track of the index and shift it by 1 every time I insert into alphabet. But wondering if there is a more elegant way of doing it?
let toInsert = ['a', 'd'];
let insertPosition = [0, 3];
let alphabet = ['b','c','e','f'];
 
https://github.com/snapframework/snap-server/blob/master/src/Snap/Internal/Http/Server/Socket.hs
Line 72
Seems to be the case for "non unix sockets"
But I do not know the logic behind when what function gets called
 
let toInsert = ['a', 'd', 'g'];
let insertPosition = [0, 3, 5];
let alphabet = ['b','c','e','f'];

let reconstruction = [];
let counter = 0;

insertPosition.map((value, idx) => {
  let curSlice;
  if (idx == 0) {
    curSlice = alphabet.slice(
      0,
      insertPosition[idx]
    );
    curSlice.splice(
      insertPosition[idx],
      0,
      toInsert[idx]
    );
    counter += 1;
    reconstruction.push(curSlice);
  } else {
    curSlice = alphabet.slice(
      insertPosition[idx-1],
      insertPosition[idx]
Here is my attempt
 
8:25 PM
well, it depends on whether the insertPosition is based on the array after the previous insertion or the end result.
if you knew toInsert had no duplicates in alphabet, you could take the concat then sort approach
if it's based on the end result, then you'd need to ensure insertPosition is sorted ascending, then you could simply loop and insert without touching the index.
0 will always be 0, because, well, it's 0, 3 will be 3, after 0 is inserted
and so on
everything after position 3 will continue to function, because all the insertions that affect their position have already occured
!!mdn splice
 
let reconstruction = [...alphabet];
insertPosition.forEach((value, index) => reconstruction.splice(value, 0, toInsert[index]));
console.log(reconstruction);
this could also work directly on alphabet rather than creating reconstruction
(don't use array.map if you don't need to create an array)
 
ah wow. I overengineered the crap out of it then
thanks
 
this page likes ads
 
8:40 PM
is that outlook?
ah, no, outlook only has 1k
 
google docs
can't beat the ad god himself
 
 
3 hours later…
11:18 PM
sometimes, "This is dumb" is the only way i can respond to a given question or answer
 

« first day (4120 days earlier)      last day (828 days later) »