« first day (2477 days earlier)      last day (2696 days later) » 

09:15
if anyone is interested about whether he was right for not spoonfeeding, there's a meta question about it, which can be found here; meta.stackoverflow.com/questions/353968/…
Why not invite him here ? His answer was bad, maybe too lazy or too speedy, got improved. He doesn't look like a bad guy and we should just help him getting better at providing useful and complete answers. Without drama because there's no need for that
I have no idea how to invite
just send him a link in a flash comment
and hug him on arrival
The case is closed for me, he seems like a nice guy. I don't really have much left to say to him, I hope that he learns from his question on meta and improves his answers in the future
How do I tell boltclock that there's a 403 link in his bio?
what do you mean "how" ? Just tell him here
09:24
@BoltClock oh hi
@BoltClock A link in your bio (useragents.ie) returns a 403
@Nick Yeah. I need to get around to fixing my bio
userAgents.IE was taken down some time ago, now that Microsoft Edge is a thing
Bolt, are you on earth ?
No, I'm in hell
How in the hell did you get to hell before me
09:33
Ah, you're underground? Got rooted?
Guess I need to up my game
TIL hell money
I learned about that from X-Files
Which is a show we used to watch on the TV before most of you were born
@OliverSalzburg cmon who doesnt know x files
Its probably still airing somewhere
Heheh, okay, I retract my statement ;D
09:35
morning
\o
I've seen x-files tho. Only the new season not
but couldn't remember something about hell money :|
hey guys, how would you modify this so that it would throw an alert if you done window.location.href = 'd'


https://gist.github.com/zacharytamas/082e538784ebe07e40f9
@KarelG There's an episode named "Hell Money". It's partially about Hell Money and Chinese gambling
I know that because I had to download all episodes from the net to watch them in English :D
09:44
Ha! Pirate!
jk I know the feels
superuberduper, are you sure that you want to do that what you wrote in the gist?
@KarelG 100% I'm just doing it to debug something, there is some script changing the location and I can't find it.
the setter doesn't fire on an href set
Hi guys, I have been searching for this, but the query is too generic. How can I "reference" a class inside another class?
The idea is to replicate a class within a class, but for organization purposes I want to have that inner class in its own file and "reference" it inside another one
since when can you storage objects in localStorage o.o
shoot, I cam to javascript looking for android room, my mistake
09:54
@Shadow Just be careful, android room is known for its roughness.
Why do I have talk privilege there?
@KarelG its not possible to do:

Object.defineProperty(window.location, 'href', {
@littlepootis i wonder that too :D
@SuperUberDuper it works differently tho. You need to overwrite that.
Still .... there are 100+ ways to (re)load a page through javascript
really :p
10:04
is there any script that can i can use to pause the browser in such a case?
what do you mean with "pause" ?
hello everyone
I want to send a POST request to a distant server which is on JBoss and has the IP address 192.168.205.125:8080
from a server with AngularJS + Tomcat 8.5
the JBoss server is well configured because I can send POST requests to it from Postman or Android/iOS
but I can't from the AngularJS app
it seems there is a problem with the used headers from the Angular app or the Tomcat server
I tried to use CORS filter on Tomcat without success
GET requests work though (from the Angular app)
only POST requests don't work
The complete error I get
OPTIONS 192.168.205.125:8080********** 400 (Bad request)
XMLHttpRequest cannot load 192.168.205.125:8080*******. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'localhost:8085' is therefore not allowed access. The response had HTTP status code 400.
kas
kas
Has anyone had issues with a jQuery .fadeOut? In one place, my .fadeOut works perfectly fine. In another, when I press a button, the .fadeOut is happening instantly. Both are supposed to have a 3000 millisecond duration. Any ideas??
This is a google chrome extension by the way
Here is my procedure for both of the two .fadeOut calls. paste.ofcode.org/6N3JWTQFSSfEtm9pBZ2YHA
EMAIL_UPDATED_MESSAGE is a simple string telling the user that their "Email has been updated". FADE_OUT_SPEED = 3000
10:26
@MHDaouas You need to fix your CORS implementation
The error message is straight-forward actually. You need to respond with the Access-Controll-Allow-Origin header to satisfy the browser
!! afk extended lunch
@KarelG That didn't make much sense. Maybe you meant: afk
I'm getting an Unexpected token error for Jest test case
Anyone familiar with Jest here/
@JudeNiroshan It's mostly a joke
10:29
@OliverSalzburg ohh, Angular guy seems to hate React :D
Isn't Jest a unit testing framework?
!!wiki jest
@OliverSalzburg where were you all these time? Inside a cave? :P lol
@Oliver
it's not that clear to me
you mean I need to implement a CORS filter on the Tomcat side?
@MHDaouas I don't know what filters in Tomcat are. This room is about JavaScript :P
10:36
@KarelG a debugger pause so I can see the call stack to find the offending code
@SuperUberDuper KarelG is afk: extended lunch
@SuperUberDuper debugger
The debugger keyword will act like a breakpoint
@KendallFrey earthsky.org/space/asteroid-2017-oo1-close-pass-undetected that's not unnerving at all. Nope.
Uhm... am I the only one (and is it normal) that regurairly falls asleep at barbers' ?
I never go, so I can't say
But I don't find open blades near my face particularly relaxing
10:41
@rlemon @KendallFrey @Loktar get on it!
@rlemon uhm, Thats pretty freaking close.
@KamilSolecki they won't let you fall asleep here
they'll just keep talking
kas
kas
I am not able to get a consistent jQuery fadeOut on an element. Sometimes when I hit enter when I am typing into the textbox it fades out instantly. Sometimes when I click the save button it fades out correctly, but then later I click the savebutton again and it will fade out instantly. Any ideas?? Here is the function: paste.ofcode.org/reuKLjkAKqeNdqWYPxxqk8
All I'm trying to do is to help the user notice that when they typed their email into the textbox and hit the button, that an element elsewhere on the page was updated. It's basically a toast that disappears after 3 seconds. Is there a better way to help the user notice?
Most importantly, you should debug your code
Seems like it would be trivial to analyze and it sounds a lot like you're removing the element in one case, regardless of the fading
70% of the time I see people asking questions with jQuery animation issues they forgot to call .stop()
10:54
I hate it when a low rep user makes a stupid edit to a question. You can't fix it and do valuable edits unless there's 2 high rep users rejecting the edit...
kas
kas
@OliverSalzburg The element is never removed. The function I shared empties the content of the element, appends the "email updated" toast message, and then fades the message out over 3 seconds.
@SeinopSys The documentation and examples don't tell me to use a .stop()
I just tried to insert a fadeIn(0) after line 11 to see if the element was just being hidden. It wasn't. I then replaced the fadeIn(0) with a .show(). It didn't make a difference. The element still flickers out when pressing the save button instead of slowly fading out over 3 seconds.
@kas In any case you're more likely to get a working answer if you make an mcve
@kas I know what that function is supposed to do. My statement remains unchanged :P
11:13
TIL M-X doctor.
kas
kas
@OliverSalzburg @SeinopSys Thank you for the help. I am getting closer to the answer. It isn't an issue with the fadeOut code, the script that holds the function is reloading when I press the save email button
can anyone help me with this?
Hello everyone~
as a matter of fact a for loop does not iterate anything at all and console log is not returnig nothing
console.log xmlhttp.responseText
11:17
and I have found out that when I'm in debug the debug does not enter the loop it somehow jumps at the end of it
@SagarV what do you mean?
@Riccardo try console log the ajax response and tell what is it returns
kas
kas
@OliverSalzburg @SeinopSys For a little bit of closure: the issue was that I put the email textbox and save button inside a form, which refreshed the page when I pressed save
A little question: How can know the "TOC" of my .html file? (TOC, table of content, from the answer of HTML5 best practices; section/header/aside/article elements.)
where is PresenzeOperatori defined?
@SagarV it returns the expected result
I've already tried everything I could try
11:19
hmm what is PresenzeOperatori
that's simply a typing error I'll correct and create a neww bin
"loop does not iterate"
go check the length of PresenzeOperatori before you do the loop
alright
what is the result of attendanceArray
@N1ng You linked to an answer answering what you just asked
11:20
that is not an array it's an object
so, does it have length?
no it does not
then your loop won't work.
for(var i=0;i<attendanceArray.length;i++){
I means if there is any software so I can see the TOC of my .html file... @OliverSalzburg
let me tell you that the respponse text contains only one row
bc in php I have limited the select query to only one row
11:22
then why are you trying to do a loop if you always get one row
is it useless?
@Riccardo yes
well, yes,
and about the php I'm using a foreach loop to iterate all the columns of my table
it consume more memory to run and also the size of code will increase and also you have to create a variable i
11:23
am I doing good?
left PHP years ago.
almost forgot everything
including <?php
:)
that's not even the room it was just a mere curiosity
all I mean is that I'm successfully iterating in php and pass to javascript a json encoded array
so that the response text is parsed to an object
I have no idea what attendanceArray is supposed to return, and I have no idea what you want :(
but what I do know, is that the loop is useless
@Nick thats' enough becasue without the loop it works
let me ask you one last thing
the css of the dynamically created table is causing me troubles
@FlorianMargaine @rlemon @Loktar you know what day it is
11:31
the f, .blackfriday ?
$ 363,21 / year, worth it
@rlemon ^
11:47
Yea, it was hard standing still for the portrait, but I think it turned out well.
@Nick Depends on the name
i-dont-care-about.blackfriday is less than 50€/yr at Gandi
rebecca is worth much more obviously
that's stupid
You could say the domain is worth its weight in gold
I want x.com
You could, but you'd be an idiot
11:50
but darn elon musk has it
@KendallFrey :D
@Nick He's planning for X-COM deployment
For a site that only runs with --harmony
hi
__ proto __
whats this called
@Abhi try googling
11:57
no i mean..is it called dunder proto
as in Dunder Mifflin
All the information you need is on Google
do you watch The Office
"mifflin" sounds like slang for sex
Like "Oh boy, that was some thunder mifflin"
hey guys i am using json stringify from a form
the problem is it shows hiddenfields to
12:03
how can i make sure it will skip the hidden fields
@namzaG Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
<script type="text/javascript">
let form = document.forms["clientlead"];

let fd = new FormData(form);

let data = {};

for (let [key, prop] of fd) {
  data[key] = prop;
}

data = JSON.stringify(data, null, 2);

console.log(data);
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify

`JSON.stringify(value[, replacer[, space]])`
wait, you just want the hidden fields not to get posted?
yes
the hiddenfields must left out
i have 2 hidden fields with name of form and the id of the records
if you don't want hidden fields to be sent then I'd suggest storing the data in data-* attributes of the form or adding disabled to the fields
12:18
@FlorianMargaine @Loktar @KendallFrey wub wub wub wub you know what it is
god damnit, i need to stop clicking on any link I see.
if you see that ping chain, there is a 100% chance it is a friday link
can anyone tell me how to secure a ajax call
@SterlingArcher i.imgur.com/4yMdpqX.gif
HAHA
anyone can see the data of ajax calls in network tab .. I want to avoid that .. Is there any way to do so ?
12:21
it's their data, on their network tab
they can also see it when they enter it into the form.
The web browser is like the user's "house". They can do whatever they want to things inside.
@Shubham don't send the sensitive data to the client. problem solved
@rlemon So does the hackers.
@Shubham hackers don't see my network tab
secure your server, use https, have a nice day
I see your network tab. You left your curtains open.
12:23
@Luggage keep watching... :starts to undress:
:starts filming:
gonna make so many reddit bucks
/r/rlemongonewild
reddit.com/r/lemon <- my guess was it was hentai
(it's a banned subreddit, SFW)
sucks, I could have had /r/lemon
whoa, but they still have a limp penis as their logo
I see no logo nvm
phpstorm keeps re-indexing every 30min
the f
@rlemon one more question, can wireshark capture packets of other computers
?
I'm wondering why you want to know that
depends on what you mean by that.
wireshark can poke around on the network.
16 mins ago, by rlemon
secure your server, use https, have a nice day
^ still my only advice.
12:49
I need advice for an rpg I should try
Magic is mandatory
Bioshock fallout tes witcher all played
@Loktar Im counting on your knowledge :)
Witcher 3
Or oldschool runescape if you want to cast a spell for hours on a rat.
can anyone tell me .. how to make an ajaxcall secure ?
draculatheme.com this is beautiful
user6820627
12:56
@Shubham HTTPS is your answer. letsencrypt.com
@Shubham do you have ssl?
  return b.size !== 'XS' && (
    ( a.size === 'XXXL' && (
      ( b.size === 'S' && a.connectedSizes[ 'S' ] < 2 ) ||
      ( b.size === 'L' && a.connectedSizes[ 'L' ] < 2 ) ||
      ( ( b.size === 'XL' || b.size === 'XXL' ) && ( a.connectedSizes[ 'XL' ] + a.connectedSizes[ 'XXL'] < 1 ) )
    )) ||
    ( a.size === 'XXL' && (
      ( ( b.size === 'XL' ) && ( a.connectedSizes[ 'XXXL' ] + a.connectedSizes[ 'XL' ] < 1 ) ) ||
      ( b.size === 'L' && a.connectedSizes[ 'L' ] < 2 ) ||
      ( b.size === 'M' && a.connectedSizes[ 'M' ] < 2 ) ||
halp
and where are you scared for
12:56
dat's my production code
rlemon will crucify me
user6820627
@Shubham if so your ajax call is already secure.
user6820627
@towc you wrote it? lol
I have a cart and sending users card details to my server to call other vendors cart apis
and want it to be secure
cart or card?
do you mean a cart (shopping cart)
or credit card details
@towc lol, he will. You're repeating yourself way too much.
12:58
@Nick I've a payment page and sending credit card details to my server
@towc Don't use code to replace data
I can't tell if a switch with fallthrough or just a loop with rules makes more sense.
I need to implement this logic for an animation (it's a spec I've been sent by the client)
What would make sense is a data structure, and a simple code using it

« first day (2477 days earlier)      last day (2696 days later) »