« first day (2459 days earlier)      last day (2711 days later) » 

17:01
cc @Loktar
LOL
Hey everyone
Dear god no
user1596138
@SterlingArcher Is that the end of spaceballs
user1596138
Or was the end of spaceballs actually a scene from planet of the apes
17:08
/thread
user1596138
No no no that's actual POA
@SterlingArcher omfg
my question is about webpack packaging for production. webpack -p is creating a bundle of 11 Mb and after changing to ``` const development = {
devtool:'source-map'
};``` from ```devtool:'inline-source-map'``` the bundle.js js is reduced to less than 1 Mb. how does it work ?
sorry for the messed up formatting
your source maps aren't inlined now
which reduces the filesize
inlined as in inside of the source file in addition to your code.
@Mosho WDYM you can't?
I can
17:14
Is inline source better than not?
@Vamsi that's Babel not webpack
@Loktar thanks for the answer , but I have explicitly the env variable to prod .. NODE_ENV=protuction webpack -p
Source maps let you see the original source rather than the output of babel in the debugger
@Vamsi mispelled
if that's actually copied.
protuction !== production
1mb bundle is still big btw
17:17
Wait really?
@BenjaminGruenbaum when I get the error from this library it has no stack
and I do remember there was no stack some time ago
but now with NODE_DEBUG=fs you get it
Callbacks or promises? callbacks have no async stack traces so just the last thing.
@Loktar right, will check with correct spelling
If your code was promises it would have worked though - with async stack traces
11mb to 1mb idk that's a pretty nice reduction
17:18
Or with async stack traces in the devtools
not my code
+ will gzip
I managed to find it though
For SourceUndead my bundled app.js code is 1.2mb and my app.js.map is 1.4mb
But I think I bundled the node_modules as well
plug and play
var valueEqual = function valueEqual(a, b) {
wait what
why do that
The amount of dumb mistakes that I make.......
17:26
Are you referring to your avatar?
hahahahaha, no. But the answer to that question is two so far lmfao
anyone know how to use dynamic import with typescript?
what does that mean ?
No, I have a few global functions and for some stupid reason on that script I have multiple immediately invoking function expressions -_-
I can show you what I am aiming to do:
17:29
imports are currently handled by preprocessors
import * as React from 'react';

interface Props { src: string, options: {} };

export default class Player extends React.Component<Props> {
  async componentDidMount() {
    const jwplayer = await import('script-loader!lib/jwplayer.js');
    jwplayer.setup(this.container, this.props.options);
  }

  render() {
    return (<div ref={e => { this.container = e; } } />);
  }
}
@Loktar why are you always breaking people's code?
@Vap0r because it's fun
esp when they don't know how to fix it muhaha
hi is there a three.js expert/guru/allah here?
lmao he said you didn't know how to do a jQuery on click event with static nesting functions
!!welcome Suisse
17:31
@Suisse Welcome to the JavaScript chat! Please review the room rules. Pleasedon't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
yeah my question is: is there a thee.js god here?
thx
I'm really good at it
wow its my lucky day. thank you.
I have no further questions.
bb
@Vap0r I heard you are good in three.js?
yup
But are you Allah?
17:34
@Shmiddty they're ridiculously slow in browsers - but work under a flag
haha but are you allah? xD
hahahaha
omg this place is going retarded
@Vap0r just kidding.. I am sure you wouldn't have write that when I wrote "god" instad of allah hehe
!!s/retarded/mentally disabled/
@Shmiddty omg this place is going mentally disabled (source)
17:35
ok take it easy, I am muslim I can
@Vap0r my question is: are you really good???
ok I let it be, just kidding
my actual question is: when I have a group of meshs, and I animate their rotation; and then I want to rotate only one of those meshs separately, they rotate very strange
@Suisse Internalized islamophobia
the pivot point is I don't know
@littlepootis yes yes... but I converted to islam to fight against islamophobia
Just use Unity and 3DS, nube.
and I also converted to javascript
@Suisse ok, here's what you can do... Next time you have a question, and you don't ask it directly, I imagine someone might give you the welcome command. If they do, maybe listen to their advice because they'll be extremely irked you wasted their time.
17:38
@littlepootis Oo not sure you also are trolling like me or Oo
@Vap0r hmm sorry I thought we enjoy chating here
so you can't help? :(
No not really
I enjoy it with you guys
@Suisse I won't help
but I swear I am muslim!
100%
it was just a joke
hm ok its ok, you don't have
stop flagging nonsense you twits
17:40
actually because of the 0 in your name, I thought you are a pr0 user (that german community site..)
@Shmiddty my posts?
your post wasn't flagged
Damn then it really must've been nonsense
@Vap0r I found it quaternion = new THREE.Quaternion().setFromAxisAngle( axisOfRotation, angleOfRotation );

thank you for forcing me to be self active and learn more - I really love this community
I love me too
17:44
I can't deal with all this shit I'll come back later in the day
why what is wrong? hmm was it really that wrong? :/
I am really sorry!!! it was just a joke
You're good man don't worry about it it's just not my day lol
!!afk wtf
ok :) everything will be ok; just make a pause.. do sport.. swimming and then try again!
Fun fact. IE supports multiple IIFE, but Chrome does not
What's a multiple IIFE?
17:49
I was dumb and did something like this:
(function(){
    ...
})();
(function(){
    ...
})();
In one script
Why wouldn't that work?
IDK, but chrome won't run the second one but IE will
Any errors in the console when you run that in chrome?
Do the IIFEs return functions, by any chance?
Yes, you just figured out my problem. Thank you. I have an onload function that tries to run before the second iife runs which kills it
And did you miss any semicolons?
@Kramb ah
17:53
error: insufficient permission for adding an object to repository database .git/objects
why does my git keep throwing this error? I'm not messing with any permissions
Typescript question; what's wrong with this typing?
export default class Player extends React.Component<Props> {
  player: React.HTMLFactory<HTMLDivElement> = null;

  render() {
    return (
      <div
        ref={el => { this.player = el; }}
      />
    );
  }
}
I get Type 'HTMLDivElement' is not assignable to type 'HTMLFactory<HTMLDivElement>'., but I am not sure how to handle it
Is return really a function in TypeScript?
Honest question. I was out of the loop for ... I don't know, ages I guess.
@CapricaSix how are you lovely?
> Scope is probably limiting the accessibility. Try using var, instead of let and see if that works.
oh honey
@OctavianDamiean!!!!
18:01
Missed you <3
@rlemon ping
i r back
again
kinda
y u leave
@OctavianDamiean Wasn't he just grouping?
woop wop
18:03
!!moonowl
@SterlingArcher life man, life
Life is but a sham
It has been quite a ride. Got a girlfriend and I started studying law
the game or the cereal
18:04
Gotta know how to sue erryone erryday
Nice, I got a gf too and I started studying React
Good job man! When will you get your master in React and will it be about Redux? :D
@MadaraUchiha idk if this is shiesty or not.. but I saw an answer pop up on a question -- the content was literally a copy paste of the code from the question -- no changes, no words, and it was instantly upvoted (under 3 seconds), then deleted. Is that something to worry over?
@OctavianDamiean I heard mobx > redux tho
@SterlingArcher Link?
The highlight so far was the moment when my native speaker English professor thought I was a native speaker as well. His face when I told him I ain't, priceless.
18:07
ohhi
@SterlingArcher could very well be true. At the moment React and its ecosystem looks like the fragment of an artifact found at Roswell to me. haha
I can't connect to our proxied network at work, so I'm dead in the water. Hooray.
@SterlingArcher if it was upvoted and then deleted then there's no rep gained or even badges earned... odd
deleted Qs would still count against question ban, despite an upvote
seems more peculiar behavior than subversive
@OctavianDamiean omg
Three.js question:

I have a group of 3dobjects (a pen and its cap)

in my animation loop, I rotate the pen and its cap with scene traverse .. object3d.rotation.y +=somevalue.


now while the whole thing is animating/rotating, I wanted to rotate only the cap on its own Z axis. but the rotation looks wired, it rotates every axis and I have no control.

any ideas?
@Suisse You probably need a different order for your Euler angles
Sounds like you just need to Eul your hinges ;-)
I'll see myself out
@KendallFrey I tried some (a lot) different solution
Hey 1337 hacker skilz can you format dem hacks properly pls? — Sterling Archer 7 secs ago
18:17
var start = Date.now()
var i =0;
 function loop() {
		 i+=0.1;
		 var euler = new THREE.Euler( 0, 0, i, 'XYZ' );
            outerCap.position.applyEuler(euler);
		console.log("dreh")
	         render();
	         if (Date.now() - start < 4000) {
	             requestAnimationFrame(loop);
	         }
	     }
     loop();
@KendallFrey
 var euler = new THREE.Euler( 0, 0, i, 'XYZ' );
            outerCap.position.applyEuler(euler);
Seriously? Array.from(data.find("item title")).map(e => [e.textContent])Benjamin Gruenbaum 13 secs ago
@Suisse I don't think that's rotating anything...
@KendallFrey true hehe why not?
Because you're not changing the rotation of any object
this is one of the variations I tried, there is also a soloution with onAxis
18:18
The only thing you're changing is position
aaaaaaaaaaaaah
position
hm ok I don't get it.
Oh snap @BenjaminGruenbaum vs Lightness Races in Orbit
$50 on benji fight to the death
He used to be in the C++ room a lot @SterlingArcher we actually talked quite a lot
He was kind of a dick and everyone hated him there so he left lol.
I've only talked with him a few times but I've only ever seen him be a dick
I like him lol
18:22
Smart man though
He was kind of a dick and everyone hated him - Lounge in a nutshell
lol @KendallFrey
@SterlingArcher yeah, never said he's stupid
Didn't mean to imply that :)
Just giving him a compliment... that dick.
@KendallFrey
https://stackoverflow.com/a/26862048/3037960
18:26
@SterlingArcher you didn't compliment my dick :(
I'm living proof that you can be a dick and still be insanely smart.
💩
its everytime position; i tried rotation, nothing is changing neither
@Mosho I know.
ohhhh
@KendallFrey now that's thinking with your head.
@Suisse It's not everytime position. Are you blind? Read the other answers.
18:28
Uncaught TypeError: outerCap.rotation.applyEuler is not a function
Yeah, because that's not how you compose rotations
but .applyEuler is on those answers always applied to the positions never rotation
maybe I am blind, I cant see it
:/ hmm
In your case, it sounds like you just want to do something like outerCap.rotation.z += i;
1 min ago, by Kendall Frey
Yeah, because that's not how you compose rotations
How have you guys overcome the problem of writing code before you have completed your design so that you avoid too many rewrites
That's our jobs to know how to do that.
18:30
@KendallFrey I mean yes, I want to do that, but like I said, its actiong vey wierd
@MoonOwl22 That's not a problem for me. That's a solution.
Might as well ask a firefighter how he overcomes the problem of fires.
@Suisse I can't read your mind, and therefore I can't help you if you don't give me details.
@MoonOwl22 That's pretty much the nature of programming in a company.
How is it a solution @KendallFrey
18:31
Product managers are getting paid to be fickle and quick to change their minds
no matter how many times you get the design signed up front, expect changes after it's done
@MoonOwl22 Because the problem is waiting to write code until the design is complete.
Requirements change, and you need to be able to be reactive about changes.
Unless you find a way to predict the future, that is.
I have the suspicion that the 'admin' I am talking to doesn't know what SSH is...
user1596138
@Suisse is @ssube's sister?
2
user1596138
18:31
Or clone?
@MadaraUchiha Just hire Valtteri Bottas :)
jsvascript
So that means I need to improve my analsis so that my designs do not need to be changed
@MoonOwl22 No
Anyone wants a snsv laptop?
18:33
predicting the parts of code that are likely to change and making them modular (or at least changable in some way) is what separates the men from the boys (or woman from the girls)
@MadaraUchiha I love those
Isn't poor design mostly caused by poor analysis?
of a problem
@KendallFrey ok if you could give it one sight:
http://choix.me/zhaw/industrie/index2.html
poor analysis + poor foresight
18:33
@MoonOwl22 Yes, but it's usually not you who does the analysis
@Luggage I thought it was Chris Hansen that did that.
@KendallFrey just open the console and paste this:
			var start = Date.now() // note this
i =0;
	     function loop() {
					i+=0.1;
					outerCap.rotation.z =i;
					render();
	         if (Date.now() - start < 4000) { //note this also
	             requestAnimationFrame(loop);
	         }
	     }
     loop(); // fire the initial loop;
			// do the render
you will see what I mean by wierd
What if it is you who has to do the analysis, design and implementation altogether
You're usually bound by middle management and project/product managers who care more about proving that they're worth something to their superiors than actually make a good product with actual KPIs in mind
(Not to say that there aren't exceptions, or that there aren't solid product managers)
@BenjaminGruenbaum Yup, me
18:35
@MadaraUchiha really? You get a happy face when you click "Start test"?
Yup
Might have something to do that my DNS is set to Google's
And not Bezeq's
Or my new router
I'm not very good at networking :P
I see. Well, I am working on a pet project
It saddens me that what I want it to be changes all the time
It's as if I don't understand my own thoughts
@MoonOwl22 Welcome to programming. We're all mad here.
@Suisse Looks to me like you're applying rotations to outerCap's children, not to outerCap itself
Although, part of being a professional developer is being able to write code so that it's easy to modify when requirements inevitably change.
18:38
I imagine that the things changing are adding fields, some business rules? not technology choices?
Hence functional and object oriented programming?
ohh, personal project.
@Luggage The things that are changing for me are design choices
example?
user1596138
> If you are operating a website and would like to help us, consider adding our hidden DNSSEC test.
user1596138
18:39
Haha
So I am stuck between weighted directed graph and an unweighted directed graph
The complications are in the colouring decisions
I am rushing to code before I know what I want to do
As a result, I am wasting time
:(
@MoonOwl22 Step back, what is the purpose of your project?
@Suisse Your problem begins on line 308. You should be rotating the parent object as a unit, not each child as a mesh independently.
@MadaraUchiha To represent ideas that take the form of arguements, theories and concepts
@KendallFrey hmm no I use the objloader and on load(obj) and then obj.travers(child) I do this:
wireframedPen = THREE.SceneUtils.createMultiMaterialObject( child.geometry, [  																				new THREE.MeshPhongMaterial({ambient: 0x808080, color: Math.random() * 0xffffff}),  																				new THREE.MeshBasicMaterial( { color: 0xffffff, wireframe: true} )  																		]);  																if(wireframedPen.name ==="outerCap"){  																	outerCap = wireframedPen;  																}
18:42
To have some sort of knowledge graph
@Suisse What is with this obscene amount of whitespace? There's so much whitespace here it's racist!
As the end result
flagged
@MadaraUchiha haha wtf
i fixed it
@MoonOwl22 That's quite the abstract concept, I'm not surprised you're having a hard time designing it
That's quite the jump to the deep end of the pool.
18:43
@MadaraUchiha I probably need to go hiking and then think about this deeply
@MadaraUchiha I see you've met MoonOwl22
Madara is it time for my RO yet?
Or was that next Monday?
@KendallFrey you mean I should rotate the whole pen at once? without scene.traverse?
Every time you ask we add 6 months.
@Suisse Yes
18:45
So far you are into mid 2020
Everytime I think about asking and I don't does it subtract 6 months?
@KendallFrey ok, hm I used the boilerplate .. ok wait I try, thank you!!!
Rotations get applied in order from parents to children to grandchildren etc.
It would only be fair
@MadaraUchiha I have been reading a lot of formal logic of late and it seems like the pool keeps getting deeper and deeper because there is never perfection
Very few prescriptions and lots of analyses that that leave you wondering what you are doing
18:48
Every once in a while I feel like maybe, just maybe, you guys don't take me 100% seriously
I used to assume logic was a simple topic until I realised logicians are underappreciated everywhere
VapOr, everyone takes you seriously if you want them to. It's all about your perception. That's the post-modern truth
@KendallFrey wow thank you very much :) how could you know that? I mean what should I read (the docs yes yes) that I also know thats its a nogo to rotate the childrens... you deserve a coffee! thx
@MoonOwl22 do you want me to take you seriously?
@MoonOwl22 Did you seriously just switch from "logicians are underappreciated" to postmodernism in under a minute?
@Suisse It's partly intuitive experience and partly the simple fact that rotations are not commutative
@KendallFrey In other words, you're not taken seriousl by everyone. I hate that I have to explain that was a jibe at post-modernism
18:52
@MadaraUchiha nice, probably the DNS and the router
I hate that there isn't some innate understanding that text, written "matter-of-fact-ly" is not the best conveyor of sarcasm
@BenjaminGruenbaum DNS probably, I get a pass too (Google Public DNS)
I fail, better change to Google's DNS lol, big brother knows everything
Google will eventually replace the UN and Microsoft will become the Red Cross. We can then all live in the paradise of search engines and operating systems being distributed free of your money and your data
I caught it that time somehow

« first day (2459 days earlier)      last day (2711 days later) »