« first day (3226 days earlier)      last day (1738 days later) » 

12:15 AM
morn!
 
I think I did good on the Redhat interview besides LVM :/ ... fingers crossed
whats up kids
 
afternoon
@taco LVM is one of the most fun parts of linux servers
 
I'm from the IDE,SCSI,SATA with RAID era... LVM's were picking up around the time I left the Data center space
They make sense, I just been out of the loop on the admin stuff for RHEL for a bit
disk admin at least
 
it's just a higher level of abstraction
last weekend I added a few SAS drives to my home server
two were the same size so I RAID-0'd them
the third, I combined with the RAID-0 volume with LVM
 
Raid 0 for speed
 
12:21 AM
then I added this new huge LVM logical volume straight to the already-LVM system root
 
Still remember that much :d
cool
 
yeah RAID-0 will always be faster than LVM, even if both are striped
 
bleh falls asleep
lol
that's cool
 
it's more fun when it's your own server lol
 
my heads more in software nowadays
and cloud containers
 
12:24 AM
whynotboth.gif
 
When you're 20 years into your career, you'll realize why. Don't spread yourself thin. Be great at something.
I guess on the plus side, I know a little about nearly aspect of IT. I just haven't focused on a skill
 
fair enough
 
user8729657
12:44 AM
lol cloud containers
 
1:38 AM
hey
return new Promise((resolve,reject) =>{
        console.log("promise is working..."); // ---------------------------- this i can see in console
        const A = new XMLHttpRequest();

        A.open('POST' , "http://127.0.0.1:5000/somewhere");

        A.onload = ()=>{
              var respond = JSON.parse(A.responseText);
              console.log('ajax respond = ', respond); // ------------------- not working
              if (respond.state === 'found'){
                resolve({promise:"Good",jsonStuff:respond})
for some reason this code is not working without raising any error ... i dont know why , nothing on console and nothing on the backend
 
Rob
2:01 AM
@diamond Check your network tab. The request might be 404ing
(Not sure if onload will catch failed requests)
 
nope nothing , but i'm pretty sure its front end issue
because older version of this ( 8th of Aug ) is working fine on the same back end version ( today's version ) but really old .
 
Rob
Can you reproduce it with a simpler setup? Remove the promise stuff. Remove the code in onload except a single log statement
 
i did try that , it didnt work either .. i think something else triggers that error
promise's responds is always undefined
 
Rob
So you don't see a network request at all?
Even with a simple .open .send?
 
i will try to invistigate it again and compare it with older version
i will double check ,
yup positive
nothing in the network panel related to the same js
 
Rob
2:11 AM
Hah
value isn't defined
Anyway... this snippet does send a (failed) request: jsfiddle.net/4prwjah0
 
 
1 hour later…
3:23 AM
@OvieTrix I've worked in the data center space for a bit. Everything's moving to cloud. Why the lol :d you gotta know that
 
3:41 AM
night everyone
 
 
2 hours later…
5:43 AM
guys I have a question
is the licensing of frameworks per project or per company ?
 
 
1 hour later…
7:03 AM
hey guys I am not able to search anything on this engbookspdf.com website in firefox. Can anyone tell why ? No input field is working
 
 
2 hours later…
8:53 AM
so im working in vue.js
I import a csv file and convert it to json
giving me a json output that i can then use to loop through
the json output looks like this prntscr.com/otdh04
{
  "Class": "Gecultiveerde paddestoelen",
  "Soort": "Shii-take",
  "Sortering": "Medium",
  "LvH": "SP",
  "Omschrijving": "SHIITAKE MEDIM STEMLESS unclosed",
  "Trade unit composition": "8 x 150gr",
  "Punnet type": "CARTON",
  "CONTAINER BOX": "Multicrate (30x40x11)",
  "Price (/box)": "10",
  "Amount (container box) per Pallet / Europallet \r": "200 / 160\r"
}
I need to group by on Class > Soort > Sortering which i dont know how to do in vue/js as i am not that familiar with this yet, However it does have to get done
in sql that would be very easy like this : dbfiddle.uk/…
expected output would be like: prnt.sc/otdhk4
I have done quite the googling but cant figure it out
i did however stumble upon this stackoverflow.com/a/4760279/8572813
but im not able to implement this into my vue for some reason, which most likely is my fault
 
9:26 AM
hi i have quick noobie question
 
Go ahead!
 
var A;
if(A!== 'undefined'){//do stuff }
i keep getting error that :A is not defined
A!== undefined <--- maybe ?
 
!!>var a; if (a !== 'undefined') return 'works'; return 'no works';
 
@geisterfurz007 "SyntaxError: return not in function"
 
uch; no clue how that bot works :D
@diamond That bit works in my browser console though.
But yes, you'd check against undefined without single quotes
 
9:30 AM
yea that is what i was afraid off , maybe something else is causing the error
but let me ask
if i said
var A;
A is still undefined , correct ?
variables are defined when they have values only , am i right ?
 
9:46 AM
Hey guys, do you think this tutorial is correct or right?
https://react.tips/checkboxes-in-react/
He is not using the state to keep track of the checkboxes, is that correct or not?
 
10:01 AM
Why does this occur:
TypeError: this.state.selectedCheckboxes.has is not a function.
selectedCheckboxes is a new Set();
I got it
 
10:32 AM
Greetings, folks. I figured I would reach out to you because I found this very dubious accepted answer to a JavaScript question. Does it make any sense?
 
I have <input type="text" title="Search" tabindex="0" name="" aria-label="search input" role="searchbox" id="er_search_input_dummy" placeholder="Find your eBook" autocomplete="off"> And I want to add onclick="this.select()" to <input> can I do that using a dom property because I can't directly add this in inpput tag
Sorry don't know how to edit
 
11:18 AM
 
 
3 hours later…
1:49 PM
So I have an bit of a wierd problem
I can't use C (because i Need C++ STL for some parts)
but I also don't want to all class and stuff
and just 2 methods and structs should be fine
(I am so torn b/w doing that)
 
What's the problem?
You want to keep using the struct syntax instead of classes in C++? That sounds perfectly fine
 
Exactly, what's the problem. Everything you're talking about is optional.
 
Does anyone have any articles researching the potential impact of speed on order of javascript imports? One of my friends says alphabetical order increases speed on large projects, but I'm skeptical and can't find much on google about it
 
@Smarticles101 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.
 
2:39 PM
Morning folks. Are any of you aware of a framework / library / runtime event generator (whatever that means) in javascript that is exclusively based on generators? I'm trying to experiment on this, I wonder if such a structure could have a positive effect on error management, but I'd use something existent if there was.
Im looking for something that "imposes" on userland code to write generator functions that yield promises to a general runtime environment that resolves them and possibly do exception management
I believe express uses them to a fashion
 
@Smarticles101 Have you checked google scholar?
 
I have not @sockevalley
 
Do that then. I hardly think anyone have those kind of articles hanging around.
 
I am now. I also asked a s/o question just in case. Not sure I'm going to find any answers though. If I have time, I can attempt to experiment on it myself
 
3:01 PM
I think that would be a useful experience.
 
@sockevalley I agree! I'm heading off to college in a month, maybe I could turn it in as coursework lol
 
What are you going to study?
 
Computer Science
 
3:21 PM
11
Q: Why do tags like <input> function as an HTML tag in the title of a question on Stack Overflow? Will this cause security issues?

Anton van der WelMy friend and I were writing a question title on this site, We wanted to use an HTML tag, but we saw to our surprise that the title of the question had interpreted our HTML Tag. I was wondering if this could be a security issue for Stack Overflow? I have not made a bug report yet as I am not sur...

2
(Lol)
 
wtf xD
 
{column.badge ? (
  groupSearch ? (
    column.fieldName == 'items' ? (
      <Badge
        showZero
        className={classes.badge}
        color="primary"
      >
        <Assignment />
      </Badge>
    ) : (
      <Badge
        showZero
        className={classes.badge}
        color="primary"
      >
        <Build />
      </Badge>
    )
  ) : (
    <Badge
      showZero
      className={classes.badge}
      color="primary"
    >
      <Build />
    </Badge>
  )
) : (
  getEmbeddedField(result, column.fieldName)
 
ew
 
I think I need to educate my peers on the perils of nested ternaries
 
3:25 PM
i didn't even recognize the ternaries till you said something
 
I can't read that at all... I mean, I can, but it's bad
 
my eyes
 
call me old fashioned, but I love a good old if (condition) { return <MyComponent /> }
 
I'm cool with single ternary expressions for simple one liners of content within your JSX, but nesting 3 different ternaries in your JSX is just madness
nesting 3 ternaries in general is just a no-no
 
did anyone rick-rolled main yet?
 
3:26 PM
yea, use a switch
i don't think you can use that bug to inject into other people's browsers
 
I mean, I way too afraid to get banned for three hundred years, but it would be awesome
 
especially when they're that complicated. i have some similar code from over a year ago learning react like that im not proud of lol
 
it's part of the question wizard, doesn't make it all the way to the question list or question page
 
yeah it's just in the wizard. i doubt that the xss would make it to the front page. they likely sanitize it on the backend
 
3:28 PM
i bet they used jquery's .html
 
Amateurs
 
we should show them how it's done
 
Any attempt to explain anything logical to SO will result in them screeching and writing a blog post about how your explanation made them sad
 
oh but the best is when a staff member responds to a meta answer and gets berated with downvotes
 
why?
 
3:36 PM
It's just chaotic when the community has one strong opinion, but the business side goes a different direction
 
shit, I still haven't fixed https on stackoverfiow
 
3:56 PM
In console output when printing an array (using Chrome DevTools in my case), what is the difference between Array(count) and (count) [Type, Type, Type, Type, Type, ...]?
where count is the number of elements/items in the array, and Type is the data type of the elements in the array
Are they both the same, but the first one (Array(count)) is an untyped array, so the console doesn't bother saying the types of the elements within?
 
got a picture?
or code we can use to reproduce it?
javascript doesn't have typed arrays
 
oh I suppose it's typescript
should I head there
 
i mean
when the browser runs it
it's javascript
so same difference
 
that's nothing really
 
4:01 PM
It might actually be something
 
basically, it's splitting out the results into 100 result segments
so it's easier to inspect in the console
 
ok pretend the latter is collapsed sorry
they both separate it into segments
 
An array-like object vs an array?
 
the difference is, the former is (count) [CoolType, CoolType, CoolType, CoolType, CoolType, ...]
the second is Array(count)
I'm not sure
 
debug it
lol
is it an array
 
4:03 PM
the code for both is essentially
 
a breakpoint will allow you to inspect it
 
const imports: Report[] = ImportHelper.fetchReportsFromXlsx(sheet);
console.log(imports);
the xlsx thing returns
const reports: Report[] = [];
that variable
nice I haven't done breakpoints/ACTUAL debugging without print statements in forever
where do I start
 
by setting a breakpoint
 
I do that by clicking to the left of the line number, right?
 
yeet
 
4:05 PM
would that be the line that doesn't have my expected result?
I mean I guess I can jump from one breakpoint to the next so I can just put a bunch
 
Where you set your breakpoints is entirely up to you. We don't know your code
 
how does one listen for breakpoints if I'm using angular and webpack? does that require a third-party package?
can't just run the JS/TS file as if it had a main function
I've only used breakpoints in C/C++/Java/C#
 
It's the exact same process. You might have to find the correct files under some kind of a "webpack" folder in your sources tab in the dev tools, but you debug it the same way you would in an IDE
 
aha of course breakpoints within devtools itself
good thing we have sourcemap enabled
thanks!
how do companies that obfuscate their code (so as to not open-source it by publishing it) debug that way? by only obfuscating the code when it goes to production build server, whereas the dev environment doesn't do that?
or not disclose the source, anyway. just because you can see the JS source and there's no license doesn't mean you can use it? don't remember how it is nowadays
 
Generally you have a staging environment that you could deploy sourcemaps to that should reflect prod as closely as possible. This lets you debug it in a prod-like environment and then not actually ship your sourcemaps to prod
 
4:20 PM
even then though, without sourcemaps you can still "pretty print" it in the devtools to figure out what's goin on
set breakpoints, inspect vars, etc
 
4:36 PM
wrt my issue earlier: It doesn't really explain why they display differently in the console, but they displayed essentially the same thing in the dev tools, so I guess my HTTP 422 error when pushing to the database is something else
 
 
2 hours later…
6:30 PM
🚽
 
user8729657
@ndugger, how well does it play out for people in the industry who "fake it till you make it"?
 
That depends entirely on your definition of faking it. If you're eager and willing to learn and actually want to do things to the best of your abilities, then you'll climb the ladder fast, but if you're just trying to get a fat paycheque and you do the bare minimum, you're never gonna be very successful, or you're gonna be promoted to manager.
Our industry is full of people that don't give a crap, and it really rubs me the wrong way
 
what if you go from being one to teh other
 
 
2 hours later…
8:27 PM
angularjs issue
using react2angular to shim a React component to an Angularjs component
the problem is that about half of the required props for the React component are never going to change, so it's really wasteful to require them every time we use that component on the Angular side
so my goal is to find a way to fill in those props without using an HTML template to do it
initially I tried using React.createElement but you can't take in any props if you use that method
 
You can't take in any props if you use React.createElement(component, props, ...children)?
Are you sure?
 
9:05 PM
Please suggest a good book for improving my JS skills
 
go to the tag wiki
 
I went here - javascriptroom.github.io/rules/...but, the pink-horse on the right is very angry & Javascript-resources is empty.
Oh, now I got it
Thank you Sir, got the full list of books :D
 
9:36 PM
@ndugger edit: I'm not actually sure what you mean
none of the parameters can take a function, and a function is the only way that it could receive props
I did end up solving it by just making a functional component
const component = (props) => React.createElement(...);
I was approaching it all wrong
I had a feeling from the start that once I solved the problem, I'd feel stupid for it
 
 
1 hour later…
10:39 PM
!!afk 🚽
 
how could you go afk in the middle of a conversation like that
 

« first day (3226 days earlier)      last day (1738 days later) »