« first day (2760 days earlier)      last day (2410 days later) » 

00:24
@DavidKamer paypal is so easy nowadays that is my advice. I have literally set up paypal on static sites and it works fine. If you have a clever little kid they can theoretically modify the payment amount if it is the way it used to be but just have someone check the order amonut.
@William Yeah, you're probably right. I'm not too worried how it will work at first. I'm using it to hold an amount and then disburse it to another party after something is completed. Kind of a middle man guarantee type deal. Do you think they provide enough low level stuff to automate that or do you think I'll have to do it all manually?
I don't understand your question. If you are trying to up price items as a middle man...uh... my advice is don't. Paypal works well and works pretty much everywhere but china
@William no, like I hold onto a promised amount of money and then give to the the other party if the process completes SWIM may have got the idea from a dark web site that held a crypto currency between buyers and sellers lol. It's the same idea but for services
never done that. So upwork/freelancer.
good luck
yep
I can always do it manually
wow, upwork has terribly high fees. Like 20%... wow
00:44
freelancer last time I used it felt like a scam
the developer couldn't deliver
 
1 hour later…
02:14
morn
02:31
morn
What a deal
Still pretty pumped about that heh
just need to wait on my card to put custom firmware on it
 
1 hour later…
03:43
@William I'm offering a service on my site to vet freelancers. Screw getting paid off for my promotion, earn it.
To be fair though, you weren't asking for the next Facebook for 50 bucks were you? Lol
@Loktar I'm glad they decided to stop pretending the 2DS could exist with that stupid slab form factor
no clue what they were thinking
@Loktar did you see that you can flash Linux onto the switch?
04:30
import isNil from 'lodash/isEmpty';
gg whoever wrote that... gg.
i'm starting to severely dislike lodash. What is wrong with x == null?
05:13
morning
06:04
so this is a thing
https://github.com/kitcambridge/evil.js/wiki/What-evil.js-does
key highlight for me:
changes Infinity to a string containing the infinity symbol
06:22
what is the difference between $("#lblname")[0]
and $("#lblname")
when I type them in console in the browser web dev tools
@derp oh that is evil
@Breathing first give you a Node element (native javascript object) while the latter gives you a jQuery object. jQuery is a library that runs on top on javascript
@Breathing One is using jQuery, which is bad enough. The other is asking jQuery to call document.getElementById on your behalf, and then retrieving the results that would have been returned by document.getElementById, rendering the exercise to use jQuery meaningless
USM
USM
Hey Guys, How do i get back prev stash.. I did git stash and then switced other branch and there also i did git stash. now i lost all my prev branch stash data? How do i recover them?
06:38
Ohhai
@USM git stash list gives you an overview of the stash. if you want to use the last stash item: git stash apply or git stash pop. The former is more secure but does not delete the stash item. You have to do it yourself. The latter however does delete the item but is less secure (if a conflict happens then yeah ... )
to use a specific item: git stash apply <stash id> (example: git stash stash@{2} gives the third item)
USM
USM
06:54
@KarelG cool
thanks karel and neil
no problem
so which one should I use though?
I am able to get the innerText in my jQuery function using $("#lblname")[0].innerText()
@Breathing which ever works for you, the jquery equivalent would be $("#lblname").text()
@FranjoPintarić Welcome to the JavaScript chat! Please review the room rules. Please don'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.
07:08
@Breathing Use @Franjo's solution if you're already using jQuery
If you have to include jQuery to obtain that, don't bother with jQuery at all
Random fact of the day: Despite being able to go long periods without water, camel humps hold fat, not water.
not a new thing for me
YOU CAN DO IT BETTER
and yes I agree with you. If you are using jquery, stick with its functions
@KarelG The medical name for a butt crack is “intergluteal cleft”.
oh I recall that "intergluteal cleft". Then I realized that I have heard of that from checking "butt cleavage"...
that led me to a wiki page
07:24
you've heard that one?!
grumbles audibly
There is a 51% chance that a flipped coin will land on the side that was facing up when it was flipped.
the existence of that wiki page has amused me tho
also known :P
Does Promise.resolve(1) resolve synchronously ?
what do you think?
It returns a resolved promise. The promise doesn't have to resolve because it's already resolved
I'd assume it's analogous to Task.FromResult(1) from .NET
(given that you're a .NET programmer)
aww ... let him do some thinking
*shakes fist*
07:34
I wasn't so sure KarelG
a simple test:
run Promise.resolve(1).then(console.log); console.log(22); in your console
you should get 22 first
so it's not synchrounsly resolved....
no
Promise chains are always async
Yup
that resolved object is on the async stack
if the event loop has nothing to do, it check the async stack. But it has to print that 22 to the console
so it does that first before checking the stack
which then handles the resolved promise
hence you see 22 being outputted first before 1
07:39
@KarelG The Manchineel tree will cause blistering of the skin if you are beneath one when it rains. The apples they produce will kill you if you ingest them, and you can't even burn it as the smoke produced by the tree will cause temporary and even permanent blindness.
@KarelG My "answer" doesn't really answer the question though I don't think. It's more of "you shouldn't need to worry about it"
@Neil TIL.
Thanks Karel
But then I've never thened a promise that's resolved right off the bat, so ¯\_(ツ)_/¯
@KarelG yay!
07:45
lol bolt
@RoyiNamir It does, yes
@KarelG You're wrong.
Promise.resolve() returns an already resolve promise, totally sync.
Promise.resolve(1).then(console.log); console.log(22); //22,1
.then() however is always performed on next tick.
(next microtick, if we're being technically accurate)
07:49
oh right microtask
Regardless of whether the promise was synchronously resolved or asynchronously resolved.
Make sense. Thanks
I spoke about the chain ...
@MadaraUchiha my point
08:12
@MadaraUchiha I guess it's considered synchronous since it's being executed by the same thread
@Neil No
It's considered synchronous because the promise you get is already resolved. On this tick, not the next.
But the then part doesn't happen right away regardless
@MadaraUchiha ^ This annoys me
That is, the UX can be a lot better
As opposed to
@Neil Right, because they wanted to ensure that order of execution with resolving promise will always be the same
Here's a classic question
console.log(1);
maybeAsync(() => console.log(2));
console.log(3);
new Promise(setTimeout) :D
Did I mention new Promise is a mistake :D?
08:14
Given that I'm not telling you how maybeAsync is implemented
What's the order of the logs? @Neil
guys i have received a file with *.i09 extension. Is there any way i could find the program which could open it?
@BenjaminGruenbaum how could i find then
I googled but all it said was you need to be explicit about the program you choose to open the file
I have received the file where they didnt mention the program it could be opened with.
Depends on whether or not maybeAsync calls it synchronously or not
Or at least synchronously as I think of it
if it simply calls it, logs 1, 2, 3. If called in .then call, then 1, 3, 2
@Neil what if it sometimes calls it synchronously and sometimes not?
08:24
@BenjaminGruenbaum Then the behavior varies accordingly
function maybeAsync(cb) {
  if (maybeAsync.cached) cb(maybeAsync.cached);
  queryDb('whatever', (err, data) => cb(maybeAsync.cached = data));
}
Which is confusing
I see your point
Better behavior is always the same
Yeah, though I'm not that convinced anymore
In retrospect, I would have preferred significantly simpler promises. My promises today would likely be:
- No promise constructor, instead provide `promisify` as the base building block
- Don't defer callbacks to the next tick
- No recursive assimilation
- Must return a promise (and not value) from `then`
- No `.catch` or `.finally` for promises, only `then`
- Build everything on top of `async/await`
Ah, I forgot the most important:
- No chaining
why no chaining?
how else would you do it?
it's morning, my dudes
08:33
@Neil what do you mean?
@BenjaminGruenbaum You have three asynchronous tasks which must be performed one after the other. How would you obtain this if not through chaining?
Not saying it's impossible, just trying to understand your idea :)
@Neil async/await
You're basically saying that promises would have been very different if we had started with async/await instead of having first a toolset not depending of a syntax evolution, right ?
Promises being so visible is the result of history.
> - No .catch or .finally for promises, only then
how do you handle errors? With the second argument in the thenable?
How do I change/replace value of option:selected?
using jquery
08:44
@Breathing .val(newval)
@KarelG yes
@DenysSéguret right
does it not go against
> Must return a promise (and not value) from then
?
No? You can return a rejected promise
because the error handling is usually a void function (an action done without returning result)
No, but I get why you'd think that with the current API
08:46
same with setting text?
Handling the error with a void function means you recovered from it with undefined which seldom makes sense
that happens a lot tho :P
there is a reject thing for that
but apparently people do not use it. Calling a function that displays "error!" is probably easier
Neil, you aren't being very welcoming. — kevin cline 5 mins ago
ffs
DOESN'T WORK
why is that in full caps? If done correctly, then .val should change the selected element to the passed value (if present in the option list ofc)
08:58
$('#days option:selected').text();
I want to change text
what does text do?
@Neil your sarcasm detector is broken
@Neoares Ah, you think it was sarcasm?
he said so
Sorry Neil that was a joking reference to the recent Jay Hanlon column, and evidently it wasn't very funny. I'm deleting it. — kevin cline 7 mins ago
09:02
@Breathing you are missing a value in that .text()
that's me doing sexist jokes
u.u
it should work as ... it would
oh by the way
After installing the package `react-native-image-picker`, the build icon is not showing, rather the default android icon is showing, previously it was working fine.
Any idea what I am doing wrong? Cant find anything on google
09:03
someone here plays pubg? (i don't but i'm doing some data mining)
w3schools !! D: D;
@Wietlol I should kick you for that.
w3schools + jquery
man, it hurts
lol yeah
09:04
anyway let's star it so everyone cat see it
oh, and url ending in .asp
it's getting better
@MadaraUchiha why? w3s has some good pages
you can get most information from it that you need
@Wietlol There are much better alternatives.
Like the jQuery docs, in this case.
it even has information that the mozilla website doesnt have
Please help,

I am working with react native. After installing the package `react-native-image-picker`, the build icon is not showing, rather the default android icon is showing, previously it was working fine.
Any idea what I am doing wrong? Cant find anything on google
09:07
@KarelG What's "Wind Energy"?
its also the first result on google... maybe I should have posted a lmgtfy link
but then i would definitely be banned
@Wietlol W3S has excellent SEO, for years it's been a blight on search results.
There are entire extensions whose sole purpose is to get rid of W3S from the search results.
@MadaraUchiha windmills
@MadaraUchiha energy generated from turbines that got driven by wind?
@Neoares Windmills produce electricity through turning of dynamos
09:09
that are moved with wind
There's no such thing as "Wind Energy"
well
wind has energy
do you know how solar panels work?
@Wietlol Yeah, Kinetic Energy
09:10
we call it "solar energy" if we are using solar panel to get electricity from it
It's not "Wind Energy" any more than there's "Car Energy"
it depends on the solar panels
if it's a photovoltaic one, or a thermal one
same for energy from windmills
I know some panels are used just to boil water
@MadaraUchiha "x energy" is energy made by x
09:11
and then move dynamos with @Vap0r
@Wietlol Fair enough
@MadaraUchiha its clearly energy that makes car noises on release
@KamilSolecki No, no, that's vroom vroom energy.
"car energy" would be energy made by a car
which actually exists
yeah, noise
and kinetic energy
09:12
Cars utilize many types of energies, kinetic to move, electric for systems, heat to generate work and drive in the engine, also, excess heat and noise when passing through a medium, such as air, or in much greater quantities when medium is walls or trees..
None of those are "car energies" though
what about content energy
is it happy energy
or an energy made by content content
@MadaraUchiha alternator?
got it
@KamilSolecki it converts mechanical energy to electric ones
I needed to use contains
09:31
> Morty: Is it the quantum carburetor or something?
Rick: "Quantum carburetor"? Jesus, Morty. You can't just add a [burps]-- Sci-Fi word to a car word and hope it means something. Huh, looks like something's wrong with the microverse battery.
a classic
@KarelG yes, I was just making a point that it could be an example of car energy ;)
aye
it just struck me that you are loosing two different energies when using a treadmill
electric and body
user9674579
Hi does the chat title JavaScript mean programming language Javascriot or something else ?
@MasterDarkNight Welcome to the JavaScript chat! Please review the room rules. Please don'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.
09:38
@MasterDarkNight what else would you expect it to mean? :P
@Loktar lol nice, have you played it? I did the first world and it's way more difficult than mario
I got it for switch cause I like to play in the train :P
do you live in Barcelona itself?
no
12km away
ah, a daily commuter then
idk what it's a daily commuter :D
09:41
@MasterDarkNight it's the JavaScript community
I just pick the train
we don't always talk about the language
someone that goes from home to work on work days
@Neoares a person who commutes daily, of course!
and back after work
09:41
oh yes, that's me
user9674579
But you people are discussing off-topic stuff , not related to Javascript
I'm a daily commuter :D
48 secs ago, by towc
we don't always talk about the language
@MasterDarkNight please check the room rules.
looks like this guy saw the twit and created an account
09:42
I sometimes want to live in city so that you can go to work easily
@MasterDarkNight we discuss many things. You will see a lot of javadcript, but also 3d printing, gaming, plants and all other things.
but then I do not like having small homesteads
oh it's easy to get here, in 15 min you're already in barcelona :D
then I do not like queuing up on the roads
25 min to where I work
09:42
@KarelG i live in the city and still drive 20 mins to worl
I sometimes take a train from my home
8 min with bicycle then 30 mins on train for 18km lol and then a bus (shuttle service)
takes sometimes 50min to a hour for one go
going with a car? 25 ish min
fastest train in the west I see :P
too many stops
time in train doesn't matter if you have a fabulous Nintendo Switch
Belgium has a very high rail road density
the place where I live is a countryside but has two stops lol
the other stop is almost middle in nowhere, with only pastures and fields around
then after 5 mins, we arrive at the next stop
09:46
HAMMERTIME!
going from my current stop to that stop is 10 ish minutes with bicycle
Just looked at rail network density statistics... and concluded there's no relevant stat really conveying a useful idea of the density ^^
(some countries are just a town, some include a big share of Antartica with not a lot of trains)
@DenysSéguret We talking about factorio now!? No? ._. ok
!!google factorio
!!live
+1 @ that idea

« first day (2760 days earlier)      last day (2410 days later) »