« first day (786 days earlier)      last day (4163 days later) » 

12:29 AM
!!/choose whiskey beer
 
@RyanKinal beer
 
Will do!
 
12:47 AM
!!/tell Jet choose stay go
 
@Jet Neither
 
That was conclusive.
 
Well, if you stay, there will be trouble. But if you go, it will be double.
Or maybe it's the other way around. I don't recall.
 
So we're looking at jet.prototype.trouble = 1.5
 
As an average
Though, in terms of good practice, applying non-functions on the prototype isn't a good idea.
In my opinion
 
12:53 AM
jet.prototype.trouble = function(relationship) {if(relationship) { return trouble; } else { return trouble * 2; } };
 
1:12 AM
MUHAHAHA! I finally killed the bug!
 
wow
(NaN | 15) === 15
what the fuck
 
Bitwise operators transform arguments to number, and NaN values turn to 0. It's as if you do 0 | 15
 
yes but just as I believed my UTF8/16/32 codecs were robust as fuck, that bit me
 
NaN propagates when doing arithmetic
 
1:23 AM
@copy that's what I was counting on
so ( 15 | NaN ) === 15
instead of NaN, surprised me
 
Me too.
On the other hand, NaN is a floating point number, which you can't do bitwise operations on
 
yeah it sure makes sense now
the only valid integer to represnt NaN is 0
 
All numbers in js are floating-point, they're converted to and fro when using these operators
 
I believe for optimization they are only converted to float when have to
though I never checked that
it just would be really dumb if during all these bitwise operations they were converted back and forth for nothing
 
On the other hand, I do remember falling asleep. So either I woke up for bitwise operator discussions, or this is a dream, which should deeply concern me and lead you to question my answers (not that it matters if this is a dream; you're a figment of my imagination in that case). I'll know when I wake up. If I can determine when that happens.
 
1:31 AM
You could also be asleep, but still typing
happened to a friend of mine once
 
Uhh, Javascript is such a horrible language. There should simply be 2 number types (and maybe some more)
 
there should be real maps as well
anytime you use object for a map you just convert strings back and forth if you use numbers as keys
 
Right, but you mean array or list
 
no I mean like Map<int, int> or similar
 
Ohh, yeah that too
 
1:34 AM
with js you just have Map<String, ..>
 
ArrayBuffers are actually <int, int>, aren't they ?
 
you mean the typed arrays? they are sequential normal arrays
with maps you can map 50000 to 30 without having array of 50000 items
 
Ohh, I see
 
I mean, it must be faster to just take the integer as hashcode than first convert to string and then calculate hashcode from the string
I see v8 at least optimizes objects to have class mode and hashmap/dictionary mode
for instance, if you delete then the object goes into hashmap mode
so finally it's explained why object.freeze makes it orders of magnitude slower to read properties..
D
 
1:53 AM
0
Q: Where can I learn more about JavaScript and Python?

Tom MaxwellBeen teaching myself how to code over the past four months or so -- mainly in JavaScript, but just started Python -- and had a revelation today. I can write in JavaScript pretty well, but I don't actually know what JavaScript is. Basically I know how to use it, but not the advantages/disadvantage...

 
f.apply(obj, arguments) is optimized, nice
 
Hey guys, I'm trying to make a fly-in menu effect- for some reason it is not working; nothing is happening. It is at 4h9j.localtunnel.com .. any ideas on what is causing it to not work?
btw it is in jQuery
Any recommendations?
anybody home?
anybody?
 
2:25 AM
Any ideas?
 
Please stop before I flag as spam
 
Geez..
 
You're using jQuery. You ask a terrible question. You show no effort to research your problem. You ask well after most people have left this room. You've only got 42 rep. Do you really think we'll be jumping at the chance to answer?
 
I will give you a cookie if you help me. ahaha. I figured it out anyways, don't be so quick to judge. But thank you for your condescension! :)
 
3:24 AM
god damn i hate canvas'
 
3:41 AM
who is good at JS and canvas stuff ? think i might have found a bug with canvas in jsfiddle
 
 
2 hours later…
6:02 AM
@Dave Could give it a shot
 
@AmaanCheval o/
 
@henrymb67 yes there is ... typing!
 
@Abhishek Should probably reply right to that message to give context
@henrymb67 ^
in Android, 57 secs ago, by ProfSmiles
Good god. Apple's maps are so bad they're life threatening in Australia http://www.theverge.com/2012/12/9/3749410/apple-maps-australia-police-warning
 
yeah eah
 
6:17 AM
0
Q: JQuery Slide Show Simplification

Drew Paul I'm trying to come up with the most basic example of making a JQuery slide show where you click on the current image you're viewing and you cycle through a gallery of photos. I know its probably not the most basic example, because if I want to add a new image I have to code more JQuery. Is there ...

 
6:30 AM
0
Q: Select/Deselect checkbox on row click in javascript

SandeepI have to develope one form which contains table with section and sub-section.On click event of section,sub section should be select/deselcet.And also on uncheck of each sub-section my section should be uncheck .I have to do this thing on row click as well as checkbox click.http://imgboot.com/im...

 
Insta-ignore
Should make an extension that automatically ignores any user who pings multiple people with the word "help" in their message
That doesn't seem like it'd be very hard to do
 
Sandeep don't ping ppl... its irritating... especially when we don't know you... ask a question... hope someone helps you... if not, tough luck...
 
@ShyamK ok
 
@AmaanCheval sometimes i do that aswell
 
I don't usually. Even if I do, I unhide their posts in a bit
 
6:43 AM

Transylvania

Room to move help vampire posts and to push helpvampires , if ...
Vampires ... Vampires are everywhere , thou shall be sent to transylvania
1 message moved to Transylvania
Dafuk i cant move boxed messages ?
 
@AmaanCheval trymoving his message which has the question
@phenomnomnominal o/
 
I can't move messages
Only admins can
 
codepen.io/darkyen/full/ptyhn <- boy i made this a widget now (XD) boy i love my own watch so much <3 , or maybe its the iron man theme (XD)
 
@Abhishek hello!
 
6:55 AM
Yeah, saw it on Facebook. Looks awesome
 
sup man
@AmaanCheval share some love <3 <3
 
Been so crazy busy with new job, havent had any time for personal project stuff!
 
Damn, pretty much the same here
 
@phenomnomnominal i usually give saturday , sunday to personal ones
 
i wish i could, but i've been trying to find a place to live!
 
6:57 AM
I gave Saturday and Sunday to playing Saints Row: The Third and Limbo :p
 
not to mention the girlfriend and other friends etc. my friend is moving to montreal, so jealous
"Is there an easy way to convert jQuery to javascript?" - love it
@SOChatBot FUCK YOU
 
What'd the bot do?
 
nothing, just hoping it had become self aware
 
Hahaha
STOP
 
HAMMERTIME!
 
7:05 AM
has anyone ever used the maxthon browser?
 
@AmaanCheval heard dope-shope ?
 
No, and no
 
i cant figure out where i have heard the rhythm before , but am damn sure its stolen >_> , i heard it just first time and i am like .. damn this sounds familiar
 
Ew, Honey Singh. I'm not even going to bother :p
 
@AmaanCheval \o you are my brother :D
i hate him myself
 
7:06 AM
Yes, there is an Indian musician named "Honey Singh"
 
@AmaanCheval i prefer pornstar
hes no where close to musician . period , he is a pornstar :D
 
WAIT A FRIKEN MINUTE ... easter egg in the chat! , orr maybe christmas goodies
 
What is it?
 
when somebody leaves the chat u see the santa vehicle
 
7:16 AM
Grr, someone leave chat!
 
did it work?
 
No. Again!
 
That time?
 
You didn't leave the chat at all o.O
 
I did! Twice!
 
7:19 AM
I just left and came back and saw you coming back XD
 
haha fuck
 
Forget it
 
yes that is there... sledge exit
Christmas special I guess...
 
Oh! I saw it
Nice
 
Gooood morning :D
 
7:22 AM
good morning to you
 
@AndersMetnik Su-prabhat [ means the same ]
 
@Abhishek I thought it was shubh prabhat
 
@AmaanCheval suprabhat works the same
its just vyanjan sandhi or tatbhaw dunno which one but either one [man its been 4 years since i even touched a hindi grammar book ]
 
shrugs
I don't know what you're talking about anymore :p
 
did u ever read hindi grammar ?
 
7:31 AM
Well, the basics, yeah
But since I did IGCSE, the Hindi we had to study was mostly things we already knew
 
@AmaanCheval lucky
 
I know, right?
 
i had CBSE Hindi course A
the harder one :-/
and guess what
in 10th they asked to write an article about your favorite book, board finals
 
Hindi as a second language?
 
yes
Soo the book i chose ?
 
7:34 AM
I don't know
 
was amazingly enoguh Mahabharat .. all the rest i read were probably too crazy for those who would of checked :P
 
Which was it?
Hahahahaha
 
Amazingly i wrote 5 pages on it :D
 
I haven't read it at all. Know bits from people talking about it
 
Heh it was in course in CBSE in class 8th :P , thats how i read it (x_x)
 
7:41 AM
Sad :p
 
you assume indian parents to allow read anything else then coursebook ?
 
Just say it's part of your coursework
Before every English exam, I'd read a novel
They stopped asking even, because they knew it wasn't part of my coursework, but I wouldn't "study" English
 
Bleh ... i flipped them off starting to read internets ;D
 
Yeah, haven't read finished a book in a while :/
 
@AmaanCheval but you have learnt a lot in a while :P
=> Books != Learning // if only indians understood this
 
7:53 AM
Of course
But reading was fun too. I just don't make the time for that anymore
 
My favorite course book is now in my pocket
Wikipedia App ;D
 
Not a usable scientific reference though @Abhishek
 
@AndersMetnik Its better then the course books atleast
infact 2-4 times better
 
Might be more usable, but it is a far worse scientific reference
Just know that when you start uni and need to do references.. They are not permitted.
Well might be in yours though, but it would go in DK ;)
 
8:11 AM
@AndersMetnik assignments and projects here are submitted here as direct copy-paste printouts
of wiki
How i know ? , i did the same O:-)
 
That is a really bad habbit
you are uni student now ?
 
i have been since past 1 and half year .. and i hate it (XD)
 
btw its not my habit anymore i prefer writing my own paper
 
only 3½ to go then? ;)
 
8:13 AM
2 & 1/2
 
Sad that you are allowed to do C/P printouts, in DK the professors does checks on your reports etc.
only 4? what is your title going to be?
 
Dude, they don't give a fuck here
Most of the time, they won't even read the paper
 
Dude, That's really sad
It's a bad example to give to the students
 
how to look all stack websites ?
mathematik , cooking , .... all
 
8:21 AM
@FlorianMargaine thx ,its that
 
Hello
@AmaanCheval the papers we submit serve as good food wrappers or tissues
or even burnt for heat on night duties
 
8:40 AM
sold to the paperwala...
 
Hahahaha
 
;D
I still remember the look at my hod's face when i told him i am going to a wiki conf. to work on an AI module with wiki.... His reply : "So they are going to teach you how to do it?" , My reply:"No i am going to do it myself for them"

HIM :: :-| :-| . http://i1198.photobucket.com/albums/aa454/VampireAmaya1/Private/dafuq.jpg
the above story was posted so late cause i just removed him off my fb 1 second after he added me as friends (angel)
 
hods?
 
Head of Department
 
And what was the part about the angel in the end?
 
8:54 AM
So beta, will they be teaching you this? LOL
 
@Abhishek Ahh
 
@ShyamK :P
 
9:07 AM
hey hi
how is all going?
 
Its going fine just busy as hell
 
why?
what happened?
 
recreating a crap code done by som1 else in strict html5 style with shims and polyfills
 
more focus less chatting then :P
 
:D
yeah @AndersMetnik is true
do code then
hey @Abhishek and @AndersMetnik if you get time
then please have a look at apptivate.ms/semi-finals/5/social
there my app got shortlisted for semi finals
 
9:18 AM
congrats
 
"Location Matrix"
 
what should we look for though?
 
please do vote for finals
you have to just go and click on the "vote for top"
 
w8 app?
 
yup
other apps which are listed there are my competitors
 
9:23 AM
Good luck :)
 
:-)
Make an html5 only variant man ;D
 
@AndersMetnik did you vote?
@Abhishek .. did you see that app?
 
Hi everybody. Can somebody help me : is it possible in JS (without jquery) to modify style property using property name (as a string) ? i tried : element.style['font-size'] = '...' but it dont work because i should use 'fontSize' and not 'font-size'. what is curious is that jquery use 'font-size'. how can he do this ?
 
9:42 AM
@nineT9D Sorry I have no basis for voting :)
@tigrou Because in jquery "he" doesn't use DOM objects, but "his" own jQuery objects which then does the corrections.
 
@Anders I dont see any reference to font-size or fontSize in jquery sourcecode.
 
$('#objectId') !== document.getElementById('objectId')
Probably not specific to font-size but to all style attr'
 
// Convert dashed to camelCase; used by the css and data modules
// Microsoft forgot to hump their vendor prefix (#9572)
camelCase: function( string ) {
return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
},
seems jquery convert all css properties by removing "-" then converting to camelCase...
 
something like that
 
hey guys!
 
9:48 AM
I wish there were a active chatroom like this, just for oracle reports :P
'lo @GNi33
 
oracle reports?
that sounds scary :D
 
It is man it is :)
 
10:06 AM
hi
any one feel like helping me out?
0
Q: jQuery button state active

PetahHow can I make a jQuery UI button maintain ui-state-active? I have a button, that I want to be a toggle button. So when I activate it should stay active. Currently if I set ui-state-active on a button it will get removed if I hover over it. The markup for the button is just: this.button = $(...

 
10:35 AM
 
plug in a keyboard
 
If someone writes onclick="javascript:xxxx" is xxxx then a function somewhere?
I think it is, thanks :)
 
Hey everyone! How can I secure a api service call from jquery ajax setup so hide username and password or token in the header of the request?
 
10:53 AM
@Yoda, what?
use ssl?
 
@Petah my website will be hosted using ssl but the problem m concerned of is I am using MVVM javascript pattern for my view and javascript will be responsible for data access
which will call web service
as it will act as a client which will consume the service, I need to secure it because the data is customers data
I need to secure it so that not anyone can just open the js file from browser and see the username, password written there and that will be a risk
 
@Yoda encrypt it before sending? :)
 
why are you string the username and password in the source?
 
but to encrypt the credentials from javascript, I will have to mention it somewhere in JS file right and then encrypt it somehow (also m not aware of the tools available in JS)
 
the user should login, then a session is started, then the password should not need to be sent again, until the session ends
 
11:01 AM
@AndersMetnik Never encrypt anything in Javascript
 
why?
 
55
A: Lessons learned and misconceptions regarding encryption and cryptology

D.W.Don't roll your own crypto. Don't invent your own encryption algorithm or protocol; that is extremely error-prone. As Bruce Schneier likes to say, "Anyone can invent an encryption algorithm they themselves can't break; it's much harder to invent one that no one else can break". Crypto ...

Don't roll your own crypto.
That
 
you dont have to roll your own
use a standard public key encryption algorithm like open pgp
 
that is the issue, actually my website is a insurance website and doesn't need login by a user, but I want to encrypt my request so that any anonymous user cant access my request...
 
If you don't use SSL, it's not going to be safe anyway. If you use SSL you don't need another encryption layer
 
11:04 AM
@Yoda if you don't want user to login, where is this password you are sending coming from?
 
@copy true I guess
 
the web service written needs a a username and password to authenticate where the request is coming from..
so if javascript is consuming the service, I need to authenticate somewhere so that web service will accept my request and get a reponse
 
so you send the client a username and password, to login to some other site?
you might need to proxy it on your server
 
@Petah no, I think m not able to explain you...see my web service is written which asks the client some credentials to authenticate
now that credentials must be used whenever a client consumes that service, whether he is consuming from a server side code or client side code like JS
 
11:08 AM
yea, so your server send the u/p to the client, the client js then sends a request to the web service using the u/p
 
yeah
 
and is the u/p only valid for 1 session?
or is it shared by many users
 
its not for users, its for my own code so as to see if the request is known one.
 
So you want to hide your code ?
 
yeah
 
11:10 AM
shared as in you are always using the same u/p, it doesn't change
 
yeah, I don't want to change it always
 
that basically means you have static session token
which also means its totally insecure
and you are doing it wrong
 
y?
 
session tokens need a high entropy
 
You can't hide your code. It's clientside, it has to be in plaintext on the client at some point of time
 
11:12 AM
the only thing you could do is proxy the web service
 
yeah that is what m not getting...however, have you got my scenario of a user going to an insurance site and just going step by step...they don#t need to login
 
Only way you can do some kind of trick is through obfuscation, but security through obscurity is not secure
 
so should I understand that data access using JS is not a good way....as libraries like knockout.js works..using mvvm pattern?
 
@Yoda i understand what you are trying to do, and it is not possible unless you either change how the web service works, or proxy it
@Yoda data access with JS is fine. you just need to follow basic security principles
 
can you give me any resource to how to make a web service if javascript is used for data access
 
11:15 AM
 
the web service technology m using is Microsoft's web api which is REST in architecture and works on HTTP
 
but oauth works in my case, as m not asking user to log-in and I only want to hide my code for service request...so that it is secure...
 
thats your problem, you cant be secure with out logging in
so you built this web service?
 
can I not send my username and password from server to client browser, and browser then uses oauth to make some security token which will be used directly by JS without giving any info to user...coz its an insurance website..?
 
11:19 AM
you cant send a password to the client ever. EVER!
 
yup...it has its own security, the username and secruity token is saved in DB where it always check...
okz
it seems JS based app is really hard for privacy of customer's data...this is my first step by JS...
 
its pretty easy if you know the basics
use ssl, clients log in with strong passwords, passwords are hashed with bcrypt, session tokens have a high entropy
 
yeah I understand what you have explained me above..but in my case, user is not logging in...I need to do it somehow, or authenticate that request somehow..
 
you might be able to do something like: your server asks the api for a session initialization url, the server send the client to that url, then the api starts a session for that client
the initialization url could be password protected, and you would store it on the server
the client would never see it
 
ok
 
11:25 AM
also the initialization url would only be active for a small window of time and it should have a high entropy
 
now need to scratch my head for this...will try doing it :)
okz
thanks @Petah @AndersMetnik for ur support
 
 
your welcome
 
@Petah *Nelson laugh* Ha ha.. you're using paint
 
@Petah what is dat image for...very small!!
 
11:36 AM
click it
 
@Petah Still too small
 
yeah too small to read
 
@Neil, no its actually dia en.wikipedia.org/wiki/Dia_(software)
 
even zoomed n tried..
 
oh well
 
@Petah Oh ok, then you're good
If Dia is using paint then a nice Ha ha for them
 
12:16 PM
@Esailija Good news, you aren't (weren't) a figment of my imagination (unless reality is indeed subjective or I'm delusional now. or several other options).
 
^^
 
'lo
Got my Apple keyboard. It is silent. :D
Compared to my other two mechanical keyboards that is.
 
well, mechanical keyboards shouldn't be silent anyhow ;)
hello everyone btw
 
12:31 PM
@Zirak Just being random or is there a backstory?
 
@GNi33 I know, I love my mechanical keyboards, it's just that people around me don't seem to enjoy the audible clicks.
 
tell them to not be little bitches then :D
 

« first day (786 days earlier)      last day (4163 days later) »