« first day (2502 days earlier)      last day (2461 days later) » 

9:01 AM
@rlemon not sure if you have seen it already, but a noaa satelite has some recordings of the recent eclipse: nesdis.noaa.gov/content/multimedia
sad that the image goes too fast
 
If what's you meant is that you want to change the variable by assigning value directly inside hello(), the answer is no, it's passed by value. But you can re-assign it with the return value of hello(), like slymnozdmr said. @Procode
correct me if wrong:P
 
is this a good way to do it?
numb=hello(numb)
 
Oh sorry, maybe not purely passed by value
not bad to me
 
So there is no way to keep the passed value connected to the "soruce" variable?
 
oh wait, maybe it's purely passed by value, but the value can be the address of obj :P
What do you mean "connected"?
 
9:12 AM
so if changed inside the fucntion it also changes
 
@Procode Not if you're passing it as an argument
 
Ok, then youre asking what i just mentioned, passed by value or passed by ... address?
 
You could pass an Object... something like this:
    myValue = {value: 0};
    f = (x) => ++x.value;
    f(myValue);
 
to me numb = hello(numb) is ok/safe/pretty. @Procode
 
@Procode That's also the way I would do it. It's more explicit, you'll thank yourself for that later.
 
9:17 AM
if you're writing C, then notok/ugly/bad/... . lol
 
this is gold: github.com/NARKOZ/hacker-scripts (look at readme)
 
@KarelG id love more frames :(
 
!!s/gold/old/
 
@BenFortune this is old: github.com/NARKOZ/… (look at readme) (source)
 
:D
 
9:27 AM
@Procode good or not this is just way. there is some way to do this also. But this is okay for your question i think. You can do any thing with this in your inside of function than return your number too.
 
@KamilSolecki lots of satellite cam records are in few frames due of tech limitation back then
those shell scripts is old. Learned from it from bash.org
I still give a 👍 to that coffee machine instruction
Tried that at my work ... got caught D:
 
@KarelG You mean the post about the guy in the server room who sshed into the coffe machine? :D
 
yeah that terminal-guy
... that sounds wrong
but that's the purpose of a terminal. To be lazy. I have a script that is similar to that "fuck kumar"
There is a dude from marketing that occasionally complaints about a problem with the database. I (and the sys admin) do not have time for that little problem. Yet he keeps sending mails to me because the sys admin told him to fuck off. Eventually the script does a db restart which apparently solves the problem on short term.
 
9:43 AM
@Procode while C is a low level language which has pointers, that let you manipulate the memory directly, JS is not. JS passes a copy of a reference. So trying to do it the C way is just not the way to go honestly.
 
It eventually resulted from "mid" to "low" priority issue....
 
@KarelG kek nice
 
@BenFortune Did you have interfaced a rpi to a car computer before?
@rlemon or you? I may need some pointers on that.
goal: add rpi to the car that interacts with the computer so that I can start the engine remotely.
By this, I don't need a 2nd person to start the engine when examining the engine
 
@KarelG Somewhat
But you're not going to be able to start it remotely because of the immobiliser
 
That code happens on the server ^
There is a line there that does something like
 
9:52 AM
@BenFortune is it not bypass-able if you just put the key at the driver seat?
 
if(message == "this is fine")
{
    message = "...";
}
The XHR goes out with "this is fine"
 
@BenjaminGruenbaum Sweet
 
try { everything } catch( error ) { // this is fine }
 
Quality status handling
 
I can't believe people still use == in 2017, Crockford failed
:P
 
9:57 AM
"this is fine, please donate to help us improve"
 
@KarelG The key has to be in the ignition IIRC. Then you'd have to find a way to decode the canbus protocol, then a way to interface with canbus, maybe odb
 
D: D: LOKTAR!!! @Loktar AoE IV announcement
 
It can't be easy, or we would have cars being stolen by people opening hoods and plugging in rpis
 
you still need a key to bypass the immobiliser
I have that... it's just that starting up the engine so that I can examine it is just cumbersome.
I'm going to hijack that device at a mechanic friend then :|
 
I think it's more a software engineer problem than a mechanical one
 
10:03 AM
@KarelG its no middle ages any more
so no big hype for me :(
 
@KarelG it also might not be so easy
Some of them need net connection
 
I've used it before :P He explained how it works. Yes, you need auth, but that can be proxied
 
For example, BMW servisants have to literally pay a fee for every connection to the BMW system
I believe it's about 20$ but I may be way off
 
per conn ? wtf (if it's true)
 
100% true at least here in Poland, I talked with one
That's one way for a BMW company to make sure that eventually they get the service money (since the service simply must be done at the official contractor)
 
10:07 AM
heh, their approach to get extra $ from "service" is annoying
they are now doing lots of things to make us, non-licensed mechanics or particulars more difficult to replace something simple. Like a fucking lamp
 
Old times when one could replace a lightbulb easily heh
Now you literally have to take the bumper off in most cases
 
With the old toyota of my dad, I can easily access eg the front-right light to replace that bulb. It's just unscrew the box and open it. Now at his new toyota ... Removing hood cover, remove filter, remove panel with special screws, get the box and open it.
 
god replacing his oil filter was a pain in the butt, literally and figuratively
it is between the dashboard and the engine, mid-level instead of besides it
 
To be fair, I never replaced any filters myself. Probably should have at least tried
 
10:13 AM
had to remove the hood, oil reservoir, a reservoir of something-i-don't-know-what and the wipers itself.
 
@KarelG yeah, it's freaking weird, they all seem to do that now
 
poor mechanics if they have to do that for their clients
 
with my old car, exchanging basic parts was incredibly easy
last time I tried to change the lightbulb of my newer car, I went nuts
 
10:28 AM
@KamilSolecki cheap not-necessarily-fancy lunch?
I'm thinking about being more careful in spending money, and realized eating out every day doesn't help
 
@towc chicken bites
any asian-style chicken
is good, flavorful and fairly inexpensive
 
by the way.. I solved my issue from yesterday (somewhat). Creating a blurry/glas effect in css without the need to use two images
needs some tweaks, but in general this should work pretty well
 
10:45 AM
Oh cool, have you lost the game? @jAndy
 
plenty
 
fetch email id and user detail in chrome browser using javascript.
 
@JitendraMalviya 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.
 
@JitendraMalviya Did you mean to type that into Google?
 
10:50 AM
I need to make a service call every minute, constantly, is this a good idea
 
@madrauchiha we have to auto-fill user detail in Form when user enter his/her email id.
 
!!/google html5 form autofill mdn
 
@JitendraMalviya ok, but have you actually approached the problem somehow?
 
@KamilSolecki no, i am not having any knowledge about it
 
Anyone worked with Azure here, ever ?
 
10:57 AM
Then I suggest you do at least some research before you come ask for help. We arent a coding service.
When you encounter a problem, feel free to ask us.
 
@Mathematics Yeah
 
@OliverSalzburg I have a code which needs to make calls to a service every 1 minute... can I host in Azure ?
I know I can use Azure functions but they are more for event driven isn't it ?
 
^erm okay
 
Towc with them motivational messages
 
11:05 AM
I might just skip lunch again
I realized that yesterday I skipped breakfast too
I don't know what's happening
I don't remember most of yesterday, or the day before that
no handcuffs on the radiator, that's a good sign
 
o.O
It's not good on long term to not have 3 meals per days tho
 
how the hell didn't I realize they announced AoE4? :O
 
@towc stop taking candy from strangers
@GNi33 hype hype hype
 
maybe because I'm sick, but whatever
HYPE
 
@KarelG what do you do about it? Eat? Actually, that makes sense...
What if you don't feel hungry?
 
11:09 AM
I hope the Definitive Edition of AoE comes out soon(ish)
 
is this Architectures of Engineering?
 
yes
 
@Mathematics Are you asking if one of the leading cloud service providers is capable to host an application that makes 1 call every 60 seconds?
Because, in that case, I would say, yes. Yes, they do
 
Is it possible to catch html element listener functions within a module? I've got an input text with an onblur listener which calls testFunction() which is declared within that html file. At the moment I'm just calling a module method inside testFunction() so wondering if I can bypass that and just make a call straight to the module?
I know I could just use onblur=module.method() but the issue is i'm wanting to pass in the current input value as a parameter to the method call
 
module?
You can add event listeners anywhere pointing to anything you so desire.
 
11:15 AM
The problem is passing in the value of that DOM element
 
how is that the problem?
 
Oh i didn't realise I could use this.value as a param
 
you don't even need a param
 
Oh just got the DOM element inside the func?
 
the handler gets the event object passed by default, which includes a reference to the firing element
 
11:21 AM
e.target
Usually. I think.
 
in this case, yes
e.target is a reference to the firing element, e.currentTarget is a reference to the element to which the event handler is attached
 
@OliverSalzburg its not about capability, it's if it's the right platform to use
I mean they have Azure functions, and Azure services and I got no clue which one to use
maybe Azure functions
 
setTimeout(foo, 10000) will run immediately when foo is not a function?
 
... What? That makes no sense, does it? If it's not a function, how can it run?
 
@Niing What would run if foo isn't a function?
It can't be foo, only functions can run
 
11:29 AM
actually foo is an resolved promise
i'm test with following code (which is not i was intended to):
var p = Promise.all([2, 3,
    new Promise(res => setTimeout(res(4), 1000)),
    new Promise(res => setTimeout(res(5), 3000))
]);

p.then(function(arr) {
    console.log("in then arr:", arr);
});

setTimeout(()=>{console.log(p)}, 1000)
the handler of then() run immediately without waiting 3 seconds
 
Yes, of course. You're invoking the resolve immediately.
new Promise(res => setTimeout(res(4), 1000)), -> invokes res instead of waiting
 
i know, res(3) should be ()=>{res(3)} which will act as i want, waiting 3 sec.
 
So, what's your question?
 
setTimeout(res(4), 1000) how can this make any sense
what is the set timeout even good for
 
lol, it's a mistake
but it makes then() run immediately without waiting
sorry, bad code
 
11:35 AM
why am I so lazy ??
 
Programmers are supposed to be lazy.
 
ok i got it, setTimeout is not even executed.
 
being lazy is really hard to overcome
 
thank you Roel
 
whatever res(4) and res(5) return will get "executed" from setTimeout
 
11:37 AM
@RoelvanUden A lazy man would find a better way to do it - Bill Gates :D
 
if those calls return function references, it technically will work, but it wouldn't make much sense either
 
lol i hope i could delete the code. bad example.
 
@KarelG Thinking of the car thing, I think @HatterisMad was doing something similar
 
@RoelvanUden sometimes I know what to do, am just too lazy to start
 
Hey, welcome to my life.
 
11:47 AM
@towc I still eat. I only reduce the portion if I have a feeling of being saturated
 
@Mathematics They are as right as any other, especially given the extremely abstract problem description :P
@KarelG Why though?
 
to not be hungry and grabbing snacks on a later moment?
 
@KarelG Why not just eat when you're hungry?
 
I don't understand. If I only ate while I was hungry, how would I hate myself?
 
because it doesn't work that way. IF you're hungry, then your body (especially the brain) is lacking the necessary glucose. It then tries to get it from other places: your muscles
 
11:51 AM
@Cereal You have a point
 
there is also a relation between being hungry and being more aggressive.
 
@KarelG I'm not talking about starving yourself :P
 
@RoelvanUden I also stuck at silly problems and depend on others
 
@OliverSalzburg isn't that what you're doing if you're skipping meals and having hungry later ?
*hunger
 
@Mathematics This is where we diverge.
 
11:52 AM
And I'm getting more aggressive when I'm being force-fed by someone who thinks breakfast is the most important meal of the day you have to eat it OMG!!!
 
why arr of .then(function(arr){console.log(arr)}) will still print the resolved array(without the last one) .all() if it's the last one rejected?
sorry
 
@KarelG I dunno, I never skip meals, because there is no meal to skip
When I'm hungry, I prepare food and eat it
And I'm asking because I'm wondering if there is actually something wrong with that :P
 
it's just more easier to have fixed moments of eating.
30 mins after waking up (6:45) + lunch (12h-13h) + evening meal (18h30-21h)
 
Makes sense
 

« first day (2502 days earlier)      last day (2461 days later) »