« first day (2741 days earlier)      last day (2431 days later) » 

00:01
@Cereal in fact it has a target property, but it doesn't contain any info about the passed action
try a action property
of the target property
Basically what I have been trying
1 message moved to Trash can
@KESO Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
const target = this.action ? this.action.target ? this.action.target : this.target : null;
00:03
this.target.action
$(document).on("submit", "form", function(e) {
   e.preventDefault();
   console.log(e.target.action);
  ...
});
How about you just console.log(e)
@Meredith e is an object and it has a lot of stuff... but no one have the passed URL
as exciting as that sounds
pass
00:07
@KESO looks right to me
@Cereal indeed, but the original form doesn't have an action, is passed in the way I showed previously
That means it has an action
Do you mean inside the submit event
because you can't automagically know what it's going to be set to before it's set
@Cereal sounds fair, but is not working... let me try something and I will let you know
You might be able to put an observer on the form and wait for it ot change
00:14
That would only work if setting the action modifies the dom though
Which I don't think it does
so wait, the problem is that he/she wants to collect a dynamic action on form submit?
have you guys heard about this
Yeah
@rlemon Yup
Interesting to see where fuschia goes but I haven't heard much about it
00:19
@KESO jsfiddle.net/zb59j4j0 would be more helpful then if you showed your actual code.
I just remember people talking about it like
yeah it's pretty cool
@SterlingArcher so you've been gaming :D
I hate coming back to chat after gaming. caps is always on.
Demo is out, entire first level
00:20
Thank you @rlemon, taking a look...
@rlemon the form action is being set in the submit event
@rlemon no lol i need to cut my pinky nail it keeps slipping on the keys
From my understanding
@Loktar yayyyy
@Cereal then it for sure is available there.
foo.a = 1;
console.log( foo.a );
00:21
That wouldn't still call if the submit navigates, would it
no but he has preventDefault doesn't he?
17 mins ago, by KESO
$(document).on("submit", "form", function(e) {
   e.preventDefault();
   console.log(e.target.action);
  ...
});
I'm 99% sure the action is being set in another submit event
hrm
and he's trying to peek before it's submitted
jQuery uses its own event model (they did, might still be true) so idk how that works.
maybe try hooking to it outside of jQuery
because that works fine
00:24
@Meredith it was obvious google will try to make an OS
android doesn't count
chromium os?
Yeah I'm hoping it turns out well
sterling pls
chrome/ium OS is becoming more containers
soon it will most likely be actual containers
Didn't they deprecate chrome apps though
00:25
@Cereal more or less, the idea is to catch any submit form to evaluate the URL request before it happens
Which they're not bringing back with pwa
then they'll be able to shuffle services between your laptop and GCP
now*
That "Install desktop app..." thing is usper cool in chrome
@Cereal yea, they keep removing the good shit
That's kind of google's thing
Build a product, get lots of people using it
00:26
NPAPI was super useful. dead.
:(
also, what's up with autonomous cars
They hate us
did someone else die
no, just passive aggressive hatred, mostly
I bet a spiderman game would be fun on VR. web slanging
00:27
@Luggage I'm convinced they don't hate us, they just listen to SV a little bit too much
@SterlingArcher there's a multiplayer shooter somewhat like that
enough people in their core area says one thing, the rest of the population suffers
someone near here died while driving a tesla and watching harry potter
SterlingArcher has blue balls for his Dell
why is there a piece of pineapple in the mixed grill I ordered
00:28
@Meredith at least they went happy
@Meredith yeah, but they were watching harry potter
I like pineapple but I was concerned for a second there
^
ssube gets it
@Luggage it's true I'm watching videos and longing
We close
the harry potter movies age well.
00:28
@rlemon catching the action for any submit, that's the idea
that's not quite where I was going with it
if they built self driving cars under the assumption people wouldn't watch harry potter while "driving"
that's where I'm taking it
I did enjoy the movies more than the books, fwiw :D
the entire industry is fucked
see I enjoyed the books. but once the movies hit I realized I was pronouncing every name very very wrong.
I quit at book 4
something phoenix
@Loktar haha yea I posted that, fucking nuts.
they wanted to pay!
angsty phoenix?
00:30
I never tought javascript experts were so deep in thought :D
jesus.
yeah that's nuts
3rd parties can't even
To be or not to be...
Uncaught SyntaxError: Invalid or unexpected token
I'm sorry, I tried to joke. it failed.
hell yes, 100 fusion powered construction robots
00:35
@ssube have you tried pipewire.org ?
00:47
I'm trying to figure out the difference between Isle of Man TT and suicide
@KendallFrey None
@KendallFrey whats that
youtube it
assuming you mean the former
01:02
so just motorcycles?
on an extremely fast street track
Wouldnt the motorcycles be fast, not the race track?
Do they just allow faster motorcycles?
Like in mario kart
01:14
the track is such that you reach high speeds on it.
very high speed, inches away from some house
@ShrekOverflow I have not
> Alongside Wayland and Flatpak we expect PipeWire to provide a core building block for the future of Linux application development.
given that, I am... very hesistant
> Alongside Wayland and Star Citizen...
It's a completely downhill circuit
this will be my last dist with wayland installed,if all goes well
ubuntu next (due out next week) drops it
so if that's the company they keep, oh boy
@Meredith both ways, even
ohh, 18.04?
01:19
aye. Also comes with a number of drivers I'd like.
well, the corresponding kernel does
is that a finalized 17.10? is that how that works?
not totally sure. It's the LTS, it has a newer set of kernels, and the major changes like dropping wayland and all their other GUI work.
Oh I like the name of 18.04
Bionic beaver
Oh cool 18.04 adds better emoji support
heh, I have a font for that
although my fontconfig has gotten screwy. I followed a guide and it didn't quite work.
I use a chrome extension
01:39
so I was running a 2d car simulator thing earlier and kinda forgot about the tab until I noticed chrome using 2 cores all by itself
it's up to generation 597, but the last high score was from gen 40
I did my taxes this evening
are you a libertarian yet
No, I don’t read
ah, a republican
01:41
remember it was the liberals that supported slavery
> We have to pass the bill to know what's in it! - A Democrat
you can spot the liberals because they only ever read (and quote it)
I was more making a joke about librarian / libertarian, but ok doods
@ndugger wtf
why did you wait so long
what
01:43
I'll proabably also switch from using SteamOS to 18.04 it was fun but now I think my desktop deserves a real OS :)
who mistakes librarians and libertarians? they're like, polar opposites
librarians believe in quiet, libertarians are like vegans
@ssube LMAO
Yeah one tries to silence you and the other wants you to just leave them the fuck alone
Libertarians hate librarians
like cowboys and teachers
01:45
Rule 34
@Loktar since you use React extensively : npmjs.com/package/react-component-component wdyt ?
Oh god
lol wth @ShrekOverflow?
it's like functional programming
why? just... why?
that name too lol
I suspect that if that library tempts you, your components are very very wrong
probably far too specific and not data-based
01:51
1 message moved to Trash can
@KESO Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
Guys I did it this way:
var orgSubmit = HTMLFormElement.prototype.submit;
HTMLFormElement.prototype.submit = function() {
console.log(this.action);
What would happen if you had a didMount property and passed all props down to a child component
@KESO that isn't a good idea IMO
@ssube I am not using, it its by ryan florence so got interested to look into it
!!> /@\b.*\b/g.exec('@rofl foobar @game test haha');
02:01
@jAndy ["@rofl foobar @game test haha"]
@William since I need to intercept the submit method, this is the best option, this let me "pause" the submit when is invoked using javascript and not a submit button
how do I get any word boundary which has a @ as first char
like @rofl and @game
@jAndy @\w+
!!> /@\w+/g.exec('@rofl foobar @game test haha');
@jAndy ["@rofl"]
02:03
@\thegame+
gets only the first?
@jAndy as exec tends to do
!!> '@rofl @xxx 12lol haha'.match( /@\w+/g );
@jAndy ["@rofl","@xxx"]
right, thanks Kendall
my regexp is so weak :(
02:04
Yw bb
@Luggage this may or may not interest you: reddit.com/r/seancarroll/comments/8cz39t/podcast
02:38
I prefer it when bread isn't stale
I also have used a relative's death as a tool on social media
@ndugger you are the tool on social media 2.9
Puzzle time: Yes, this is not good code, but do you know why this quirk occurs? Answer will be posted (or retweeted) later :-) Clue: An intermediate step occurs in the transformation of the supplied number.
I wish I were the anything, tbh
I never thought that would be the case but here we are
I bet I know
02:44
why did you make me go to example.com kendall tell me
it's an example url nick
why am I typing weird it's because im nevermind
the url itself is not important
my youtube playlist somehow ended up on a remix of the walm art yodle kid
why
02:45
yes
remember when I used to get kicked for saying kys? so cool that we've moved beyond that
that was way too passive aggressive for me
sorry, I need to get off
like, off the computer
not the other way
both tbh
yes
I have a date tomorrow
I think it's the date, if you get me
don't worry about it, bye
get some sleep, you'll thank me later
nice I have a date tomorrow as well
April 18th
the date
user1596138
03:04
@Loktar what's that
tomorrows date
user1596138
Oh
03:33
What is going on here? jsfiddle.net/6dds2hvv/7
that #a without the hover is hidden
is that what you were getting at?
well yes 😉
but why is it NOT hidden by just changing the bg color
I don't think a hidden element is supposed to react to hover at all, and in such bizarre fashion
well visible is diff than display
visibility will still react
it still exists
its just, well, hidden
03:36
lmao and yeah ok I get this now...
#a :hover
not actually affecting a, just the child
heh tricky space ;)
shit lol
I'm dumb.
so #b is actually having it's bg color changed heh
Now all is right with the world.
03:39
how is the hover changing b?
the selector was for #a's child with :hover, not #a with :hover, and #b is #a's child
#a :hover is like saying #a > :hover basically ^ yeah what he said
heh I have 2 kbs in front of me playing FATE so typing a bit slow 😋 but yeah the space is what trips it up lol
since it's not #a:hover
I'm just used to SCSS where I simply use a nested &:hover. Stay/night btw?
03:42
lmao yea
same, I use scss way more than vanilla now
03:53
mmmm, Fate <3
 
1 hour later…
04:58
@Loktar lol
Whoever decided to use ' ' a control character in CSS was probably setting up traps for the entire life of the internet !
.a > .b {

}
Direct decendent all spaces ignored
.a .b {
}
You rekt
@Atmaks I have a linter rule to SCREAM at me if I use .a .b
@Atmaks in some complex html try html *:hover{ background-color: red; background-transition: 0.1s linear; border: 1px solid magenta;}
I meant transition but you can fix that
Also add transform: rotateX(45deg) for extra fun
when you string split, how do you get what's inside quotation marks?
like, string.split("x")?
@ShrekOverflow hello
05:13
Why are you trying to do that ?
also is that syndra ?
i have a string: "item1":"monday","item2":"tuesday", trying to grab the words inside the quotes
it's starguardian ahri
var newArray should contain [monday, tuesday]
That format looks like you'd want to Parse it
is that JSON ?
Share ENTIRE DATA String :@ or GTFO
Because if if is indeed JSON you can just do
[{"Item1":"Monday","Item2":"4","Item3":"16","Item4":"2018","Item5":"10","Item6":"41","Item7":"38","Rest":{"Item1":"PM","Item2":"Work","Item3":"1300","Item4":"PaypalBusinessDebit","Item5":"Debit","Item6":"Weekly","Item7":"1"}},
that's some output
05:18
Object.values(obj); (or its uglier cousin Object.keys(obj).map(key => obj[key]))
That's very different lol
But you can just call
JSON.parse() on that string
Then you have an Object
thank you
my god...
that's why i love you here
Meh
I hope that you'll learn and stop vamping
i googled before i came here
so far you have shown promise
google returned regex samples, not what i was looing for
05:21
I realize what you need is proper education and not instructions to Google
yea
what do you recommmend?
the w3schools JS course?
Keep coding
you'll start getting it
@Traitor If you are trolling, I'll laugh. If not, please block that website if you ever want to learn JavaScript or programming for that matter.
i see
na i wasnt trolling, i used that site a lot when i was starting JS
but i realize i hardly ever use it, so maybe what im looking for is a university book on JS programming?
@Traitor University books are borked
You can read CC2E
but i'd recommend Nand2Tetris because it'll make you think programmatically
then CC2E and @KarelG or others can recommend more 😛
ok
ty
05:27
As long as you want to learn you'll find a way, eventually vOv
console.log(SQLList[0].Rest[0].Item1);
from output:
Item1
:
"Monday"
Item2
:
"4"
Item3
:
"16"
Item4
:
"2018"
Item5
:
"10"
Item6
:
"41"
Item7
:
"38"
Rest
:
Item1
:
"PM"
Item2
:
"Work"
Item3
:
"1300"
Item4
:
"PaypalBusinessDebit"
Item5
:
"Debit"
Item6
:
"Weekly"
hmm how do i explain this..
so i normally grab item1's item by doing this: [0].Item1
but when i do it to 'Rest' i get an 'undefined' error
on 'Item1'
you know
you could do console.log(SQLList);
and then use the interactive editor to browse your data, that'll help you spot what's going here :)
05:44
i did,
so this console.log(SQLList[0].Rest);, returns an object array
so logically, for me to access [0].Iteem1
i do .Rest[0].Item1 and it throws an error
wtf
well then logically you must be doing something else wrong
@Traitor what is ".Rest"
@david you can see his data its pretty obvious lol
Item8 on c# tuple
i can see the data he's decided is of interest to us, it's probably not the actual data he is getting
05:46
and is that a List or Object ?
it's like, the data he expects to get
His exact error is pretty visible
Rest is an object lol
oh... lol
ah i see, an 'object array'
05:47
[0].Rest = Object
rofl ><
expands to item1-item7
right, if 'rest is an object
why cant i do Rest[0].Item1?
because you can only do [0] on arrays :P just do Rest.Item1
sqllist is also an object
oh okay
@david I help him / her because at least they are putting effort, I have been exposed to people who literally won't even read the link 😃
and you literally have to give them the copy pasta
05:54
i really try not to vamp
and i google too
i understand that you guys have better things to do
@ShrekOverflow You're way more tolerant than I am :D
@david I have my ways to vent out 😃
@Traitor We appreciate that
@david so, did you guys take the solution we talked about ?
ehh, kinda
we ended up doing the bare minimum required to get it working :D
we're waiting for the new authorization stuff before we do any work in that area
but we are slowly moving more role check stuff to permissions
@david we have a lot more cool stuff boiling up now
and we are using an access token rather than the id token to hit our services
05:59
@david That is gorgeous
even though the tokens have basically the same info
That'll change 😀 also now you are using OAuth2 (kinda) and not OpenID Connect to access your API.
i've noticed the authz extension now has a direct link in the sidebar
it does look like you guys are doing a bunch of styff
Oh yeah, we are working on a lot of cool stuff
the new user search for example is a masterpiece in terms of performance
 
1 hour later…
07:09
omg wtf did I just watch youtu.be/sZsJyCyGBSI
07:33
@Ikari Risky click of the day?
not really, its just weird
I can't see it in any case, thanks work proxy
@Neil you are welcome.
@Proxy o/
LOL
WTF yes

« first day (2741 days earlier)      last day (2431 days later) »