« first day (2022 days earlier)      last day (2927 days later) » 

8:01 AM
Uh oh. Someone's trying to login to my account.
And I received 82 OTPs.
 
!!wiki OTP
 
== Arts, entertainment, and media == One true pairing, a term used in media fandom == Businesses and organizations == OTP Bank, (Országos Takarékpénztár és Kereskedelmi Bank Nyrt), a commercial bank in Hungary Office of Telecommunications Policy, in the United States White House, between 1970 and 1978 Old Town Pizza, award-winning company with stores in Auburn & Lincoln, CA, USA == Judaism and Christianity == Old Testament Pseudepigrapha == Sports == Oulun Työväen Palloilijat, association football club from Finland == Technology == One-time pad, in cryptography One-time password, a...
 
!!wiki one time password
 
A one-time password (OTP) is a password that is valid for only one login session or transaction, on a computer system or other digital device. OTPs avoid a number of shortcomings that are associated with traditional (static) password-based authentication; a number of implementations also incorporate two factor authentication by ensuring that the one-time password requires access to something a person has (such as a small keyring fob device with the OTP calculator built into it, or a smartcard or specific cellphone) as well as something a person knows (such as a PIN). The most important advantage...
 
!!tell AnkitSharma define otp
 
8:04 AM
@AnkitSharma It means I aint got time to learn your $5 words.
 
lol that was unexpected
 
hahahahha
so "define:" doesn't work always ?
Noun: superman ‎(plural supermen or supermans)
  1. (chiefly philosophy) An imagined superior type of human being representing a new stage of human development; übermensch.
  2. Nietzsche wrote of the coming of the superman.
  3. A person of extraordinary or seemingly superhuman powers.
  4. He worked like a superman, to single-handedly complete the project on time.
  5. (plural supermans) A motorcycling stunt in which the rider releases both hands from the handlebars in mid-air.
(5 more not shown…)
 
you need the invocation pattern, I believe
 
define: otp
it's not working for otp
 
err, is there a way I can get the request headers used to retrieve the document? I need to extract the authorization headers for some subsequent requests
 
8:05 AM
!!urban otp
 
put '!!' in the front of it
 
@Mr_Green OTP One True Pairing. Meaning the your favorite combination of characters in a fandom.
 
Must be dictionary is limited
 
one time password..
 
@littlepootis does that mean they actually got in, or just attempted that many times?
 
8:06 AM
@AnkitSharma no, you are limited. put !!
 
@Shea attempted.
 
my friend lost 50k by something like that
50k rs not dollars
 
can't imagine why anyone would want to break into any of my accounts
I don't put my debit cards online
if someone got access of my Facebook, all they'd really get is a bunch of cock shots I send my gf while we're apart
idk why anyone would want those though
 
> while we're apart
 
8:14 AM
hey everyone
 
not living together?
 
@Shea You'd be surprised.
 
@Shea I'm sure there's something you could suffer for from a break in
 
And a little creeped out, possibly
 
I'm sure it'd be pretty annoying, but idk what personal gain anyone would have from it. other than a few short lived lulz
 
8:18 AM
you know that it has happened that people who got their accounts hacked on FB lost their jobs?
 
would help if I had a job
 
@FilipDupanović oh wow
 
@Shea it's one thing to have a random bot posting porn with links to malware, because you can always apologize to the recipients (most people get it's spam when you tell them); when an actual human that's targeting you gains access to your accounts and starts syndicating surgical messages, cleaning up becomes much harder
 
TIL, never transact and watch porn on same system as we don't eat and shit at same place.
 
@Mr_Green speak for yourself
 
8:30 AM
TIL = Today I learned
 
U?
 
U as in you, or you as... er...
 
er... can someone help me in this code js? (sry maybe this too piece of cake)
 
@Newbi 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.
 
@Newbi what is the problem?
 
@Mr_Green thx for reply , if i use for the function all_box not working??(should have 2 alert)
*looping (for), the function....
 
Hi all, i need help with this question...
 
it's working fine, if i not use looping(for), ??
 
you were using count.length whereas count had already the value 2.
 
8:42 AM
@Mr_Green er.... y, i already try change count/use lenght, it's should be alert twice(data & i), but it's only 1 (i) and it's should be 2, coz i=1<=2; why it's 3?
 
you are storing 2 in count variable right?
 
y
 
what y?
I am asking you question
 
and i use for(i=1; i<=count(count it's 2); i++)
 
hey wait
 
8:44 AM
and alert (i)
 
just answer my question
you will understand
 
oh sry yes, why alert is 3?
it's already correct?, because i write alert twice , but it's only show 1
 
@Shea I think it will be better to reveal things slowly rather than giving a blow
 
> Open all bookmarks in incognito window
 
8:49 AM
@Newbi did you understand what I did in the code?
 
@Mr_Green yes,sry if you misunderstood try check this jsfiddle.net/xwqytn9q/8 again
@Shea Thx for the reply, but it was different to what I want sry.
 
@Newbi In this the function is being called right?
 
yes
 
does this mean I don't get the job?
 
then what is the problem?
 
8:58 AM
@Mr_Green like i say before the function (all_box) not working(if i use for (i = 1; i <=count; i++) { ), the function all_box make (data+1) and the change function for alert data
@Shea lol sry but you still can try it :)
 
@Newbi I hope you checked my above fiddle. It does exactly same as you need, IMO.
 
@Mr_Green oh just ignore the second checkbox
 
oh got it
 
@Mr_Green try change the code alert(i); to alert(data); in your last fiddle, if it's correct should alert 7
 
@Newbi like this? jsfiddle.net/xwqytn9q/9
 
9:05 AM
@Mr_Green that right , thx a lot :)
 
@Newbi ok wait a minute. It can be made shorter
first of all, did you understand the code?
 
I´m searching for an efficient way to separate my Code (capsulated using the revealing Module pattern) in different Files. I Don´t use Node.js it´s all client side! Heard of browserify, but I´m not sure if it´s good and up on which code size it makes sense using such helper. Currently I have just 5 Modules with a size of 2000 lines, but want to be prepared for future. Can someone give me an advice? Does it make sense to use browserify?
 
@Mr_Green almost, lol sry i still learning the js.
 
@IntercoolerTurbo most people just use require
 
@Neil requrie.js right?
 
9:09 AM
It also works clientside to let you write modular code
 
@Newbi yeah you should look in Imediately invoked functions benalman.com/news/2010/11/…
 
@IntercoolerTurbo yes
 
anyway, here is the shorter one which is self explanatory jsfiddle.net/xwqytn9q/10
let me know if you didn't understand
 
okay, I will take a look, Cheers :)
 
requirejs can compile only on runtime, right?
 
9:11 AM
Does this even make sense when I currently need all modules on runtime. Not after some user action happens?
 
@Mr_Green requirejs has nothing to do with compile
 
@Mr_Green thx so much ,err... w8 i need takes time to understand.
 
its just a dependency management library
 
@Abhishrek yeah terminology problem.
I meant it loads files on runtime only right?
 
Yes, It will load a library when it is needed
 
9:14 AM
@Newbi How about this? jsfiddle.net/xwqytn9q/11
 
yawn
 
Jis ne vote down kiya na us ki ma ka phuda yar ghalti se puch liya tha question — Waqas 2 hours ago
 
^ Hindi language
 
@DenysSéguret lmao cc @SomeGuy @littlepootis @Abhishrek
 
9:17 AM
For some reasons Indian and French people often think it's ok to impose their language in foreign sites
 
@DenysSéguret ouch
thats very offensive
 
flagged
 
translating that verbatim: "Whosoever voted down, their mother's <something I dunno>. Asked this question by mistake"
@Abhishrek what does "phuda" mean?
 
big pimple
 
BTW that horrible question needs many other downvotes, please do your duty
 
9:19 AM
@AwalGarg Cunt++
 
@Mr_Green hem.. it's good but in my case i can't use it, coz i need count the checked & change (some data) every time it's checked/unchecked. anyway it's already solved thx
 
and the answer didn't deserve to live
 
@DenysSéguret Oui monsieur
 
@Newbi ok
 
Ok! Its working now . I have another question "how to delete this question." — Waqas 2 hours ago
 
9:21 AM
haha yea
 
@DenysSéguret I have seen similar behavior from Russians
 
oh yes, I forgot them
(and of course American people who just think there's no other language than English)
 
Inb4 question gets asked on how to close a question
 
@DenysSéguret wait a sec, I speak 'murican!
 
9:22 AM
@DenysSéguret no other language than american english.
 
@Abhishrek lulz
lol the entire revision history is infected
 
@AwalGarg I wanted to comment "Abe akal ke thullu terko mummy ne bolna nai sikhaya kya jo galiyo pe galiya bake jaa ra hai"
but then, I was like nah
 
that'd be silly
 
No turkey mummies, man. No turkey mummies.
 
Which is why I just close voted
@AwalGarg I don't know php but
0
A: How to include files with die(); function?

WaqasHey its possible and I am serious look we give a parameter to die to tell a reason why we stopped executing like die("Your username is not valid"); so Now we can give include statement as parameter to die function die(include "/errors/usernameerr.php"); When the user will get error no code ...

 
9:31 AM
@Abhishrek lol php
 
@AwalGarg I was expecting more along the lines of die("marja******");
 
@Abhishrek wow, google translate butchers that sentence
 
gist.github.com/awalGarg/353d49b72d618bf3299643fde598b243 where do you guys end up on this flowchart? this is ofcourse wrt that jshp joke thing
gist.github.com/awalGarg/257a6112db1892d3d15429b3e96caec6 example of what you can do with jshp. put that file in some folder and run the jshp server, and it works. just like php.
 
@Mr_Green You never make sense.
 
yeah to you no one make sense
 
9:35 AM
No, only you
 
fight
 
yo guys
 
@TheGeorgeL 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.
 
waaaait, my popcorn isn't ready yet
 
/me hands GNi33 a pack of m&m, "Make do."
 
9:37 AM
thanks, fam
 
@AnkitSharma only you what?
 
What is only you?
 
@AnkitSharma just realized you work at Just Dial
are you allowed to prank?
 
@AnkitSharma WHERE IS THE COOKIE SHOP NEAR MY HOUSE?!
 
@TheGeorgeL heya
 
9:46 AM
he is allowed only to dial one single number
3
Q: Get text using jquery with text-transform

ShijinI have an html element and i toggle its class and show capital/small letters with text-transform. Is it possible to get the text its text-transform? $('#toggle').click(function(){ $('#char').toggleClass('upper'); }); $('#getdata').click(function(){ var text = $('#char').text(); ...

 
@Neal I currently dig in require.js. One question. if I want to use jquery and I use it via cdn, do I have to specify it within the requirejs.config({)} ? the tutorial is a bit unclear here. Do i have to use all lib´s example google maps api via require?
 
@Mr_Green Then i will call joke police to arrest you for throwing boring jokes on our faces
@Abhishrek Prank......where did it came from :?
 
@Mr_Green Hmm. Sometimes it's not as simple as toUpper or toLower. This is bad. It'll make me want to write an answer...
 
sure pls do
 
I know someone'll say that >_<
 
9:54 AM
Will someone help me fathom where I've gone wrong on this piece of code?
 
@Neil (sorry 4 doublepost, marked the wrong neil^^) I currently dig in require.js. One question. if I want to use jquery and I use it via cdn, do I have to specify it within the requirejs.config({)} ? the tutorial is a bit unclear here. Do i have to use all lib´s example google maps api via require?
 
Inspect mmtmtlegal.co.uk/index-test.html and help me figure what's up with the popovers?
 
@TheGeorgeL Server not found
 
Still the same... and you can edit your message. Like this.
 
9:56 AM
but not after 2 min
tried it
 
Autocorrect seems to have learned a mispell
 
@TheGeorgeL fiddle please
 
ah didn´t mean me :)
 
Try it now?
 
anyone know if I can get the request headers for a document in JS?
 
9:58 AM
Alright, I'll fiddle it in a sec. On a break and asking on mobile as walk
 
@TheGeorgeL Yes, the link is correct now. search.js seems to have a syntax error. If you press F12 on the page you should see an error message.
 
Ah, that needs removing anyhow, we decided to remove the search functionality
But what of "popper" script?
 
10:19 AM
Is gist.github banned in India again? or is it just airtel being an idiotic service
 
airtel
they're terrible
 
!! s
 
@Mr_Green That didn't make much sense. Maybe you meant: 3, i, d, sw, y, !, ^, π, ?
 
@Neil Sorry for leaving quickly, had a meeting and almost missed the time. Do you have an article or something? I'm darn curious
 
Right, I was trying to implement this: http://jsfiddle.net/isherwood/E5Ly5/

But I can't see where I've gone wrong, only that I certainly have.

https://jsfiddle.net/1vwdb6t9/
any help?
 
10:35 AM
$('popper') <-- culprit
 
double quote rather or should it be .popper?
 
if you don't use # for id or . for class names, jQuery will look for the element <popper> instead
 
aha, magic, though that doesn't fix every instance
 
but your html doesn't contain elements with class name "popper"
 
yeah it does, the

```<a href="#" class="popper" data-toggle="popover" data-placement="right" data-trigger="hover"><i class="fa fa-info-circle"></i>
                                    </a>```
 
10:40 AM
ah, browser search doesn't work well in jsfiddle frames
 
no not particularly, I linked the live version too, cause jsfiddle seems to ignore certain syntax errors too like missing });
as what you suggested fixed the fiddle, but it's still not behaving in the live and not sure why
 
@IntercoolerTurbo sorry, I was afk. Yes, all of your dependencies should be included using require in theory. In this way, not only are you including the library, but you're establishing what library depends on what
@KarelG you had to ask while I am at work :/
 
heh
i'm also at work atm ;)
 
@Neil o/
 
Remind me later (6 hours or so)
@Thaenor o/
 
10:49 AM
I'm a trainee hired by a company that knows I am so expect there to be stuff that I just don't know, but to do a site you'd normally have a actual professional do
in second year university
(they're in no rush so they're willing to hire me to do it for cheaper but less stable)
 
@Neil okay, thank you
 
@IntercoolerTurbo I would search for how to do it though. There may be a trick to it
 
requirejs.config({
    baseUrl: '',
    path: {
        jquery: [
            'CND',
            'fallback'
        ]
    }
});
have found this
 
@TheGeorgeL I have revised your fiddle. You didn't have checked the popper docs very well. updated fiddle
 
Still learning @KarelG I'm flying by the seat of my pants for half of this
 
10:53 AM
should work 4 google maps like this i hope
 
@Neil that would be tomorrow then. Or later. Tonight i'm having a party
 
@KarelG quick brief on where it went wrong?
 
the selector for class name got fixed, and if you have an element which contains the trigger for popper (your <a class="popper" elements), the next element must be <div class="popper-content hide"> text to be popped up ... </div>. At the 2nd info icon, the popper trigger got followed by a span element, which i've wrapped in comment so that popper could find the popper info content
still, worth to mention, when you're using links, people can click it
 
aha, I was literally editing my fiddle at same time on the thought that the span classes were the problem
yeah, i just realised that, what's a better method you think?
It would be good if I could set it so that click and hover have same behaviour, but not sure if possible @KarelG
 
hmm, lemme check the docs
keh, i was more thinking at using span instead of a
jsfiddle.net/1vwdb6t9/3 <-- replaced a -> span and added a CSS snippet
 
11:00 AM
quicker way true
the noly reason i thought adding click was for mobile users
but not sure on how it behaves with standard hover anyhow, lemmie see
 
Anyone here who is expert in Nodejs?
 
@PratikCJoshi depends on what you mean by "expert"
 
user3119231
11:17 AM
o/
 
@PratikCJoshi Why
 
alright, that works perfectly on the jsfiddle.
however not working on the live site
 
clearly your app is shy
have you tried calmly talking to it
 
@bergi here?
 
11:23 AM
@AwalGarg luasocket has more users than nodejs
 
alright then. This works: https://jsfiddle.net/1vwdb6t9/4/
this doesn't: http://mtmlegal.co.uk/index-test.html
it should be identical code
 
@TheGeorgeL "Uncaught ReferenceError: $ is not defined"
You're not loading jQuery properly
Or, rather, too late.
$(document).ready(function() { exists before <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
 
@TheGeorgeL Press F12 when you're on the site. Then check the console. You will see errors
 
@BartekBanachewicz probably some $famous package pulling lua and luasocket as a dependency
 
still not that @Cerbrus
 
11:28 AM
Clear your cache.
 
I've been ctrl-refreshing, that does the same no?
 
I don t see the jQuery error any more.
so that's fixed
 
yet the poppers don't pop
when they do on the fiddle
 
That script tag you just moved?
Move it to the bottom of the page.
You're trying to do something with .popper elements that don't exist yet.
 
ugh WebStorm's argument suggestions are so bad
they only work before you start typing them
 
11:32 AM
oh, so they all need filling?
I expected for testing that i'd be fine with the first set done and leave the rest until working
 
That piece of $('.popper').popover({ code only works on .popper elements that exist in the DOM, at the time the code runs.
So, if you move the code to the end of the page, it'll work.
 
which if you look at the first tab of the table, has a full set
oh so run it at end of the whole thing?
 
At the end of the page, aye.
 
user3119231
I got a viewport 800 x 600 pixel and want to fill it with tiles( 50 x 50 ) - I need a hint how to realize a "terrain" which size is larger than 800 x 600... I thought about using overflow: hidden on the viewport...
 
user3119231
	"terrain": {
		"size_x": 100,
		"size_y": 100,
		"tile_x": 50,
		"tile_y": 50
	}
 
11:35 AM
does it need a document ready again or fine since that's done with the top script?
 
It's not in a document ready in the top script.
But it should be fine, without, at the bottom.
There ya go
 
my next thing is not js at all, to figure out why the first table has decided to go weird on screens smaller than md size
which I think I'll ask elsewhere ofc
 
"Gone weird"?
 
@Maurice you need viewport_size/tile_size + 1 tiles, and then just replace the border ones - that's how it's typically done
 
user3119231
@BartekBanachewicz sounds like a good plan. I will try this. thank you!
 
11:38 AM
not sure what you want to achieve by overflow: hidden, are those gonna be DOOM elements?
 
user3119231
Yes. I'm working on a terrain system like for example "pokemon" got.
 
user3119231
First I need to setup the terrain and then I will use the arrow keys to move it.
 
sounds like a good job for React
but drawing it on the canvas would also work, then you get the overflow for free
 
@Maurice Don't draw what you're not viewing
And don't use DOM elements to represent tiles
 
user3119231
@OliverSalzburg true, again.
 
user3119231
11:41 AM
Maybe I should use canvas.
 
user3119231
this would make the whole terrain easier to create
 
You probably should
 
user3119231
also canvas would only draw what the user sees
 
@Maurice Not exactly
 
user3119231
@Cerbrus depends on how I'm drawing the canvas
 
11:42 AM
Exactly
 
well you're not gonna render the pixels that aren't outside, that's for sure. That saves you fragment shader invocations
The tesselator still has to do some extra work but it's pretty fast by comparison
 
user3119231
thank you guys. I have to continue work. Will use canvas... :)
 
Does Chrome have a way to select the top-most element at a given position that has non-transparent background?
 
@OliverSalzburg , I have some queries regarding nodejs
 
11:50 AM
@AwalGarg Um JSHP dude
how about response.send(whatever);
in that case you can just fs.readFileSync() files in a dir and make the path a route for express the handler being new Function(request, response){ ${fs.readFileSync(addr)} }
 
speaking of sync: is there an alternative to synchronous AJAX on page unload?
 
@BartekBanachewicz that's a great example of cargo culting
 
@BenjaminGruenbaum a what?
If it didn't exist I would probably start thinking much more about porting Hate to the browser
 
@BartekBanachewicz cargo culting, in WW2 Americans and Japanese fought in islands and natives watched.
 
I started learning how React approaches the component updates and they've already solved a lot of my problems
 
11:53 AM
@BartekBanachewicz they watched the Americans do drills, and get into planes, and cargo dropped - the americans behaved like they did and cargo dropped from the sky, the gods must have been happy
 
@BenjaminGruenbaum I don't think I understand the connection
 
So they built wood planes
 
@BenjaminGruenbaum oh wow
 
and did drills with wood like rifles
 
that's pretty hilarious
 
11:55 AM
React is built on tom of a declarative API - HTML, this is also true for other reacts like react native and so on.
Canvas is an imperative API, it makes no sense to put react there.
It's just a misunderstanding of the problem domain
like cargo cults
 
@BenjaminGruenbaum I disagree.
 
Literally everyone I talked to at Facebook hates it :D
 
Canvas is imperative and it sucks because of that.
But so is WebGL
 
Right, and React-WebGL is a bad idea too
If you want a react-X where X lets you draw on a canvas, you have to rethink the API completely
 
@BenjaminGruenbaum so how do you propose React-RawPixels would be implemented instead?
 
11:56 AM
Either imperatively and outside of React, or declaratively with an SVG like API
 
@BartekBanachewicz checkout flipboard/react-canvas
 
<Circle> <Square> <Shader ...> stuff </Shader>
 
@BenjaminGruenbaum That's nonsense. Why would the implementation details impact the API?
 
strangely
 
13 mins ago, by Bartek Banachewicz
well this exists https://github.com/Flipboard/react-canvas
 
11:57 AM
@BartekBanachewicz because the whole point of react is that it's on top of a declarative API
 
@BenjaminGruenbaum Uh, no?
The whole point of react is to make a usable interface for things.
Whatever it's backed by is irrelevant
WebGL, canvas, your printer, your mom with a pencil, DOOM tree
 
@BenjaminGruenbaum this analogy doesn't make any sense
 
@BenjaminGruenbaum isn't that natives who worship some soldier
 
Also for the people with wooden rifles, they're doing the right thing
@Abhishrek read up on "cargo culting"
 
11:58 AM
You seem to be thinking that react is trying to solve the DOOM tree problem
It's not just that.
 
React does DOM diffing, that makes no sense in canvase
*canvas
 
@BenjaminGruenbaum implementation detail
 
Not DOM diffing, tree diffing
Makes no sense in React
 
ah John Frum!
 
diffing is an implementation detail as well
you could, for all intents and purposes, recreate every single piece of UI on your backend every render
 

« first day (2022 days earlier)      last day (2927 days later) »